/* ============================================
   DIVELA — Golden Hour, Sun-Kissed Beauty
   Sunset beach palette: #e0785f (sunset coral)
   #a9d8cb (seafoam) · #f6c5a9 (peach) · #db9d4a (amber)
   #7e4f63 (dusk plum) · #faf1e4 (warm sand)
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Core palette */
    --pink:        #E0785F;   /* sunset coral — primary accent */
    --mint:        #A9D8CB;   /* sun-washed seafoam */
    --soft-pink:   #F6C5A9;   /* sunset peach */
    --gold:        #DB9D4A;   /* golden-hour amber */

    /* Derived / supporting */
    --pink-deep:   #BE5A45;   /* ember */
    --gold-deep:   #B57E33;   /* deep amber */
    --peach:       #F2A87C;   /* sunset glow */
    --dusk:        #7E4F63;   /* dusk plum */
    --ocean:       #6FA8A0;   /* calm ocean */
    --ink:         #33272E;   /* warm plum-charcoal for text */
    --ink-soft:    #6E5D56;   /* warm taupe */
    --cream:       #FAF1E4;   /* warm sand bg */
    --paper:       #FFFAF3;   /* warm white */

    /* Type */
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --container: 1320px;
    --radius-sm: 10px;
    --radius:    22px;
    --radius-lg: 36px;
    --radius-xl: 60px;
    --shadow-sm: 0 4px 20px rgba(51, 39, 46, 0.06);
    --shadow:    0 16px 50px rgba(51, 39, 46, 0.10);
    --shadow-lg: 0 30px 80px rgba(51, 39, 46, 0.16);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* clip any stray fixed/absolute decor — never allow horizontal scroll */
html { overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--sans);
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; }
em { font-style: italic; color: var(--pink); font-weight: 400; }

.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow.light { color: var(--mint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; }
.dot.light { background: var(--mint); }

.section-title { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 24px; }
.section-title.light { color: var(--paper); }
.section-title em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 18px 36px;
    border-radius: 100px;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--pink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid rgba(51,39,46,0.2); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-text {
    padding: 0;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--pink);
    border-bottom: 1px solid var(--pink);
    padding-bottom: 4px;
}
.btn-text:hover { color: var(--gold); border-color: var(--gold); }
.btn-block { width: 100%; }

