/* ═══════════════════════════════════════════
   MOTION.CSS — Cinematic Motion Design Layer
   Paris Grandes Cuisines — Proof of Concept
   ═══════════════════════════════════════════ */

/* ─── MOTION VARIABLES ───────────────────── */
:root {
    --m-dark: #0d1117;
    --m-dark-alt: #161b22;
    --m-primary: #1a365d;
    --m-primary-glow: rgba(26, 54, 93, 0.4);
    --m-accent: #c9a227;
    --m-accent-glow: rgba(201, 162, 39, 0.35);
    --m-accent-light: #e2c55e;
    --m-white: #f7fafc;
    --m-gray: #a0aec0;
    --m-glass: rgba(255, 255, 255, 0.06);
    --m-glass-border: rgba(255, 255, 255, 0.1);
    --m-radius: 16px;
    --m-radius-sm: 10px;
    --m-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --m-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --m-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── GLOBAL MOTION OVERRIDES ────────────── */
html, body {
    overflow-x: hidden;
}
/* Homepage: dark bg eliminates white gaps between dark sections */
body:has(.hero-motion) {
    background-color: var(--m-dark);
}

/* Transparent nav on hero pages — blends into dark hero bg */
body:has(.hero-motion) .site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease,
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:has(.hero-motion) .site-header .nav-menu {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body:has(.hero-motion) .site-header .nav-indicator {
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body:has(.hero-motion) .site-header .nav-link,
body:has(.hero-motion) .site-header .logo-text {
    color: rgba(255, 255, 255, 0.7) !important;
    filter: none;
    background: transparent !important;
    transition: color 0.3s ease;
}
body:has(.hero-motion) .site-header .nav-link:hover {
    color: #fff !important;
    background: transparent !important;
}
body:has(.hero-motion) .site-header .nav-link.active {
    color: var(--m-accent-light) !important;
    background: transparent !important;
}

body:has(.hero-motion) .site-header .nav-action-btn {
    color: rgba(255, 255, 255, 0.6);
}
body:has(.hero-motion) .site-header .nav-action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

body:has(.hero-motion) .site-header .nav-toggle span {
    background: #fff;
}

body:has(.hero-motion) .site-header.scrolled {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body:has(.hero-motion) .site-header.scrolled .nav-menu {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

body:has(.hero-motion) .site-header.scrolled .nav-indicator {
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile dropdown on homepage: dark glass style */
@media (max-width: 768px) {
    body:has(.hero-motion) .site-header .nav-menu {
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-color: rgba(255, 255, 255, 0.08);
    }
    body:has(.hero-motion) .site-header .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    body:has(.hero-motion) .site-header .nav-menu .nav-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }
    body:has(.hero-motion) .site-header .nav-menu .nav-link.active {
        color: var(--m-accent-light) !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }
    body:has(.hero-motion) .site-header .nav-actions .nav-action-btn {
        color: rgba(255, 255, 255, 0.6);
    }
    body:has(.hero-motion) .site-header .nav-actions .nav-action-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }
}

.section-motion {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════
   HERO — CINEMATIC OPENING (RONIN STYLE)
   ═══════════════════════════════════════════ */

.hero-motion {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--m-dark);
}

/* Background layer — parallax zoom */
.hero-bg-layer {
    position: absolute;
    inset: -20px;
    background:
        linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(13, 17, 23, 0.92) 60%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    will-change: transform;
    transform: scale(1.15);
    z-index: 1;
}

/* Film grain overlay */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* Bottom gradient — darker at bottom to blend figure */
.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, var(--m-dark) 0%, transparent 100%);
    z-index: 3;
}

/* Floating geometric shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}
.shape-1 {
    width: 500px; height: 500px;
    background: var(--m-primary-glow);
    top: -10%; right: -10%;
}
.shape-2 {
    width: 350px; height: 350px;
    background: var(--m-accent-glow);
    bottom: -5%; left: -5%;
}
.shape-3 {
    width: 250px; height: 250px;
    background: rgba(99, 179, 237, 0.15);
    top: 40%; left: 30%;
}

/* ─── Hero Content Wrap ──────────────────── */
.hero-content-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto;
    align-items: end;
    padding: 0 clamp(20px, 4vw, 60px) 0;
}

/* ─── Layer 1: Main figure — centered bottom, half-page max, subtle zoom ─── */
.hero-figure {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(80%) scale(0.85);
    z-index: 5;
    width: 22%;
    max-width: 280px;
    max-height: 50vh;
    pointer-events: none;
    opacity: 0;
    transform-origin: center bottom;
}
.hero-figure img {
    max-height: 50vh;
}
.hero-figure img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    /* Transparent PNG — soft fade at feet */
    mask-image: linear-gradient(to bottom, black 75%, transparent 99%);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 99%);
}

/* ─── Layer 2: BIGLOGO — large, overlaps figure, slides up ─── */
.hero-biglogo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 80%);
    z-index: 4;
    width: 60%;
    max-width: 700px;
    pointer-events: none;
    opacity: 0;
}
.hero-biglogo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(201, 162, 39, 0.12));
}

/* ─── Layer 3: Left info panel (Ronin story-text style) ─── */
.hero-info-left {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    padding-left: clamp(10px, 3vw, 40px);
    padding-bottom: 120px;
    z-index: 15;
}
.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.55rem, 1vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    font-weight: 500;
}
.hero-services-tag {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.6rem, 0.9vw, 0.78rem);
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
    line-height: 1.6;
    margin-bottom: 18px;
    font-weight: 400;
    text-transform: uppercase;
}
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s var(--m-ease), box-shadow 0.3s var(--m-ease), background 0.3s ease;
    border: none;
}
.hero-cta-btn:hover {
    transform: translateY(-2px);
}
.hero-cta-primary {
    background: var(--m-accent);
    color: #000;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.25);
}
.hero-cta-primary:hover {
    background: var(--m-accent-light);
    box-shadow: 0 6px 30px rgba(201, 162, 39, 0.4);
    color: #000;
}
.hero-cta-outline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-cta-outline:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* ─── Layer 3: Right info panel ─── */
.hero-info-right {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    text-align: right;
    padding-right: clamp(10px, 3vw, 40px);
    padding-bottom: 120px;
    z-index: 15;
}
.hero-right-label {
    font-size: clamp(0.55rem, 0.85vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
    font-weight: 500;
}
.hero-right-big {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.8vw, 2.2rem);
    color: rgba(255,255,255,0.15);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ─── Homepage entrance: hidden by default, GSAP reveals ─── */
/* CSS hides immediately (no FOUC). GSAP animates to opacity:1.
   Safety: CSS animation auto-reveals after 12s if GSAP fails entirely. */
@keyframes motionSafetyReveal {
    to { opacity: 1; transform: none; }
}

body:has(.hero-motion) .logo,
body:has(.hero-motion) .nav-actions,
body:has(.hero-motion) .nav-toggle {
    opacity: 0;
}
.hero-info-left,
.hero-info-right {
    opacity: 0;
}
.hero-counters {
    opacity: 0;
}
/* Safety reveal: applied by JS only if GSAP hasn't revealed after 12s.
   NOT done via CSS animation (forwards fill fights GSAP inline styles). */

/* ─── Counters — compact, bottom of grid ─── */
.hero-counters {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 40px;
    justify-content: center;
    padding-bottom: 100px;
    z-index: 12;
}
.counter-item {
    text-align: center;
    position: relative;
}
.counter-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--m-accent);
    line-height: 1;
}
.counter-label {
    display: block;
    font-size: 0.65rem;
    color: var(--m-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}
.counter-bar {
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--m-accent), transparent);
    margin: 6px auto 0;
    border-radius: 2px;
    transition: width 1s var(--m-ease);
}
.counter-item.counted .counter-bar { width: 30px; }

