/* RESTE & BASE STYLES */
:root {
    --color-bg: #1a1a1a;
    --color-bg-dark: #121212;
    --color-gold: #d19b00;
    --color-gold-hover: #eab500;
    --color-text: #ffffff;
    --color-text-muted: #cccccc;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-bold: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Times New Roman', serif;
    /* Placeholder for a nice serif */
}

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

html,
body {
    width: 100%;
    height: auto;
    overflow-x: clip;
    /* Modern fix to prevent horizontal scroll without breaking sticky */
}

body {
    position: relative;
    overflow-x: clip;
}

html.lenis,
html.lenis body {
    height: auto;
}

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

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

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

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Global container for max-width constraint */
.container {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: var(--font-bold);
    font-weight: 800;
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.gold-text {
    color: var(--color-gold) !important;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-gold {
    background-color: var(--color-gold);
    color: #fff;
    border: 2px solid var(--color-gold);
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

/* INTERACTIVE HOVER BUTTON */
.interactive-hover-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    /* Fixed height to prevent flickering */
    padding: 0 24px;
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    min-width: 160px;
    text-decoration: none !important;
    line-height: 1;
}

.interactive-hover-btn .btn-text-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.interactive-hover-btn .btn-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    margin-right: 12px;
    transition: background-color 0.5s ease;
}

.interactive-hover-btn:hover .btn-dot {
    background-color: #000;
}

.interactive-hover-btn .btn-text-alt {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(60px, -50%);
    /* Start further right */
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    width: 100%;
    justify-content: center;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.interactive-hover-btn .btn-text-alt svg {
    width: 20px;
    height: 20px;
}

.interactive-hover-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 22px;
    /* Under the dot */
    width: 10px;
    height: 10px;
    background-color: var(--color-gold);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    /* Start at nothing */
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    pointer-events: none;
}

.interactive-hover-btn:hover {
    border-color: var(--color-gold);
}

.interactive-hover-btn:hover .btn-text-content {
    transform: translateX(-30px);
    opacity: 0;
}

.interactive-hover-btn:hover .btn-text-alt {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.interactive-hover-btn:hover::before {
    transform: translateY(-50%) scale(40);
}

@media (max-width: 820px) {
    .interactive-hover-btn {
        height: 38px;
        padding: 0 20px;
        min-width: 140px;
        font-size: 0.85rem;
    }
}

/* HERO INTERACTIVE BUTTON (REVERSED) */
.hero-interactive-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 40px;
    background-color: var(--color-gold);
    color: #000;
    border: 2px solid var(--color-gold);
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    min-width: 240px;
    text-decoration: none !important;
    line-height: 1;
}

.hero-interactive-btn .btn-text-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-interactive-btn .btn-text-alt {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(60px, -50%);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold);
    width: 100%;
    justify-content: center;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-interactive-btn .btn-text-alt svg {
    width: 16px;
    height: 16px;
}

.hero-interactive-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--color-bg);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    pointer-events: none;
}

.hero-interactive-btn:hover .btn-text-content {
    transform: translateX(-30px);
    opacity: 0;
}

.hero-interactive-btn:hover .btn-text-alt {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.hero-interactive-btn:hover::before {
    transform: translate(-50%, -50%) scale(150);
}

@media (max-width: 820px) {
    .hero-interactive-btn {
        height: 48px;
        padding: 0 30px;
        min-width: 200px;
        font-size: 0.9rem;
    }
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.8));
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 15px 5%;
}

header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 1rem;
    color: var(--color-text-muted);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover {
    color: var(--color-gold);
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

nav a.active {
    color: var(--color-gold);
}

nav a.active::after {
    width: 100%;
    left: 0;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#mobile-sidebar {
    display: none;
}

/* Menu Overlay Backdrop */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* HERO SECTION */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
    /* Header height */
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 900px;
    z-index: 5;
    position: relative;
}

.hero-content h1 {
    text-shadow: 0 0 15px var(--color-bg),
        0 0 30px var(--color-bg),
        0 0 45px var(--color-bg);
    position: relative;
}

