/* Modern Design System 2026 - Premium Luxury/Tech Feel */

:root {
    /* Palette - Premium */
    --color-brand-primary: #CC0000;
    /* Stays Red, but used sparingly for punch */
    --color-brand-dark: #880000;
    --color-black: #0a0a0a;
    /* Deep almost-black */
    --color-charcoal: #171717;
    /* Secondary dark */
    --color-white: #ffffff;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-800: #262626;

    /* Text */
    --font-main: 'Inter', system-ui, sans-serif;
    --leading-tight: 1.1;
    --leading-normal: 1.5;
    --leading-loose: 1.7;

    /* Spacing - "Apple" scale */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 2rem;
    /* 32px */
    --space-lg: 4rem;
    /* 64px */
    --space-xl: 8rem;
    /* 128px - Big breathing room */

    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 10px 40px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-blur: blur(12px);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--color-white);
    color: var(--color-charcoal);
    line-height: var(--leading-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
}

/* Typography */
.h1,
.h2,
.h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

/* Prevent orphan words in headings - modern browsers */
h1,
h2,
h3,
.h1,
.h2,
.h3 {
    text-wrap: balance;
}

.h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: var(--leading-tight);
}

.h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: var(--space-md);
}

.h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

/* Premium Text Effect - Brushed Copper */
.text-premium-gradient {
    /* Layer 1: The Shine/Color (Animates) - Lighter "Polished" Copper */
    /* Layer 2: The Mill Texture (Static) - High contrast grain */
    background-image:
        linear-gradient(110deg, #e69b6b 0%, #f0c2a2 25%, #ffffff 50%, #f0c2a2 75%, #e69b6b 100%),
        repeating-linear-gradient(90deg,
            transparent 0,
            transparent 2px,
            rgba(40, 20, 0, 0.6) 2px,
            rgba(40, 20, 0, 0.6) 4px);

    background-size: 200% auto, 100% 100%;
    background-position: 0% center, 0 0;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Stronger drop shadow for pop */
    filter: drop-shadow(0 4px 1px rgba(0, 0, 0, 0.5));

    /* Slow, steady rotation of the shine */
    animation: metalShine 12s linear infinite;
}

@keyframes metalShine {
    0% {
        background-position: -200% center, 0 0;
    }

    100% {
        background-position: 200% center, 0 0;
    }
}

.text-lead {
    font-size: 1.25rem;
    color: #555;
    max-width: 60ch;
    line-height: var(--leading-loose);
}

.text-xs {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--color-brand-primary);
}

/* Layout & Grid */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

/* Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-md {
    margin-bottom: var(--space-md);
}

.hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1025px) {
    .md\:flex {
        display: flex !important;
    }

    .nav-links {
        display: flex !important;
    }

    .mobile-toggle {
        display: none !important;
    }
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-weight: 700;
    border-radius: 9999px;
    /* Pill shape */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
    /* Prevent button text wrap */
}

.btn-primary {
    background: linear-gradient(135deg, #cc0000 0%, #b30000 100%);
    /* Slightly darker, richer red base */
    color: white;
    border: none;
    font-weight: 800;
    /* Extra bold for luxury feel */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Luxury Sheen for Red Buttons */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 30%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 70%,
            transparent 100%);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
    z-index: 2;
    /* Ensure it's above the background */
}

/* Remove old pseudo-element if it exists */
.btn-primary::before {
    display: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4);
    /* Reduced hover shadow */
}

.btn-primary:hover::after {
    left: 150%;
    transition: all 0.8s ease-in-out;
}



.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: var(--color-black);
    /* Default to black for white backgrounds */
    border: 2px solid transparent;
    /* Keep border width but make transparent for spacing if needed, or remove. Inset shadow is preferred for 'inside border' feel */
    border: none;
    /* Actually, removing border completely ensures size match if padding is same */
    box-shadow: inset 0 0 0 2px var(--color-brand-primary);
    /* Red ring inside */
    transition: all 0.3s ease;
}

/* Hero Section Override */
.hero-content .btn {
    flex-shrink: 0 !important;
    min-width: max-content;
}

.hero-content .btn-secondary {
    color: white;
    /* Keep Red Ring from default rule */
}

.hero-content .btn-secondary:hover {
    /* border-color: white; Remove border color change */
    box-shadow: inset 0 0 0 2px white;
    /* White ring on hover */
    background: rgba(255, 255, 255, 0.2);
}

