/* ============================================================
   city.css — City landing pages (Oklahoma City and future metros)
   Mirrors the services-hero pattern: a full-bleed photograph carrying
   the section, darkened enough for AA text contrast over any crop.
   ============================================================ */

/* — Skip link: keyboard users should not tab the whole nav on every page — */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 18px;
    background: var(--c-near-black);
    color: var(--c-white);
    border: 1px solid var(--c-chrome);
    border-radius: 0 0 8px 0;
    font-size: 13px;
    letter-spacing: 0.06em;
}
.skip-link:focus {
    left: 0;
}

/* ============ HERO ============
   Mirrors the home page: the photograph lives in its own layer so it can be
   graded (desaturate, then warm-multiply) exactly the way .hero-photo is,
   with the section carrying the ambient highlights above it.
   ============================================================ */
.city-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(120px, 16vh, 180px) 0 clamp(48px, 7vh, 80px);
    background-color: #060606;
}

.city-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #070605;
    /* Plain url() first as the floor, then image-set so AVIF wins where it is
       supported. The 3000px original was 1 MB; this is 78 KB at 1920w. */
    background-image:
        linear-gradient(180deg, rgba(14,11,7,0.40) 0%, rgba(10,9,7,0.58) 50%, rgba(5,5,6,0.96) 100%),
        radial-gradient(ellipse 132% 98% at 50% 32%, rgba(58,45,23,0.10) 0%, rgba(5,5,7,0.86) 76%),
        url('../assets/City/okc-hero.webp');
    background-image:
        linear-gradient(180deg, rgba(14,11,7,0.40) 0%, rgba(10,9,7,0.58) 50%, rgba(5,5,6,0.96) 100%),
        radial-gradient(ellipse 132% 98% at 50% 32%, rgba(58,45,23,0.10) 0%, rgba(5,5,7,0.86) 76%),
        image-set(url('../assets/City/okc-hero.avif') type('image/avif'),
                  url('../assets/City/okc-hero.webp') type('image/webp'));
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Fixed backgrounds cause repaint jank and battery cost on phones. */
@media (max-width: 768px) {
    .city-hero-photo { background-attachment: scroll; }
}
/* Grade to the brand's dark tan: desaturate the skyline, then warm-multiply. */
.city-hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #8b8985;
    mix-blend-mode: saturation;
    opacity: 0.68;
}
.city-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(86,64,32,0.30) 0%, rgba(44,33,17,0.44) 100%);
    mix-blend-mode: multiply;
}

/* Ambient highlights — same light rig as the home hero. */
.city-hero::before,
.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 55% 45% at 72% 18%, rgba(255,255,255,0.10) 0%, transparent 65%),
        radial-gradient(ellipse 45% 38% at 28% 26%, rgba(255,255,255,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 36% 6% at 50% 60%, rgba(255,255,255,0.10) 0%, transparent 80%);
}

/* Phones never need the 1920px plate — 31 KB instead of 78 KB. */
@media (max-width: 760px) {
    .city-hero-photo {
        background-image:
            linear-gradient(180deg, rgba(14,11,7,0.40) 0%, rgba(10,9,7,0.58) 50%, rgba(5,5,6,0.96) 100%),
            radial-gradient(ellipse 132% 98% at 50% 32%, rgba(58,45,23,0.10) 0%, rgba(5,5,7,0.86) 76%),
            url('../assets/City/okc-hero-sm.webp');
        background-image:
            linear-gradient(180deg, rgba(14,11,7,0.40) 0%, rgba(10,9,7,0.58) 50%, rgba(5,5,6,0.96) 100%),
            radial-gradient(ellipse 132% 98% at 50% 32%, rgba(58,45,23,0.10) 0%, rgba(5,5,7,0.86) 76%),
            image-set(url('../assets/City/okc-hero-sm.avif') type('image/avif'),
                      url('../assets/City/okc-hero-sm.webp') type('image/webp'));
    }
}

.city-hero-inner {
    position: relative;
    z-index: 3;
    width: min(1180px, 92vw);
    margin: 0 auto;
    text-align: center;
}

/* Title uses the site's display face and chrome gradient, like .hero-wordmark. */
.city-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6.4vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-wrap: balance;
    margin: var(--s-5) 0 var(--s-4);
    background: var(--grad-chrome);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.city-hero .lede,
.faq-hero .lede {
    max-width: 62ch;
    margin: 0 auto var(--s-6);
    color: var(--c-bone);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.72;
}

/* .hero-ctas is display:inline-flex, so it shrinks to its content and sits at
   the inline start — justify-content alone centres nothing, because the box is
   already exactly as wide as the buttons. It only *looks* centred inside the
   hero because that parent sets text-align:center. Going block-level and full
   width centres the pair no matter what the container does. */
.hero-ctas-center {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.city-hero-stats {
    list-style: none;
    margin: clamp(36px, 6vh, 60px) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 5vw, 68px);
}
.city-hero-stats li { display: flex; flex-direction: column; gap: var(--s-1); }
.chs-v {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.15rem, 1.9vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-chrome);
}
.chs-k {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--c-grey-light);
}