.hero-content .hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    /* Match H1 margin */
    max-width: 800px;
    letter-spacing: 0.5px;
}

/* Force more line breaks on standard desktop/laptop sizes - Relaxed constraint */
@media (max-width: 1440px) and (min-width: 981px) {
    .hero-content {
        max-width: 850px;
    }

    .hero-content h1 {
        max-width: 750px;
    }

    .hero-content .hero-subtitle {
        max-width: 700px;
    }
}

/* More constrained layout for narrow desktop/tablet landscape */
@media (min-width: 821px) and (max-width: 980px) {
    .hero-content h1 {
        max-width: 520px;
    }

    .hero-content .hero-subtitle {
        max-width: 450px;
    }
}

@keyframes locationPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.location-preview {
    color: var(--color-gold);
    font-weight: 800;
    position: relative;
    cursor: pointer;
    display: inline-block;
    /* Static shadow is much cheaper than animating it */
    text-shadow: 0 0 15px rgba(209, 155, 0, 0.4);
    /* animation: locationPulse 3s ease-in-out infinite; -- Removed per user request */
    transition: all 0.3s ease;
}

.location-preview .preview-img {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.8);
    width: min(600px, 90vw);
    /* Ensure it never exceeds viewport */
    max-width: 90vw;
    /* Essential to override global img styles */
    aspect-ratio: 5504 / 3136;
    height: auto;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    border: 4px solid var(--color-gold);
    opacity: 0;
    visibility: hidden;
    /* Clean transition without flickering */
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.6s;
    z-index: 100;
    will-change: transform, opacity;
}

@media (max-width: 820px) {
    .location-preview .preview-img {
        width: 85vw;
        /* Slightly narrower on mobile */
        bottom: 120%;
        /* Lower so it's easier to see */
    }
}

/* Nudge for when a word is near the left edge to prevent screen overflow */
.location-preview.nudge-right .preview-img {
    left: 0;
    transform: translateX(-10%) translateY(10px) scale(0.8);
}