/* Shimmering sweep on primary CTAs */
.btn-shine::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.2s var(--ease) infinite;
}
@keyframes btnShine {
    0%   { left: -80%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}

/* Magnetic buttons gently pulled toward the cursor (JS drives transform) */
.magnetic { will-change: transform; display: inline-flex; }

/* ---------- Header / Nav ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 241, 228, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(51, 39, 46, 0.08);
    transition: all 0.4s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

:root { --nav-h: 148px; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
    width: 128px; height: 128px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(51, 39, 46, 0.18));
    transition: transform 0.5s var(--ease-bounce), filter 0.3s var(--ease);
}
.nav-logo:hover .logo-img {
    transform: rotate(-12deg) scale(1.08);
    filter: drop-shadow(0 8px 18px rgba(224, 120, 95, 0.32));
}
.nav-menu { display: flex; gap: 8px; }
.nav-link {
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    padding: 10px 16px;
    border-radius: 100px;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-link span {
    font-size: 10px;
    color: var(--pink);
    font-weight: 500;
}
.nav-link:hover { background: var(--soft-pink); color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    position: relative;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--ink);
    transition: all 0.3s var(--ease);
}
.icon-btn:hover { background: var(--mint); }
.cart-count {
    position: absolute;
    top: 6px; right: 6px;
    background: var(--pink);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 10px; font-weight: 600;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: grid; place-items: center;
    border: 2px solid var(--cream);
}

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 12px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: all 0.3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* mobile browser chrome aware */
    padding: 110px 0 50px;
    overflow: hidden;
}
/* Beach photography background replaces flat blobs */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../assets/images/inspo.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}
/* Light cream scrim so text stays legible over the beach photo */
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(115deg, rgba(250,241,228,0.96) 0%, rgba(250,241,228,0.82) 38%, rgba(250,241,228,0.45) 70%, rgba(250,241,228,0.25) 100%),
        radial-gradient(circle at 85% 15%, rgba(242,168,124,0.38), transparent 40%);
}
/* Decorative floating surfboard + sun accents */
.hero-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-surfboard {
    position: absolute;
    top: 12%; right: 4%;
    width: 220px;
    opacity: 0.5;
    transform: rotate(28deg);
    animation: floatBoard 14s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(224,120,95,0.22));
}
.hero-sun {
    position: absolute;
    top: 8%; left: 6%;
    width: 150px; height: 150px;
    opacity: 0.6;
    animation: spin 60s linear infinite;
}
@keyframes floatBoard {
    0%, 100% { transform: rotate(28deg) translateY(0); }
    50% { transform: rotate(32deg) translateY(-22px); }
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-marquee {
    position: absolute;
    top: 96px; left: 0; right: 0;
    overflow: hidden;
    transform: rotate(-2deg);
    z-index: 1;
}
/* ---- Beachy atmosphere: particles / glare / grain / rolling waves ---- */
.hero-particles {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%; height: 100%;
}
/* Heat-shimmer: a soft sun glare sweeping slowly across the hero */
.hero-glare {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.22) 46%,
        rgba(242, 168, 124, 0.22) 50%,
        rgba(255, 255, 255, 0.22) 54%,
        transparent 65%);
    background-size: 300% 100%;
    animation: glareSweep 11s ease-in-out infinite;
    mix-blend-mode: soft-light;
}
@keyframes glareSweep {
    0%   { background-position: 120% 0; }
    55%  { background-position: -60% 0; }
    100% { background-position: -60% 0; }
}
/* Film-grain overlay for golden-hour warmth on photo sections */
.grain {
    position: absolute; inset: -50%;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.07;
    animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2%, 1.5%); }
    50%  { transform: translate(1.5%, -1%); }
    75%  { transform: translate(-1%, -2%); }
    100% { transform: translate(0, 0); }
}
/* Rolling multi-layer waves at the foot of the hero */
.hero-waves {
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}
.hero-waves svg { width: 100%; height: 100%; display: block; }
.hero-waves path { will-change: transform; }
.hero-waves .hw-1 { animation: waveRoll 13s ease-in-out infinite alternate; }
.hero-waves .hw-2 { animation: waveRoll 10s ease-in-out infinite alternate-reverse; }
.hero-waves .hw-3 { animation: waveRoll 8s ease-in-out infinite alternate; }
@keyframes waveRoll {
    from { transform: translateX(-30px) translateY(0); }
    to   { transform: translateX(30px) translateY(6px); }
}
.hm-track {
    display: inline-flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}
.hm-track span {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--pink);
    opacity: 0.5;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding-top: 70px;
    position: relative;
    z-index: 2;
}
.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 30px;
    display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }

