/* ============================================================
   REIMANN LABS — CITY / LOCAL PAGES
   Warm editorial styling aligned with homepage v3.
   Loaded after style.css; scoped under body.local.
   ============================================================ */

body.local {
    --espresso: #241209;
    --espresso-soft: #331D10;
    --cream: #FDFAF6;
    --cream-dim: rgba(253, 250, 246, 0.62);
    --cream-faint: rgba(253, 250, 246, 0.14);
}

body.local section { position: relative; }

body.local .section-tag { margin-bottom: 16px; }

body.local h2 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

body.local h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--orange);
}

/* Header on dark hero */
body.local #main-header {
    position: fixed;
    background: transparent;
    border-bottom: 1px solid transparent;
}

body.local #main-header:not(.scrolled) .logo-text,
body.local #main-header:not(.scrolled) .nav-links a {
    color: var(--text-white);
}

body.local #main-header:not(.scrolled) .nav-cta {
    background: var(--text-white) !important;
    color: var(--text-dark) !important;
}

body.local #main-header:not(.scrolled) .mobile-menu-toggle span {
    background: var(--text-white);
}

body.local #main-header.scrolled {
    background: rgba(253, 250, 246, 0.96);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

body.local #main-header.scrolled .logo-text,
body.local #main-header.scrolled .nav-links a {
    color: var(--text-dark);
}

body.local #main-header.scrolled .nav-cta {
    background: var(--orange) !important;
    color: var(--text-white) !important;
}

body.local #main-header.scrolled .mobile-menu-toggle span {
    background: var(--text-dark);
}

/* Reveal */
body.local [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

body.local [data-reveal].visible {
    opacity: 1;
    transform: none;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 28px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--border);
    font-weight: 400;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.25s var(--ease);
}

.breadcrumb a:hover { color: var(--orange); }

.breadcrumb--hero ol { color: var(--cream-dim); }
.breadcrumb--hero a { color: var(--cream-dim); }
.breadcrumb--hero a:hover { color: var(--orange-soft); }
.breadcrumb--hero li:not(:last-child)::after { color: var(--cream-faint); }
.breadcrumb--hero li[aria-current="page"] { color: var(--cream); }

.breadcrumb--light li,
.breadcrumb--light a { color: var(--text-muted); }
.breadcrumb--light li[aria-current="page"] { color: var(--text-dark); }

/* Hero — at least one viewport tall; grows when content needs more room */
body.local .local-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    padding: 0;
    overflow-x: clip;
    overflow-y: visible;
    background: var(--espresso);
}

body.local .local-hero .container.local-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

/* Desktop + tablet — vertically center hero content in the viewport */
@media (min-width: 769px) {
    body.local .local-hero {
        align-items: center;
    }

    body.local .local-hero .container.local-hero-inner {
        padding-top: calc(88px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
}

.local-hero-inner {
    width: 100%;
}

.local-hero .breadcrumb {
    margin-bottom: 20px;
}

body.local .local-hero-kicker {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-soft);
    margin-bottom: 18px;
    line-height: 1.35;
}

.local-hero-headline {
    font-size: clamp(2rem, 4.8vw, 3.5rem);
    color: var(--text-white) !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    max-width: none;
}

.local-hero-sub {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 24px;
}

body.local .local-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
}

body.local .hero-line {
    opacity: 0;
    transform: translateY(30px);
    animation: heroRise 0.9s var(--ease-out) forwards;
    animation-delay: calc(var(--line) * 130ms + 150ms);
}

@keyframes heroRise {
    to { opacity: 1; transform: none; }
}

.local-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.local-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 60% 40%;
    animation: localKenBurns 18s var(--ease-out) forwards;
}

@keyframes localKenBurns {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.local-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, rgba(20, 10, 4, 0.55) 0%, rgba(20, 10, 4, 0) 30%),
        linear-gradient(100deg, rgba(20, 10, 4, 0.9) 0%, rgba(20, 10, 4, 0.72) 34%, rgba(20, 10, 4, 0.3) 64%, rgba(20, 10, 4, 0.1) 100%);
}

/* Stat band — light variant after dark hero */
body.local .stat-band--light {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: clamp(36px, 5vw, 56px) 0;
}

body.local .stat-band--light .stat-cell-num {
    color: var(--text-dark);
}

body.local .stat-band--light .stat-cell-num small {
    color: var(--orange);
}

body.local .stat-band--light .stat-cell-label {
    color: var(--text-muted);
}

body.local .stat-band--light .stat-cell:not(:first-child)::before {
    background: var(--border);
}

body.local .stat-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

body.local .stat-cell {
    text-align: center;
    position: relative;
}

body.local .stat-cell:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
}

body.local .stat-cell-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 6px;
}

body.local .stat-cell-num small {
    font-size: 0.55em;
    font-weight: 700;
    color: var(--orange-soft);
}