.location-preview.nudge-right:hover .preview-img {
    transform: translateX(-10%) translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.location-preview:hover .preview-img {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* HERO CONTENT DELAYED REVEAL */
.hero-content,
.hero-visual {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.hero-content.visible,
.hero-visual.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}


.hero-visual {
    position: absolute;
    top: 0;
    right: -5%;
    bottom: 0;
    width: min(55%, 990px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transform: translate3d(0, 40px, 0);
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 2s cubic-bezier(0.16, 1, 0.3, 0.1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-video-bg {
    width: 80%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    transform: translate3d(0, 0, 0);
}

.hero-visual.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.logo-animation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    width: 600px;
    height: 600px;
    z-index: 2;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.logo-animation-container.settled {
    transform: translate(calc(-50% + min(20vw, 360px)), -50%) scale(1.1);
}

@media (max-width: 1280px) {
    .logo-animation-container.settled {
        transform: translate(calc(-50% + 20vw), -50%) scale(1.0);
    }
}

@media (max-width: 1200px) {
    .logo-animation-container.settled {
        transform: translate(calc(-50% + 25vw), -50%) scale(1.0);
    }
}

@media (min-width: 900px) and (max-width: 1100px) {
    .logo-animation-container.settled {
        transform: translate(calc(-50% + 30vw), -50%) scale(0.6);
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .hero-subtitle {
        font-size: 1.44rem;
    }

    .hero-interactive-btn {
        height: 43px;
        padding: 0 32px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .logo-animation-container.settled {
        transform: translate(calc(-50% + 25vw), -50%) scale(0.55);
    }

    .hero-visual {
        width: 50%;
        background-size: min(40%, 350px) auto;
        background-position: right center;
        right: 0;
    }

    .hero-interactive-btn {
        height: 48px;
        padding: 0 32px;
        font-size: 0.85rem;
    }
}

@media (min-width: 1441px) {
    .logo-animation-container.settled {
        transform: translate(calc(-50% + min(23vw, 420px)), -50%) scale(1.1);
    }
}

@media (min-width: 1600px) {
    .logo-animation-container.settled {
        transform: translate(calc(-50% + min(23vw, 420px)), -50%) scale(1.35);
    }
}

@media (min-width: 1800px) {
    #hero {
        padding: 0 calc((100vw - 1800px) / 2 + 5%);
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .hero-content .hero-subtitle {
        font-size: 2.2rem;
    }

    .hero-interactive-btn {
        padding: 22px 55px;
        font-size: 1.1rem;
    }

    .logo-animation-container.settled {
        transform: translate(calc(-50% + 380px), -50%) scale(1.35);
    }

    .hero-visual {
        right: calc((100vw - 1800px) / 2 + 1%);
        width: min(65%, 935px);
    }
}

#logo-animation {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: url(#colorize-gold);
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: opacity;
    transform: translate3d(0, 0, 0);
    z-index: 51;
}

#logo-animation.loaded {
    opacity: 1;
}

/* iOS Safari can't handle SVG filters on video — use CSS filter fallback */
@media (max-width: 820px) {
    #logo-animation {
        filter: sepia(1) saturate(3) hue-rotate(10deg) brightness(0.85);
    }
}

.illustration-video-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* SERVICES SECTION */
#services {
    position: relative;
    min-height: 100vh;
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.services-illustration {
    position: absolute;
    top: -10vh;
    right: -10vw;
    width: 120vw;
    height: 120vh;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.process-illustration-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.process-illustration {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    overflow: hidden;
}

.process-sticky-limit {
    position: relative;
    /* No height here, let it be defined by children */
}

.services-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--color-bg) 10%, transparent 20%);
    left: calc(var(--draw-progress, 0%) - 10%);
    width: 20%;
    opacity: 0.5;
    display: none;
    /* Optional highlight effect */
}

.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 30px;
}

.card {
    background-color: #2a2a2a;
    border-radius: 30px;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid #333;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-gold);
}

.card-image {
    height: 600px;
    background-color: #333;
    position: relative;
}

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

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 35%, transparent 80%);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
    z-index: 3;
    /* Above the video */
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    /* Between image and content */
    pointer-events: none;
}

.card:hover .card-video {
    opacity: 1;
}