/* Secondary Shine Effect */
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.2) 0%, rgba(204, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    /* Keep transparent */
    color: var(--color-brand-primary);
    /* Red text on hover for light bg */
    /* border-color: var(--color-brand-primary) !important; Removed to prevent layout shift */
    box-shadow: inset 0 0 0 2px var(--color-brand-primary);
    /* Force Red Ring via shadow */
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Hero Hover Override - Keep text white */
.hero-content .btn-secondary:hover {
    color: white;
    box-shadow: inset 0 0 0 2px white;
    /* Use white ring on hover for hero */
    /* Keep Red Ring NO - Hero uses white! */
    background: rgba(255, 255, 255, 0.2);
}

/* Nav */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

/* Scrolled State (Solid White) */
.modern-nav.scrolled {
    background: #ffffff;
    /* Solid white, no transparency */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.modern-nav.scrolled .nav-links {
    border-color: rgba(0, 0, 0, 0.15);
    /* Darker border on scroll */
}

.nav-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* THE PILL (Links Center) */
.nav-links {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    /* Visible outline for non-hero pages */
    border-radius: 9999px;
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    gap: 1.5rem;

    /* Absolute Centering for Large Screens */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    margin: 0;
    /* Remove margins, use gap */
    /* Even spacing */
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-black);
    opacity: 0.8;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    /* Prevent menu text wrap */
    /* Removed padding-bottom to ensure true centering */
}

/* RESPONSIVE SCALING FOR HEADER (1300px down to Mobile Breakpoint) */
@media (max-width: 1350px) {
    .nav-inner {
        display: flex;
        /* Switch to flex to allow natural shrinking vs rigid grid */
        justify-content: space-between;
        gap: 1rem;
    }

    .nav-links {
        gap: 0.75rem;
        /* Tighter gap */
        padding: 0.6rem 1.5rem 0.6rem 1rem;
        /* Reduce padding */
        flex-shrink: 1;
        /* Allow menu to shrink if needed */

        /* Reset Absolute Centering */
        position: static;
        transform: none;
        left: auto;
    }

    .nav-links a {
        font-size: 0.8rem;
        /* Smaller text */
    }

    .btn {
        padding: 0.8rem 1.5rem;
        /* Smaller buttons */
        font-size: 0.9rem;
        flex-shrink: 0;
        /* Don't squash the button */
    }
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 0.5rem;
        /* Minimal gap */
        padding: 0.5rem 1rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        /* Smallest readable size */
    }

    /* Reduce button size to save space */
    /* Reduce button size to save space - Nav Only */
    .nav-cta .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Allow CTA button to shrink if needed */
    .nav-cta,
    .nav-cta .btn {
        flex-shrink: 1;
        min-width: auto;
    }

    /* Prevent logo from shrinking */
    .nav-inner>a[href="/"] {
        flex-shrink: 0 !important;
        min-width: auto;
        /* Let it be its natural size but don't force shrink */
    }

    .nav-inner>a[href="/"] img {
        height: 40px !important;
        /* Smaller logo is fine, but don't squish it */
        width: auto !important;
    }
}

/* Progress Bar Hover Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    /* Move closer to text */
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-brand-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-brand-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* CTA Right */
.nav-cta {
    justify-self: end;
}

/* Force taller button in Nav */
.nav-cta .btn {
    padding: 0.85rem 2rem !important;
}

/* Hero Nav Styles */
.modern-nav.hero-nav .nav-links {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Light border for dark hero */
    /* Explicit consistent border width */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modern-nav.hero-nav .nav-links a {
    color: white;
    opacity: 0.9;
}

.modern-nav.hero-nav .nav-links a:hover {
    color: white;
}

.modern-nav.hero-nav .nav-links a::after {
    background: var(--color-brand-primary);
    /* Red progress bar on hero */
}

/* Hero Scrolled Override */
.modern-nav.hero-nav.scrolled .nav-links {
    background: rgba(255, 255, 255, 0.9);
    /* Slightly darker on scroll? Or keep consistent */
}

.modern-nav.hero-nav.scrolled .nav-links a {
    color: var(--color-black);
}

.modern-nav.hero-nav.scrolled .nav-links a:hover {
    color: var(--color-brand-primary);
}

.modern-nav.hero-nav.scrolled .nav-links a::after {
    background: var(--color-brand-primary);
}


.modern-nav.hero-nav .mobile-toggle {
    color: white;
    justify-self: end;
}

.modern-nav.scrolled .mobile-toggle {
    color: var(--color-black);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown>a {
    margin-left: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0;
    padding-top: 0.5rem;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    margin: 0 !important;
    color: var(--color-charcoal) !important;
    opacity: 0.8 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--color-gray-50);
    opacity: 1 !important;
    color: var(--color-brand-primary) !important;
}

/* Hide dropdown on mobile */
@media (max-width: 767px) {
    .nav-dropdown .dropdown-content {
        display: none !important;
    }

    .hidden-mobile {
        display: none !important;
    }
}

/* Static Hero Section */
.hero-section {
    height: 100svh;
    /* Lock height to Small Viewport (ignores URL bar) */
    width: 100vw;
    /* Force full viewport width */
    max-width: 100%;
    /* Prevent overflow */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    /* justify-content: flex-start;  Let container handle alignment */
    color: white;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Ensure no scrollbars from children */
}

/* Hero Video */
.hero-video-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Scale up significantly to crop out baked-in black bars */
    transform: scale(1.35);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Readable tint */
    z-index: 1;
}

