/* ==========================================================================
   CPL Plumbing - Premium Design System (conforming to DESIGN.md)
   ========================================================================== */

:root {
    /* --- Primitive Neutral Ink Scale (Slate Black Base) --- */
    --ink-950: #090A0F; /* Main Background */
    --ink-900: #12141D; /* Card Background */
    --ink-800: #1D202F; /* Elevated Surface / Border */
    --ink-700: #2E3347; /* Stronger Borders */
    --ink-600: #5A627D; /* Subtitles */
    --ink-500: #8C95B2; /* Muted Text / Placeholder */
    --ink-300: #C5CBDC;
    --ink-200: #EAF0F8;
    --ink-100: #F5F8FC;
    --ink-50:  #FFFFFF; /* Pure White */

    /* --- Brand Accent Base (Sky Blue Core) --- */
    --accent-base: #1BBBFD;
    
    /* --- Derived Accent Tints --- */
    --accent-hover: color-mix(in oklch, var(--accent-base) 85%, black);
    --accent-active: color-mix(in oklch, var(--accent-base) 75%, black);
    --accent-subtle: color-mix(in oklch, var(--accent-base) 12%, transparent);
    --accent-border: color-mix(in oklch, var(--accent-base) 35%, transparent);

    /* --- Semantic Feedback --- */
    --color-success: #00C853;
    --color-warning: #FFAB00;
    --color-error:   #FF1744;

    /* --- Font Mappings (DESIGN.md Section 2.1 - Clash Display Banned) --- */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* --- Fluid Typographic Scale (DESIGN.md Section 2.2) --- */
    --text-xs:      clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem); /* 12px -> 13px */
    --text-sm:      clamp(0.875rem, 0.82rem + 0.28vw, 1rem);      /* 14px -> 16px */
    --text-base:    clamp(1rem, 0.93rem + 0.35vw, 1.125rem);     /* 16px -> 18px */
    --text-lg:      clamp(1.125rem, 1.03rem + 0.47vw, 1.35rem);   /* 18px -> 21.6px */
    --text-xl:      clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);     /* 21.6px -> 28px */
    --text-2xl:     clamp(1.75rem, 1.48rem + 1.35vw, 2.45rem);    /* 28px -> 39.2px */
    --text-3xl:     clamp(2.25rem, 1.82rem + 2.15vw, 3.375rem);   /* 36px -> 54px */
    --text-4xl:     clamp(2.85rem, 2.15rem + 3.5vw, 4.75rem);    /* 45.6px -> 76px */
    --text-display: clamp(3.5rem, 2.45rem + 5.25vw, 6.25rem);   /* 56px -> 100px */

    /* --- Spacing Scale (8pt System) --- */
    --space-1:  0.25rem; /* 4px */
    --space-2:  0.50rem; /* 8px */
    --space-3:  0.75rem; /* 12px */
    --space-4:  1.00rem; /* 16px */
    --space-6:  1.50rem; /* 24px */
    --space-8:  2.00rem; /* 32px */
    --space-12: 3.00rem; /* 48px */
    --space-16: 4.00rem; /* 64px */
    --space-24: 6.00rem; /* 96px */
    --space-32: 8.00rem; /* 128px */

    /* --- Global Layout Config --- */
    --container-max: 1280px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* ==========================================================================
   Base resets & Defaults
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--ink-950);
    color: var(--ink-50);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography Rules (DESIGN.md Section 2.3)
   ========================================================================== */

h1, h2, .section-title {
    font-family: var(--font-display);
    font-weight: 800; /* Expressive bold display style */
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ink-50);
}

h3, h4 {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink-50);
}

p {
    color: var(--ink-300);
}

.section-overline {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-base);
    margin-bottom: var(--space-3);
}

/* ==========================================================================
   Utility Layout Classes
   ========================================================================== */

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

.section-padding {
    padding: var(--space-24) 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
}

.section-title span {
    color: var(--accent-base);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--ink-500);
    max-width: 600px;
    margin: 0 auto var(--space-12);
}