.card h3 {
    color: var(--color-gold);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    color: #fff;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* FOOTER */
footer {
    position: relative;
    padding: 110px 0 40px;
    /* Shifted down from the arc, less tall overall */
    margin-top: -80px;
    background: transparent;
    overflow: hidden;
    /* Essential for the wide arc */
    z-index: 10;
}

footer::before {
    content: '';
    position: absolute;
    top: 10px;
    /* Reduced gap from top */
    left: 50%;
    transform: translateX(-50%);
    width: 300%;
    /* Super wide for the flattest, smoothest possible arc */
    height: 2000px;
    /* Ensures background fill */
    background: linear-gradient(to bottom, #2a2a2a, #151515);
    border-top: 4px solid var(--color-gold);
    border-radius: 50% 50% 0 0;
    z-index: -1;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Better vertical balance */
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-info,
.footer-social,
.footer-cert {
    flex: 1;
    min-width: 250px;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    margin: 0;
    line-height: 1.4;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: var(--color-gold);
}

.footer-social {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--color-gold-hover);
}

.footer-cert {
    text-align: right;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.jules-link {
    color: var(--color-gold) !important;
    font-weight: 800;
    opacity: 1 !important;
    transition: color 0.3s ease;
}

/* TERRITORIES SECTION */
.footer-territories {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    position: relative;
}

.footer-territories h3 {
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    opacity: 0.8;
}

.territories-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.territory-col {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.territory-col strong {
    color: var(--color-text);
    display: inline-block;
    margin-right: 5px;
}

.jules-link:hover {
    color: var(--color-gold-hover) !important;
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        opacity: 0.4;
        width: 100%;
    }
}

@media (min-width: 1026px) and (max-width: 1200px) {
    .card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1025px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 820px) {
    header {
        padding: 10px 5%;
    }

    .logo img {
        height: 50px;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
        z-index: 1002;
        position: relative;
    }

    /* Hide Desktop Nav */
    nav {
        display: none;
    }

    /* Dedicated Mobile Sidebar */
    #mobile-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 75%;
        max-width: 320px;
        background-color: var(--color-bg-dark);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        padding: 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    #mobile-sidebar.open {
        transform: translateX(0);
    }

    #mobile-sidebar .mobile-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    #mobile-sidebar .mobile-logo {
        height: 40px;
        width: auto;
    }

    #mobile-sidebar .close-menu {
        cursor: pointer;
        color: var(--color-text);
        padding: 5px;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #mobile-sidebar .close-menu:hover {
        color: var(--color-gold);
    }

    #mobile-sidebar .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 25px;
        list-style: none;
        margin-bottom: auto;
    }

    #mobile-sidebar .mobile-nav-links a {
        font-size: 1.3rem;
        font-weight: 500;
        text-decoration: none;
        color: var(--color-text);
        transition: color 0.3s;
    }

    #mobile-sidebar .mobile-nav-links a.active,
    #mobile-sidebar .mobile-nav-links a:hover {
        color: var(--color-gold);
    }

    #mobile-sidebar .mobile-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding: 0 45px;
        background: var(--color-gold);
        color: #000 !important;
        border-radius: 50px;
        text-transform: uppercase;
        font-size: 0.85rem;
        font-weight: 800;
        letter-spacing: 1.5px;
        margin-top: 15px;
        align-self: flex-start;
        /* Keeps it aligned with the links */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    #mobile-sidebar .mobile-btn:active {
        transform: scale(0.95);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    #mobile-sidebar .mobile-sidebar-footer {
        display: flex;
        flex-direction: column;
        gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 25px;
    }

    #mobile-sidebar .mobile-sidebar-footer .contact-details {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 0.95rem;
        color: var(--color-text-muted);
    }

    #mobile-sidebar .mobile-sidebar-footer .social-icons {
        display: flex;
        gap: 15px;
    }

    #mobile-sidebar .mobile-sidebar-footer .social-icon {
        color: var(--color-text);
        transition: color 0.3s;
    }

    #mobile-sidebar .mobile-sidebar-footer .social-icon:hover {
        color: var(--color-gold);
    }

    #hero {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 140px;
        text-align: center;
        align-items: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    /* Center logo animation on mobile and make huge/transparent */
    /* Override base container size for mobile scaling */
    .logo-animation-container {
        width: 90vw;
        /* Restored for phones */
        height: 90vw;
    }

    /* Target iPad range specifically */
    @media (min-width: 601px) and (max-width: 820px) {
        .logo-animation-container {
            width: 65vw;
            height: 65vw;
        }
    }

    /* Logo animation below button on mobile */
    .logo-animation-container.settled {
        top: 50%;
        transform: translate(-50%, calc(-50% + 10vh)) scale(1);
        opacity: 1;
    }

    /* Background dessin center and full width */
    .hero-visual {
        width: 90%;
        left: 5%;
        right: auto;
        top: 35%;
        height: 50%;
        background-size: contain;
        background-position: center;
    }

    /* Absolute position button at bottom (relative to content block start) */
    #hero .hero-interactive-btn {
        position: absolute;
        top: calc(100vh - 280px);
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        width: min-content;
        min-width: min-content;
        padding: 0 30px;
        white-space: nowrap;
        justify-content: center;
        font-size: 0.85rem;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info,
    .footer-cert,
    .footer-cert-info {
        text-align: center;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }



    /* Quote section styles moved to bottom for better organization */

}

/* Fix for short screens (iPhone SE, 540x720, etc.) */
@media (max-width: 820px) and (max-height: 750px) {
    #hero {
        padding-top: 90px;
        /* Reduced slightly more */
    }

    #hero .hero-interactive-btn {
        top: calc(100vh - 210px);
    }

    .hero-content {
        margin-bottom: 25px;
    }

    .hero-content .hero-subtitle {
        font-size: 1rem;
    }

    .logo img {
        height: 38px;
    }

    .logo-animation-container {
        width: 60vw;
        /* Reduced from 70vw to fit short screens like 540x720 better */
        height: 60vw;
    }
}