.hero-title {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    line-height: 0.92;
    margin-bottom: 36px;
    color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title em { color: var(--pink); }

.hero-sub {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 460px;
    margin-bottom: 42px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero card stack */
.hero-right { display: flex; justify-content: center; }
.hero-card-stack { position: relative; width: 100%; max-width: 420px; aspect-ratio: 4/5; }
.hero-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.card-back {
    inset: 0;
    transform: rotate(6deg) translate(30px, 30px);
    background: var(--mint);
}
.card-front {
    inset: 0;
    transform: rotate(-3deg);
    transition: transform 0.5s var(--ease);
}
.hero-card-stack:hover .card-front { transform: rotate(-1deg) translateY(-12px); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }

/* 3D tilt + light glare on the signature card (JS drives the transform) */
.hero-card-stack { perspective: 1100px; }
.card-front { transform-style: preserve-3d; will-change: transform; }
.card-front .card-badge,
.card-front .card-price { transform: translateZ(46px); }
.card-glare {
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--gx, 30%) var(--gy, 30%),
        rgba(255,255,255,0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: 2;
}
.card-front:hover .card-glare { opacity: 1; }
.card-badge {
    position: absolute;
    top: 24px; left: 24px;
    background: var(--cream);
    border-radius: 100px;
    padding: 10px 18px;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}
.badge-num { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--pink); }
.badge-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.card-price {
    position: absolute;
    bottom: 24px; right: 24px;
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    text-align: center;
}
.card-price span { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.card-price strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 130px;
    padding-top: 40px;
    border-top: 1px solid rgba(51,39,46,0.12);
    position: relative;
    z-index: 2;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* ============ TICKER ============ */
.ticker {
    background: var(--ink);
    color: var(--cream);
    overflow: hidden;
    padding: 22px 0;
    white-space: nowrap;
}
.ticker-track { display: inline-flex; align-items: center; animation: marquee 32s linear infinite; }
.t-item { font-family: var(--serif); font-style: italic; font-size: 1.5rem; padding: 0 30px; }
.t-sep { color: var(--pink); font-size: 1.2rem; }

/* ============ SECTIONS ============ */
.section { padding: 130px 0; }
/* keep anchored sections clear of the fixed header when jumping via #hash or nav */
section[id] { scroll-margin-top: 96px; }
.section-head { margin-bottom: 72px; }
.section-head.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.section-head .head-right {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 380px;
    padding-bottom: 12px;
}
.section-foot { text-align: center; margin-top: 64px; }

/* ============ PRODUCTS ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.product-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--soft-pink);
}
.product-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.08); }
.product-tag {
    position: absolute;
    top: 18px; left: 18px;
    background: var(--pink);
    color: var(--cream);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 100px;
}
.product-tag.tag-mint { background: var(--mint); color: var(--ink); }
.product-tag.tag-gold { background: var(--gold); color: var(--ink); }
.quick-add {
    position: absolute;
    bottom: 18px; left: 18px; right: 18px;
    background: var(--ink);
    color: var(--cream);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 15px;
    border-radius: 100px;
    transform: translateY(120%);
    transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.product-card:hover .quick-add { transform: translateY(0); }
.quick-add:hover { background: var(--pink); }

.product-info { padding: 24px 22px 26px; }
.product-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.product-info h3 { font-size: 1.45rem; }
.product-cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.product-info p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.swatches { display: flex; gap: 6px; }
.swatch {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--cream);
    box-shadow: 0 0 0 1px rgba(51,39,46,0.12);
    transition: transform 0.3s var(--ease);
}
.swatch:hover { transform: scale(1.3); }

/* ============ STATEMENT MARQUEE ============ */
.statement {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}
/* Beach photo backdrop replaces flat pink */
.statement::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background-image: url('../assets/images/inspo2.png.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* Pink/ink scrim so cream text pops */
.statement::after {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, rgba(224,120,95,0.93), rgba(126,79,99,0.90));
}
.statement-track {
    display: flex;
    width: max-content;
    animation: marquee 26s linear infinite;
    position: relative;
    z-index: 1;
}
.statement-row { display: flex; align-items: center; }
.statement-word {
    font-family: var(--serif);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--cream);
    padding: 0 40px;
    white-space: nowrap;
}
.statement-word em { color: var(--mint); font-style: italic; }
.statement-star { font-size: 2.5rem; color: var(--gold); }

/* Seagulls drifting across the statement beach */
.gulls { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.gull {
    position: absolute;
    width: 44px;
    color: rgba(250, 241, 228, 0.85);
    filter: drop-shadow(0 2px 6px rgba(43,31,38,0.25));
    animation: gullDrift linear infinite;
}
.gull-1 { top: 18%; animation-duration: 26s; animation-delay: -4s; }
.gull-2 { top: 34%; width: 32px; color: rgba(250, 241, 228, 0.65); animation-duration: 34s; animation-delay: -14s; }
.gull-3 { top: 10%; width: 26px; color: rgba(250, 241, 228, 0.55); animation-duration: 42s; animation-delay: -26s; }
@keyframes gullDrift {
    0%   { transform: translateX(-10vw) translateY(0) scaleX(1); }
    25%  { transform: translateX(30vw) translateY(-24px) scaleX(1); }
    50%  { transform: translateX(60vw) translateY(10px) scaleX(1); }
    50.01% { transform: translateX(60vw) translateY(10px) scaleX(-1); }
    75%  { transform: translateX(30vw) translateY(-30px) scaleX(-1); }
    100% { transform: translateX(-10vw) translateY(0) scaleX(-1); }
}

/* ============ STORY ============ */
/* Mint base + animated SVG tide-line texture (sits over the beach photo in the bg) */
.story {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(219,157,74,0.15), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(242,168,124,0.20), transparent 45%),
        var(--mint);
}
/* Subtle repeating tide-line ripples layered on top of the mint */
.story::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q 15 8, 30 20 T 60 20 T 90 20 T 120 20' fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.35'/%3E%3C/svg%3E");
    background-size: 120px 40px;
    opacity: 0.7;
    pointer-events: none;
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.story-media { position: relative; }
.story-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-lg);
}
.story-img-main img { width: 100%; height: 100%; object-fit: cover; }
.story-img-inset {
    position: absolute;
    bottom: -40px; right: -40px;
    width: 42%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 8px solid var(--mint);
    box-shadow: var(--shadow);
}
.story-img-inset img { width: 100%; height: 100%; object-fit: cover; }
.story-sticker {
    position: absolute;
    top: -40px; left: -40px;
    width: 130px; height: 130px;
    background: var(--gold);
    border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: var(--shadow);
    animation: spin 20s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.sticker-svg { width: 100%; height: 100%; }
.sticker-text {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    fill: var(--ink);
    text-transform: uppercase;
}
.sticker-center {
    position: absolute;
    font-size: 1.6rem;
    color: var(--pink);
    animation: spin 20s linear infinite reverse;
}

.story-text { padding: 20px 0; }
.story-lead {
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 22px;
}
.story-text p { color: var(--ink-soft); margin-bottom: 18px; }
.story-text .section-title { margin: 8px 0 26px; }
.story-feats {
    display: flex; gap: 30px;
    margin: 36px 0;
    flex-wrap: wrap;
}
.feat { display: flex; align-items: center; gap: 12px; }
.feat-icon {
    width: 42px; height: 42px;
    background: var(--cream);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.1rem;
    color: var(--pink);
}
.feat div { display: flex; flex-direction: column; }
.feat strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.feat span { font-size: 12px; color: var(--ink-soft); }

/* ============ RITUAL ============ */
.ritual { position: relative; color: var(--cream); overflow: hidden; }
/* Full-bleed beach photo replaces flat dark background */
.ritual-bg {
    position: absolute; inset: 0; z-index: -1;
    background-image: url('../assets/images/insporation.png');
    background-size: cover;
    background-position: center;
}
/* Dark scrim so cream text + frosted cards stay readable over the photo */
.ritual-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(43,31,38,0.87) 0%, rgba(43,31,38,0.72) 60%, rgba(43,31,38,0.88) 100%),
                radial-gradient(circle at 20% 30%, rgba(224,120,95,0.30), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(169,216,203,0.12), transparent 50%);
}
.ritual-inner { text-align: center; position: relative; z-index: 1; }