/* ─── Scroll Indicator — minimal line ─── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}
.scroll-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}
.scroll-line-track {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}
.scroll-line-dot {
    width: 3px;
    height: 10px;
    background: var(--m-accent);
    border-radius: 3px;
    position: absolute;
    left: -1px;
    animation: scroll-line-move 2s ease-in-out infinite;
}
@keyframes scroll-line-move {
    0%, 100% { top: 0; opacity: 0.4; }
    50% { top: calc(100% - 10px); opacity: 1; }
}

/* --- Motion Buttons (shared) --- */
.btn-motion {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--m-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s var(--m-ease), box-shadow 0.3s var(--m-ease);
    border: none;
}
.btn-motion:hover {
    transform: translateY(-3px);
}
.btn-motion:active {
    transform: translateY(0);
}
.btn-motion-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.4s var(--m-ease);
}
.btn-motion-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Primary button */
.btn-motion-primary {
    color: #fff;
}
.btn-motion-primary .btn-motion-bg {
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
}
.btn-motion-primary:hover {
    box-shadow: 0 8px 30px var(--m-accent-glow);
    color: #fff;
}

/* Outline button */
.btn-motion-outline {
    color: var(--m-white);
    border: 1.5px solid var(--m-glass-border);
}
.btn-motion-outline .btn-motion-bg {
    background: var(--m-glass);
}
.btn-motion-outline:hover {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 8px 30px rgba(255,255,255,0.06);
    color: var(--m-white);
}

/* Light (for dark bg CTA) */
.btn-motion-light {
    color: var(--m-dark);
}
.btn-motion-light .btn-motion-bg {
    background: #fff;
}
.btn-motion-light:hover {
    box-shadow: 0 8px 30px rgba(255,255,255,0.3);
    color: var(--m-dark);
}

.btn-motion-outline-light {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-motion-outline-light .btn-motion-bg {
    background: transparent;
}
.btn-motion-outline-light:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* Small variant */
.btn-motion-sm {
    padding: 10px 22px;
    font-size: 0.85rem;
    border-radius: 8px;
}
.btn-motion-sm .btn-motion-bg {
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
}
.btn-motion-sm { color: #fff; }
.btn-motion-sm:hover { color: #fff; box-shadow: 0 4px 20px var(--m-accent-glow); }

/* Magnetic hover effect (JS adds calculated transforms) */
.btn-motion[data-magnetic] { transition: transform 0.2s ease-out; }

/* ═══════════════════════════════════════════
   SECTIONS — COMMON MOTION STYLES
   ═══════════════════════════════════════════ */

.section-header-motion {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag-motion {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--m-accent);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    padding-left: 40px;
}
.section-tag-motion::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 28px; height: 1.5px;
    background: var(--m-accent);
    transform: translateY(-50%);
}

.section-title-motion {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--m-dark);
    line-height: 1.2;
    margin-bottom: 8px;
}

.title-underline-motion {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--m-accent), var(--m-accent-light));
    border-radius: 3px;
    margin: 12px auto 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}

.text-accent-motion {
    color: var(--m-accent);
}


/* ═══════════════════════════════════════════
   WAVE SERVICES — Cards ride the waves on dark bg
   Left wave carries card 1, right wave carries card 3,
   center card emerges from the dark
   ═══════════════════════════════════════════ */

.wave-services {
    position: relative;
    background: var(--m-dark);
    padding: 80px 0 100px;
    overflow: visible;
    clip-path: inset(-80% 0 -1px 0);
    margin-top: -1px;
}

/* ── Wave shapes (tall, vertical, wavy inner edge) ── */
.wave-shape {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    pointer-events: none;
    /* Fade top & bottom edges so they blend into adjacent sections */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
}

/* Left wave — covers left ~48%, slides in from left */
.ws-left {
    left: 0;
    width: 48%;
    transform: translateX(-105%);
    z-index: 1;
}
.ws-fill-light {
    fill: rgba(248, 249, 251, 0.06);
}
.ws-fill-steam {
    fill: rgba(248, 249, 251, 0.04);
}

/* Right wave — covers right ~48%, slides in from right */
.ws-right {
    right: 0;
    width: 48%;
    transform: translateX(105%);
    z-index: 1;
}

/* ── Blue accent waves (from right, layered) ── */
.ws-blue {
    right: 0;
    transform: translateX(105%);
}
.ws-blue-1 {
    width: 56%;
    z-index: 2;
}
.ws-blue-1 path { fill: rgba(26, 54, 93, 0.18); }

.ws-blue-2 {
    width: 50%;
    z-index: 3;
}
.ws-blue-2 path { fill: rgba(26, 54, 93, 0.12); }

.ws-blue-3 {
    width: 44%;
    z-index: 4;
}
.ws-blue-3 path { fill: rgba(26, 54, 93, 0.08); }

/* ── Gold ribbon — flowing silk ribbon through the section ── */
.ws-gold {
    left: 0;
    width: 100%;
    height: 180%;
    top: -80%;
    z-index: 6;
    opacity: 0;
    overflow: visible;
}
.ws-gold-ribbon {
    fill: none;
    stroke: var(--m-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.4))
            drop-shadow(0 2px 4px rgba(201, 162, 39, 0.2));
}
.ws-gold-ribbon-2 {
    stroke-width: 2;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.3));
}
.ws-gold-ribbon-3 {
    stroke-width: 2.5;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    opacity: 0.55;
    filter: drop-shadow(0 0 10px rgba(226, 197, 94, 0.35));
}