body.local .stat-cell-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

/* Problem — alt cream */
.local-problem {
    padding: var(--section-pad) 0;
    background: var(--bg-alt);
}

.local-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.local-copy-stack p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.78;
    margin-bottom: 18px;
}

.local-copy-stack p:last-child { margin-bottom: 0; }

.local-copy-stack--rich a {
    color: var(--orange);
    font-weight: 600;
    border-bottom: 1px solid var(--orange-soft);
}

/* Services — warm cream */
.local-services {
    padding: var(--section-pad) 0;
    background: var(--bg);
}

body.local .svc-head {
    max-width: 640px;
    margin-bottom: clamp(44px, 6vw, 72px);
}

body.local .svc-head-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

body.local .svc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

body.local .svc-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: clamp(28px, 3.4vw, 42px);
    overflow: hidden;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

body.local .svc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-soft);
}

body.local .svc-card-num {
    position: absolute;
    top: 18px;
    right: 24px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 2.4rem;
    color: var(--bg-warm);
    line-height: 1;
    transition: color 0.45s var(--ease);
}

body.local .svc-card:hover .svc-card-num { color: var(--orange-soft); }

body.local .svc-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

body.local .svc-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Story strip */
.local-story {
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--bg-alt);
}

.local-story-inner {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}

.local-story-inner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.78;
    margin-top: 18px;
}

/* Hosting */
.local-hosting {
    padding: var(--section-pad) 0;
    background: var(--espresso);
}

.local-hosting-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.local-hosting .section-tag { color: var(--orange-soft); }
.local-hosting .section-tag::before { background: var(--orange-soft); }

.local-hosting h2 { color: var(--cream); }

.local-hosting p {
    color: var(--cream-dim);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-top: 16px;
}

.local-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.local-check-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    color: var(--cream);
    font-size: 0.95rem;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--cream-faint);
    border-radius: 10px;
}

.local-check-list li::before {
    content: '';
    position: static;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
}

/* Pricing — light section (follows dark hosting) */
body.local .plans.local-pricing {
    background: var(--bg);
    padding: var(--section-pad) 0;
}

body.local .plans.local-pricing .section-tag {
    color: var(--orange);
}

body.local .plans.local-pricing .section-tag::before {
    background: var(--orange);
}

body.local .plans.local-pricing .plans-head h2 {
    color: var(--text-dark);
}

body.local .plans.local-pricing .plans-head-desc {
    color: var(--text-muted);
}

body.local .plans.local-pricing .plan-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

body.local .plans.local-pricing .plan-card--featured {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange), var(--shadow-lg);
}

body.local .plans-head {
    max-width: 620px;
    margin-bottom: clamp(44px, 6vw, 72px);
}

body.local .plans-grid--three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

body.local .plan-card--featured .plan-cta {
    background: var(--orange);
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.35);
}

body.local .plan-card--featured .plan-cta:hover {
    background: var(--orange-hover);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.45);
}

body.local .plan-number--text {
    font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
}

/* Process — extends home.css */
.local-process {
    padding: var(--section-pad) 0;
    background: var(--bg-alt);
}

body.local .process-head {
    max-width: 640px;
    margin-bottom: clamp(44px, 6vw, 72px);
}

body.local .process-steps--four {
    grid-template-columns: repeat(4, 1fr);
}

/* SEO copy */
.local-seo-copy {
    padding: var(--section-pad) 0;
    background: var(--bg);
}

/* FAQ — extends home.css */
body.local .faq-home {
    padding: var(--section-pad) 0;
    background: var(--bg-alt);
}

body.local .faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}

body.local .faq-home-list {
    max-width: 780px;
}

body.local .faq-item summary {
    padding: 20px 24px;
}

body.local .faq-item summary span {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
}

body.local .faq-item:hover { border-color: var(--orange-soft); }

body.local .faq-answer-inner { padding: 0 24px; }

body.local .faq-item[open] .faq-answer-inner { padding-bottom: 22px; }

body.local .faq-item summary span.typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 0.95em;
    background: var(--orange);
    margin-left: 3px;
    vertical-align: -0.12em;
    animation: caretBlink 0.7s steps(1) infinite;
}

@keyframes caretBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Nearby areas — extends home.css area-pill grid */
.local-nearby {
    padding: var(--section-pad) 0 clamp(48px, 6vw, 72px);
    background: var(--espresso);
}

.local-nearby .section-tag { color: var(--orange-soft); }
.local-nearby .section-tag::before { background: var(--orange-soft); }

.local-nearby-head {
    max-width: 620px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.local-nearby-head h2 { color: var(--cream); }

.local-nearby-head p {
    color: var(--cream-dim);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-top: 14px;
}

body.local .area-pill--hub {
    border-color: var(--orange);
    background: rgba(255, 140, 66, 0.08);
}

/* Contact — light section (follows dark nearby) */
body.local .contact-home.local-contact {
    background: var(--bg);
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--border);
}

