/* ==========================================================================
   VB PAINTER - AREAS PAGE STYLESHEET
   Interactive Geographic Editorial Experience
   ========================================================================== */

:root {
    --bg-color: #F7F6F2;
    --bg-alt: #EFEFEA;
    --text-dark: #1A1A1A;
    --text-light: #F7F6F2;
    --text-muted: #666666;
    --accent-terracotta: #C17767;
    --accent-sage: #7A8B76;
    --border-color: rgba(26, 26, 26, 0.15);
    
    --font-heading: 'Dela Gothic One', system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --nav-height: 90px;
    --container-padding: 5vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.05;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--container-padding);
    z-index: 1000;
    pointer-events: none;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.nav-logo, .nav-links a, .nav-contact a, .nav-contact button, .mobile-nav-toggle {
    pointer-events: auto;
}

.nav-logo-img {
    max-height: 60px;
    max-width: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    color: var(--text-dark);
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    font-weight: 700;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: translateX(0);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transform: translateX(-101%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-call-btn, .nav-quote-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-quote-btn {
    background: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-dark);
}

.nav-call-btn:hover {
    background: rgba(26, 26, 26, 0.1);
}

.nav-quote-btn:hover {
    background: var(--accent-terracotta);
    border-color: var(--accent-terracotta);
    color: var(--text-light);
}

.navbar.scrolled {
    background: rgba(247, 246, 242, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

/* --- Global Section Defaults --- */
section {
    padding: 11vh 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-terracotta);
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    letter-spacing: -0.02em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2.8rem;
    background: var(--text-dark);
    color: var(--text-light);
    border-radius: 100px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.04);
    background: var(--accent-terracotta);
}

/* ==========================================================================
   1. AREAS HERO
   ========================================================================== */
.areas-hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 4vh);
    padding-bottom: 8vh;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.hero-areas-stage {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.areas-hero-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-terracotta);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.areas-hero-kicker::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent-terracotta);
}

.areas-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 5vw;
    align-items: flex-end;
}

.areas-display-title {
    font-size: clamp(2.8rem, 5.8vw, 5.8rem);
    letter-spacing: -0.02em;
    color: var(--text-dark);
    line-height: 1.02;
}

.areas-display-title .title-line {
    display: block;
    overflow: hidden;
}

.areas-display-title .title-line span {
    display: inline-block;
    transform: translateY(110%);
}

.areas-hero-editorial {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.areas-hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-areas-photo {
    width: 100%;
    height: 260px;
    border-radius: 4px;
    overflow: hidden;
}

.hero-areas-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   2. CUSTOM ABSTRACT REGIONAL FOOTPRINT DIAGRAM
   ========================================================================== */
.regional-diagram-section {
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
}

.regional-diagram-stage {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5vw;
    align-items: center;
}

.svg-diagram-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.regional-svg {
    width: 100%;
    height: 100%;
}

.svg-path-line {
    stroke: var(--text-dark);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.svg-node-dot {
    fill: var(--accent-terracotta);
    transition: transform 0.3s ease;
}

.svg-node-label {
    font-family: var(--font-heading);
    font-size: 14px;
    fill: var(--text-dark);
}

.diagram-copy-block {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.diagram-copy-block h3 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
}

.diagram-copy-block p {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   3. GEOGRAPHIC EDITORIAL JOURNEY
   ========================================================================== */
.geographic-journey-section {
    background-color: var(--bg-color);
}

.journey-chapter {
    padding: 6vh 0;
    border-bottom: 1px solid var(--border-color);
}

.journey-chapter:last-child {
    border-bottom: none;
}

.chapter-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5vw;
    align-items: center;
}

.chapter-layout-grid.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.chapter-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chapter-num {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-terracotta);
}

.chapter-title {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.1;
}

.chapter-suburbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.suburb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.suburb-item::after {
    content: '·';
    color: var(--accent-terracotta);
    font-weight: 700;
}

.suburb-item:last-child::after {
    content: '';
}

.chapter-desc {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
}

.chapter-visual-col {
    width: 100%;
    height: 380px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.chapter-visual-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chapter-image-tag {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 2px;
}

/* ==========================================================================
   4. OUTSIDE CORE AREAS FALLBACK & CLOSING CTA
   ========================================================================== */
.fallback-coverage-section {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.fallback-content-box {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.fallback-content-box h3 {
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 1.1;
}

.fallback-content-box p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.55;
}

.cta-group-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cta-button.cta-secondary {
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
}

.cta-button.cta-secondary:hover {
    background: var(--text-dark);
    color: var(--text-light);
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-alt);
    padding: 5vh 0 3vh;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.glass-credit {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .areas-hero-grid, .regional-diagram-stage, .chapter-layout-grid, .chapter-layout-grid.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .chapter-visual-col {
        height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 72px;
        --container-padding: 1.25rem;
    }

    section {
        padding: 4.5rem 0;
    }

    .areas-hero {
        padding-top: calc(var(--nav-height) + clamp(3.25rem, 7vh, 4.25rem));
    }

    .areas-display-title {
        font-size: clamp(2.1rem, 7.5vw, 2.8rem);
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }

    .areas-hero-lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-areas-photo {
        height: 35vh;
        max-height: 320px;
    }

    .chapter-title, .fallback-content-box h3, .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.12;
    }

    .chapter-desc, .fallback-content-box p {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .chapter-visual-col {
        height: 240px;
    }

    .svg-diagram-wrapper {
        height: 300px;
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-call-btn {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-logo-img {
        max-height: 42px;
    }

    .nav-call-btn, .nav-quote-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}

@media (max-width: 360px) {
    .nav-call-btn {
        display: none;
    }
}

/* --- PREFERS REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .areas-display-title .title-line span,
    .chapter-visual-col img {
        transform: none !important;
    }
    .svg-path-line {
        stroke-dashoffset: 0 !important;
    }
}
