/* =========================================
   Design System & Variables
   ========================================= */
:root {
    /* Color Palette - Premium Monochrome */
    --color-primary: #1a1a1a;
    /* Almost Black - Text/Headings */
    --color-secondary: #888888;
    /* Medium Grey - Subtext/Icons */
    --color-accent: #C5A065;
    /* Muted Gold - Buttons/Highlights */
    --color-slate: #f4f4f4;
    /* Light Grey - Section Backgrounds */
    --color-light: #ffffff;
    /* White - Main Background */
    --color-white: #ffffff;
    --color-dark: #111111;
    /* Deepest Black */
    --color-border: #e0e0e0;
    /* Subtle Borders */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 5rem;
    /* Increased for sleek look */

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Softer shadows */
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.4s ease;
    --cubic-bezier: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Tactile Grain Texture Overlay --- */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    background-color: var(--color-light);
    line-height: 1.8;
    /* Increased line-height for elegance */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Smoother text */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   Utility Classes
   ========================================= */
.container {
    max-width: 1400px;
    /* Wider container for modern feel */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.btn {
    display: inline-block;
    padding: 14px 38px;
    /* Slightly wider for pill shape elegance */
    background-color: var(--color-primary);
    /* Keep solid for contrast on body */
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* Increased spacing */
    font-size: 0.9rem;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    /* Pill Shape */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Subtle premium shadow */
}

.btn:hover {
    background-color: var(--color-accent);
    /* Gold */
    border-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: var(--color-primary);
    /* Changed to Solid Dark for readability on video */
    color: #ffffff;
    /* Explicit White */
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

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

/* =========================================
   Navigation (Liquid Glass - Apple Style)
   ========================================= */
/* =========================================
   Navigation (Floating Pill Design)
   ========================================= */
.navbar {
    position: fixed;
    top: 2rem;
    /* Floating from top */
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 0;
    pointer-events: none;
    /* Let clicks pass through the container, re-enable on children */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 1. Brand Name (Left) */
.logo {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    pointer-events: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);

    /* Enhanced Glass Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 2. Center Pill (Links) */
.nav-links-pill {
    background: rgba(30, 30, 30, 0.6);
    /* Semi-transparent dark bg */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-links-pill a {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-links-pill a:hover,
.nav-links-pill a.nav-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* 3. Right Pill (Contact Button) */
.nav-cta-btn {
    background: rgba(50, 50, 50, 0.7);
    color: var(--color-white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-cta-btn:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.nav-cta-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-cta-btn:hover i {
    transform: translateX(3px);
}

/* =========================================
   Hero Section & Scroll Animations
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    /* Create a view timeline for the hero section */
    view-timeline-name: --hero-timeline;
    view-timeline-axis: block;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6) desaturate(0.5);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;

    /* Scroll-Driven Animation */
    animation: hero-fade-out linear both;
    animation-timeline: scroll();
    animation-range: 0vh 80vh;
    /* Start at top, end before section leaves */
}

@keyframes hero-fade-out {
    to {
        opacity: 0;
        transform: scale(1.15) translateY(-50px);
        filter: blur(10px);
    }
}

.hero h1 {
    font-size: 5rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* =========================================
   Services (Shared)
   ========================================= */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
    margin: 1rem auto 0;
}

/* =========================================
   Services Preview (Index)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition-speed);
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =========================================
   Services Page - Sleek Split Layout
   ========================================= */
.service-split-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 0;
    /* No gap between sections if adjusting padding */
}

.service-split-item:nth-child(even) .service-text {
    order: -1;
    /* Flip text to left */
}

.service-image {
    height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-split-item:hover .service-image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.service-text {
    padding: 6rem;
    background: var(--color-slate);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--color-primary);
    /* Contrast Fixed: Was defaulting to inherited, made explicit */
}

.service-split-item:nth-child(odd) .service-text {
    background: var(--color-white);
}

.service-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-text p {
    font-size: 1.1rem;
    color: #444;
    /* Contrast Fixed: Darker grey for better readability */
    margin-bottom: 2rem;
}

/* =========================================
   Contact Animation Section
   ========================================= */
.contact-hero {
    position: relative;
    height: 70vh;
    background-color: var(--color-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.anim-main-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Starts Centered (we animate to this) */
    width: 0;
    /* Hidden initially */
    height: 0;
    object-fit: cover;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: mainImageSequence 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.anim-scatter-img {
    position: absolute;
    opacity: 0;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    animation: scatterIn 1s ease-out forwards;
}

/* Keyframes */
@keyframes mainImageSequence {
    0% {
        width: 300px;
        height: 200px;
        left: 120%;
        /* Start off-screen right */
        top: 50%;
        transform: translate(0, -50%);
    }

    30% {
        /* Move to Center */
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 200px;
    }

    50% {
        /* Expand */
        width: 600px;
        height: 400px;
    }

    100% {
        /* Move to Top Left */
        width: 400px;
        height: 300px;
        left: 5%;
        top: 15%;
        transform: translate(0, 0);
    }
}

/* --- Professional Float & Drift Animation --- */
@keyframes scatterIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95) rotate(0deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(var(--rotate));
        filter: blur(0);
    }
}

.anim-scatter-img {
    position: absolute;
    width: 250px;
    height: auto;
    object-fit: cover;
    border: 12px solid white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    z-index: 10;
    transition: transform 0.8s var(--cubic-bezier);
}

.scatter-1 {
    right: 15%;
    bottom: 20%;
    width: 300px;
    height: 350px;
    --rotate: 12deg;
    animation: scatterIn 1.5s var(--cubic-bezier) 4.5s forwards;
}

.scatter-2 {
    right: 35%;
    bottom: 10%;
    width: 250px;
    height: 200px;
    --rotate: -8deg;
    animation: scatterIn 1.5s var(--cubic-bezier) 4.8s forwards;
}

.scatter-3 {
    left: 45%;
    top: 25%;
    width: 220px;
    height: 160px;
    --rotate: 5deg;
    animation: scatterIn 1.5s var(--cubic-bezier) 5.1s forwards;
}

/* Interactive Drift */
.anim-scatter-img:hover {
    transform: translateY(-20px) scale(1.05) rotate(calc(var(--rotate) * 0.5));
    z-index: 30;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Cookie Banner
   ========================================= */
/* Modern Cookie Popup - Centered Glass Modal */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    /* Floating from bottom */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 20, 0.85);
    /* Dark Glass */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    max-width: 500px;
    width: 90%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.cookie-popup h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--color-white);
}

.cookie-popup p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cookie-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}


/* =========================================
   Footer
   ========================================= */
/* =========================================
   Footer (Liquid Glass - Apple Style)
   ========================================= */
/* =========================================
   Footer (Premium Dark)
   ========================================= */
footer {
    background: #0a0a0a;
    /* Deep black for contrast */
    color: var(--color-white);
    padding: 6rem 0 4rem;
    position: relative;
    z-index: 10;
    margin-top: 4rem;
    /* Ensure separation from content */
    border-top-left-radius: 40px;
    /* Modern touch */
    border-top-right-radius: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* More space for the brand column */
    gap: 5rem;
    margin-bottom: 5rem;
    text-align: left;
}

footer h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 0.8rem;
}

footer a {
    color: #a0a0a0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-white);
    text-decoration: none;
}

.footer-brand p {
    color: #888;
    line-height: 1.6;
    max-width: 300px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Very subtle divider */
    padding-top: 2rem;
    color: #555;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    color: #666;
    font-size: 0.85rem;
}

.footer-legal-links a:hover {
    color: #999;
}

.faq-status-btn {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #cecece !important;
    /* Override default legal link color */
    font-size: 0.75rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.faq-status-btn:hover {
    background: var(--color-accent);
    color: #fff !important;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* =========================================
   Scroll-Driven Section Animations
   ========================================= */
.section-padding {
    padding: var(--spacing-xl) 0;

    /* Reveal Animation on Scroll */
    animation: slide-up linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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


/* =========================================
   Comparison Slider (Enhanced)
   ========================================= */
.comparison-container {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--color-white);
}

.comparison-slider {
    position: relative;
    max-width: 1000px;
    /* Wider for better view */
    height: 600px;
    margin: 4rem auto 0;
    overflow: hidden;
    cursor: col-resize;
    /* Removed default border radius for sharper look, or keep small */
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-image {
    z-index: 1;
    filter: grayscale(100%);
    /* Before is B&W for effect? Optional */
}

.after-image {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    /* After is full color */
}

.handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    /* Thinner line */
    height: 100%;
    background-color: var(--color-white);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.handle::after {
    content: '';
    /* Minimalist handle */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 900px) {

    .service-split-item,
    .service-split-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-split-item:nth-child(even) .service-text {
        order: 1;
        /* Reset order to text below image */
    }

    .service-text {
        padding: 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

/* =========================================
   Liquid Glass Reviews Carousel
   ========================================= */
.reviews-section {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    /* Hide overflow for carousel */
    background: radial-gradient(circle at 50% 50%, #f9f9f9, #f0f0f0);
    position: relative;
}

.carousel-viewport {
    width: 100%;
    margin-top: 4rem;
    cursor: grab;
    /* Indicate draggable */
    touch-action: pan-y;
    /* Allow vertical scroll, handle horizontal in JS */
    position: relative;
    padding: 3rem 0;
    /* Space for scaling effect */
}

.carousel-viewport:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    /* Allow track to grow */
    will-change: transform;
}

.review-card {
    min-width: 350px;
    max-width: 350px;
    /* Liquid Glass Style */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.6;
    /* Dim inactive cards */
    transform: scale(0.9);
    user-select: none;
    /* Prevent text selection during drag */
}

.review-card.active-card {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.85);
    /* Brighter when active */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.review-stars {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-primary);
    font-family: var(--font-heading);
    /* Playfair for elegance */
    font-style: italic;
    margin-bottom: 2rem;
}

.review-author {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-author::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--color-accent);
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .review-card {
        min-width: 280px;
        max-width: 280px;
        padding: 2rem;
    }
}

/* =========================================
   Social Icons - Unique Style
   ========================================= */
.social-links {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 20;
    /* Ensure on top */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    /* Slightly larger targets */
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    /* Force white icon */
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--color-accent);
    color: white;
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 5px 15px rgba(197, 160, 101, 0.4);
}

/* =========================================
   Contact Video Hero Z-Index
   ========================================= */
.contact-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4);
    /* Darken so animation pops */
}

/* =========================================
   Mobile Responsiveness & Media Queries
   ========================================= */

/* Logo Styles */
/* Logo Styles */
.logo img,
.logo-footer img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Clean Overlay Style */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.logo img:hover,
.logo-footer img:hover {
    transform: scale(1.08) translateY(-2px);
    /* Lift effect */
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
    /* Enhanced depth on hover */
}

.logo-footer img {
    height: 120px;
    /* Increased from 80px */
    margin-bottom: 1.5rem;
}

/* =========================================
   Mobile Responsiveness & Media Queries
   ========================================= */

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    pointer-events: auto;
    transition: all 0.3s ease;
    position: relative;
    /* For anchoring the dropdown */
}