/* Ritual: 3D flip-up reveal + subtle cursor tilt + heat shimmer */
.ritual-steps { perspective: 1200px; }
.ritual-step {
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateX(-32deg) translateY(40px);
    will-change: transform, opacity;
}
.ritual-step.flipped {
    opacity: 1;
    transform: rotateX(0) translateY(0);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* GSAP owns the transform when present; keep hover lift intact */
.ritual-step.tilt { transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.ritual-glare {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(100deg,
        transparent 40%,
        rgba(169,216,203,0.10) 48%,
        rgba(219,157,74,0.14) 52%,
        transparent 60%);
    background-size: 260% 100%;
    animation: glareSweep 14s ease-in-out infinite;
}
.ritual-inner .section-title { margin-bottom: 70px; }
.ritual-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}
.ritual-step {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 44px 36px;
    transition: all 0.4s var(--ease);
}
.ritual-step:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-8px); }
.step-num {
    display: inline-block;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--mint);
    margin-bottom: 20px;
}
.ritual-step:hover .step-num { color: var(--cream); }
.ritual-step h3 { font-size: 1.9rem; color: var(--cream); margin-bottom: 14px; }
.ritual-step p { color: rgba(255,255,255,0.7); font-size: 15px; }
.ritual-step:hover p { color: rgba(255,255,255,0.9); }