/* ── Golden star particles (Eiffel Tower at night) ── */
.ws-stars {
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    overflow: hidden;
}
.ws-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--m-accent);
    box-shadow: 0 0 4px 1px rgba(201, 162, 39, 0.6),
                0 0 8px 2px rgba(226, 197, 94, 0.3);
    opacity: 0;
    will-change: opacity;
    animation: starTwinkle var(--star-dur, 4s) var(--star-delay, 0s) ease-in-out forwards;
}
.ws-star.star-lg {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 6px 2px rgba(201, 162, 39, 0.7),
                0 0 12px 3px rgba(226, 197, 94, 0.35);
}
.ws-star.star-sm {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 3px 1px rgba(201, 162, 39, 0.5);
}

/* Smooth gentle twinkle — slow fade in/out with soft pulse */
@keyframes starTwinkle {
    0%   { opacity: 0; }
    12%  { opacity: 0.7; }
    25%  { opacity: 0.4; }
    40%  { opacity: 0.85; }
    55%  { opacity: 0.5; }
    70%  { opacity: 0.9; }
    85%  { opacity: 0.35; }
    100% { opacity: 0; }
}

/* Star falling from top — gentle drift down */
.ws-star.star-fall {
    animation: starFall var(--star-dur, 5s) var(--star-delay, 0s) ease-in-out forwards;
}
@keyframes starFall {
    0%   { opacity: 0; transform: translateY(0) translateX(0); }
    8%   { opacity: 0.6; }
    20%  { opacity: 0.8; transform: translateY(30px) translateX(4px); }
    35%  { opacity: 0.35; transform: translateY(65px) translateX(-3px); }
    50%  { opacity: 0.75; transform: translateY(105px) translateX(6px); }
    65%  { opacity: 0.3; transform: translateY(140px) translateX(-2px); }
    80%  { opacity: 0.6; transform: translateY(175px) translateX(3px); }
    100% { opacity: 0; transform: translateY(210px) translateX(-1px); }
}

/* Shooting star — curved arc from bottom-left to middle-right */
/* Irregular reflections = random opacity spikes simulating sunlight on rough surface */
.ws-star.star-shoot {
    background: #fff;
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.7),
                0 0 8px 2px rgba(226, 197, 94, 0.3);
    animation: starShoot var(--star-dur, 3s) var(--star-delay, 0s) linear forwards;
}
.ws-star.star-shoot::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent);
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
}
@keyframes starShoot {
    0%   { opacity: 0; transform: translate(0, 0); }
    3%   { opacity: 0.9; }
    6%   { opacity: 0.2; }
    10%  { opacity: 0.85; transform: translate(40px, -20px); }
    14%  { opacity: 0.15; }
    18%  { opacity: 0.95; transform: translate(90px, -50px); }
    22%  { opacity: 0.3; }
    28%  { opacity: 0.8; transform: translate(150px, -85px); }
    33%  { opacity: 0.1; }
    38%  { opacity: 0.7; transform: translate(210px, -115px); }
    42%  { opacity: 0.25; }
    48%  { opacity: 0.9; transform: translate(280px, -140px); }
    53%  { opacity: 0.15; }
    60%  { opacity: 0.6; transform: translate(350px, -155px); }
    68%  { opacity: 0.35; transform: translate(420px, -160px); }
    76%  { opacity: 0.5; transform: translate(480px, -150px); }
    85%  { opacity: 0.2; transform: translate(530px, -130px); }
    100% { opacity: 0; transform: translate(580px, -105px); }
}

/* ── Hero starfall — white stars with fading light trails ── */
.hero-starfall {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}
.hero-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.7),
                0 0 8px 3px rgba(255, 255, 255, 0.3);
    opacity: 0;
    will-change: left, top, opacity;
}
.hero-star.sf-lg {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8),
                0 0 14px 5px rgba(255, 255, 255, 0.3);
}
/* Trail dots — left behind by each star, fade over 2s */
.hero-star-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.4);
    pointer-events: none;
    will-change: opacity, transform;
}
.hero-star-trail.trail-lg {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5);
}

/* ── Content layer (above waves) ── */
.ws-content {
    position: relative;
    z-index: 10;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header — light on dark, slides down from top edge */
.ws-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(-120px) scale(1.15);
}
.ws-header .section-tag-motion {
    color: var(--m-accent);
}
.ws-header .section-title-motion {
    color: #fff;
}
.ws-header .title-underline-motion {
    background: var(--m-accent);
}

/* ── Grid — 3 columns ── */
.ws-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    perspective: 1200px;
}

/* Card slots — start off-screen or invisible */
.ws-slot {
    will-change: transform, opacity;
}
.ws-slot-left {
    transform: translateX(-120%);
    opacity: 0;
}
.ws-slot-center {
    opacity: 0;
    transform: scale(0.85);
}
.ws-slot-right {
    transform: translateX(120%);
    opacity: 0;
}

/* ── Left & Right cards — white on light wave bg ── */
.ws-slot-left .service-card-motion,
.ws-slot-right .service-card-motion {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

/* ── Center card — dark glass, emerges from the dark ── */
.service-card-dark {
    background: rgba(22, 27, 34, 0.85) !important;
    border-color: rgba(201, 162, 39, 0.25) !important;
    backdrop-filter: blur(12px);
}
.service-card-dark h3 {
    color: #fff !important;
}
.service-card-dark p {
    color: rgba(255, 255, 255, 0.65) !important;
}
.service-card-dark .sc-features li {
    color: rgba(255, 255, 255, 0.55) !important;
}
.service-card-dark .sc-features li i {
    color: var(--m-accent) !important;
}
.service-card-dark .sc-link {
    color: var(--m-accent) !important;
}
.service-card-dark .sc-link:hover {
    color: var(--m-accent-light) !important;
}
.service-card-dark .sc-badge {
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
}
.service-card-dark .sc-glow {
    background: var(--m-accent-glow);
}
.service-card-dark .sc-icon {
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
}

/* ── TABLET — Wave services grid: 2 columns on tablets ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .ws-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
        gap: 20px;
    }
    /* Center the 3rd card below, spanning full width */
    .ws-grid > :nth-child(3) {
        grid-column: 1 / -1;
        max-width: 340px;
        justify-self: center;
    }
    .ws-slot-left,
    .ws-slot-right {
        transform: translateX(0) translateY(40px);
    }
    .service-card-motion {
        padding: 28px 22px;
    }
    .service-card-motion h3 { font-size: 1.1rem; }
    .service-card-motion p { font-size: 0.85rem; }
    .sc-features li { font-size: 0.82rem; }
}