/* Extra tight fix for very narrow screens (360px and below) */
@media (max-width: 380px) {
    #hero {
        padding-top: 125px;
        /* Re-increased from 90px to provide more breathing room at top */
    }

    #hero .hero-interactive-btn {
        top: calc(100vh - 200px);
        /* Move button slightly up to push text into tighter space */
    }

    .hero-content {
        margin-bottom: 20px;
        /* Tighter gap */
    }

    .logo-animation-container.settled {
        transform: translate(-50%, calc(-50% + 15vh)) scale(1);
        /* Pushed further down */
    }
}

@media (max-width: 550px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 445px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content .hero-subtitle {
        font-size: 1.15rem;
    }
}

/* PROCESS SECTION - STICKY SCROLL REVEAL */
#process {
    min-height: 100vh;
    padding: 0;
    background-color: var(--color-bg-dark);
    position: relative;
}

.sticky-container {
    display: flex;
    position: relative;
}

.process-text-column {
    width: 50%;
    padding: 100px 8%;
    position: relative;
    z-index: 2;
    /* Above the illustration */
}

.process-visual-column {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    background-color: transparent;
    /* Show illustration behind */
    z-index: 2;
}

.process-step-content {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 20vh;
}

.process-step-content.active {
    opacity: 1;
    transform: translateY(0);
}

.step-header {
    margin-bottom: 20px;
}

.process-step-content .step-num {
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-gold);
    opacity: 1;
    margin-bottom: 10px;
    display: block;
}

.process-step-content h3 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.process-step-content h3 .gold-text {
    display: block;
    margin-top: 5px;
}

.process-step-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

.sticky-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1);
}

.sticky-image.active {
    opacity: 1;
    transform: scale(1);
}

/* Overlay for sticky image */
.process-visual-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--color-bg-dark), transparent 30%);
    z-index: 2;
}

@media (max-width: 1024px) {
    .sticky-container {
        flex-direction: column;
    }

    .process-visual-column {
        width: 100%;
        height: 30vh;
        position: sticky;
        bottom: 0;
        top: auto;
        z-index: 10;
        order: 1;
        border-top: 2px solid var(--color-gold);
        border-bottom: none;
        /* Ensure no horizontal overflow */
        left: 0;
        background-color: var(--color-bg-dark);
    }

    .process-visual-column::after {
        background: linear-gradient(to bottom, var(--color-bg-dark), transparent 50%);
    }

    .process-text-column {
        width: 100%;
        padding: 60px 8%;
        /* Reset any potential container constraints */
        box-sizing: border-box;
    }

    .process-step-content {
        min-height: 70vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 20px;
        padding-bottom: 120px;
        width: 100%;
    }

    .step-header {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 15px;
    }

    .process-step-content .step-num {
        font-size: 3rem;
        margin-bottom: 0;
    }

    .process-step-content h3 {
        font-size: 1.8rem;
        margin-bottom: 0;
    }


}



/* VISION SECTION */
#vision {
    position: relative;
    min-height: 100vh;
    padding: 100px 0;
    background-color: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}

.vision-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(209, 155, 0, 0.3);
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



.vision-content {
    text-align: left;
}

.vision-content h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.vision-subtitle {
    font-family: var(--font-bold);
    font-size: 1.75rem;
    color: var(--color-gold);
    margin-bottom: 2.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vision-text {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.vision-intro {
    font-size: 1.4rem !important;
    line-height: 1.6;
    color: #fff;
    font-weight: 400 !important;
    border-left: 3px solid var(--color-gold);
    padding-left: 25px;
    margin-bottom: 10px;
}

.vision-pillars {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.pillar-step {
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
}

.pillar-step:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(209, 155, 0, 0.3);
}

.pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    gap: 15px;
    margin-bottom: 0;
    user-select: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pillar-arrow {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-arrow svg {
    width: 100%;
    height: 100%;
}

.pillar-step.active .pillar-arrow {
    transform: rotate(180deg);
}

.pillar-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 25px;
}

.pillar-step.active .pillar-body {
    max-height: 200px;
    /* Large enough to fit the text */
    padding-bottom: 25px;
}

.pillar-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-gold);
    opacity: 0.8;
}

