/* styles.css */
/* =========================================================
CORE THEME TOKENS (defaults)
========================================================= */
:root {
  /* Core colors (dark default; overridden by theme class) */
  --bg: #0b1020;
  --surface: rgba(12, 16, 35, 0.7);
  --text: #eef2ff;
  --muted: #b7c0e3;

  /* Brand (overridden by theme) */
  --primary: #3ddc97;
  --primary-contrast: #062b1b;
  --accent: #ff6b6b;
  --accent-contrast: #3a061f;

  /* Surfaces and dividers */
  --surface-light: #ffffff;
  --surface-contrast: #f6f8ff;
  --divider: rgba(16, 20, 36, 0.12);

  /* Extra tones (optional) */
  --tone-1: #f7fffb;
  --tone-2: #fff1f5;
  --chip: #f5f8ff;

  /* Shadows */
  --shadow-lg: 0 12px 34px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 24px rgba(0,0,0,0.25);
  --radius: 14px;

  /* Theme gradients */
  --g-birthday: linear-gradient(160deg, #ff85a1, #ff3b7f 60%, #b5179e);
  --g-princess: linear-gradient(160deg, #ffb3d9, #ff70a6 60%, #d63384);
  --g-superhero: linear-gradient(160deg, #64dfdf, #48bfe3 60%, #4361ee);
  --g-tropical: linear-gradient(160deg, #38b000, #70e000 60%, #ffd166);

  /* Pastel backgrounds */
  --pastel-1: #fff5f9;
  --pastel-2: #f7fff5;
  --pastel-3: #f5f8ff;

  /* Top/bottom nav tokens */
  --tb-top-nav-h: 56px;         /* mobile height */
  --tb-white: #ffffcc;
  --tb-text: #1f2937;
  --tb-muted: #6b7280;
  --tb-border: #e5e7eb;
  --tb-pastel-purple: #efe3ff;
  --tb-purple-ink: #5b3aa7;
  --tb-purple-ink-2: #6a45bf;

  /* Page gutter for full-bleed alignment */
  --page-gutter: clamp(16px, 4vw, 24px);
}

/* =========================================================
THEME: Mint Carnival
========================================================= */
.theme--mint-carnival {
  --bg: #f7fffb;
  --surface: #ffffff;
  --text: #0f2630;
  --muted: #48606a;

  --primary: #3ddc97;
  --primary-contrast: #062b1b;
  --accent: #ff6b6b;
  --accent-contrast: #3a0606;

  --nav: #ffffff;
  --footer: #ffffff;

  --divider: #e7f3ee;

  --tone-1: #effff7;
  --tone-2: #fff1f1;
  --chip: #effff7;

  --pastel-1: var(--tone-1);
  --pastel-3: var(--tone-2);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus { top: 8px; }

/* =========================================================
BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  user-select: none;
  will-change: transform;
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 8px 18px rgba(61, 220, 151, 0.3);
}
.btn-primary:hover {
  filter: brightness(0.96);
  box-shadow: 0 10px 22px rgba(61, 220, 151, 0.36);
}
.btn-primary:active { filter: brightness(0.93); }

.btn-secondary {
  background: var(--primary-contrast);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(6, 43, 27, 0.28);
}
.btn-secondary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(6, 43, 27, 0.36);
}
.btn-secondary:active { filter: brightness(1.08); }

.btn-link {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 6px 2px;
  border-radius: 8px;
}
.btn-link:hover { color: var(--accent); text-decoration: underline; }

/* =========================================================
TOP NAV + BOTTOM NAV
========================================================= */
.site-header { position: relative; z-index: 10; }

/* Fixed top nav */
.top-nav1 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  height: var(--tb-top-nav-h);
  background: var(--tb-white);
  border-bottom: 1px solid var(--tb-border);
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  overflow: visible;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* Transparent navs when at top: hero shows through both bars */
body.at-top .top-nav1 {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.at-top .bottom-nav2 {
  background: transparent;
  border-bottom-color: transparent;
}

/* Left cluster */
.top-nav1__left {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

/* Right cluster */
.top-nav1__right {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.logo { display: inline-flex; gap: 10px; align-items: center; color: var(--tb-text); text-decoration: none; font-weight: 800; min-width: 0; }
.logo-img { height: clamp(20px, 6vh, 28px); width: auto; display: block; max-width: 50vw; }

.hamburger {
  display: inline-grid; grid-template-rows: repeat(3, 3px); gap: 4px;
  width: 36px; height: 28px; align-content: center;
  flex: 0 0 auto;
  border: 0; background: transparent; padding: 0; cursor: pointer;
}
.hamburger__bar { background: var(--tb-text); height: 3px; border-radius: 2px; transition: transform 150ms ease, opacity 150ms ease; }

.tel-link--top {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--tb-text); font-weight: 600; font-size: clamp(14px, 1.4vw, 16px);
  min-width: 36px; min-height: 36px; padding: 6px;
  flex: 0 0 auto;
  text-decoration: none;
}
.tel-link__text { display: none; }
.tb-icon--phone { width: 22px; height: 22px; color: var(--tb-text); }

/* Bottom nav */
.bottom-nav2 {
  position: relative;
  z-index: 0;
  background: var(--tb-pastel-purple);
  border-bottom: 1px solid #e6d7ff;
  margin-top: var(--tb-top-nav-h);
}
.bottom-nav2__row {
  height: 50px;
  display: flex; align-items: center;
  padding-inline: 16px;
}
.bottom-nav2__row--mobile { justify-content: space-between; }
.bottom-nav2__row--desktop { display: none; justify-content: space-between; gap: 20px; }

.site-nav {
  display: flex; align-items: center; gap: 20px;
  list-style: none; padding: 0; margin: 0;
  font-weight: 600; font-size: clamp(14px, 1.6vw, 16px);
}
.site-nav > li > a,
.site-nav > li > button.dropdown__trigger {
  padding: 6px 8px; border-radius: 6px; color: var(--tb-purple-ink); background: transparent; border: 0;
  text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.site-nav > li > a:hover,
.site-nav > li > button.dropdown__trigger:hover {
  background: rgba(91, 58, 167, 0.08);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown__trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  font-weight: 700; font-size: 15px; color: var(--tb-purple-ink);
  background: transparent; border: 0; cursor: pointer;
}
.dropdown__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--tb-white); border: 1px solid var(--tb-border);
  border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 6px; margin: 0; list-style: none; display: none;
  z-index: 5;
}
.dropdown.open .dropdown__menu { display: block; }
.dropdown__menu > li > a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--tb-text); font-size: 14px; text-decoration: none;
}
.dropdown__menu > li > a:hover, .dropdown__menu > li > a:focus { background: #f5f3ff; outline: none; }

/* Desktop right actions */
.actions { display: inline-flex; align-items: center; gap: 12px; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  font-weight: 700; font-size: clamp(13px, 1.3vw, 15px);
  color: #ffffff; background: var(--tb-purple-ink); border: 1px solid var(--tb-purple-ink-2);
  text-decoration: none;
}
.tb-btn:hover { background: var(--tb-purple-ink-2); }
.tb-icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(0,0,0,0.05); background: var(--tb-white);
  cursor: pointer;
}
.tb-icon-btn:hover { background: #f4f4f7; }
.tb-icon { display: inline-block; vertical-align: middle; color: var(--tb-purple-ink); }
.tel-link--plain { font-weight: 700; color: var(--tb-purple-ink); font-size: clamp(14px, 1.6vw, 16px); text-decoration: none; }

/* Mobile off-canvas menu */
.mobile-menu {
  position: fixed;
  top: var(--tb-top-nav-h); left: 0; right: 0; bottom: 0;
  background: var(--tb-white);
  border-top: 1px solid var(--tb-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 16px;
  overflow: auto;
  z-index: 1200;
}
.mobile-menu.open { display: block; }
.mobile-menu[hidden] { display: none !important; }
.body--no-scroll { overflow: hidden; }
.mobile-menu__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-menu__title { font-weight: 800; font-size: 18px; color: var(--tb-text); }
.mobile-menu__nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu__nav > ul > li > a,
.mobile-menu__nav > ul > li > button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 10px; font-weight: 700; border-radius: 8px; color: var(--tb-text);
  background: transparent; border: 0; text-decoration: none; cursor: pointer;
}
.mobile-menu__nav > ul > li > a:hover,
.mobile-menu__nav > ul > li > button:hover { background: #f5f5f8; }

/* Collapsible */
.collapsible__content { padding-left: 8px; margin-top: 6px; margin-bottom: 8px; }
.collapsible__content > li > a { display: block; padding: 10px 10px; border-radius: 8px; color: var(--tb-muted); text-decoration: none; }
.collapsible__content > li > a:hover { background: #f5f5f8; color: var(--text); }

/* Desktop enhancements */
@media (min-width: 1024px) {
  :root { --tb-top-nav-h: 72px; }
  .hamburger { display: none; }
  .tel-link__text { display: inline; }
  .bottom-nav2__row--mobile { display: none; }
  .bottom-nav2__row--desktop { display: flex; }
}

/* iPad family: force desktop nav + desktop hero behavior (device-width to be stable on zoom) */
@media screen and (min-device-width: 768px) and (max-device-width: 1366px) {
  :root { --tb-top-nav-h: 72px; } /* desktop nav height */
  .hamburger { display: none; }
  .tel-link__text { display: inline; }
  .bottom-nav2__row--mobile { display: none !important; }
  .bottom-nav2__row--desktop { display: flex !important; }
  /* Ensure desktop hero fit on iPad (no letterboxing) */
  .brand-hero__img { object-fit: cover; object-position: 50% 60%; }
}

/* Extremely small screens: tighten spacing */
@media (max-width: 572px) {
  .top-nav1 { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .top-nav1__left { gap: 8px; }
  .hamburger { width: 32px; }
  .logo-img { height: 22px; max-width: 42vw; }
  .tel-link--top { min-width: 32px; padding: 6px; }
}
@media (max-width: 360px) {
  .logo-img { height: 20px; max-width: 38vw; }
  .tb-icon--phone { width: 20px; height: 20px; }
}
@media (max-width: 300px) {
  .top-nav1 { padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
  .top-nav1__left { gap: 6px; }
  .hamburger { width: 30px; }
  .logo-img { height: 18px; max-width: 34vw; }
  .tb-icon--phone { width: 20px; height: 20px; }
}

/* =========================================================
BRAND HERO (foreground picture/img background layer)
========================================================= */
.brand-hero {
  position: relative;
  color: var(--text);

  /* Fill viewport, behind the two-tier header */
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: center;

  /* Behind-nav effect: pull up behind fixed navs, then pad content down */
  margin-top: calc(-1 * (var(--tb-top-nav-h) + 50px));
  padding-top: calc(var(--tb-top-nav-h) + 50px);

  padding-bottom: clamp(16px, 5vw, 32px);

  background: transparent;
}

/* Background image layer positioned under content */
.brand-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden; /* clip any overflow of the image */
}

/* The responsive hero image (PNG) */
.brand-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Full-bleed cover with slightly lower focal point (mobile/default) */
  object-fit: cover;
  object-position: 50% 60%;
}

/* Brand hero content: re-ordered so copy sits above buttons on all sizes, centered on mobile */
.brand-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "copy"
    "actions";
  justify-items: center;
  text-align: center;
  gap: 12px;
  min-height: clamp(240px, 28vw, 420px);
  align-content: start;
  grid-auto-rows: min-content;
}
.brand-hero-copy { grid-area: copy; }
.brand-hero-cta-top { grid-area: actions; }
.brand-hero-actions .btn + .btn { margin-left: 10px; }

.brand-hero-title { color: var(--text); margin: 4px 0; }
.brand-hero-subtitle { color: var(--muted); margin: 6px 0 0; }

/* Mobile (<768): constrain hero height to avoid side-cropping; bias vertical focus */
@media (max-width: 767.98px) {
  .brand-hero {
    /* Fallback: cap to 9:16 of viewport width */
    min-height: calc(100vw * 16 / 9);
    /* Preferred: no taller than viewport (svh accounts for mobile UI) or 9:16 height, whichever is smaller */
    min-height: min(100svh, calc(100vw * 16 / 9));
  }
  .brand-hero__img {
    /* Keep cover, but bias downward so any vertical trimming removes more from the top (your safe area) */
    object-position: 50% 70%;
  }
}

/* Optionally increase spacing on desktop for clearer grouping */
@media (min-width: 1024px) {
  .brand-hero-inner {
    gap: 14px;
    align-content: start;
  }
.brand-hero {
    /* Vertically center the hero content block in the hero area */
    align-items: center; /* parent grid vertical alignment */
  }

  .brand-hero-inner {
    /* Move content to the left, keep it vertically centered as a group */
    justify-items: start;   /* left-align grid items */
    text-align: left;       /* left-align text */
    align-content: center;  /* vertically center the copy + cta group */
    gap: 14px;              /* clean spacing between copy and CTA */
  }

  .brand-hero-cta-top {
    /* Make sure the CTA sits left under the copy */
    justify-self: start;
  }

  .brand-hero-actions {
    /* Render buttons neatly to the left with spacing */
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
  }
}


/* Hide old decorative media since we use a full image background */
.brand-hero-media { display: none; }

/* Brand hero desktop (≥768px): right-anchored crop; left-only loss */
@media (min-width: 768px) {
  .brand-hero__img {
    /* Anchor to the right so any horizontal crop trims from the left */
    object-position: 100% 60%;
  }
}
/* =========================================================
BRAND HERO: On <1024px, keep hero behind transparent navs,
but have content start just below the second nav and centered.
(Does not modify any nav styles/colors)
Place after existing BRAND HERO blocks
========================================================= */
@media (max-width: 1023.98px) {
  .brand-hero {
    /* Restore behind-nav effect so hero background shows under transparent navs */
    margin-top: calc(-1 * (var(--tb-top-nav-h) + 50px)); /* 50px = bottom-nav row height */
    padding-top: calc(var(--tb-top-nav-h) + 50px);

    /* Place content at the top edge of the hero area (just below navs) */
    align-items: start;
  }

  .brand-hero-inner {
    /* Center content horizontally and keep it at the top of the hero */
    justify-items: center;
    text-align: center;
    align-content: start;
    gap: 12px;
  }

  .brand-hero-cta-top {
    /* Keep CTA centered under the copy */
    justify-self: center;
  }

  .brand-hero-actions {
    /* Neat centered button row */
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
  }
}
/* =========================================================
BRAND HERO: Move entire CTA content group (copy + buttons) down on <1024px
- Leaves nav styles/colors untouched
- Stepped offsets by breakpoint
Place after existing BRAND HERO media queries
========================================================= */

/* Small phones */
@media (max-width: 479.98px) {
  /* Reset any earlier CTA-only nudge */
  .brand-hero-cta-top { margin-top: 0; }

  /* Move the whole CTA content group (copy + buttons) */
  .brand-hero-inner { margin-top: 110px; }
}

/* Larger phones / small tablets (portrait) */
@media (min-width: 480px) and (max-width: 767.98px) {
  .brand-hero-cta-top { margin-top: 0; }
  .brand-hero-inner { margin-top: 110px; }
}

/* Tablets up to 1023px */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .brand-hero-cta-top { margin-top: 0; }
  .brand-hero-inner { 
    margin-top: 75px; 
    transform: translateX(-40px);
  }
}


/* =========================================================
GENERIC SECTION UTILITIES
========================================================= */
.section { padding-block: clamp(40px, 6vw, 80px); }
.has-divider-bottom { border-bottom: 1px solid var(--divider); }
.section-light {
  background: linear-gradient(180deg, var(--tone-1), var(--tone-2));
  color: var(--text);
}

/* =========================================================
FULL-BLEED CHECKERBOARD SEPARATOR
- Exactly 3 rows
- Slightly larger checks
- Half-square at both left and right edges
========================================================= */
.checkerboard {
  /* Colors and single check size (slightly larger) */
  --pink: #ffffcc;
  --blue: #66ff66;
  --check: clamp(36px, 6.75vw, 72px); /* size of ONE square (slightly increased) */

  /* Full-bleed across the viewport, regardless of site gutters */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* Exactly 3 rows (3 squares tall) */
  height: calc(var(--check) * 3);

  /* Ensure half-squares at both edges using a wider pseudo-element */
  position: relative;
  overflow: hidden;

  padding: 0;
  border: 0;
  line-height: 0;
}

/* Centered, slightly wider tile to guarantee half-squares on both sides */
.checkerboard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: calc(100% + var(--check));  /* half-square bleed on both sides */
  height: 100%;

  /* Checkerboard pattern:
     One repeating tile is 2x2 checks, so size = 2 * --check */
  background:
    conic-gradient(
      from 90deg at 50% 50%,
      var(--pink) 25%,
      var(--blue) 0 50%,
      var(--pink) 0 75%,
      var(--blue) 0
    ) 0 0 / calc(var(--check) * 2) calc(var(--check) * 2);
}

/* =========================================================
PARTY BAND (full-bleed, left-anchored, raised heading + italic subtitle)
========================================================= */
.party-band {
  --party-blue: #ffffcc;

  /* Full-bleed across the viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: var(--party-blue);

  /* Anchor content toward the top (we’ll use padding to position) */
  display: grid;
  align-items: start;

  /* Base height remains similar */
  min-height: clamp(120px, 24vh, 320px);
  padding: 0; /* inner container handles gutters */
}

/* Override global container centering to anchor left inside the party band */
.party-band .container {
  max-width: none; /* remove site-wide max-width constraint */
  width: 100%;     /* span the full band width */
  margin: 0;       /* cancel margin: 0 auto; */

  /* Left/right gutters + raise heading with smaller top padding, keep extra blank space below */
  padding:
    clamp(8px, 2vw, 24px)          /* top (smaller to raise text) */
    clamp(20px, 5vw, 64px)         /* right */
    clamp(72px, 12vh, 180px)       /* bottom (keeps big blank area) */
    clamp(20px, 5vw, 64px);        /* left */
}

.party-band h2 {
  margin: 0 0 clamp(6px, 1.2vh, 14px);  /* small gap above subtitle */
  font-size: clamp(22px, 3.25vw, 40px); /* reasonable scaling */
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111;
  text-align: left;
  text-wrap: balance;
}

.party-band .party-subtitle {
  margin: 0; /* subtitle sits directly under the H2 */
  font-size: clamp(14px, 2.6vw, 18px);
  line-height: 1.3;
  color: #222;
  font-style: italic;
  text-align: left;
}

/* =========================================================
TRUST (mobile full-bleed + slightly smaller mobile cards)
========================================================= */
.trust {
  /* Section variables */
  --trust-page-bg: #f6ebd7; /* used on tablet only */
  --trust-radius: 12px;

  /* Default (non-mobile) gets overridden in media queries */
  background: var(--trust-page-bg);
  padding: 24px 0 28px;
}

.trust-cards {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0;
  scroll-padding-left: 0;
}

/* Hide scrollbar track for cleaner look */
.trust-cards::-webkit-scrollbar { height: 0; }
.trust-cards { scrollbar-width: none; }

.trust-card {
  position: relative;
  padding: 16px 12px 18px;
  text-align: center;
  flex: 0 0 100%; /* overridden to 100vw on mobile */
  scroll-snap-align: start;

  /* Remove outer border and any inner separator */
  border: 0;
  border-radius: var(--trust-radius);
}
.trust-card::before { content: none; }

.trust-card .trust-media img {
  width: 50%;
  height: auto;
  margin: 0 auto;
}

.trust-card .trust-text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* Distinct pastel backgrounds per card */
.trust-cards .trust-card:nth-child(1) {
  background: #ff66b3; /* pastel pink */
}
.trust-cards .trust-card:nth-child(2) {
  background: #0066ff; /* pastel blue */
}
.trust-cards .trust-card:nth-child(3) {
  background: #ffff4d; /* pastel yellow */
}

/* Arrow buttons (show on mobile, hide on larger) */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  line-height: 0;
  border-radius: 999px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.arrow-btn svg {
  width: 34px;
  height: 34px;
  stroke: #ffffff;
  stroke-width: 3.25;
  fill: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}
.arrow-right { right: 6px; }
.arrow-left { left: 6px; }
.arrow-left svg { transform: scaleX(-1); }

/* MOBILE: full-bleed edge-to-edge, one card per viewport, slightly smaller/shorter cards */
@media (max-width: 767px) {
  .trust {
    padding: 0;               /* remove top/bottom separation */
    background: transparent;  /* ensure only cards are visible */
  }

  /* Make the Trust container full-bleed across the viewport,
     canceling any global container gutters */
  .trust > .container {
    max-width: none;
    width: 100vw;
    padding: 0;
    margin: 0 calc(50% - 50vw);
  }

  .trust-cards {
    gap: 0;
    padding: 0;
  }

  /* Each slide exactly the width of the viewport, slightly tighter internals */
  .trust-card {
    flex: 0 0 100vw;
    border-radius: 0;
    padding: 14px 12px; /* reduced from 24px 16px */
  }

  /* Slightly smaller media for a shorter card */
  .trust-card .trust-media img {
    width: clamp(140px, 48vw, 220px); /* was ~60%; now a bit smaller */
  }

  /* Slightly smaller text and tighter spacing */
  .trust-card .trust-text {
    margin-top: 8px;            /* reduced from 12px */
    font-size: 15px;            /* reduced from 16px */
    line-height: 1.45;          /* slightly tighter */
  }
  .trust-card .trust-text strong {
    display: block;
    font-size: 0.98em;          /* subtle downscale of the strong line */
    margin-bottom: 6px;
  }
}

/* TABLET: retain existing scrolling row with safe padding */
@media (min-width: 768px) and (max-width: 1023px) {
  .trust {
    background: var(--trust-page-bg);
    padding: 24px 0 28px;
  }

  .trust-cards {
    scroll-snap-type: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 12px;
  }

  .trust-card {
    flex: 0 0 auto;
    max-width: 260px;
    width: 100%;
    border-radius: var(--trust-radius);
    box-shadow: none;
    padding: 28px 22px;
    transform: none;
    transform-origin: initial;
    will-change: initial;
  }

  .trust-card .trust-media img {
    width: 60%;
  }

  .arrow-btn { display: none; }
}

/* DESKTOP: full-bleed edge-to-edge grid with no gaps */
@media (min-width: 1024px) {
  .trust {
    padding: 0;
    background: transparent;
  }

  .trust > .container {
    max-width: none;
    width: 100vw;
    padding: 0;
    margin: 0 calc(50% - 50vw);
  }

  .trust-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .trust-card {
    max-width: none;
    width: auto;
    border-radius: 0;
    padding: 40px 32px;
  }

  .arrow-btn { display: none; }
}

/* =========================================================
PRODUCT HERO (showcase)
========================================================= */
:root {
  /* Vertical rhythm (4px grid) */
  --vr: 4px;
  --space-2: calc(var(--vr) * 2);
  --space-3: calc(var(--vr) * 3);
  --space-4: calc(var(--vr) * 4);
  --space-5: calc(var(--vr) * 5);
  --space-6: calc(var(--vr) * 6);
  --space-8: calc(var(--vr) * 8);
  --space-10: calc(var(--vr) * 10);
  --space-12: calc(var(--vr) * 12);
  --space-14: calc(var(--vr) * 14);
  --space-16: calc(var(--vr) * 16);
  --space-20: calc(var(--vr) * 20);
}
.product.showcase {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
  background: linear-gradient(180deg, var(--tone-1), var(--tone-2));
  color: var(--text);

  /* Full-bleed breakout to prevent the background from "carding" at 1120px */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: hidden; /* avoid horizontal scroll from 100vw */
}
/* If showcase is nested inside a site .container, neutralize that wrapper */
.container > .product.showcase {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* Keep inner layout aligned and readable */
.product.showcase .hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.hero { padding: 24px 0 20px; }
.hero-inner { display: grid; gap: 16px; }
.hero-head { text-align: center; max-width: 720px; margin: 0 auto; }
.eyebrow { color: var(--primary-contrast); font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; font-size: 12px; margin: 8px 0 8px; }
.hero-title { font-size: clamp(28px, 5.8vw, 56px); line-height: 1.06; margin: 0 0 10px; font-weight: 900; color: var(--text); }
.hero-subtitle { font-size: clamp(15px, 2.4vw, 18px); color: var(--muted); margin: 0; }
.hero-subtitle + .hero-subtitle { margin-top: 4px; margin-bottom: 8px; }
.hero-subtitle.is-accent { color: var(--accent); font-weight: 900; }

/* Theme buttons (mobile default) */
.hero-cta { margin-top: 8px; text-align: center; }
.themes-grid {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 2vw, 10px);
  align-items: start;
}
.theme-cell { width: 100%; }
.theme-btn { display: grid; justify-items: center; align-content: start; gap: 6px; text-decoration: none; color: var(--text); }
.theme-btn:focus { outline: 2px solid #9ec1ff; outline-offset: 2px; }
.theme-icon {
  display: grid; place-items: center; width: clamp(44px, 12vw, 52px); height: clamp(44px, 12vw, 52px);
  border-radius: 9999px; background: rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.theme-btn:hover .theme-icon { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.12); }
.theme-emoji { font-size: clamp(18px, 5.5vw, 22px); line-height: 1; }
.theme-label {
  font-size: 11px; line-height: 1.1; font-weight: 800; color: var(--muted); letter-spacing: 0.2px; white-space: nowrap;
}

/* Product hero media */
.hero-media {
  width: 90%;
  max-width: 100%;
  margin: 12px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
}
/* Base image behavior (mobile-first): natural img sizing */
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* CTA now centered below image */
.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* =========================================================
PRODUCT CAROUSELS
========================================================= */
.pc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pc-title { margin: 0; font-weight: 900; letter-spacing: 0.2px; color: var(--text); font-size: clamp(20px, 2.4vw, 28px); }
.pc-cta {
  border: 0;
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(61, 220, 151, 0.32);
}
.pc-cta:hover { transform: translateY(-1px); filter: brightness(0.96); }
.pc-cta:active { transform: translateY(0); filter: brightness(0.93); }
.pc-spacer { flex: 1; }

/* Full-bleed breakout for the carousel track section */
.pc-track-wrap { 
  position: relative; 
  overflow: hidden; 

  /* Break out of parent container to span the viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.pc-track {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-snap-stop: always; scroll-behavior: smooth;
  padding: 6px 2px 4px; -webkit-overflow-scrolling: touch;
}
.pc-track::-webkit-scrollbar { height: 10px; }
.pc-track::-webkit-scrollbar-track { background: transparent; }
.pc-track::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 999px; }
.pc-track { scrollbar-color: rgba(0,0,0,0.12) transparent; scrollbar-width: thin; }

.pc-card {
  scroll-snap-align: start; background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-height: 320px; outline: none;
  flex: 0 0 calc(50vw - 12px);
}
@media (min-width: 480px) { .pc-card { flex-basis: calc(33.333vw - 12px); } }
@media (min-width: 768px) { .pc-card { flex-basis: calc(25vw - 12px); } }
@media (min-width: 1024px) { .pc-card { flex-basis: calc(22vw - 12px); } }

.pc-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0b1220; overflow: hidden; }
.pc-photo::before { content: ""; display: block; padding-top: 75%; }
.pc-photo > img, .pc-photo > .pc-photo-inner { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-photo img { object-fit: cover; display: block; transform: scale(1.02); }

/* Fallback state when images are blocked/broken (JS adds .is-fallback) */
.pc-photo.is-fallback {
  background: linear-gradient(135deg, #0b1220 0%, #111827 100%);
}
.pc-photo.is-fallback img {
  /* If we ever switch to a CSS-only placeholder (no inline SVG), we could hide the <img>.
     Currently we show an inline SVG via the img src, so we keep it visible. */
  object-fit: contain;
  transform: none;
}

.pc-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.pc-desc { font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: .2px; color: #fff; }
.fun-1 { color: #f472b6; } .fun-2 { color: #a78bfa; } .fun-3 { color: #34d399; }
.pc-dims { color: rgba(255,255,255,0.72); font-size: 0.9rem; letter-spacing: 0.3px; }
.pc-tagline { font-weight: 700; font-size: 0.95rem; color: #e5e7eb; }
.pc-price { margin-top: 4px; font-size: 1.1rem; font-weight: 900; color: #fff; }

/* Reposition overlay arrows to sit over the image (not covering text) */
.pc-ovl-btn {
  position: absolute;
  top: clamp(60px, 18vw, 120px);
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(13, 16, 24, 0.55);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5;
  backdrop-filter: saturate(120%) blur(6px);
  transition: background .2s ease, transform .15s ease, border-color .2s ease, opacity .2s ease;
}
.pc-ovl-btn:hover:not([disabled]) { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.pc-ovl-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.pc-ovl-left { left: 4px; } .pc-ovl-right { right: 4px; }

.pc-edge-fade { position: absolute; top: 0; bottom: 0; width: 32px; pointer-events: none; z-index: 2; }
.pc-edge-fade.left { left: 0; background: linear-gradient(90deg, rgba(11,16,32,0.9), rgba(11,16,32,0)); }
.pc-edge-fade.right { right: 0; background: linear-gradient(270deg, rgba(11,16,32,0.9), rgba(11,16,32,0)); }

/* Separator block */
.separator-inner { max-width: 900px; margin-inline: auto; }
.separator-title { margin: 0 0 12px; font-size: clamp(22px, 3.2vw, 30px); color: var(--text); font-weight: 900; }
.separator-text { color: var(--muted); }

@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}
.site-footer { background: var(--footer, #0a0f24); color: var(--text); border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { display: grid; gap: 20px; grid-template-columns: 1fr; padding-block: clamp(32px, 4vw, 48px); }
.footer-brand .logo-img { height: 44px; width: auto; }
.footer-tagline { color: var(--muted); margin: 8px 0 0; font-weight: 700; }
.footer-title { margin: 0 0 8px; font-size: 14px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.4px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-link { color: inherit; text-decoration: none; opacity: 0.9; }
.footer-link:hover { text-decoration: underline; opacity: 1; }
.footer-text { color: var(--muted); }

.footer-bottom { border-top: 1px solid rgba(0,0,0,0.06); background: var(--footer, #070c1a); color: var(--muted); font-size: 14px; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; gap: 12px; flex-wrap: wrap; }
.footer-copy { margin: 0; }
.footer-legal { display: inline-flex; gap: 10px; align-items: center; }

/* =========================================================
FOOTER PATCH MERGE (logo above links + right contact form)
- Overrides placed AFTER existing footer styles to limit breakage
========================================================= */

/* Desktop: switch footer to 2 columns (left: logo+links, right: form) */
@media (min-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr; /* override earlier 3-col layout */
  }
}

/* Left column wrapper where logo sits above links */
.footer-left {
  display: grid;
  align-content: start;
  gap: 12px;
}

/* Scope footer logo visuals so top-nav logo remains unchanged */
.footer-left .logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-left .logo-img { height: 28px; width: auto; }

/* Keep existing footer title/link styles; no color overrides to preserve theme */
.footer-links {}

/* Contact form (scoped) */
.fc-form { display: grid; gap: 14px; }
.fc-row { display: grid; gap: 12px; }
.fc-row--three { grid-template-columns: repeat(3, 1fr); }
.fc-row--two { grid-template-columns: repeat(2, 1fr); }

.fc-field { display: grid; gap: 6px; }
.fc-field label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  opacity: 0.9;
}

/* Uniform inputs across types and states (consistent heights) */
.fc-field input,
.fc-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--surface-light);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Equalize input heights (includes readonly question field) */
.fc-field input:not([type="checkbox"]):not([type="radio"]) {
  height: 44px;
}
.fc-field input[readonly] {
  background: var(--surface-light); /* same as others for visual uniformity */
  color: var(--muted);
}

/* Textarea sizing */
.fc-field textarea {
  min-height: 96px;
  resize: vertical;
}

/* Remove number spinners for consistent look across browsers */
.fc-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.fc-field input[type="number"]::-webkit-inner-spin-button,
.fc-field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Focus state using brand primary */
.fc-field input:focus,
.fc-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

/* Inline error message block + error border helper */
.fc-error {
  min-height: 16px;
  font-size: 12px;
  color: #b42318;
}
.has-error {
  border-color: color-mix(in srgb, #b42318 50%, transparent) !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, .12) !important;
}

/* Actions + status */
.fc-actions { display: flex; align-items: center; gap: 12px; }
.fc-status { font-size: 14px; min-height: 20px; }
.fc-status.ok { color: #0f766e; }
.fc-status.err { color: #b42318; }

/* Accessibility helpers (scoped utility) */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Honeypot field (hidden to humans) */
.fc-hp {
  position: absolute !important;
  left: -10000px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Responsive stacking for form rows */
@media (max-width: 900px) {
  .fc-row--three { grid-template-columns: 1fr; }
  .fc-row--two { grid-template-columns: 1fr; }
}
