/* ==========================================================================
   VB PAINTER - CONTACT PAGE STYLESHEET (RESPONSIVE ENHANCED)
   Art-Directed Interactive Editorial Canvas
   ========================================================================== */

: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;
    width: 100%;
}

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: clamp(6vh, 10vh, 12vh) 0;
    position: relative;
}

.section-header {
    margin-bottom: clamp(2.5rem, 5vw, 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(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. EDITORIAL HERO (TYPOGRAPHY & PHOTOGRAPHY INTERACTION)
   ========================================================================== */
.contact-hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 3vh);
    padding-bottom: 8vh;
    background-color: var(--bg-color);
}

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

.hero-headline-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-meta-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;
}

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

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

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

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

.hero-direct-call-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.direct-call-num {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.2vw, 4.2rem);
    color: var(--text-dark);
    line-height: 1;
    transition: color 0.3s ease;
}

.direct-call-num:hover {
    color: var(--accent-terracotta);
}

.direct-call-sub {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.direct-email-link {
    font-size: clamp(1.05rem, 1.8vw, 1.6rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.direct-email-link:hover {
    color: var(--accent-terracotta);
}

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

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

.hero-architectural-slice {
    position: relative;
    width: 100%;
    height: clamp(200px, 25vh, 300px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.hero-architectural-slice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

/* ==========================================================================
   2. PHOTOGRAPHIC BREAK (FULL-WIDTH ATMOSPHERIC INTERRUPTER)
   ========================================================================== */
.photo-break-section {
    padding: 0;
    width: 100%;
    height: clamp(280px, 45vh, 500px);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.photo-break-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-break-overlay {
    position: absolute;
    bottom: 2rem;
    left: var(--container-padding);
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: calc(100% - (var(--container-padding) * 2));
}

/* ==========================================================================
   3. HUMAN-CENTERED QUOTE EXPERIENCE (EDITORIAL UNDERLINE FORM)
   ========================================================================== */
.quote-experience-section {
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 100px;
}

.quote-experience-flow {
    max-width: 1100px;
    margin: 0 auto;
}

.service-index-container {
    margin-bottom: 4rem;
}

.human-step-heading {
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.human-step-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
    display: block;
}

.service-typeset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.service-typeset-row {
    position: relative;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.service-typeset-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-typeset-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.9rem, 1.5vw, 1.25rem) clamp(1rem, 1.8vw, 1.75rem);
    background: var(--bg-color);
    font-size: clamp(0.88rem, 1vw, 1rem);
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    user-select: none;
}

.service-typeset-label:hover {
    background: #E8E7E0;
}

.service-typeset-row input[type="checkbox"]:checked + .service-typeset-label {
    background: var(--text-dark);
    color: var(--text-light);
}

.typeset-check-mark {
    font-size: 0.85rem;
    color: var(--accent-terracotta);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.service-typeset-row input[type="checkbox"]:checked + .service-typeset-label .typeset-check-mark {
    opacity: 1;
}

.service-typeset-row input[type="checkbox"]:focus-visible + .service-typeset-label {
    outline: 2px solid var(--accent-terracotta);
    outline-offset: -2px;
}

.human-form-section {
    margin-bottom: 3.5rem;
}

.form-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2vw;
    margin-bottom: 3rem;
}

.editorial-field-wrap {
    display: flex;
    flex-direction: column;
}

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

.editorial-label .req {
    color: var(--accent-terracotta);
}

.editorial-input {
    width: 100%;
    padding: 0.85rem 0.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: border-color 0.25s ease;
    border-radius: 0;
}

.editorial-input:focus {
    outline: none;
    border-bottom-color: var(--accent-terracotta);
}

.editorial-input::placeholder {
    color: #999999;
    font-weight: 500;
}

textarea.editorial-input {
    min-height: 120px;
    resize: vertical;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    background: var(--bg-color);
}

textarea.editorial-input:focus {
    border-color: var(--accent-terracotta);
}

select.editorial-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231A1A1A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.65rem auto;
    padding-right: 2rem;
    cursor: pointer;
}

.editorial-error-msg {
    font-size: 0.8rem;
    color: var(--accent-terracotta);
    font-weight: 700;
    margin-top: 0.4rem;
    display: none;
}

.editorial-field-wrap.error .editorial-error-msg,
.service-index-container.error .editorial-error-msg {
    display: block;
}

.editorial-field-wrap.error .editorial-input {
    border-bottom-color: var(--accent-terracotta);
}

.form-status-msg {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    border-radius: 4px;
    display: none;
    transition: all 0.3s ease;
}

.form-status-msg.success {
    display: block;
    color: #2D5A27;
    background: rgba(122, 139, 118, 0.15);
    border: 1px solid rgba(122, 139, 118, 0.3);
}

.form-status-msg.error {
    display: block;
    color: var(--accent-terracotta);
    background: rgba(193, 119, 103, 0.12);
    border: 1px solid rgba(193, 119, 103, 0.3);
}

.editorial-helper {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.4rem;
}

.quote-action-horizon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.quote-privacy-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   4. INTEGRATED LOCATION & GOOGLE MAPS HORIZON
   ========================================================================== */
.location-horizon-section {
    background-color: var(--bg-color);
}

.location-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5vw;
    align-items: start;
}

.location-copy-block {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.location-headline-unit h3 {
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.location-headline-unit p {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 500;
}

.location-guarantee-rows {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.guarantee-line {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.guarantee-line .bullet-square {
    width: 6px;
    height: 6px;
    background: var(--accent-sage);
}

.location-vehicle-visual {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.location-vehicle-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-visual-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.map-viewport-frame,
.google-map-frame {
    width: 100%;
    height: clamp(320px, 42vh, 480px);
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    position: relative;
}

.map-viewport-frame iframe,
.google-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-external-row {
    display: flex;
    justify-content: flex-end;
}

.map-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    transition: color 0.25s ease;
}

.map-external-link:hover {
    color: var(--accent-terracotta);
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    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) {
    .hero-horizon-layout, .hero-meta-bar, .location-editorial-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    section {
        padding: 4.5rem 0;
    }

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

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

    .direct-call-num {
        font-size: clamp(1.8rem, 6.5vw, 2.6rem);
    }

    .direct-email-link {
        font-size: clamp(1.05rem, 4vw, 1.35rem);
    }

    .hero-architectural-slice {
        height: 220px;
    }

    .map-viewport-frame,
    .google-map-frame {
        height: clamp(260px, 35vh, 320px);
    }

    .location-headline-unit h3, .human-step-heading, .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.12;
    }

    .location-headline-unit p, .human-step-sub {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .nav-links {
        display: none;
    }

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

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

    .service-typeset-grid {
        grid-template-columns: 1fr;
        border-right: 1px solid var(--border-color);
    }

    .service-typeset-row {
        border-right: none;
    }

    .form-fields-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .quote-action-horizon {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .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; /* Hide Call on 320-360px to preserve logo & Free Quote */
    }
}

/* --- 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;
    }
    .hero-display-title .title-line span,
    .hero-architectural-slice img,
    .photo-break-section img {
        transform: none !important;
    }
}