@media (max-width: 768px) {
    .ws-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .ws-slot-left,
    .ws-slot-right {
        transform: translateX(0) translateY(40px);
    }
}

@media (max-width: 768px) {
    .wave-services {
        padding: 60px 0 80px;
        clip-path: none;
        overflow: hidden;
    }
    /* Hide all wave SVG shapes on mobile — they cause horizontal overflow */
    .wave-shape,
    .pw-shape {
        display: none;
    }
    .ws-header {
        opacity: 0;
        transform: translateY(30px) scale(1);
        margin-bottom: 30px;
    }
    .ws-slot-left,
    .ws-slot-right {
        opacity: 0;
        transform: translateX(0) translateY(30px);
    }
    .ws-slot-center {
        opacity: 0;
        transform: translateY(30px) scale(1);
    }
    .ws-grid {
        gap: 16px;
        max-width: 100%;
    }
    .ws-content {
        padding: 0 16px;
    }
    .service-card-motion {
        padding: 24px 20px;
    }
    .service-card-motion h3 {
        font-size: 1.05rem;
    }
    .service-card-motion p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .sc-features li {
        font-size: 0.8rem;
        padding: 3px 0;
    }
    .sc-icon {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
        margin-bottom: 14px;
    }
    .sc-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}

.service-card-motion {
    position: relative;
    background: #fff;
    border-radius: var(--m-radius);
    padding: 36px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: visible;
    cursor: pointer;
    will-change: transform;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.service-card-motion:hover {
    /* GSAP handles tilt + shadow — no CSS transform/shadow here */
}
.sc-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 150px; height: 150px;
    background: var(--m-accent-glow);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card-motion:hover .sc-glow { opacity: 1; }

.sc-icon {
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary));
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: transform 0.3s var(--m-ease-bounce);
}
.service-card-motion:hover .sc-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card-motion h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--m-dark);
    margin-bottom: 10px;
}
.service-card-motion p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.sc-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    padding: 5px 0;
}
.sc-features li i {
    color: var(--m-accent);
    font-size: 0.75rem;
}

.sc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--m-primary);
    text-decoration: none;
    transition: gap 0.3s var(--m-ease), color 0.3s ease;
}
.sc-link:hover {
    gap: 12px;
    color: var(--m-accent);
}

.sc-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

/* Featured card */
.featured-motion {
    border-color: var(--m-accent);
    border-width: 1.5px;
}
.featured-motion .sc-icon {
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
}


/* ═══════════════════════════════════════════
   WHY US SECTION
   ═══════════════════════════════════════════ */

.why-motion {
    background: var(--m-dark);
    padding: 120px 0;
    position: relative;
    margin-top: -1px;
}
.why-motion-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, var(--m-primary-glow) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, var(--m-accent-glow) 0%, transparent 60%);
    opacity: 0.5;
}

.why-motion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.why-motion-left .section-tag-motion {
    color: var(--m-accent-light);
}
.why-motion-left .section-tag-motion::before {
    background: var(--m-accent-light);
}
.why-title {
    color: var(--m-white) !important;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
}
.why-description {
    color: var(--m-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 16px;
}

/* Trust cards */
.trust-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--m-glass);
    border: 1px solid var(--m-glass-border);
    border-radius: var(--m-radius-sm);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--m-ease), border-color 0.3s ease;
    /* Initial state */
    opacity: 0;
    transform: translateX(60px);
}
.trust-card:hover {
    transform: translateX(8px);
    border-color: var(--m-accent);
}
.trust-glow {
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--m-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.trust-card:hover .trust-glow { opacity: 1; }

.trust-icon {
    width: 46px; height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
    font-size: 1.1rem;
}
.trust-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--m-white);
    margin-bottom: 2px;
}
.trust-content p {
    font-size: 0.82rem;
    color: var(--m-gray);
    line-height: 1.4;
    margin: 0;
}


/* ═══════════════════════════════════════════
   PRODUCTS — 3D CAROUSEL
   ═══════════════════════════════════════════ */

.products-motion {
    background: var(--m-dark);
}

/* Starfield + nebula canvas */
.products-starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Ensure content sits above everything */
.products-motion > .container {
    position: relative;
    z-index: 5;
}
.products-motion .section-tag-motion {
    color: var(--m-accent-light);
}
.products-motion .section-tag-motion::before {
    background: var(--m-accent-light);
}
.products-motion .section-title-motion {
    color: #fff;
}
.products-motion .title-underline-motion {
    background: var(--m-accent);
}

.products-carousel-3d {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    perspective: 1200px;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    position: relative;
}

.carousel-card {
    position: absolute;
    width: 280px;
    border-radius: var(--m-radius);
    transition: all 0.6s var(--m-ease);
    cursor: pointer;
    /* All cards hidden by default – JS positions them */
    opacity: 0;
    transform: scale(0.85) rotateY(15deg);
    pointer-events: none;
    /* 3D flip container */
    perspective: 900px;
}
.carousel-card.carousel-active {
    opacity: 1;
    transform: scale(1.05) rotateY(0deg) translateZ(30px);
    z-index: 5;
    pointer-events: all;
}
.carousel-card.carousel-prev-card {
    opacity: 0.7;
    transform: scale(0.88) rotateY(8deg) translateX(-110%);
    z-index: 3;
    filter: blur(1px);
    pointer-events: all;
}
.carousel-card.carousel-next-card {
    opacity: 0.7;
    transform: scale(0.88) rotateY(-8deg) translateX(110%);
    z-index: 3;
    filter: blur(1px);
    pointer-events: all;
}
.carousel-card.carousel-far-prev {
    opacity: 0;
    transform: scale(0.7) rotateY(15deg) translateX(-200%);
    z-index: 1;
}
.carousel-card.carousel-far-next {
    opacity: 0;
    transform: scale(0.7) rotateY(-15deg) translateX(200%);
    z-index: 1;
}

/* ── Flip inner container ── */
.cc-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-flipper.is-flipped {
    transform: rotateY(180deg);
}