/* Hero Content - Container Wrapper */
.hero-content {
    position: relative;
    z-index: 2;
    /* Reset Sidebar rules from previous step */
    text-align: left;
    max-width: 1200px;
    /* Use standar grid width */
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    /* Flex parent */
    align-items: center;
    /* Center vertically */
    justify-content: flex-start;
    /* Align children to left */
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

/* New Inner Panel - The Sidebar */
.hero-inner-panel {
    max-width: 50%;
    /* Take up exactly half of the container */
    width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Layout only - Removed visuals */
    padding-right: 2rem;
    padding-left: 2rem;
    animation: fadeUp 1s ease-out;
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    animation-delay: 0.5s;
    /* Font styles */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Constrain text block width to left blurred area */
.hero-inner-panel>* {
    max-width: 100%;
}

/* Allow hero content to be full width on mobile for centering */

@media (max-width: 1000px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 140px;
        /* Fixed top offset */
        width: 100% !important;
        height: auto;
        /* Let parent center this block */
        margin: 0 auto;
    }

    .hero-inner-panel {
        max-width: 90% !important;
        width: 100%;
        border-right: none;
        padding-right: 0;
        padding-left: 0;
        background: none;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        margin-top: 0;
        /* Remove aggressive pull up */
        margin-left: auto;
        /* Ensure horizontal center */
        margin-right: auto;
    }

    .hero-section {
        background-image: url('/images/home-hero-mobile.png') !important;
        background-position: center top !important;
        align-items: flex-start;
    }

    .hero-badge-pill {
        font-size: clamp(0.6rem, 1.2vw, 0.8rem) !important;
        padding: 0.4rem 1rem !important;
        margin-bottom: 1rem !important;
        white-space: nowrap !important;
    }
}

/* Extra pull-up for smaller mobile screens to remove gap completely */
@media (max-width: 480px) {
    .hero-inner-panel {
        margin-top: 0;
    }
}

/* SAFETY NET: Prevent cutoff on short screens (e.g. 400x600 or Landscape) */
@media (max-height: 750px) and (max-width: 1000px) {
    .hero-inner-panel {
        margin-top: 0 !important;
        /* Relax the pull-up so header isn't cut off */
    }
}

.hero-content .h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Entrance Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Badge */
.hero-badge-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;

    /* Glass Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-down-indicator:hover {
    color: white;
    bottom: 1.8rem;
    /* Slight shift on hover */
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* Cards */
.card-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--color-gray-100);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
    color: var(--color-brand-primary);
}

/* Mobile Sticky Actions */
.mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    gap: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
    .mobile-sticky-bar {
        display: none;
    }
}

/* Add bottom padding to footer on mobile to prevent sticky bar overlap */
@media (max-width: 767px) {
    footer {
        padding-bottom: 110px !important;
        /* Account for sticky bar height + breathing room */
    }
}

/* Glossy Highlight Card (e.g., for Downspout "Us" Section) */
.card-glossy-highlight {
    background: #fff;
    border: 2px solid var(--color-brand-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    /* overflow: visible;  <-- Default behavior, ensured by not setting hidden */
    /* Red-tinted shadow similar to button hover */
    box-shadow: 0 10px 40px rgba(204, 0, 0, 0.15);
    transition: all 0.4s ease;
}

/* The Glossy Shine - Permanent */
.card-glossy-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle red shine gradient */
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.05) 0%, rgba(204, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-lg);
    /* Ensure shine rounds corners since parent allows overflow */
}

/* Ensure content is above the shine */
.card-glossy-highlight>* {
    position: relative;
    z-index: 1;
}

/* Hover state for the card itself */
.card-glossy-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(204, 0, 0, 0.25);
}