/* ==========================================================================
   Interactive Buttons (DESIGN.md Section 6.1)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 150ms cubic-bezier(0.16, 1, 0.3, 1),
                filter 150ms ease,
                color 150ms ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    min-height: 48px; /* Touch target safety */
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-base) 0%, color-mix(in oklch, var(--accent-base) 80%, #0099ff) 100%);
    color: var(--ink-950);
    box-shadow: 0 4px 14px color-mix(in oklch, var(--accent-base) 20%, transparent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in oklch, var(--accent-base) 35%, transparent);
    filter: brightness(1.08);
    color: var(--ink-950);
}

.btn-primary:active {
    transform: translateY(0px) scale(0.98);
}

.btn-secondary {
    background: var(--ink-900);
    border: 1px solid var(--ink-700);
    color: var(--ink-50);
}

.btn-secondary:hover {
    background: var(--ink-800);
    border-color: var(--accent-base);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0px) scale(0.98);
}

/* ==========================================================================
   Navigation Header (Responsive fixes for text-wrapping)
   ========================================================================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--ink-800);
    padding: var(--space-4) 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid var(--accent-base);
    background-color: var(--ink-900);
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--ink-50);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    flex-shrink: 0;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-300);
    transition: color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-base);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.nav-phone {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent-base);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.nav-phone:hover {
    opacity: 0.8;
}

.nav-cta {
    min-height: 40px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--accent-base);
    font-size: 1.75rem;
    cursor: pointer;
    padding: var(--space-1);
}

.mobile-nav-btn {
    display: none; /* Hidden on desktop to prevent duplicate call/quote links */
}

/* ==========================================================================
   Hero Section (Robust Asymmetric Layout)
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(9, 10, 15, 0.4) 0%, rgba(9, 10, 15, 0.95) 100%), 
                url('hero-bg.jpg') center/cover no-repeat;
    padding-top: 130px;
    padding-bottom: var(--space-16);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-12);
    align-items: center;
    width: 100%;
    opacity: 0;
    animation: hero-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hero-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-text-side, .hero-card-side {
    min-width: 0; /* Critical layout safety: prevents grid cell expansion overflow */
}

.hero-text-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    color: var(--accent-base);
    padding: var(--space-2) var(--space-4);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-6);
}

.hero h1 {
    font-size: var(--text-4xl);
    line-height: 1.08;
    margin-bottom: var(--space-6);
    text-transform: uppercase;
}

.hero h1 .accent-text {
    color: var(--accent-base);
}

.hero-lead {
    font-size: var(--text-lg);
    color: var(--ink-300);
    max-width: 54ch;
    margin-bottom: var(--space-8);
}

.hero-btns {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    width: 100%;
}

.hero-btns .btn {
    flex: 1 1 auto;
    min-width: 0;
}

.trust-badges-inline {
    display: flex;
    flex-wrap: nowrap; /* Force onto a single line */
    gap: var(--space-3);
    color: var(--ink-300);
    font-size: clamp(0.7rem, 2.5vw, 0.85rem); /* Dynamic shrink behavior */
    font-weight: 600;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.trust-badges-inline::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.trust-badges-inline span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: none !important;
    border: none !important;
    padding: 0 !important;
    white-space: nowrap;
}

.badge-icon {
    color: var(--accent-base);
    font-weight: bold;
}

.hero-card-side {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.hero-proof-card {
    background: var(--ink-900);
    border: 1px solid var(--ink-800);
    border-radius: var(--border-radius-md);
    padding: var(--space-6);
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    box-shadow: 0 20px 40px var(--ink-950);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ink-800);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
}

.rating-stars {
    color: #FFC107;
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.rating-score {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--ink-300);
}

.hero-reviews-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    margin-bottom: var(--space-6);
}

.marquee-track {
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    gap: var(--space-4);
    animation: marquee-scroll 25s linear infinite;
    white-space: nowrap;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.review-card {
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    border-radius: var(--border-radius-sm);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    color: var(--ink-50);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--ink-950);
    border-radius: var(--border-radius-sm);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--ink-800);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    position: relative;
}

.animate-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-success);
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.3); opacity: 1; }
    80%, 100% { transform: scale(1.8); opacity: 0; }
}

