/* ============================================================
   M.C. Ice — Italian Ice Catering
   Playful, vibrant brand system inspired by tie-dye + rainbow ice
   ============================================================ */

:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  /* Brand palette */
  --brand-blue: #1a63c4;        /* truck blue */
  --brand-blue-dark: #124a96;
  --brand-red: #e8322f;         /* watermelon / cherry */
  --brand-orange: #ff8a1e;      /* mango */
  --brand-yellow: #ffd21e;      /* lemon */
  --brand-green: #4fc73a;       /* green apple */
  --brand-pink: #ff4fa3;        /* berry */
  --brand-purple: #8a4fe0;      /* grape */
  --brand-teal: #16c0c0;

  /* Surfaces */
  --color-bg: #fffdf7;
  --color-surface: #ffffff;
  --color-surface-2: #fff6ef;
  --color-cream: #fff4dc;
  --color-text: #241a12;
  --color-text-muted: #6b5f54;
  --color-text-faint: #a89c90;
  --color-text-inverse: #fffdf7;
  --color-border: #f0e4d4;
  --color-divider: #f4ebde;

  /* Rainbow gradient (signature) */
  --rainbow: linear-gradient(90deg,
    var(--brand-red) 0%, var(--brand-orange) 20%, var(--brand-yellow) 38%,
    var(--brand-green) 56%, var(--brand-teal) 72%, var(--brand-blue) 86%, var(--brand-purple) 100%);
  --rainbow-soft: linear-gradient(120deg, #ffe6ef, #fff3d9, #e6ffe0, #e0f7ff, #efe6ff);

  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(36, 26, 18, 0.08);
  --shadow-md: 0 8px 24px rgba(36, 26, 18, 0.12);
  --shadow-lg: 0 20px 48px rgba(36, 26, 18, 0.18);
  --shadow-blue: 0 12px 30px rgba(26, 99, 196, 0.28);

  --content-wide: 1200px;
  --content-default: 960px;
  --content-narrow: 680px;

  --font-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }

::selection { background: rgba(26, 99, 196, 0.2); }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-blue); margin-bottom: var(--space-3);
}
.section-title { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.section-intro { color: var(--color-text-muted); font-size: var(--text-lg); max-width: 60ch; }
.text-center { text-align: center; }
.center-x { margin-inline: auto; }

/* Rainbow divider bar */
.rainbow-bar { height: 8px; width: 100%; background: var(--rainbow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-base);
  padding: var(--space-4) var(--space-8); border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); background: var(--brand-blue-dark); }