/* Buttons for Dark/Red Backgrounds */
.btn-white-glow {
    background: white;
    color: var(--color-brand-primary);
    font-weight: 800;
    /* Extra bold for luxury feel */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Trap the sheen */
    z-index: 1;
}

/* The Luxury Sheen */
.btn-white-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(204, 0, 0, 0.05) 30%,
            rgba(204, 0, 0, 0.25) 50%,
            rgba(204, 0, 0, 0.05) 70%,
            transparent 100%);
    transform: skewX(-20deg);
    transition: none;
    /* Instant reset when not hovering */
    pointer-events: none;
    z-index: -1;
}

.btn-white-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    /* Stronger outer glow */
    color: var(--color-brand-dark);
}

.btn-white-glow:hover::after {
    left: 150%;
    /* Fly across */
    transition: all 0.8s ease-in-out;
}

.btn-transparent-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.btn-transparent-white:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.card-pro:hover .card-pro-btn {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0;
    /* Collapse padding too */
    transform: translateY(20px);
}

.card-pro-btn:hover {
    background: var(--color-brand-dark);
    transform: translateY(-2px);
}

/* Luxury Hero Badge Pill */
.hero-badge-pill {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    margin-bottom: 2rem;

    /* Glassmorphism */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Premium Border & Shape */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* Typography - Responsive font size that scales with viewport */
    color: white;
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;

    /* Animation Basics */
    position: relative;
    overflow: hidden;
}

/* Repeating Sheen Animation */
.hero-badge-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;

    /* Stronger, more visible sheen */
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent);
    transform: skewX(-25deg);

    /* Animation Removed to focus on Header */
    /* animation-name: luxury-sheen-v2; */
    /* animation-duration: 5s; */
    /* animation-iteration-count: infinite; */
    display: none;
}

@keyframes luxury-sheen-v2 {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    /* Sweep across quickly */
    100% {
        left: 200%;
    }

    /* Wait for rest of cycle */
}

/* ============================================
   MOBILE HERO RESPONSIVE FIX
   ============================================ */
@media (max-width: 767px) {

    /* Make video hero flexible on mobile (homepage) - use min-height for content safety */
    .hero-video-section {
        height: auto !important;
        min-height: 100vh !important;
        padding: 0 !important;
        /* Remove padding, we'll use content padding instead */
        align-items: flex-start !important;
        /* Align to top instead of center */
        justify-content: flex-start !important;
        /* Align to top instead of center */
    }

    /* Flexible hero content spacing - adapts to screen size with viewport-based spacing */
    .hero-content {
        padding: 0 1rem;
        padding-top: clamp(120px, 20vh, 160px) !important;
        /* Fluid top padding based on screen height */
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: clamp(0.75rem, 2vh, 1.5rem) !important;
        /* Fluid gap based on viewport height */
    }

    /* Fluid badge pill margin that scales with screen height */
    .hero-badge-pill {
        margin-bottom: clamp(0.75rem, 2vh, 1.5rem) !important;
        /* Scales from 0.75rem to 1.5rem */
        padding: 0.5rem 1.5rem !important;
    }

    /* Ensure heading doesn't get too large on mobile */
    .hero-content .h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        margin-bottom: clamp(0.5rem, 1.5vh, 1rem) !important;
        /* Fluid margin */
    }

    /* Fluid text-lead margin */
    .hero-content .text-lead {
        margin-bottom: clamp(1rem, 2.5vh, 1.75rem) !important;
        /* Scales based on height */
        font-size: 0.95rem !important;
    }

    /* Fluid trust strip spacing - most important for preventing overlap */
    .hero-content .flex-center[style*="margin-top"] {
        margin-top: clamp(1rem, 3vh, 2rem) !important;
        /* Scales with viewport */
        font-size: 0.8rem !important;
        gap: 1rem !important;
    }

    /* Ensure pill container has proper spacing */
    .hero-content .pill-container {
        margin: 1rem 0;
    }

    /* Reduce top and bottom padding on hero sections for mobile (other pages) */
    header.section,
    .section[style*="padding-top"] {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }
}