/* ── Front face ── */
.cc-front {
    position: relative;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--m-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.carousel-card.carousel-active .cc-front {
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    border-color: rgba(201,162,39,0.25);
}

/* ── Flip hint on active card ── */
.cc-flip-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}
.cc-flip-hint i {
    margin-right: 4px;
    font-size: 0.55rem;
}
.carousel-card.carousel-active:hover .cc-flip-hint {
    opacity: 1;
}

/* ── Flip button — top-right corner ── */
.cc-flip-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.85);
    color: #fff;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
}
.carousel-card.carousel-active .cc-flip-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.cc-flip-btn:hover {
    background: rgba(201, 162, 39, 1);
    transform: scale(1.1);
}

/* Back-face flip button — dark on gold */
.cc-flip-btn-back {
    background: rgba(13, 17, 23, 0.7);
    color: #D4AF37;
    opacity: 1;
    transform: scale(1) rotateY(180deg);
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cc-flip-btn-back:hover {
    background: rgba(13, 17, 23, 0.9);
    transform: scale(1.1) rotateY(180deg);
}

/* ── Back face — Gold metallic ── */
.cc-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    border-radius: var(--m-radius);
    overflow: hidden;
    /* Gold metallic gradient */
    background:
        linear-gradient(135deg,
            #8B6914 0%,
            #C9A227 15%,
            #E8D48B 30%,
            #F5E6A3 40%,
            #C9A227 50%,
            #A07D1A 60%,
            #D4AF37 75%,
            #F0D780 85%,
            #C9A227 100%);
    border: 2px solid #D4AF37;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}
/* Metallic shine sweep */
.cc-back-shine {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,255,255,0.15) 35%,
        rgba(255,255,255,0.3) 38%,
        rgba(255,255,255,0.15) 41%,
        transparent 55%
    );
    pointer-events: none;
    animation: metalShine 4s ease-in-out infinite;
}
@keyframes metalShine {
    0%, 100% { transform: translateX(-30%) translateY(-30%) rotate(25deg); }
    50% { transform: translateX(30%) translateY(30%) rotate(25deg); }
}
/* Brushed metal texture overlay */
.cc-back::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
}
.cc-back-content {
    position: relative;
    z-index: 2;
    padding: 24px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.cc-back-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(80, 50, 0, 0.7);
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.3);
}
.cc-back-header i {
    font-size: 0.8rem;
    color: rgba(80, 50, 0, 0.5);
}
.cc-back-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3d2800;
    line-height: 1.3;
    margin-bottom: 8px;
}
.cc-back-brand {
    font-size: 0.72rem;
    font-weight: 600;
    color: #5a3d00;
    margin-bottom: 4px;
}
.cc-back-brand i {
    color: rgba(80, 50, 0, 0.5);
    margin-right: 4px;
    font-size: 0.65rem;
}
.cc-back-ref {
    font-size: 0.65rem;
    color: rgba(80, 50, 0, 0.5);
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
/* Specs list */
.cc-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    flex: 1;
}
.cc-specs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid rgba(139, 105, 20, 0.15);
    font-size: 0.7rem;
}
.cc-specs li:last-child {
    border-bottom: none;
}
.spec-key {
    color: rgba(80, 50, 0, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.62rem;
}
.spec-val {
    color: #3d2800;
    font-weight: 700;
    text-align: right;
    font-size: 0.7rem;
}
.cc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #3d2800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(139, 105, 20, 0.3);
    transition: all 0.3s ease;
    align-self: center;
}
.cc-back-link:hover {
    background: rgba(255,255,255,0.55);
    border-color: rgba(139, 105, 20, 0.5);
    color: #2a1b00;
}

.cc-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.cc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--m-ease);
}
.carousel-card.carousel-active:hover .cc-image img {
    transform: scale(1.05);
}
.cc-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.15);
}
/* Corner ribbon promo badge (top-left) */
.cc-badge {
    position: absolute;
    top: 18px; left: -32px;
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 7px 42px;
    letter-spacing: 0.5px;
    transform: rotate(-45deg);
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
    text-align: center;
    min-width: 140px;
}

.cc-info {
    padding: 20px;
}
.cc-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--m-accent);
    font-weight: 600;
}
.cc-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 6px 0 10px;
    line-height: 1.3;
}
.cc-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.cc-price .price-old {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}
.cc-price .price-current {
    font-size: 1.1rem;
    color: var(--m-accent);
    font-weight: 700;
}

/* Nav buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s var(--m-ease);
}
.carousel-nav-btn:hover {
    background: var(--m-accent);
    color: #fff;
    border-color: var(--m-accent);
    box-shadow: 0 8px 25px var(--m-accent-glow);
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Detail floating panel (subtle) */
.carousel-detail-float {
    display: none; /* Reserved for future */
}


/* ═══════════════════════════════════════════
   PRODUCTS WAVE SHAPES — same as wave-services but REVERSED
   Start covering the section (translateX: 0), open outward on scroll
   ═══════════════════════════════════════════ */

.products-motion {
    position: relative;
    overflow: hidden;
}

.pw-shape {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
}

/* Left wave — starts IN (covering), will slide out left */
.pw-left {
    left: 0;
    width: 48%;
    transform: translateX(0);
    z-index: 1;
}
.pw-fill-light {
    fill: rgba(248, 249, 251, 0.05);
}
.pw-fill-steam {
    fill: rgba(248, 249, 251, 0.03);
}

/* Right wave — starts IN (covering), will slide out right */
.pw-right {
    right: 0;
    width: 48%;
    transform: translateX(0);
    z-index: 1;
}

/* Blue accent waves */
.pw-blue {
    right: 0;
    transform: translateX(0);
}
.pw-blue-1 {
    width: 56%;
    z-index: 2;
}
.pw-blue-1 path { fill: rgba(26, 54, 93, 0.14); }

.pw-blue-2 {
    width: 50%;
    z-index: 3;
}
.pw-blue-2 path { fill: rgba(26, 54, 93, 0.08); }

/* Second steam layers — wider, in front (peel away first) */
.pw-left-2 {
    left: 0;
    width: 52%;
    transform: translateX(0);
    z-index: 4;
}
.pw-left-2 .pw-fill-light { fill: rgba(248, 249, 251, 0.07); }
.pw-left-2 .pw-fill-steam { fill: rgba(248, 249, 251, 0.045); }

.pw-right-2 {
    right: 0;
    width: 52%;
    transform: translateX(0);
    z-index: 4;
}
.pw-right-2 .pw-fill-light { fill: rgba(248, 249, 251, 0.07); }
.pw-right-2 .pw-fill-steam { fill: rgba(248, 249, 251, 0.045); }