/* ============ GALLERY ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 18px;
    margin-bottom: 18px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--soft-pink);
}
/* NB: hover zoom uses the `scale` property so it composes with GSAP's transform scrub */
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease); }
.gallery-item:hover img { scale: 1.1; }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-item figcaption {
    position: absolute;
    bottom: 16px; left: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--cream);
    background: rgba(43,31,38,0.55);
    backdrop-filter: blur(6px);
    padding: 8px 16px;
    border-radius: 100px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ============ TESTIMONIAL ============ */
/* Soft-pink base + layered SVG tide-line texture replaces flat fill */
.testimonial {
    position: relative;
    text-align: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(219,157,74,0.16), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(169,216,203,0.16), transparent 45%),
        var(--soft-pink);
}
/* Layered wave lines drifting across the soft pink */
.testimonial::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60' viewBox='0 0 200 60'%3E%3Cpath d='M0 30 Q 25 12, 50 30 T 100 30 T 150 30 T 200 30' fill='none' stroke='%23e0785f' stroke-width='1.2' opacity='0.22'/%3E%3Cpath d='M0 45 Q 25 27, 50 45 T 100 45 T 150 45 T 200 45' fill='none' stroke='%23db9d4a' stroke-width='1' opacity='0.18'/%3E%3C/svg%3E");
    background-size: 200px 60px;
    opacity: 0.8;
    pointer-events: none;
}
.testimonial-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.quote-mark { font-family: var(--serif); font-size: 8rem; color: var(--pink); line-height: 0.5; margin-bottom: 16px; }
.testimonial blockquote {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.35;
    font-style: italic;
    color: var(--ink);
    margin-bottom: 40px;
    transition: opacity 0.5s var(--ease);
}
.quote-author { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 30px; }
.author-avatar {
    width: 52px; height: 52px;
    background: var(--pink);
    color: var(--cream);
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
}
.quote-author > div { text-align: left; }
.author-name { display: block; font-weight: 500; letter-spacing: 0.02em; }
.stars { color: var(--gold); letter-spacing: 0.15em; font-size: 1.1rem; }
.quote-dots { display: flex; justify-content: center; gap: 10px; }
.q-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(51,39,46,0.25);
    transition: all 0.3s var(--ease);
}
.q-dot.active { background: var(--pink); width: 30px; border-radius: 100px; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--cream); padding: 100px 0 36px; }
.footer-top { text-align: center; margin-bottom: 80px; }
.footer-big {
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--pink), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: rgba(255,255,255,0.7); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-brand { display: flex; align-items: flex-start; }
.socials { display: flex; gap: 24px; }
.socials a {
    font-size: 14px;
    color: var(--cream);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 3px;
    transition: all 0.3s var(--ease);
}
.socials a:hover { color: var(--pink); border-color: var(--pink); }
.footer-col h4 {
    font-family: var(--sans);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
}
.footer-col ul li { margin-bottom: 14px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.7); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
    display: flex; justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ============ CART DRAWER ============ */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(43, 31, 38, 0.5);
    backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: all 0.4s var(--ease);
    z-index: 200;
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 440px; max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 201;
}
.cart-drawer.active { transform: translateX(0); box-shadow: var(--shadow-lg); }
.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(51,39,46,0.1);
}
.cart-header h3 { font-size: 1.7rem; }
.cart-count-big { font-family: var(--sans); font-size: 1rem; color: var(--pink); font-weight: 400; }
.cart-close {
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--ink);
    transition: background 0.3s var(--ease);
}
.cart-close:hover { background: var(--soft-pink); }
.cart-body { flex: 1; overflow-y: auto; padding: 24px 32px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 80px 0; font-family: var(--serif); font-size: 1.4rem; }
.cart-empty span { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; margin-top: 8px; opacity: 0.7; }
.cart-footer { padding: 26px 32px; border-top: 1px solid rgba(51,39,46,0.1); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 20px; }
.cart-total span:last-child { font-weight: 700; }
.cart-shipping { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 14px; }

