/* city.css - City landing pages (Service Areas)
   Used alongside global.css, components.css, animations.css and residential.css.
   Pages are generated by scripts/build-city-pages.js — edit the template there,
   not the generated HTML. */

/* --- Hero --- */
.city-hero {
    background: linear-gradient(135deg, #141414 0%, #082e18 100%);
    color: #ffffff;
    padding: 110px 24px 160px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -90px;
}

.city-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 28px;
}

.city-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}

.city-breadcrumb a:hover {
    color: #ffffff;
}

.city-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin: 0 0 1.25rem;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #ffffff;
}

.city-hero h1 .city-hero-accent {
    color: var(--cfn-light-green, #8BD9AD);
}

.city-hero-sub {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.city-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.city-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cfn-green);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.city-btn:hover {
    background: var(--cfn-dark-green);
    transform: translateY(-1px);
}

.city-btn.city-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
}

.city-btn.city-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.45);
}

.city-hero-meta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.02em;
}

/* --- Plans section wrapper (block flow; #plans-grid keeps the flex layout) --- */
.city-plans-section {
    position: relative;
    z-index: 10;
    max-width: 1320px;
    /* Top padding clears the hero's -90px overlap + angled clip-path so the
       intro heading is never tucked under the slant. */
    margin: 0 auto 60px;
    padding: 120px 32px 0;
}

@media (max-width: 768px) {
    .city-plans-section {
        padding: 110px 16px 0;
    }
}

/* --- Section anchors offset (sticky header) --- */
#plans-pricing,
#availability-check,
#fiber-comparison,
#city-faq,
#installation-process,
#customer-reviews {
    scroll-margin-top: 110px;
}

/* --- Local content section --- */
.city-local-section {
    padding: 100px 24px 60px;
    position: relative;
    z-index: 10;
}

.city-local-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
    align-items: start;
}

.city-local-copy h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    color: var(--npt-black);
    margin: 0 0 28px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.city-local-copy p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 22px;
}

.city-highlights-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
    position: sticky;
    top: 130px;
}

.city-highlights-map {
    display: block;
    width: 84px;
    height: auto;
    margin: 0 0 22px;
}

.city-highlights-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--npt-black);
    margin: 0 0 10px;
    line-height: 1.35;
}

.city-highlights-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.city-highlights-card li {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.city-highlights-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- Comparison table (mirrors support.css styling) --- */
.comparison-section {
    padding: 100px 24px;
    background-color: #fff;
}

.comparison-section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.1rem;
    color: var(--npt-black);
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table thead th {
    background-color: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #e2e8f0;
}

.comparison-table td:first-child {
    font-weight: 700;
    color: #334155;
    border-left: 1px solid #e2e8f0;
}
.comparison-table th:first-child {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 8px;
}
.comparison-table tr:last-child td:first-child {
    border-bottom: 1px solid #e2e8f0;
    border-bottom-left-radius: 8px;
}

.comparison-table td:last-child {
    border-right: 1px solid #e2e8f0;
}
.comparison-table th:last-child {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 8px;
}
.comparison-table tr:last-child td:last-child {
    border-bottom: 1px solid #e2e8f0;
    border-bottom-right-radius: 8px;
}

.comparison-table td {
    color: #64748b;
}

.comparison-table thead th.highlight-col {
    background-color: var(--cfn-green);
    color: white;
    font-size: 1.05rem;
    border-top: 2px solid var(--cfn-green);
    border-left: 2px solid var(--cfn-green);
    border-right: 2px solid var(--cfn-green);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.comparison-table tbody td.highlight-col {
    background-color: #f0fdf4;
    border-left: 2px solid var(--cfn-green);
    border-right: 2px solid var(--cfn-green);
    border-bottom: 1px solid rgba(3, 166, 60, 0.1);
    color: var(--npt-black);
    font-weight: 700;
}

.comparison-table tbody tr:last-child td.highlight-col {
    border-bottom: 2px solid var(--cfn-green);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* --- FAQ (mirrors support.css styling) --- */
.faq-section {
    padding: 80px 24px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

.faq-section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.1rem;
    color: var(--npt-black);
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.faq-category {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 5px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #334155;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--cfn-green);
}

.faq-item summary::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.2s;
    margin-left: 15px;
}

.faq-item[open] > summary {
    color: var(--cfn-green);
}

.faq-item[open] > summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 10px 24px 5px;
    color: #475569;
    line-height: 1.75;
    animation: fadeInFaq 0.4s ease;
}

@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Nearby communities --- */
.city-nearby-section {
    padding: 90px 24px 40px;
    text-align: center;
}

.city-nearby-section h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--npt-black);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.city-nearby-section .city-nearby-desc {
    color: #64748b;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.city-nearby-links {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 36px;
}

.city-nearby-links a {
    text-decoration: none;
    color: #475569;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.city-nearby-links a:hover {
    color: var(--cfn-green);
    border-color: var(--cfn-green);
}

/* --- Bottom CTA band --- */
.city-cta-band {
    max-width: 1000px;
    margin: 70px auto 20px;
    padding: 70px 40px;
    background: linear-gradient(135deg, #141414 0%, #082e18 100%);
    border-radius: 18px;
    text-align: center;
    color: #ffffff;
}

.city-cta-band h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.city-cta-band p {
    color: #94a3b8;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .city-local-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .city-highlights-card {
        position: static;
    }

    .city-cta-band {
        margin-left: 20px;
        margin-right: 20px;
        padding: 50px 24px;
    }
}

@media (max-width: 768px) {
    .city-hero {
        padding: 80px 20px 140px;
    }

    .city-hero-sub {
        font-size: 1.05rem;
    }

    .city-local-section,
    .comparison-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .comparison-table {
        min-width: 680px;
    }

    .table-wrapper {
        margin-left: -10px;
        margin-right: -10px;
        padding: 10px 0;
    }
}