.pillar-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.pillar-header h3 .gold-text {
    display: block;
    font-size: 1rem;
    margin-top: 4px;
}

.pillar-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.pillar-step p {
    font-size: 1.05rem !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 1024px) {
    .pillar-step:hover {
        transform: translateY(-5px);
    }
}

@media (min-width: 1650px) {
    .vision-grid {
        align-items: center;
    }
}

@media (max-width: 1200px) {
    .vision-grid {
        gap: 50px;
    }

    .vision-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        display: flex;
        flex-direction: column;
    }

    .vision-content {
        text-align: left;
        /* Aligns everything inside to the left */
        order: 1;
    }

    .vision-content h2 {
        text-align: center;
        /* Forces the title to stay centered */
        font-size: 3.2rem;
        /* Increased for better visibility on tablets */
        margin-bottom: 3.5rem;
        /* Increased gap between title and text */
    }

    .vision-subtitle {
        text-align: center;
        /* Centered on tablets */
    }

    .vision-image {
        max-width: 700px;
        margin: 0 auto;
        order: 2;
    }
}

@media (max-width: 600px) {
    .vision-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .vision-text p {
        font-size: 1.1rem;
    }

    .vision-text {
        gap: 1.2rem;
    }
}

/* QUOTE FORM SECTION */
#quote {
    position: relative;
    min-height: 100vh;
    padding: 100px 0;
    background-color: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* LIGHTBOX GALLERY */


.quote-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #2a2a2a;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
}

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    background-color: transparent;
    border: 1px solid #777;
    color: #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #777;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.quote-form .hero-interactive-btn {
    grid-column: span 2;
    margin-top: 20px;
    width: 100%;
}

/* SCROLL REVEAL ANIMATION */
.reveal-on-scroll {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@media (max-width: 900px) {
    .quote-container {
        padding: 50px 30px;
        min-height: auto;
    }

    .quote-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group.full,
    .quote-form .hero-interactive-btn {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .quote-container {
        padding: 40px 20px 50px;
        border-radius: 25px;
    }

    .quote-form .hero-interactive-btn {
        padding: 0 20px;
        height: 52px;
        font-size: 0.85rem;
        margin-top: 30px;
    }
}

.footer-legal-link {
    font-size: 0.7rem;
    opacity: 0.4;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
}

.footer-legal-link:hover {
    opacity: 1;
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(209, 155, 0, 0.4);
}

/* EXTRACTED STYLES FROM HTML */
.hidden-svg {
    position: absolute;
    width: 0;
    height: 0;
}

.process-section-padding {
    padding-top: 100px;
}

.footer-phone-link {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.footer-email-link {
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-cert-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Default to center for mobile */
}

@media (min-width: 768px) {
    .footer-cert-info {
        align-items: flex-end;
        /* Right align only on desktop */
    }
}

.footer-rbq-text {
    margin-bottom: 5px;
    opacity: 0.7;
}

.footer-copyright {
    text-align: center;
    margin-top: 60px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* LEGAL PAGE SPECIFIC */
.legal-page body {
    line-height: 1.8;
}

.legal-page header {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.legal-content {
    padding-top: 150px;
    padding-bottom: 100px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    color: var(--color-gold);
    margin-bottom: 40px;
    font-size: 3rem;
    text-transform: uppercase;
}

.legal-content h2 {
    color: var(--color-gold);
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: left;
    text-transform: uppercase;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style: disc;
}

.legal-content a {
    color: var(--color-gold);
    text-decoration: underline;
}

.back-home-link {
    margin-bottom: 40px;
    display: inline-block;
}

.legal-bg-illustration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vh;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}