/* Blue accent waves from LEFT (mirrors of pw-blue-1/2) */
.pw-blue-3 {
    left: 0;
    width: 56%;
    z-index: 2;
    transform: translateX(0);
}
.pw-blue-3 path { fill: rgba(26, 54, 93, 0.14); }

.pw-blue-4 {
    left: 0;
    width: 50%;
    z-index: 3;
    transform: translateX(0);
}
.pw-blue-4 path { fill: rgba(26, 54, 93, 0.08); }


/* ═══════════════════════════════════════════
   WAVE TRANSITION — at "Voir toute la boutique" level
   ═══════════════════════════════════════════ */

.wt-wrap {
    position: relative;
    height: 120px;
    margin-top: -20px;
    pointer-events: none;
    overflow: hidden;
}

.wt-shape {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Left wave — sweeps from left */
.wt-left {
    transform: translateX(-105%);
    z-index: 2;
}
.wt-left path {
    fill: rgba(26, 54, 93, 0.15);
}

/* Right wave — sweeps from right */
.wt-right {
    transform: translateX(105%);
    z-index: 3;
}
.wt-right path {
    fill: rgba(201, 162, 39, 0.08);
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */

.cta-motion {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.cta-motion-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--m-primary) 0%, var(--m-dark) 100%);
    z-index: 0;
}
.cta-motion-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cta-motion-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    /* Initial state */
    opacity: 0;
    transform: scale(0.9);
}
.cta-motion-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.cta-motion-sub {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}
.cta-motion-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════
   LOADING CURTAIN
   ═══════════════════════════════════════════ */

.motion-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--m-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
    text-align: center;
    padding: 0 20px;
}
.motion-curtain-logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 3vw, 1.6rem);
    color: var(--m-white);
    letter-spacing: clamp(2px, 1vw, 5px);
    text-transform: uppercase;
    opacity: 0;
    will-change: filter, opacity;
}
.motion-curtain-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--m-accent), transparent);
    margin-top: 16px;
    opacity: 0;
}
.motion-curtain.done {
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

/* ═══════════════════════════════════════════
   SUB-PAGE HEADER (services, galerie, etc.)
   ═══════════════════════════════════════════ */

.page-header-motion {
    position: relative;
    padding: 140px 0 60px;
    background: var(--m-dark);
    overflow: hidden;
    text-align: center;
}
.page-header-motion::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, var(--m-primary-glow) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, var(--m-accent-glow) 0%, transparent 50%);
    opacity: 0.4;
}
.page-header-motion .container {
    position: relative;
    z-index: 2;
}
.page-header-motion .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.82rem;
}
.page-header-motion .breadcrumb a {
    color: var(--m-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.page-header-motion .breadcrumb a:hover { color: var(--m-accent); }
.page-header-motion .breadcrumb i { color: var(--m-gray); font-size: 0.65rem; }
.page-header-motion .breadcrumb span { color: var(--m-accent-light); }
.page-header-motion h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--m-white);
    margin-bottom: 10px;
}
.page-header-motion p {
    color: var(--m-gray);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Sub-page content sections get scroll animations */
.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--m-ease), transform 0.7s var(--m-ease);
}
.section-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--m-accent), var(--m-accent-light));
    z-index: 10001;
    width: 0%;
    transition: none;
    pointer-events: none;
}


/* ═══════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--m-dark);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--m-accent);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--m-accent);
    color: var(--m-dark);
}
.back-to-top svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.back-to-top svg circle {
    fill: none;
    stroke: var(--m-accent);
    stroke-width: 2;
    stroke-linecap: round;
}


/* ═══════════════════════════════════════════
   FIREWORKS PARTICLES (back-to-top click)
   ═══════════════════════════════════════════ */

.firework-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.firework-trail {
    position: fixed;
    width: 20px;
    height: 3px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.firework-flash {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 230, 140, 0.9) 0%, rgba(226, 197, 94, 0.5) 40%, transparent 70%);
}


/* ═══════════════════════════════════════════
   CURSOR FOLLOWER (desktop only)
   ═══════════════════════════════════════════ */

.cursor-follower {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 2px solid var(--m-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    background: transparent;
    box-shadow: none;
    /* no transition on transform — GSAP handles it */
    transition: opacity 0.3s;
}
.cursor-follower.active {
    opacity: 1;
}

/* Hide default cursor only when custom ring is active (JS adds .cursor-active to body) */
@media (pointer: fine) {
    body.cursor-active, body.cursor-active * {
        cursor: none !important;
    }
    /* Keep pointer on interactive elements for accessibility fallback */
    body.cursor-active a, body.cursor-active button,
    body.cursor-active input, body.cursor-active textarea,
    body.cursor-active select, body.cursor-active [role="button"] {
        cursor: none !important;
    }
}

/* Click ripple wave — works on both desktop & mobile */
.cursor-ripple {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(226, 197, 94, 0.6) 0%, rgba(201, 162, 39, 0.3) 30%, transparent 70%);
    border: 1px solid rgba(226, 197, 94, 0.5);
    animation: clickRipple 0.7s ease-out forwards;
}
.cursor-ripple:nth-child(odd) {
    animation-duration: 0.9s;
}
@keyframes clickRipple {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(12); opacity: 0; }
}


/* ═══════════════════════════════════════════
   TEXT HIGHLIGHT ON SCROLL
   ═══════════════════════════════════════════ */

.text-reveal-highlight {
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(120deg, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0.15) 100%);
    transition: background-size 0.8s var(--m-ease);
    padding: 2px 0;
}
.text-reveal-highlight.revealed {
    background-size: 100% 100%;
}


/* ═══════════════════════════════════════════
   TILT 3D CARDS (interactive)
   ═══════════════════════════════════════════ */

.tilt-card {
    transform-style: preserve-3d;
    perspective: 800px;
    will-change: transform;
}
.tilt-card-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}
.tilt-card .sc-icon,
.tilt-card .trust-icon {
    transform: translateZ(30px);
}
.tilt-card h3,
.tilt-card h4 {
    transform: translateZ(20px);
}