.mobile-menu-btn:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

/* Mobile Menu Dropdown (Liquid Glass Anchor) */
.nav-container {
    position: relative;
    /* Anchor for absolute menu */
}

.mobile-nav-overlay {
    position: fixed;
    /* Fixed to viewport, not document */
    top: 90px;
    /* Below header */
    right: 20px;
    /* Align to right */
    width: 280px;
    /* Compact width */
    height: auto;
    background: rgba(20, 20, 20, 0.9);
    /* Darker background for readability */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
    z-index: 11000;
    /* Above everything including sticky bar */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    /* Smaller than full screen */
    color: var(--color-white);
    opacity: 0.9;
    padding: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 8px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

/* Remove old full screen animation delays if not needed or adjust */
/* Removed empty ruleset */

/* TABLET & MOBILE BREAKPOINTS */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Journey Steps (Desktop Centering & Default) */
.journey-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Center steps */
    gap: 3rem;
    /* More gap */
    margin-top: 3rem;
}

.journey-step {
    flex: 1;
    max-width: 300px;
    /* Limit width */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Ensure text is centered */
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .journey-steps {
        flex-direction: column;
        align-items: center;
    }

    .journey-step {
        max-width: 100%;
        /* Allow full width on mobile */
        margin-bottom: 2rem;
    }

    /* Animations reset or adjustment */
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Services grid single column on mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Navigation */
    .nav-links-pill,
    .nav-cta-btn {
        display: none !important;
        /* Hide Desktop Nav */
    }

    .mobile-menu-btn {
        display: block;
        /* Show Hamburger */
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Services Split */
    .service-split-item,
    .service-split-item:nth-child(even) {
        display: flex;
        flex-direction: column;
    }

    .service-split-item:nth-child(even) .service-text {
        order: 1;
        /* Text always below image on mobile */
    }

    .service-image {
        height: 300px;
    }

    .service-text {
        padding: 3rem 1.5rem;
        height: auto;
    }

    .service-text h2 {
        font-size: 2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .copyright {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Journey Steps */
    .journey-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .journey-step {
        width: 100%;
        /* Full width on mobile */
    }

    .journey-arrow {
        transform: rotate(90deg);
        /* Point down */
        margin: -1rem 0;
    }

    /* Contact Animation Reset for Mobile */
    .anim-main-img {
        width: 85% !important;
        /* Slightly smaller for padding */
        height: auto !important;
        position: relative !important;
        /* Flow normally on mobile */
        left: auto !important;
        top: auto !important;
        transform: none !important;
        animation: none !important;
        margin: 2rem auto;
    }

    .anim-scatter-img {
        display: none;
        /* Hide floating images on mobile to simplify */
    }
}

/* Logo Shine Effect */
.logo {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    10% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* =========================================
   Mobile Sticky Bar
   ========================================= */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: env(safe-area-inset-bottom);
}

.sticky-btn {
    flex: 1;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.call-btn {
    background: #ffffff;
    color: var(--color-primary);
}

.quote-btn {
    background: var(--color-primary);
    color: #ffffff;
}

.sticky-btn:hover {
    opacity: 0.9;
}

/* Adjust footer or back-to-top to not overlap */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
        /* Space for bar */
    }

    /* Move back to top button up */
    button[aria-label="Back to Top"] {
        bottom: 80px !important;
    }
}

/* =========================================
   Minimal Blog Redesign
   ========================================= */
.blog-card-minimal {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    transition: var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card-minimal:hover {
    transform: translateY(-5px);
}

.blog-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.blog-image-minimal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--cubic-bezier);
}

.blog-card-minimal:hover .blog-image-minimal {
    transform: scale(1.05);
}

.blog-content-minimal {
    padding: 0.5rem 0;
}

.blog-category-minimal {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.blog-title-minimal {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.blog-excerpt-minimal {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-read-more-minimal {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

footer {
    background-color: #111;
    color: #fff;
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 10;
    /* Ensure footer is above fixed gallery */
}

.blog-read-more-minimal::after {
    content: '';
    transition: transform 0.3s ease;
}

.blog-read-more-minimal:hover::after {
    transform: translateX(5px);
}

/* =========================================
   Minimal Blog Modal (Centered)
   ========================================= */
#blogModalMinimal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-content-minimal {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 4rem 2rem;
    position: relative;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.6s var(--cubic-bezier);
}

.modal-close-minimal {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    line-height: 1;
    padding: 10px;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.modal-close-minimal:hover {
    transform: rotate(90deg);
}

.modal-title-minimal {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.modal-body-minimal {
    font-size: 1.2rem;
    line-height: 2;
    color: #444;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.modal-body-minimal p {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .modal-title-minimal {
        font-size: 2rem;
    }

    .modal-content-minimal {
        padding: 3rem 1rem;
    }
}

/* FINAL OVERRIDE FOR MODAL POSITIONAL BUG */
#blogModalMinimal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* =========================================
   Areas We Cover - Modern Refresh
   ========================================= */

/* Hero Modern */
.hero-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding-top: 12rem;
    padding-bottom: 6rem;
    text-align: center;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 74, 59, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

/* Region/Borough Grid */
.borough-section {
    padding: 6rem 0;
    background: #ffffff;
}

.borough-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.borough-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.borough-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.borough-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(44, 74, 59, 0.15);
}

.borough-card:hover::before {
    transform: scaleY(1);
}

.borough-name {
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.borough-card:hover .borough-name {
    color: var(--color-primary);
    font-weight: 700;
}

/* FAQ Accordion Modern */
.faq-section-modern {
    background: #f9f9f9;
    padding: 6rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-detail {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-detail[open] {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(44, 74, 59, 0.1);
}

.faq-summary {
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    background: #fff;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
    line-height: 1;
    font-weight: 300;
}

.faq-detail[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 2rem 1.5rem;
    color: #666;
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   Footer Updates
   ========================================= */
footer h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

footer li a {
    color: #a0a0a0;
    transition: color 0.3s ease;
}

footer li a:hover {
    color: var(--color-white);
}

/* Interactive cursors */
.service-gallery img,
.tilt-card,
.ba-slider img {
    cursor: zoom-in;
}

/* =========================================
   Gallery Lightbox
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox Active State */
body.lightbox-active {
    overflow: hidden !important;
}

.lightbox-img-wrapper {
    position: relative;
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Lightbox Comparison Slider */
.lightbox-ba-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    user-select: none;
    background: #111;
    display: none; /* Controlled by JS */
}

.lightbox-ba-slider.active {
    display: block;
}

.lightbox-ba-after, 
.lightbox-ba-before {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.lightbox-ba-before {
    z-index: 2;
    overflow: hidden;
    border-right: 2px solid white;
}

.lightbox-ba-after img, 
.lightbox-ba-before img {
    width: 100%; height: 100%;
    object-fit: contain; /* Full image without crop */
    display: block;
    background: #000;
}

.lightbox-ba-handle {
    position: absolute;
    top: 0; bottom: 0;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: ew-resize;
}

.lightbox-ba-handle-line {
    width: 2px;
    flex: 1;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.lightbox-ba-handle-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-ba-before .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #fff;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
}

.lightbox-ba-handle-circle span {
    pointer-events: none;
}

.lightbox-content {
    display: block; /* For single mode */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 95vh; /* Slightly more room */
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-content.hidden {
    display: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
    }
}