.cart-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(51,39,46,0.08); }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-info h4 { font-family: var(--sans); font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.ci-price { color: var(--pink); font-size: 13px; }
.cart-item-remove { font-size: 12px; color: var(--ink-soft); margin-top: auto; align-self: flex-start; text-decoration: underline; }
.cart-item-remove:hover { color: var(--pink); }

/* ---------- cart qty steppers (shared: landing drawer + order page) ---------- */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1.5px solid rgba(51, 39, 46, 0.18);
    border-radius: 100px;
    padding: 3px;
    margin: 6px 0;
}
.qty-stepper button {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--cream);
    color: var(--ink);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.qty-stepper button:hover { background: var(--pink); color: var(--cream); }
.qty-stepper .q-val {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* ============ BACK TO TOP ============ */
.to-top {
    position: fixed;
    right: 28px; bottom: 28px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    display: grid; place-items: center;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.4s var(--ease);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--pink); }
.to-top svg { width: 20px; height: 20px; position: relative; z-index: 1; }
/* Little tide pool rising inside the button */
.to-top-wave {
    position: absolute;
    left: -50%; bottom: -70%;
    width: 200%; height: 200%;
    background: var(--pink);
    border-radius: 38%;
    animation: toTopSpin 7s linear infinite;
    opacity: 0.85;
}
@keyframes toTopSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.to-top:hover .to-top-wave { background: var(--gold); }