/* ═══════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--m-accent), var(--m-accent-light));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.4s, transform 0.4s var(--m-ease-bounce), box-shadow 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 15px var(--m-accent-glow);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.back-to-top:hover {
    box-shadow: 0 8px 30px var(--m-accent-glow);
    transform: translateY(-3px) scale(1.05);
}
/* SVG circular progress ring around back-to-top */
.back-to-top svg {
    position: absolute;
    inset: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    transform: rotate(-90deg);
}
.back-to-top svg circle {
    fill: none;
    stroke: var(--m-accent);
    stroke-width: 2;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    transition: stroke-dashoffset 0.1s;
}


/* ═══════════════════════════════════════════
   INFINITE MARQUEE (partners)
   ═══════════════════════════════════════════ */

.partners-motion {
    padding: 40px 0;
    background: var(--m-dark-alt);
    overflow: hidden;
    position: relative;
}
.partners-motion-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--m-gray);
    margin-bottom: 24px;
    font-weight: 500;
}
.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}
.marquee-track img {
    height: 40px;
    filter: grayscale(1) brightness(0.7);
    opacity: 0.5;
    transition: filter 0.4s, opacity 0.4s;
}
.marquee-track img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ── TABLET — Why section & Carousel ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .why-motion-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .why-title { font-size: clamp(1.5rem, 3vw, 2rem) !important; }
    .why-description { font-size: 0.9rem; }
    .trust-card { padding: 16px 18px; gap: 14px; }
    .trust-icon { width: 42px; height: 42px; min-width: 42px; font-size: 1rem; }
    .trust-card h4 { font-size: 0.9rem; }
    .trust-card p { font-size: 0.78rem; }
    .carousel-card { width: 260px; }
    .cc-image { height: 180px; }
    .products-carousel-3d { padding: 0 40px; }
    .carousel-nav-btn { width: 42px; height: 42px; font-size: 0.9rem; }

    /* CTA */
    .cta-motion { padding: 80px 0; }
    .cta-motion-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
    .cta-motion-sub { font-size: 0.95rem; }

    /* Page header */
    .page-header-motion { padding: 120px 0 50px; }
    .page-header-motion h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

    /* Section headers */
    .section-header-motion { margin-bottom: 40px; }
    .section-title-motion { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
    .section-tag-motion { font-size: 0.72rem; }

    /* Partners marquee */
    .marquee-track img { height: 35px; }
    .marquee-track { gap: 40px; }

    /* ── Hero — tablet ── */
    .hero-content-wrap {
        padding: 0 clamp(16px, 3vw, 40px) 0;
    }
    .hero-info-left {
        padding-bottom: 80px;
    }
    .hero-info-right {
        padding-bottom: 80px;
    }
    .hero-main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .hero-right-big {
        font-size: clamp(1rem, 2.2vw, 1.6rem);
    }
    .hero-tagline {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
    .hero-services-tag {
        font-size: 0.65rem;
    }
    .hero-cta-btn {
        padding: 9px 22px;
        font-size: 0.72rem;
    }
    .hero-counters {
        gap: 28px;
        padding-bottom: 60px;
    }
    .counter-number { font-size: 1.6rem; }
    .counter-label { font-size: 0.62rem; }
    .hero-biglogo {
        width: 50%;
        max-width: 500px;
    }
    .hero-figure {
        width: 20%;
        max-width: 220px;
    }
    .hero-scroll-indicator { bottom: 16px; }

    /* Wave shape sizing for tablet */
    .ws-left, .ws-right { width: 45%; }
    .ws-blue-1 { width: 50%; }
    .ws-blue-2 { width: 45%; }
    .ws-blue-3 { width: 40%; }
    .pw-left, .pw-right { width: 45%; }
    .pw-left-2, .pw-right-2 { width: 48%; }
    .pw-blue-1 { width: 50%; }
    .pw-blue-2 { width: 45%; }
    .pw-blue-3 { width: 50%; }
    .pw-blue-4 { width: 45%; }

    /* Nav dropdown — dark glass on homepage (tablet still shows pill) */
    body:has(.hero-motion) .site-header .nav-menu {
        padding: 3px;
    }

    /* Wave transition */
    .wt-wrap { height: 100px; }

    /* WhatsApp + back to top */
    .whatsapp-float { bottom: 24px !important; right: 20px !important; }
    .back-to-top { bottom: 80px; right: 20px; }
}

@media (max-width: 768px) {
    .why-motion-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .carousel-card { width: 260px; }
}

@media (max-width: 768px) {
    /* Hero mobile — simplified layout */
    .hero-motion {
        min-height: 100svh;
        height: 100svh;
    }
    .hero-bg-layer {
        transform: scale(1) !important;
    }
    .hero-shapes { display: none; }
    .hero-grain { display: none; }

    .hero-content-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        gap: 0;
    }
    .hero-title-block {
        position: static;
        text-align: center;
    }
    .hero-main-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .hero-info-left {
        position: static;
        text-align: center;
        align-self: center;
        padding: 0;
        margin-bottom: 24px;
    }
    .hero-info-right {
        display: block;
        position: static;
        text-align: center;
        align-self: center;
        padding: 0;
        margin-bottom: 40px;
    }
    .hero-right-big {
        font-size: clamp(1rem, 6vw, 1.6rem);
        color: rgba(255,255,255,0.2);
    }
    .hero-tagline {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
    .hero-services-tag {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
        margin-bottom: 16px;
        line-height: 1.6;
    }
    .hero-cta-btn {
        padding: 10px 24px;
        font-size: 0.7rem;
        margin: 0 auto;
    }
    .hero-counters {
        position: absolute;
        bottom: 70px;
        left: 0;
        right: 0;
        flex-direction: row;
        gap: 24px;
        justify-content: center;
        padding-bottom: 0;
    }
    .counter-number { font-size: 1.4rem; }
    .counter-label { font-size: 0.6rem; }

    /* Scroll indicator offset for bottom nav */
    .hero-scroll-indicator { bottom: 140px; }

    .section-motion { padding: 60px 0; }

    /* ── Products carousel mobile ── */
    .products-carousel-3d { padding: 0 10px; min-height: 380px; }
    .carousel-card { width: 220px; }
    .carousel-card.carousel-active { transform: scale(1) rotateY(0deg) translateZ(20px); }
    .carousel-card.carousel-prev-card { transform: scale(0.78) translateX(-75%); filter: blur(1.5px); }
    .carousel-card.carousel-next-card { transform: scale(0.78) translateX(75%); filter: blur(1.5px); }
    .carousel-nav-btn { width: 38px; height: 38px; font-size: 0.85rem; }
    .carousel-prev { left: -2px; }
    .carousel-next { right: -2px; }
    .cc-image { height: 160px; }
    .cc-info { padding: 14px; }
    .cc-name { font-size: 0.88rem; }
    .cc-price .price-current { font-size: 0.95rem; }
    .cc-price .price-old { font-size: 0.75rem; }
    .cc-flip-hint { display: none; }
    .section-header-motion { margin-bottom: 30px; }
    .section-title-motion { font-size: clamp(1.4rem, 6vw, 2rem); }

    /* ── Card flip back face mobile ── */
    .cc-back-content { padding: 18px 14px; }
    .cc-back-header { font-size: 0.58rem; letter-spacing: 1.5px; margin-bottom: 8px; padding-bottom: 8px; }
    .cc-back-name { font-size: 0.8rem; margin-bottom: 6px; }
    .cc-back-brand { font-size: 0.65rem; }
    .cc-back-ref { font-size: 0.58rem; margin-bottom: 10px; }
    .cc-specs li { padding: 4px 0; font-size: 0.62rem; }
    .spec-key { font-size: 0.55rem; }
    .spec-val { font-size: 0.62rem; }
    .cc-back-link { font-size: 0.62rem; padding: 6px 12px; margin-top: 10px; }

    /* ── Why Us section mobile ── */
    .why-motion { padding: 60px 0; }
    .why-motion-grid { grid-template-columns: 1fr; gap: 30px; }
    .why-motion-left { text-align: center; }
    .why-title { font-size: clamp(1.4rem, 6vw, 2rem) !important; }
    .why-description { font-size: 0.9rem; }
    .trust-card { padding: 14px 16px; gap: 12px; }
    .trust-icon { width: 40px; height: 40px; min-width: 40px; font-size: 0.95rem; border-radius: 10px; }
    .trust-card h4 { font-size: 0.9rem; }
    .trust-card p { font-size: 0.78rem; }

    /* ── Wave transition mobile ── */
    .wt-wrap { height: 80px; }

    /* ── CTA section mobile ── */
    .cta-motion { padding: 60px 0; }
    .cta-motion-content { padding: 0 20px; }
    .cta-motion-title { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
    .cta-motion-sub { font-size: 0.9rem; margin-bottom: 24px; }

    /* ── Wave services mobile ── */
    .wave-services .ws-gold { display: none; }
    .wave-services .ws-stars { display: none; }

    /* Hide cursor follower on touch */
    .cursor-follower { display: none !important; }

    /* WhatsApp above bottom nav */
    .whatsapp-float { bottom: 80px !important; right: 16px !important; }
    /* Back to top stacked above WhatsApp */
    .back-to-top { bottom: 130px; right: 16px; }

    /* Page header mobile */
    .page-header-motion { padding: 110px 0 40px; }
    .page-header-motion h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-content-wrap { padding: 0 12px; }
    .hero-main-title { font-size: clamp(1.6rem, 9vw, 2.4rem); }
    .hero-counters { gap: 14px; padding-bottom: 70px; }
    .cta-motion-actions { flex-direction: column; align-items: center; }
    .counter-number { font-size: 1.1rem; }

    /* Carousel extra-small */
    .carousel-card { width: 190px; }
    .products-carousel-3d { min-height: 350px; }
    .cc-image { height: 140px; }
    .cc-info { padding: 12px 10px; }
    .cc-name { font-size: 0.8rem; }
    .cc-category { font-size: 0.62rem; }
    .cc-price .price-current { font-size: 0.85rem; }
    .carousel-card.carousel-prev-card { transform: scale(0.75) translateX(-65%); }
    .carousel-card.carousel-next-card { transform: scale(0.75) translateX(65%); }
    .carousel-nav-btn { width: 34px; height: 34px; font-size: 0.75rem; }

    /* Card back extra-small */
    .cc-back-content { padding: 14px 10px; }
    .cc-back-name { font-size: 0.72rem; }
    .cc-specs li { font-size: 0.55rem; }
    .spec-key { font-size: 0.5rem; }
    .spec-val { font-size: 0.55rem; }

    /* Trust cards extra-small */
    .trust-card { padding: 12px 14px; }
    .trust-icon { width: 36px; height: 36px; min-width: 36px; font-size: 0.85rem; }
    .trust-card h4 { font-size: 0.82rem; }
    .trust-card p { font-size: 0.72rem; }

    /* Section headers */
    .section-title-motion { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
    .section-tag-motion { font-size: 0.6rem; }
}


/* ═══════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ═══════════════════════════════════════════ */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: linear-gradient(180deg, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0.98) 100%);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-top: 1px solid rgba(201, 162, 39, 0.12);
        padding: 4px 0 max(4px, env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: center;
        /* Hidden initially — JS will reveal with animation */
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-bottom-nav.visible {
        transform: translateY(0);
        opacity: 1;
    }
    /* Minimized state — only the grip handle visible */
    .mobile-bottom-nav.minimized {
        transform: translateY(calc(100% - 18px));
    }
    .mobile-bottom-nav.minimized .mob-nav-item {
        opacity: 0;
        pointer-events: none;
    }
    /* Grip handle to minimize/restore */
    .mob-nav-grip {
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        z-index: 1;
    }
    .mob-nav-grip span {
        width: 28px;
        height: 3px;
        border-radius: 3px;
        background: rgba(201, 162, 39, 0.4);
        transition: background 0.3s;
    }
    .mob-nav-grip:active span {
        background: rgba(201, 162, 39, 0.8);
    }
    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.45);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        padding: 4px 14px;
        border-radius: 12px;
        transition: color 0.3s, background 0.3s, opacity 0.3s;
        position: relative;
        /* Hidden initially — staggered reveal */
        opacity: 0;
        transform: translateY(20px);
    }
    .mob-nav-item.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .mob-nav-item i {
        font-size: 1.15rem;
        transition: transform 0.3s var(--m-ease-bounce), color 0.3s;
    }
    .mob-nav-item:active i {
        transform: scale(0.85);
    }

    /* Active state — gold glow */
    .mob-nav-item.active {
        color: var(--m-accent);
    }
    .mob-nav-item.active i {
        transform: scale(1.15);
        filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.5));
    }
    /* Gold line accent under active */
    .mob-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--m-accent), transparent);
        border-radius: 2px;
    }

    /* Hover / press feedback */
    .mob-nav-item:not(.active):active {
        color: rgba(255, 255, 255, 0.7);
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hide desktop nav actions on mobile when bottom nav is active */
    .nav-actions .hide-mobile { display: none !important; }

    /* Content padding for bottom nav */
    .site-footer { padding-bottom: 80px; }
}