/* ============ INTRO ============ */
.city-intro { padding: clamp(64px, 10vh, 120px) 0; }
.city-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.city-intro-copy p {
    color: var(--c-bone);
    line-height: 1.82;
    margin: 0 0 18px;
    max-width: 66ch;
}
.city-facts {
    display: grid;
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    overflow: hidden;
}
.city-fact {
    background: rgba(255,255,255,0.02);
    padding: 18px 20px;
    display: grid;
    gap: 6px;
}
.cf-k {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-gold);
}
.cf-v { color: var(--c-white); font-size: 14px; line-height: 1.6; }
.cf-v a { color: var(--c-white); border-bottom: 1px solid rgba(215,187,127,0.45); }
.cf-v a:hover { color: var(--c-chrome); }

/* ============ SERVICES ============ */
.city-services { padding: clamp(56px, 9vh, 110px) 0; }
.city-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.city-service {
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 26px 26px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.012) 100%);
    transition: border-color 260ms var(--ease-soft), transform 260ms var(--ease-soft);
}
.city-service:hover {
    border-color: rgba(215,187,127,0.42);
    transform: translateY(-2px);
}
.city-service h3 {
    font-size: 1.06rem;
    color: var(--c-white);
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}
.city-service p {
    color: var(--c-grey-light);
    font-size: 14px;
    line-height: 1.68;
    margin: 0 0 16px;
}
.city-service-link {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--c-gold);
}
.city-service-link:hover { color: var(--c-chrome); }

/* ============ COVERAGE ============ */
.city-coverage { padding: clamp(56px, 9vh, 110px) 0; }
.city-coverage-lede {
    color: var(--c-grey-light);
    max-width: 70ch;
    line-height: 1.75;
    margin: 0 0 34px;
}
.coverage-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(22px, 4vw, 52px);
}
.coverage-col h3 {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-gold);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.coverage-list { list-style: none; margin: 0; padding: 0; }
.coverage-list li {
    color: var(--c-bone);
    font-size: 14px;
    padding: 7px 0 7px 16px;
    position: relative;
}
.coverage-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 5px;
    height: 1px;
    background: var(--c-gold);
}

/* ============ STANDARDS ============ */
.city-standards { padding: clamp(56px, 9vh, 110px) 0; }
.standards-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; overflow: hidden; }
.standards-list li {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    padding: 26px 26px;
    background: rgba(255,255,255,0.02);
    align-items: start;
}
.std-n {
    font-size: 1.5rem;
    color: var(--c-gold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
}
.standards-list h3 { font-size: 1rem; color: var(--c-white); margin: 0 0 8px; }
.standards-list p { color: var(--c-grey-light); font-size: 14px; line-height: 1.7; margin: 0; max-width: 74ch; }

/* ============ FAQ ============ */
.city-faq { padding: clamp(56px, 9vh, 110px) 0; }
.faq-list {
    display: grid;
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}
.faq-item { background: rgba(255,255,255,0.02); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--c-white);
    font-size: 15px;
    transition: color 200ms var(--ease-soft);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--c-gold);
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
    transition: transform 240ms var(--ease-soft);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--c-chrome); }
.faq-item summary:focus-visible { outline: 2px solid var(--c-chrome); outline-offset: -3px; }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--c-grey-light); font-size: 14.5px; line-height: 1.78; margin: 0; max-width: 76ch; }
.faq-body a { color: var(--c-chrome); border-bottom: 1px solid rgba(215,187,127,0.4); }
.faq-more { text-align: center; margin: 26px 0 0; color: var(--c-grey-light); font-size: 14px; }
.faq-more a { color: var(--c-chrome); }

/* ============ CTA ============ */
.city-cta { padding: clamp(60px, 10vh, 130px) 0 clamp(80px, 12vh, 150px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .city-intro-grid { grid-template-columns: 1fr; }
    .standards-list li { grid-template-columns: 44px 1fr; padding: 22px 20px; gap: 14px; }
    .std-n { font-size: 1.2rem; }
}
/* Phones never need the 1920px plate — 31 KB instead of 78 KB. */
@media (max-width: 760px) {
    .city-hero {
        background-image:
            linear-gradient(180deg, rgba(5,6,7,0.78) 0%, rgba(5,6,7,0.55) 44%, rgba(4,5,6,0.93) 100%),
            url('../assets/City/okc-hero-sm.webp');
        background-image:
            linear-gradient(180deg, rgba(5,6,7,0.78) 0%, rgba(5,6,7,0.55) 44%, rgba(4,5,6,0.93) 100%),
            image-set(url('../assets/City/okc-hero-sm.avif') type('image/avif'),
                      url('../assets/City/okc-hero-sm.webp') type('image/webp'));
    }
}

@media (max-width: 560px) {
    .city-hero { background-attachment: scroll; min-height: 92svh; }
    .city-hero-stats { gap: 20px 30px; }
    .faq-item summary { padding: 17px 18px; font-size: 14.5px; }
    .faq-body { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .city-service:hover { transform: none; }
    .faq-item summary::after { transition: none; }
}