/* ============ CART ITEM POP ============ */
@keyframes cartPop {
    0%   { opacity: 0; transform: translateY(14px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cart-item { animation: cartPop 0.45s var(--ease) both; }

/* Flying product image on quick-add */
.fly-img {
    position: fixed;
    z-index: 300;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

/* Marquees lean into the speed on hover */
.ticker:hover .ticker-track { animation-duration: 14s; }
.ticker-track, .hm-track { will-change: transform; }

/* ============ WAVE DIVIDERS ============ */
/* Animated SVG wave transitions between sections (replaces flat color jumps) */
.wave-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}
.wave-divider svg { display: block; width: 100%; height: 80px; }
.wave-divider svg path { transform-origin: center; }
/* Gentle horizontal drift so the water feels alive */
.wave-divider svg .wave-layer-2 { animation: waveDrift 9s ease-in-out infinite alternate; }
.wave-divider svg .wave-layer-3 { animation: waveDrift 12s ease-in-out infinite alternate-reverse; }
@keyframes waveDrift {
    from { transform: translateX(-18px); }
    to { transform: translateX(18px); }
}

/* ============ GALLERY ENHANCEMENT (Social proof) ============ */
.gallery-social {
    text-align: center;
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid rgba(51,39,46,0.1);
}
.gallery-social h3 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 10px;
}
.gallery-social h3 em { color: var(--pink); }
.gallery-social .handle {
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--gold-deep);
    text-transform: uppercase;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-up.d1 { transition-delay: 0.1s; }
.reveal-up.d2 { transition-delay: 0.2s; }
.reveal-up.d3 { transition-delay: 0.3s; }
.reveal-up.d4 { transition-delay: 0.4s; }
.reveal-up.d5 { transition-delay: 0.5s; }
.reveal-up.d6 { transition-delay: 0.6s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    :root { --nav-h: 132px; }
    .logo-img { width: 112px; height: 112px; }
    .nav-link { padding: 10px 12px; }
    .hero-content { grid-template-columns: 1fr; gap: 60px; }
    .hero-right { max-width: 460px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid { grid-template-columns: 1fr; gap: 80px; }
    .story-text { padding: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .section { padding: 80px 0; }
    .section-head.split { grid-template-columns: 1fr; gap: 24px; }

    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        width: 85%; max-width: 360px;
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 40px;
        overflow-y: auto;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.45s var(--ease), visibility 0s;
    }
    .nav-menu .nav-link { font-size: 2rem; font-family: var(--serif); }
    .nav-menu .nav-link span { font-size: 14px; }
    .nav-toggle { display: flex; z-index: 100; }
    :root { --nav-h: 112px; }
    .logo-img { width: 96px; height: 96px; }

    .hero { min-height: auto; padding: 90px 0 50px; }
    .hero-content { padding-top: 40px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
    .stat strong { font-size: 1.7rem; }
    .hero-marquee { display: none; }

    .ritual-steps { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gallery-wide { grid-column: span 2; }
    .gallery-tall { grid-row: span 1; }

    .story-grid { gap: 60px; }
    .story-img-inset { width: 38%; bottom: -25px; right: -15px; border-width: 6px; }
    .story-sticker { width: 100px; height: 100px; top: -25px; left: -25px; }
    .story-feats { gap: 20px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .cart-drawer { width: 100%; }
}

@media (max-width: 480px) {
    :root { --nav-h: 96px; }
    .logo-img { width: 80px; height: 80px; }
    .product-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2.8rem, 13vw, 3.5rem); }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-wide, .gallery-tall { grid-column: span 1; grid-row: span 1; }
    .statement-word { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-up { opacity: 1; transform: none; }
    /* Hold waves still for reduced-motion users */
    .wave-divider svg .wave-layer-2,
    .wave-divider svg .wave-layer-3 { animation: none; }
    .hero-surfboard, .hero-sun { animation: none; }
    .hero-glare, .ritual-glare, .grain,
    .hero-waves path, .gulls, .to-top-wave,
    .btn-shine::before { animation: none; }
    .grain { display: none; }
    .hero-particles { display: none; }
    .ritual-step { opacity: 1; transform: none; }
    .to-top { transform: none; }
}

/* Wave dividers scale down on mobile */
@media (max-width: 768px) {
    .wave-divider svg { height: 50px; }
    .hero-surfboard { width: 130px; right: -10px; }
    .hero-sun { width: 90px; height: 90px; }
    .statement::before { background-attachment: scroll; }
    .hero-waves { height: 70px; }
    .hero-stats { margin-top: 100px; }
    .gull { width: 30px; }
    .to-top { right: 18px; bottom: 18px; }
}
@media (max-width: 480px) {
    .hero-surfboard { display: none; }
    .gulls { display: none; }
}

/* ============ TOUCH / COARSE POINTERS ============ */
/* No hover on touch — keep add-to-bag buttons visible instead of hover-reveal */
@media (hover: none) {
    .quick-add { transform: translateY(0); }
}
/* iOS auto-zooms inputs smaller than 16px — keep form text readable */
@media (pointer: coarse) {
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="number"], input[type="password"], input:not([type]),
    textarea, select { font-size: 16px !important; }
}

/* ============ LARGE SCREENS ============ */
@media (min-width: 1800px) {
    :root { --container: 1520px; }
    :root { --nav-h: 164px; }
    .logo-img { width: 144px; height: 144px; }
    .section { padding: 160px 0; }
    .product-grid { gap: 34px; }
    .gallery-grid { gap: 22px; }
}