.status-text {
    font-size: var(--text-xs);
    color: var(--ink-300);
    font-weight: 500;
}

/* ==========================================================================
   Before & After Slider
   ========================================================================== */

.before-after-section {
    background-color: var(--ink-900);
    border-top: 1px solid var(--ink-800);
    border-bottom: 1px solid var(--ink-800);
    overflow: hidden;
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.ba-item {
    background: var(--ink-950);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--ink-800);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ba-images {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    --slider-pos: 50%;
}

.ba-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-img-wrapper.img-after {
    clip-path: polygon(var(--slider-pos) 0, 100% 0, 100% 100%, var(--slider-pos) 100%);
}

.ba-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
    margin: 0;
}

.ba-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--slider-pos);
    width: 3px;
    background: var(--accent-base);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 15;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: var(--slider-pos);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-base);
    border-radius: 50%;
    pointer-events: none;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.ba-slider-button::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 6px solid var(--ink-950);
    margin-right: 3px;
}

.ba-slider-button::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--ink-950);
    margin-left: 3px;
}

.ba-label {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: rgba(9, 10, 15, 0.85);
    color: var(--ink-50);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid var(--ink-800);
}

.ba-label.after {
    left: auto;
    right: var(--space-4);
    color: var(--accent-base);
    border-color: var(--accent-base);
}

.ba-info {
    padding: var(--space-4) var(--space-6);
    text-align: center;
}

.ba-info h4 {
    font-size: var(--text-lg);
    font-weight: 700;
}

/* ==========================================================================
   Services Section (Bento Grid Style & SVG Icons)
   ========================================================================== */

.services {
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.service-card {
    background-color: var(--ink-900);
    border: 1px solid var(--ink-800);
    border-radius: var(--border-radius-md);
    padding: var(--space-8);
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card.large-span {
    grid-column: span 6;
}

.service-card:hover {
    border-color: var(--accent-base);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-svg {
    width: 44px;
    height: 44px;
    color: var(--accent-base);
    transition: transform 0.2s ease;
}

.service-card:hover .service-svg {
    transform: scale(1.08);
}

.service-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.service-content p {
    font-size: var(--text-sm);
    color: var(--ink-500);
}

/* ==========================================================================
   Trust & Metrics
   ========================================================================== */

.trust-section {
    background-color: var(--ink-950);
    overflow: hidden;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
    border-bottom: 1px solid var(--ink-800);
    padding-bottom: var(--space-16);
}

.trust-item h4 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--ink-50);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.trust-item h4.accent-metric {
    color: var(--accent-base);
}

.trust-item p {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink-500);
}

.trust-cta {
    margin-top: var(--space-16);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-cta p {
    font-size: var(--text-lg);
    max-width: 60ch;
    color: var(--ink-300);
    margin-bottom: var(--space-8);
}

.trust-cta-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ==========================================================================
   About Section (Faded background logo overlay style)
   ========================================================================== */

.about {
    background-color: var(--ink-900);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-text p {
    font-size: var(--text-lg);
    color: var(--ink-300);
    margin-bottom: var(--space-6);
}

.about-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--ink-50);
}

.chk-icon {
    color: var(--accent-base);
    font-weight: bold;
}

.about-visual {
    position: relative;
    height: 360px;
    background-color: var(--ink-950);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--ink-800);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-8);
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--logo-url) center/55% no-repeat;
    opacity: 0.05; /* Faded logo in background */
    filter: grayscale(1);
    z-index: 1;
}