.btn-accent { background: var(--brand-red); color: #fff; box-shadow: 0 12px 30px rgba(232, 50, 47, 0.32); }
.btn-accent:hover { transform: translateY(-2px) scale(1.02); background: #cf2320; }
.btn-ghost { background: #fff; color: var(--brand-blue); border: 2.5px solid var(--brand-blue); }
.btn-ghost:hover { background: var(--brand-blue); color: #fff; transform: translateY(-2px); }
.btn-lg { font-size: var(--text-lg); padding: var(--space-5) var(--space-10); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 247, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-3); }
.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 800; }
.brand img { height: 48px; width: auto; }
.brand .brand-name { font-size: var(--text-lg); line-height: 1; }
.brand .brand-name small { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--brand-blue); letter-spacing: 0.05em; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a.nav-link { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--color-text); transition: color var(--transition); }
.nav a.nav-link:hover { color: var(--brand-blue); }
.nav a.nav-loc { color: var(--brand-blue); border: 2px solid var(--brand-blue); border-radius: var(--radius-full); padding: var(--space-1) var(--space-3); }
.nav a.nav-loc:hover { background: var(--brand-blue); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: var(--space-4); box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform var(--transition); }
  .nav.open { transform: translateY(0); }
  .nav a.nav-link { padding: var(--space-3); width: 100%; text-align: center; font-size: var(--text-base); }
  .nav .btn { width: 100%; margin-top: var(--space-2); }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: var(--space-2); }
  .nav-toggle span { width: 26px; height: 3px; background: var(--color-text); border-radius: 3px; transition: var(--transition); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--rainbow-soft); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,210,30,0.25), transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(26,99,196,0.18), transparent 45%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-10);
  align-items: center; padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.hero-title { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.hero-title .grad { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 46ch; margin-bottom: var(--space-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: #fff; border: 2px solid var(--color-border); border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-art { position: relative; min-height: 520px; display: flex; align-items: flex-end; justify-content: center; }
/* NOTE (iOS Safari): drop-shadow filters re-rasterize every frame when the
   element is also transform-animated, which caused visible jitter on iPhone.
   Fix: move the shadow onto a NON-animated wrapper (.hero-figure) and let the
   inner <img> animate transform-only. No will-change on filtered elements. */
.hero-art .hero-trailer {
  position: absolute; left: 50%; bottom: 6%;
  width: 128%; max-width: none; z-index: 0;
  animation: trailer-drift 9s ease-in-out infinite;
  pointer-events: none;
  transform: translate3d(-50%,0,0); -webkit-transform: translate3d(-50%,0,0);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.hero-art .hero-bear {
  position: relative; z-index: 2;
  width: auto; max-width: 100%; max-height: 560px;
  animation: bear-bob 6s ease-in-out infinite;
  transform: translateZ(0); -webkit-transform: translateZ(0);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.hero-art .hero-cup {
  position: absolute; left: 2%; bottom: 3%;
  width: 43%; max-width: 214px; z-index: 3;
  animation: float 6s ease-in-out infinite;
  transform: translateZ(0); -webkit-transform: translateZ(0);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
@keyframes trailer-drift { 0%,100% { -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0);} 50% { -webkit-transform: translate3d(-50%,-6px,0); transform: translate3d(-50%,-6px,0);} }
@keyframes float { 0%,100% { -webkit-transform: translate3d(0,0,0) rotate(-2deg); transform: translate3d(0,0,0) rotate(-2deg);} 50% { -webkit-transform: translate3d(0,-14px,0) rotate(2deg); transform: translate3d(0,-14px,0) rotate(2deg);} }
@keyframes bear-bob { 0%,100% { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0);} 50% { -webkit-transform: translate3d(0,-8px,0); transform: translate3d(0,-8px,0);} }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-8); }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-art { order: -1; min-height: 420px; }
  .hero-art .hero-bear { max-height: 400px; }
  .hero-art .hero-cup { max-width: 148px; left: 6%; }
  .hero-art .hero-trailer { width: 118%; bottom: 8%; }
  /* iOS Safari stutters on continuous transform loops during scroll momentum.
     On phones/tablets we hold the logos still and make the banner fully static
     (desktop keeps the smooth float + scrolling banner). */
  .hero-art .hero-trailer,
  .hero-art .hero-bear,
  .hero-art .hero-cup { animation: none !important; }
  /* Static banner on mobile: no animation, centered wrapping row, and only the
     first half of the (duplicated) chips is shown so nothing repeats. */
  .strip { transform: none; -webkit-transform: none; }
  .strip .strip-track {
    animation: none !important;
    -webkit-transform: none !important; transform: none !important;
    width: auto; flex-wrap: wrap; justify-content: center;
    row-gap: var(--space-2); white-space: normal;
    padding-inline: var(--space-4);
  }
  .strip .strip-track span.chip:nth-child(n+7) { display: none; }
  .strip .strip-track span.chip { padding-right: var(--space-6); }
}
@media (max-width: 420px) {
  .hero-art { min-height: 340px; }
  .hero-art .hero-bear { max-height: 320px; }
  .hero-art .hero-cup { max-width: 116px; left: 2%; }
  .hero-art .hero-trailer { width: 132%; bottom: 12%; }
}

/* Location eyebrow pill (Fort Myers hero) */
.loc-tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: #fff; border: 2px solid var(--brand-blue); color: var(--brand-blue);
  border-radius: var(--radius-full); padding: var(--space-1) var(--space-4);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm);
  letter-spacing: 0.02em; margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

/* Photo hero (Fort Myers tent) */
.hero-art-photo { align-items: center; min-height: auto; }
.hero-art .hero-photo {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  aspect-ratio: 4 / 3; object-fit: cover;
  border: 4px solid #fff; border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(36,26,18,0.22);
  animation: none;
}
@media (max-width: 860px) {
  .hero-art-photo { order: -1; min-height: auto; }
  .hero-art .hero-photo { max-width: 480px; }
}
@media (max-width: 420px) {
  .hero-art .hero-photo { border-width: 3px; }
}

/* ---------- Marquee strip ---------- */
/* iOS-stable marquee. The parent .strip is promoted to its OWN compositor layer
   (translateZ(0) + isolation) so the animated child never fights the page's
   scroll layer while the Safari address bar collapses — that fight was the
   remaining stutter. The track holds TWO identical halves; each item carries its
   own trailing space so the -50% loop seam is pixel-perfect. NO will-change:
   on iOS it makes Safari over-manage long-running loops and stutter; a static
   translateZ(0) layer is smoother. */