/* Extra small screens - fix video background coverage */
@media (max-width: 412px) {

    /* Prevent horizontal overflow everywhere */
    html {
        overflow-x: hidden !important;
        max-width: 100%;
    }

    body {
        overflow-x: hidden !important;
        max-width: 100%;
        position: relative;
    }

    /* Ensure all containers stay within bounds */
    .container,
    .nav-inner,
    .hero-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .hero-video-section {
        overflow: hidden !important;
        position: relative;
        width: 100%;
    }

    .hero-video-bg {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) scale(1.6) !important;
    }

    /* Ensure fixed elements don't overflow */
    .modern-nav,
    .mobile-sticky-bar {
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* Warranty bullet - CSS-based to avoid encoding issues */
.warranty-bullet::before {
    content: "•";
    color: var(--color-brand-primary);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Service Area / Hero Page Hamburger Menu Colors */
.hero-nav .mobile-toggle {
    color: white !important;
    /* Force white on transparent header */
    transition: color 0.3s ease;
}

.hero-nav.scrolled .mobile-toggle {
    color: black !important;
    /* Revert to black on scroll */
}

/* Default hamburger menu color for standard pages (non-hero) */
.mobile-toggle {
    color: var(--color-black);
    transition: all 0.3s ease;
    padding: 0.5rem;
    /* Add touch target area */
    border-radius: 9999px;
    /* Pill shape */
}

/* Glass Pill Effect for Hero Pages (Added dynamically) */
.mobile-toggle.glass-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: white !important;
    /* Ensure icon is white */
}

/* Pro Service Cards */
.card-pro {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1001px) {
    .card-pro:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Spotlight Sheen Effect */
.card-pro::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 4;
    pointer-events: none;
    transition: none;
}

@media (min-width: 1001px) {
    .card-pro:hover::after {
        left: 200%;
        transition: left 0.8s ease-in-out;
    }
}

.card-pro-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

@media (min-width: 1001px) {
    .card-pro:hover .card-pro-bg {
        transform: scale(1.05);
    }
}

.card-pro-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.card-pro-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

.card-pro-tag {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-pro-title-box {
    background: var(--color-brand-primary);
    /* Brand Red */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    line-height: .9;
    transform: skew(-5deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bounce on drop */
}

.card-pro-title-box span {
    display: block;
    transform: skew(5deg);
}

.card-pro-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    /* Animation Props */
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
    /* Transition: Normal state (returning) */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 90%;
    z-index: 1;
    /* Ensure distinct layering */
}

.card-pro:hover .card-pro-desc {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    transform: translateY(20px);
    /* Hover state (exiting): Fade out QUICKLY usually solving overlap */
    transition: opacity 0.1s ease, max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), margin 0.4s;
}

.card-pro:hover .card-pro-title-box {
    transform: skew(-5deg) scale(1.1);
    /* Slight enlarge on smash */
}

.card-pro-btn {
    display: inline-block;
    background: var(--color-brand-primary);
    color: white;
    font-weight: 800;
    padding: 0.75rem 0;
    border-radius: 50px;
    text-align: center;
    width: 100%;

    margin-top: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;

    /* Animation Props */
    max-height: 50px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-transparent-white:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.card-pro:hover .card-pro-btn {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0;
    transform: translateY(20px);
}

.card-pro-btn:hover {
    background: var(--color-brand-dark);
}

.card-pro-lite:hover .card-pro-btn-sm {
    background: var(--color-brand-primary);
    color: white;
}

/* Pro Lite Cards (Little Brothers) */
.card-pro-lite {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}

.card-pro-lite:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-pro-lite-media {
    background: #f8f8f8;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-pro-lite-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-pro-title-box-sm {
    background: var(--color-brand-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1;
    transform: skew(-5deg);
    align-self: flex-start;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.card-pro-title-box-sm span {
    display: block;
    transform: skew(5deg);
}

.card-pro-lite-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex: 1;
    /* Pushes button down */
}

.card-pro-btn-sm {
    display: inline-block;
    background: white;
    color: var(--color-brand-primary);
    border: 2px solid var(--color-brand-primary);
    font-weight: 700;
    padding: 0.5rem 0;
    border-radius: 50px;
    text-align: center;
    width: 100%;
    transition: all 0.2s;
    font-size: 0.9rem;
}

/* FAQ Section Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.faq-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    font-weight: 700;
    color: #333;
}

.faq-item.active .faq-header {
    background: var(--color-brand-primary);
    color: white;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.faq-body {
    padding: 1.5rem;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ensure FAQ aligns nicely on Mobile */
@media (max-width: 768px) {
    .faq-header {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* Force minimum height on desktop to prevent hero crunch */
@media (min-width: 1001px) {
    .hero-section {
        min-height: 800px;
        /* Increase min-height to accommodate tall content */
    }

    .hero-content {
        padding-top: 80px;
        /* Bias center downwards to clear navbar */
    }
}

/* Mobile Sticky Bar Fix (iPhone 17 Gap Issue) */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9990;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 1rem;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    /* Transition properties handled by JS for transform/opacity */
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .mobile-sticky-bar {
        display: none !important;
    }
}