.about-visual-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.about-visual-text h3 {
    color: var(--accent-base);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.badge-tag {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    color: var(--ink-300);
    margin-bottom: var(--space-2);
}

.badge-location {
    font-size: var(--text-sm);
    color: var(--ink-500);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    background-color: var(--ink-950);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-16);
    align-items: flex-start;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-lead {
    font-size: var(--text-lg);
    color: var(--ink-300);
    margin-bottom: var(--space-8);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    width: 100%;
}

.method-card {
    background-color: var(--ink-900);
    border: 1px solid var(--ink-800);
    border-radius: var(--border-radius-sm);
    padding: var(--space-4) var(--space-6);
}

.method-card h4 {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: var(--space-1);
}

.method-card a {
    color: var(--accent-base);
    font-size: var(--text-xl);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.method-card a:hover {
    opacity: 0.8;
}

.highlight-quote-card {
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: var(--border-radius-sm);
    padding: var(--space-6);
    width: 100%;
}

.highlight-quote-card h4 {
    color: var(--accent-base);
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
}

.highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.highlight-list li {
    font-size: var(--text-sm);
    color: var(--ink-300);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.highlight-list li::before {
    content: "💧";
    font-size: 0.85rem;
}

.contact-form-side {
    background: var(--ink-900);
    border: 1px solid var(--ink-800);
    border-radius: var(--border-radius-md);
    padding: var(--space-8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.fillout-container {
    width: 100%;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

footer {
    background-color: var(--ink-950);
    border-top: 1px solid var(--ink-800);
    padding: var(--space-16) 0 var(--space-8);
    overflow: hidden;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--ink-500);
    max-width: 32ch;
    margin-bottom: var(--space-6);
}

.footer-phone {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--accent-base);
    text-decoration: none;
    font-weight: 700;
}

.footer-socials {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.footer-socials a {
    color: var(--ink-300);
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--ink-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    color: var(--accent-base);
    border-color: var(--accent-base);
    background-color: var(--ink-900);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
}

.footer-links-col h4 {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-base);
    margin-bottom: var(--space-6);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links-col a {
    color: var(--ink-500);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-col a:hover {
    color: var(--ink-50);
}

.footer-bottom-bar {
    border-top: 1px solid var(--ink-800);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom-bar p {
    font-size: var(--text-xs);
    color: var(--ink-600);
}

.footer-bottom-bar .copyright {
    font-family: var(--font-mono);
}

/* ==========================================================================
   Fade In & Scroll animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Demo banner (conversion block)
   ========================================================================== */

.demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ff6600;
    color: #ffffff;
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    z-index: 2001;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    animation: banner-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: none !important;
}

@keyframes banner-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.demo-banner .claim-text {
    text-decoration: underline;
    font-weight: 800;
    margin-left: var(--space-2);
    animation: none !important;
    transition: none !important;
}

/* ==========================================================================
   Responsive Overrides & Mobile Safeties (DESIGN.md Section 12)
   ========================================================================== */

/* Breakpoint changed to 1024px to prevent nav text overlapping/wrapping on 2 lines */
@media (max-width: 1024px) {
    #navbar {
        padding: var(--space-3) 0;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgba(9, 10, 15, 0.98);
        padding: var(--space-6);
        border-bottom: 1px solid var(--ink-800);
        gap: var(--space-4);
        align-items: stretch;
        text-align: center;
        box-sizing: border-box;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        display: none !important;
    }
    
    .mobile-nav-btn {
        display: block;
    }
    
    .btn-call-mobile {
        color: var(--accent-base) !important;
        font-weight: 700;
        font-size: var(--text-base) !important;
        text-transform: uppercase;
    }
    
    .btn-quote-mobile {
        color: var(--ink-50) !important;
        font-weight: 700;
        font-size: var(--text-base) !important;
        text-transform: uppercase;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-text-side {
        align-items: center;
        text-align: center;
    }
    
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .trust-badges-inline {
        justify-content: center;
    }
    
    .hero-card-side {
        justify-content: center;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4); /* Safe padding for narrow viewports */
        width: 100%;
        box-sizing: border-box;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card, .service-card.large-span {
        grid-column: span 1;
        padding: var(--space-6);
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .btn {
        width: 100%; 
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btns .btn {
        width: 100%;
    }
    
    .ba-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .contact-form-side {
        padding: var(--space-4); /* Smaller padding on mobile to prevent overflow */
    }
    
    .about-visual {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none; /* Safely hides text brand mark to prevent header wrap on tiny devices */
    }
    
    .method-card a {
        font-size: var(--text-base) !important;
    }
}

/* Accessibility Safeties */
@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;
    }
}