.strip {
  background: var(--brand-blue); color: #fff; padding-block: var(--space-4);
  overflow: hidden;
  transform: translateZ(0); -webkit-transform: translateZ(0);
  isolation: isolate;
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
}
.strip-track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg);
  animation: scroll-x 40s linear infinite;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: translate3d(0,0,0); -webkit-transform: translate3d(0,0,0);
  -webkit-font-smoothing: antialiased;
}
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span.chip { display: inline-flex; align-items: center; gap: var(--space-4); padding-right: var(--space-10); }
.strip-track .star { color: var(--brand-yellow); }
@keyframes scroll-x { from { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); } to { -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0); } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-10); }
.step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; box-shadow: var(--shadow-sm); }
.step .step-num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rainbow); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); margin-bottom: var(--space-4); box-shadow: var(--shadow-md); }
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { color: var(--color-text-muted); font-size: var(--text-base); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Flavors ---------- */
.flavors { background: var(--color-surface-2); }
.flavor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-10); }
.flavor-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4) var(--space-6); text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.flavor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.flavor-card .img-wrap { height: 200px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: var(--space-3); }
.flavor-card img { max-height: 200px; width: auto; filter: drop-shadow(0 12px 18px rgba(36,26,18,0.18)); }
.flavor-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.flavor-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.flavor-note { margin-top: var(--space-8); text-align: center; color: var(--color-text-muted); font-size: var(--text-base); }
@media (max-width: 980px) { .flavor-grid { grid-template-columns: repeat(2, 1fr); } }
/* Mobile: horizontal swipe carousel for "A rainbow of flavors" */
@media (max-width: 640px) {
  .flavor-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-4);
    padding: var(--space-2) var(--space-4) var(--space-4);
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    scroll-padding-left: var(--space-4);
  }
  .flavor-grid::-webkit-scrollbar { height: 6px; }
  .flavor-grid::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
  .flavor-card {
    flex: 0 0 72%;
    max-width: 72%;
    scroll-snap-align: center;
  }
  .flavor-card .img-wrap { height: 220px; }
  .flavor-card img { max-height: 220px; }
}

/* ---------- About / owner ---------- */
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-12); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; }
.about-photo::after { content: ""; position: absolute; inset: auto -16px -16px auto; width: 120px; height: 120px; background: var(--rainbow); border-radius: var(--radius-xl); z-index: -1; }
.about h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.about p { color: var(--color-text-muted); font-size: var(--text-lg); margin-bottom: var(--space-4); }
.about .stats { display: flex; gap: var(--space-8); margin-top: var(--space-6); flex-wrap: wrap; }
.about .stat b { display: block; font-family: var(--font-display); font-size: var(--text-2xl); color: var(--brand-blue); line-height: 1; }
.about .stat span { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; } .about-photo { max-width: 460px; margin-inline: auto; } }

/* ---------- Catering / Order form ---------- */
.order { background: var(--rainbow-soft); position: relative; }
.order-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-12); align-items: start; }
.order-info h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.order-info p { color: var(--color-text-muted); font-size: var(--text-lg); margin-bottom: var(--space-6); }
.pkg-list { display: grid; gap: var(--space-4); }
.pkg {
  background: #fff; border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-5); display: flex; gap: var(--space-4); align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.pkg .pkg-price { font-family: var(--font-display); font-weight: 800; color: var(--brand-blue); font-size: var(--text-lg); white-space: nowrap; }
.pkg h4 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.pkg p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

.form-card {
  background: var(--color-surface); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
}
.form-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.form-card .form-sub { color: var(--color-text-muted); font-size: var(--text-base); margin-bottom: var(--space-6); }
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.field .req { color: var(--brand-red); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--color-surface-2); border: 2px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(26,99,196,0.12); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.pkg-select { display: grid; gap: var(--space-3); }
.pkg-option { display: flex; align-items: center; gap: var(--space-3); background: var(--color-surface-2); border: 2px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); cursor: pointer; transition: var(--transition); }
.pkg-option:hover { border-color: var(--brand-blue); }
.pkg-option input { width: auto; accent-color: var(--brand-blue); }
.pkg-option .po-body { flex: 1; }
.pkg-option .po-body b { font-family: var(--font-display); font-size: var(--text-base); }
.pkg-option .po-body small { display: block; color: var(--color-text-muted); font-size: var(--text-sm); }
.pkg-option .po-price { font-family: var(--font-display); font-weight: 800; color: var(--brand-blue); white-space: nowrap; }
.pkg-option.selected { border-color: var(--brand-blue); background: rgba(26,99,196,0.06); }