body.local .contact-home.local-contact .section-tag {
    color: var(--orange);
}

body.local .contact-home.local-contact .section-tag::before {
    background: var(--orange);
}

body.local .contact-home.local-contact .contact-home-copy h2 {
    color: var(--text-dark);
}

body.local .contact-home.local-contact .contact-home-copy p {
    color: var(--text-muted);
}

body.local .contact-home.local-contact .contact-home-card {
    background: var(--white);
    border-color: var(--border);
}

body.local .contact-home.local-contact .contact-home-card:hover {
    border-color: var(--orange-soft);
    background: var(--bg-alt);
}

body.local .contact-home.local-contact .contact-home-icon {
    background: var(--orange-bg);
    color: var(--orange);
}

body.local .contact-home.local-contact .contact-home-card-body span {
    color: var(--text-muted);
}

body.local .contact-home.local-contact .contact-home-card-body a {
    color: var(--text-dark);
}

body.local .contact-home.local-contact .contact-home-card-body a:hover {
    color: var(--orange);
}

body.local .contact-home.local-contact .copy-contact-btn {
    color: var(--text-muted);
    border-color: var(--border);
    background: var(--bg-alt);
}

body.local .contact-home.local-contact .copy-contact-btn:hover {
    color: var(--text-dark);
    border-color: var(--orange);
    background: var(--white);
    box-shadow: none;
    transform: none;
}

body.local .contact-home.local-contact .copy-contact-btn.copied {
    color: var(--orange);
    border-color: var(--orange);
    background: var(--orange-bg);
}

body.local .contact-home-inner {
    padding-top: 0;
    border-top: none;
    align-items: center;
}

body.local .contact-home-cta {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

body.local .copy-contact-btn {
    appearance: none;
    flex-shrink: 0;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: none;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

/* Footer — light variant (matches homepage) */
body.local footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

body.local .footer-grid {
    border-bottom-color: var(--border);
}

body.local footer .logo-text { color: var(--text-dark); }

body.local .footer-brand p { color: var(--text-muted); }

body.local .footer-socials a {
    border-color: var(--border);
    color: var(--text-muted);
}

body.local .footer-socials a:hover {
    color: var(--orange);
    border-color: var(--orange);
}

body.local .footer-col h4 { color: var(--text-dark); }

body.local .footer-col ul li a { color: var(--text-muted); }

body.local .footer-col ul li a:hover { color: var(--orange); }

body.local .footer-bottom p { color: var(--text-light); }

/* Legal pages */
body.legal {
    background: var(--bg);
}

body.legal .privacy-section {
    padding: 140px 0 80px;
}

body.legal .privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

body.legal .privacy-content h1 {
    margin-bottom: 2rem;
    font-size: clamp(2.2rem, 4vw, 3rem);
}

body.legal .privacy-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--orange);
}

body.legal .privacy-content p,
body.legal .privacy-content li {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

body.legal .privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

body.legal .privacy-content a {
    color: var(--orange);
    font-weight: 600;
}

body.legal .cookie-prefs-btn {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    body.local .plans-grid--three,
    body.local .process-steps--four {
        grid-template-columns: repeat(2, 1fr);
    }

    .local-hosting-inner,
    .local-split,
    body.local .contact-home-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    body.local .local-hero-headline {
        font-size: clamp(1.85rem, 5.2vw, 2.75rem);
    }
}

@media (max-width: 768px) {
    body.local .local-hero {
        align-items: flex-start;
    }

    body.local .stat-band-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }

    body.local .stat-cell:nth-child(3)::before { display: none; }

    body.local .svc-grid,
    body.local .plans-grid--three,
    body.local .process-steps--four {
        grid-template-columns: 1fr;
    }

    body.local .plan-card--featured { order: -1; }

    body.local .local-hero .container.local-hero-inner {
        padding-top: calc(80px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
    }

    body.local .local-hero .breadcrumb {
        margin-bottom: 14px;
    }

    body.local .local-hero-kicker {
        margin-bottom: 12px;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    body.local .local-hero-headline {
        max-width: none;
        font-size: clamp(1.75rem, 7.5vw, 2.35rem);
        line-height: 1.12;
        margin-bottom: 14px;
    }

    body.local .local-hero-sub {
        margin-bottom: 20px;
        font-size: 0.95rem;
        max-width: none;
    }

    body.local .local-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    body.local .local-hero .home-btn-primary,
    body.local .local-hero .home-btn-ghost {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
    }

    body.local .areas-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body.local .areas-home-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    body.local .local-hero-media img,
    body.local .hero-line {
        animation: none;
        opacity: 1;
        transform: none;
    }

    body.local [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.local .faq-item summary span.typing::after {
        animation: none;
    }
}