.deposit-box { background: var(--color-cream); border: 2px dashed var(--brand-orange); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); margin-block: var(--space-5); }
.deposit-box .dep-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); }
.deposit-box .dep-row b { font-size: var(--text-lg); color: var(--brand-blue); }
.deposit-box small { color: var(--color-text-muted); display: block; margin-top: var(--space-1); }

.form-note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); text-align: center; }
.secure-row { display: inline-flex; align-items: center; gap: var(--space-2); justify-content: center; margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); width: 100%; }

@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }
/* Cups tab: always stack delivery details UNDER the flavor builder (single column) */
#panel-cups .order-grid { grid-template-columns: 1fr; gap: var(--space-8); }

/* ---------- Order tabs ---------- */
.order-tabs {
  display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap;
  margin: var(--space-10) auto var(--space-8); max-width: 620px;
}
.order-tab {
  flex: 1 1 240px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-base);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-full);
  background: #fff; color: var(--brand-blue); border: 2.5px solid var(--color-border);
  box-shadow: var(--shadow-sm); transition: var(--transition); white-space: nowrap;
}
.order-tab:hover { border-color: var(--brand-blue); transform: translateY(-2px); }
.order-tab.active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); box-shadow: var(--shadow-blue); }
.order-panel[hidden] { display: none; }

/* ---------- Cup size selector ---------- */
.size-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.size-option {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--color-surface-2); border: 2px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-2); cursor: pointer; text-align: center;
  transition: var(--transition);
}
.size-option:hover { border-color: var(--brand-blue); transform: translateY(-2px); }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option .so-scoops { font-family: var(--font-display); font-weight: 800; font-size: var(--text-base); line-height: 1.1; }
.size-option .so-price { font-family: var(--font-display); font-weight: 800; color: var(--brand-blue); font-size: var(--text-lg); }
.size-option.selected { border-color: var(--brand-blue); background: rgba(26,99,196,0.08); box-shadow: 0 0 0 3px rgba(26,99,196,0.12); }
.size-option.selected .so-scoops { color: var(--brand-blue); }
@media (max-width: 420px) { .size-select { gap: var(--space-2); } .size-option { padding: var(--space-3) 2px; } .size-option .so-scoops { font-size: var(--text-sm); } .size-option .so-price { font-size: var(--text-base); } }

.cup-builder-label { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); margin: var(--space-5) 0 var(--space-3); }
.inline-link { color: var(--brand-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--brand-blue-dark); }

/* ---------- Cup builder ---------- */
.cup-builder { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-bottom: var(--space-2); }
@media (max-width: 520px) { .cup-builder { grid-template-columns: 1fr; } }
.cup-row {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--color-surface-2); border: 2px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition), background var(--transition);
}
.cup-row.has-qty { border-color: var(--brand-blue); background: rgba(26,99,196,0.05); }
.cup-row .cup-thumb {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: var(--color-cream); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cup-row .cup-thumb img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(36,26,18,0.18)); }
.cup-row .cup-name { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); line-height: 1.2; }
.cup-stepper { display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.cup-stepper button {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1;
  background: #fff; color: var(--brand-blue); border: 2px solid var(--brand-blue);
  transition: var(--transition);
}
.cup-stepper button:hover { background: var(--brand-blue); color: #fff; }
.cup-stepper button:disabled { opacity: 0.4; cursor: not-allowed; border-color: var(--color-border); color: var(--color-text-faint); background: #fff; }
.cup-stepper input.cup-qty {
  width: 52px; min-width: 52px; text-align: center; font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-lg); color: var(--color-text);
  border: 2px solid var(--color-border); border-radius: 0.5rem;
  padding: var(--space-1) 2px; background: #fff; -moz-appearance: textfield;
}
.cup-stepper input.cup-qty::-webkit-outer-spin-button,
.cup-stepper input.cup-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cup-stepper input.cup-qty:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(26,99,196,0.12); }
.cup-row.has-qty .cup-stepper input.cup-qty { border-color: var(--brand-blue); color: var(--brand-blue); }
/* Minimum-order note in the deposit box */
.cup-min-note { font-family: var(--font-body); font-weight: 700; color: var(--color-text-muted); }
.cup-min-note.below-min { color: var(--brand-red); }
/* 6-flavor limit note above the cup builder */
.flavor-limit-note {
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  color: var(--color-text-muted); background: var(--color-surface-2);
  border: 1px dashed var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3); margin: 0 0 var(--space-3);
}
.flavor-limit-note.at-max { color: var(--brand-red); border-color: var(--brand-red); background: rgba(232,50,47,0.06); }
/* Greyed-out flavor rows once the 6-flavor limit is reached */
.cup-row.flavor-locked { opacity: 0.42; filter: grayscale(0.85); pointer-events: none; }
.cup-row.flavor-locked .cup-thumb img { filter: grayscale(1); }
@media (max-width: 460px) {
  .cup-row { gap: var(--space-3); padding: var(--space-3); }
  .cup-row .cup-thumb { width: 44px; height: 44px; }
  .cup-row .cup-thumb img { width: 36px; height: 36px; }
  .cup-stepper button { width: 34px; height: 34px; }
}

/* Field hint + inline validation */
.field-hint { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-2); }
.field-hint.error { color: var(--brand-red); font-weight: 700; }
.field input.invalid, .field textarea.invalid { border-color: var(--brand-red); box-shadow: 0 0 0 4px rgba(232,50,47,0.12); }

/* ---------- Contact / Footer ---------- */
.contact { background: var(--brand-blue); color: #fff; }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.contact h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.contact p { font-size: var(--text-lg); opacity: 0.92; margin-bottom: var(--space-6); }
.contact-list { display: grid; gap: var(--space-4); }
.contact-item { display: flex; align-items: center; gap: var(--space-4); font-size: var(--text-lg); font-family: var(--font-display); font-weight: 700; }
.contact-item .ci-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-cta { text-align: center; }
.contact-cta img { max-width: 240px; margin: 0 auto var(--space-4); filter: drop-shadow(0 16px 24px rgba(0,0,0,0.25)); }
@media (max-width: 760px) { .contact .container { grid-template-columns: 1fr; text-align: center; } .contact-item { justify-content: center; } }

.footer { background: #12100c; color: #cfc6ba; padding-block: var(--space-10); text-align: center; }
.footer .brand { justify-content: center; margin-bottom: var(--space-4); color: #fff; }
.footer-links { display: flex; gap: var(--space-6); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-4); }
.footer-links a { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); transition: color var(--transition); }
.footer-links a:hover { color: var(--brand-yellow); }
.footer small { color: var(--color-text-faint); font-size: var(--text-xs); }

/* ---------- Modal (order confirm) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(18,16,12,0.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: var(--space-4); }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10)); max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); text-align: center; }
.modal h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.modal p { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.modal .summary { background: var(--color-surface-2); border-radius: var(--radius-md); padding: var(--space-4); text-align: left; margin-bottom: var(--space-6); font-size: var(--text-sm); }
.modal .summary div { display: flex; justify-content: space-between; padding-block: var(--space-1); }
.modal .summary div b { font-family: var(--font-display); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ VIDEOS PAGE ============ */
.videos-hero {
  background: var(--rainbow-soft);
  padding-block: clamp(var(--space-16), 8vw, var(--space-20)) var(--space-10);
  text-align: center;
}
.videos-hero .eyebrow { justify-content: center; }
.videos-hero h1 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.videos-hero p { color: var(--color-text-muted); font-size: var(--text-lg); max-width: 60ch; margin-inline: auto; }
.video-status { display: inline-block; margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 700; color: var(--brand-blue); background: #fff; padding: 0.35rem 0.9rem; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }

.video-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 900px) { .video-layout { grid-template-columns: 1fr; } }

.featured-wrap { position: sticky; top: 90px; }
@media (max-width: 900px) { .featured-wrap { position: static; } }
.featured-player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.featured-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.featured-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-top: var(--space-4); color: var(--color-text); }

.video-list { display: flex; flex-direction: column; gap: var(--space-3); max-height: 70vh; overflow-y: auto; padding-right: var(--space-2); }
@media (max-width: 900px) { .video-list { max-height: none; } }
.video-list::-webkit-scrollbar { width: 8px; }
.video-list::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }

.vid-item { display: flex; gap: var(--space-3); align-items: center; text-align: left; background: var(--color-surface); border: 2px solid transparent; border-radius: var(--radius-md); padding: var(--space-2); cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; font: inherit; width: 100%; }
.vid-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--color-border); }
.vid-item.active { border-color: var(--brand-blue); box-shadow: var(--shadow-blue); }
.vid-thumb { position: relative; flex: 0 0 128px; width: 128px; aspect-ratio: 16 / 9; border-radius: 0.55rem; overflow: hidden; background: #000; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .2s ease; }
.vid-item:hover .vid-play, .vid-item.active .vid-play { opacity: 1; }
.vid-meta { flex: 1; min-width: 0; }
.vid-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.videos-cta { text-align: center; margin-top: var(--space-12); }
