/* ============================================================
   Ginger's Cupcakes & Desserts — Design System
   Direction: The Confectionery Counter
     Warm cream base · baby blue & cornflower · buttercream gold.
     Rounded, playful, appetizing — a real bakery case, not cold glass.
   Type: Baloo 2 (display) · Nunito (body) · Caveat (piped-icing accent)
   Built by Reevozign · v2
   ============================================================ */

/* ---- Tokens -------------------------------------------------- */
:root {
  /* Warm confectionery background washes */
  --blush:    #DDEEFB;   /* baby-blue cream    */
  --lavender: #E6EFFA;   /* soft powder blue   */
  --mint:     #DFEFE1;   /* pistachio          */
  --butter:   #FCEBC4;   /* buttercream        */
  --sky:      #FBE3D4;   /* peach              */
  --bg-base:  #FFF6EC;   /* warm vanilla       */

  /* Ink — warm cocoa-plum, never harsh black */
  --ink:      #3B2A2F;
  --ink-soft: #7A6660;
  --ink-faint:#AC9A92;

  /* Primary — baby blue → cornflower.
     --rose* names kept for compatibility; they now carry the blue family.
     --rose is decorative only (never text / under white text).
     --rose-deep is the AA-safe action colour: 5.3:1 on vanilla, 5.7:1 under white text. */
  --rose:      #7CC0EE;  /* baby blue — decorative accents/glow */
  --rose-deep: #1F6AA8;  /* cornflower — CTA fills, links (AA on cream) */
  --rose-ink:  #174F80;  /* deep blue — darker end of CTA gradients */
  --rose-hi:   #C4E4FA;  /* pale highlight for sprinkle/dot gradients */
  --rose-soft: #D6EBFA;

  /* Secondary — buttercream gold */
  --gold:      #F3B33F;
  --gold-deep: #B5820F;  /* AA-safe gold text on cream */
  --gold-soft: #FBE7BE;

  /* Tertiary — pistachio mint & cocoa */
  --pistachio: #7FCBA4;
  --pistachio-soft: #D8EFDF;
  --cocoa:     #6B4A3A;

  /* Card material — warm "frosting card" (replaces cold glass).
     Legacy --glass* names are remapped so every component + inline
     var(--glass-border) reference keeps working. */
  --card:         #FFFDF8;
  --card-2:       #FFF8EE;
  --line:         rgba(107, 74, 58, 0.13);
  --line-strong:  rgba(107, 74, 58, 0.20);

  --glass:        var(--card);
  --glass-strong: #FFFFFF;
  --glass-tint:   var(--card-2);
  --glass-border: var(--line);
  --shadow-sm:    0 4px 14px -8px rgba(107, 74, 58, 0.38);
  --shadow:       0 18px 42px -22px rgba(107, 74, 58, 0.50);
  --shadow-lg:    0 30px 60px -28px rgba(107, 74, 58, 0.55);
  --shadow-berry: 0 22px 46px -22px rgba(31, 106, 168, 0.42);
  --glass-shadow: var(--shadow);
  --glass-blur:   blur(16px) saturate(150%);

  /* Type */
  --display: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:    'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script:  'Caveat', 'Baloo 2', cursive;

  --t-display: clamp(2.7rem, 1.4rem + 5.2vw, 5.2rem);
  --t-h1:      clamp(2.25rem, 1.5rem + 3.1vw, 3.7rem);
  --t-h2:      clamp(1.85rem, 1.3rem + 2.1vw, 2.8rem);
  --t-h3:      clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
  --t-lead:    clamp(1.1rem, 1.0rem + 0.45vw, 1.32rem);
  --t-body:    1.075rem;
  --t-label:   0.78rem;

  /* Spacing — 8px scale */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 72px; --sp-7: 104px; --sp-8: 140px;

  --maxw: 1200px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --r:    24px;
  --r-lg: 36px;
  --r-sm: 15px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(40vw 40vw at 8% 2%,   var(--blush),    transparent 70%),
    radial-gradient(46vw 46vw at 94% 0%,  var(--butter),   transparent 72%),
    radial-gradient(50vw 50vw at 88% 88%, var(--mint),     transparent 74%),
    radial-gradient(44vw 44vw at 2% 96%,  var(--sky),      transparent 72%),
    radial-gradient(42vw 42vw at 50% 50%, var(--lavender), transparent 82%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-2);
}
h1 { font-weight: 800; }
p { margin: 0 0 var(--sp-2); }
a { color: var(--rose-deep); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--rose-soft); color: var(--ink); }

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

/* ---- Accessibility ------------------------------------------ */
.skip-link {
  position: absolute; left: 12px; top: -52px; z-index: 200;
  background: var(--ink); color: #fff; padding: 11px 18px;
  border-radius: 999px; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 6px; }
.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;
}

/* ---- Frosting card (was: glass) ----------------------------- */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* ---- Layout helpers ----------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(52px, 8vw, 100px); }
.section--tight { padding-block: clamp(38px, 6vw, 68px); }
.center { text-align: center; }
.mt-3 { margin-top: var(--sp-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: var(--t-label); font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose-deep); margin: 0 0 var(--sp-2);
}
.eyebrow::before {
  content: ""; width: 20px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
}
.section-head { max-width: 58ch; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { font-size: var(--t-lead); color: var(--ink-soft); margin: 0; max-width: 54ch; }
.lede { font-size: var(--t-lead); color: var(--ink-soft); max-width: 60ch; }

/* Script emphasis — the piped-icing signature. Used on <em> in headings. */
h1 em, h2 em {
  font-style: normal; font-family: var(--script); font-weight: 700;
  color: var(--rose-deep); letter-spacing: 0.005em;
  font-size: 1.18em; line-height: 0.9; padding-inline: 0.04em;
}

/* ---- Buttons ------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; line-height: 1; white-space: nowrap;
  padding: 15px 28px; border: 2px solid transparent;
  border-radius: 999px; min-height: 54px;
  transition: transform 0.22s var(--ease-out), background-color 0.2s var(--ease),
              box-shadow 0.22s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(160deg, var(--rose-deep) 0%, var(--rose-ink) 100%);
  color: #fff; box-shadow: var(--shadow-berry);
}
.btn--primary:hover { box-shadow: 0 26px 52px -20px rgba(31, 106, 168, 0.58); }
.btn--glass {
  background: #fff; color: var(--ink); border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--glass:hover { background: var(--card-2); border-color: var(--rose); color: var(--rose-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--rose-deep); color: var(--rose-deep); background: var(--card); }
.btn--lg { padding: 18px 34px; min-height: 60px; font-size: 1.08rem; }
.btn--block { width: 100%; }

.ulink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 700; text-decoration: none;
  color: var(--rose-deep);
}
.ulink svg { transition: transform 0.2s var(--ease); }
.ulink:hover svg { transform: translateX(4px); }

/* ---- Header / nav ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 240, 0.82);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: var(--sp-4);
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 999px; align-self: center;
  background: radial-gradient(circle at 34% 30%, var(--rose-hi), var(--rose) 55%, var(--rose-deep));
  box-shadow: 0 2px 6px -1px rgba(31, 106, 168, 0.5);
}
.brand-tag {
  font-family: var(--body); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose-deep);
  align-self: center; white-space: nowrap;
}
@media (max-width: 380px) { .brand-tag { display: none; } }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 9px 14px; text-decoration: none; white-space: nowrap;
  color: var(--ink); font-weight: 700; font-size: 0.95rem; border-radius: 999px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-links a:hover { background: var(--rose-soft); color: var(--rose-deep); }
.nav-links a[aria-current="page"] { color: var(--rose-deep); background: var(--rose-soft); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-call {
  font-family: var(--display); font-size: 0.95rem; font-weight: 700;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.nav-call:hover { color: var(--rose-deep); }
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2.5px; background: var(--ink);
  margin: 0 auto; position: relative; border-radius: 3px;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column;
    background: rgba(255, 249, 240, 0.97);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-1) var(--gutter) var(--sp-3);
    box-shadow: var(--shadow);
  }
  .nav-links:not(.open) { display: none; }
  .nav-links a { padding: 14px 8px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-call { display: none; }
}

/* ---- Hero ---------------------------------------------------- */
.hero { position: relative; padding-block: clamp(28px, 5vw, 68px) clamp(40px, 6vw, 84px); }
.hero-head { max-width: 42ch; margin-bottom: clamp(20px, 3vw, 40px); }
.hero-head h1 { font-size: var(--t-display); margin-bottom: var(--sp-3); }
.hero-head .lede { font-size: var(--t-lead); }
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.cake-hint {
  margin: var(--sp-4) 0 0; text-align: center;
  font-family: var(--script); font-size: 1.4rem; font-weight: 700; color: var(--rose-deep);
}
.cake-hint::before { content: "✦ "; color: var(--gold); }
@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Ginger's cake — a hand-built SVG centrepiece ----------- *
   The whole cake (stand, tiers, frosting drips, sprinkles, cherry)
   is generated + animated as one inline SVG in js/main.js. This
   stylesheet only handles the container, the text on each tier,
   and the hover affordance. */
.cakescape {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.cakescape::before {  /* warm buttercream glow behind the cake */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(closest-side at 50% 56%,
    rgba(243, 179, 63, 0.26), rgba(124, 192, 238, 0.12) 46%, transparent 72%);
  filter: blur(8px); pointer-events: none;
}
.cake-art {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; height: auto; overflow: visible;
  -webkit-tap-highlight-color: transparent;
}
.cake-art .tier { cursor: pointer; outline: none; }
.cake-art .tier .tier-text {
  font-family: var(--display); font-weight: 700;
  fill: var(--ink); letter-spacing: -0.01em;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.72); stroke-width: 4px; stroke-linejoin: round;
  pointer-events: none;
}
.cake-art .tier .tier-arw {
  font-family: var(--display); font-weight: 700; fill: var(--rose-deep);
  opacity: 0; transition: opacity 0.25s var(--ease); pointer-events: none;
}
.cake-art .tier.is-active .tier-arw { opacity: 1; }
.cake-art .tier:focus-visible .tier-body { stroke: var(--rose-deep); stroke-width: 3px; }

.cake-fallback {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px;
  padding: 0; justify-content: center;
}
.cake-fallback a { font-weight: 700; color: var(--rose-deep); }

/* ---- Cake detail panel -------------------------------------- */
.cake-panel { border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 38px); }
.cake-panel .pk {
  font-size: var(--t-label); font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rose-deep); margin: 0 0 var(--sp-2);
}
.cake-panel h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); transition: opacity 0.25s var(--ease); }
.cake-panel p { color: var(--ink-soft); transition: opacity 0.25s var(--ease); }
.cake-panel .panel-link { margin-top: var(--sp-2); }
.panel-swap { animation: panel-fade 0.3s var(--ease); }
@keyframes panel-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Feature band: nut-free promise ------------------------- */
.band { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 54px); }
.band--rose {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #FFFFFF 0%, #EEF6FD 55%, #FBE0D2 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}
.band--rose::after {  /* sprinkle confetti flourish, top-right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, var(--rose) 60%, transparent 62%),
    radial-gradient(circle, var(--gold) 60%, transparent 62%),
    radial-gradient(circle, var(--pistachio) 60%, transparent 62%),
    radial-gradient(circle, var(--rose) 60%, transparent 62%),
    radial-gradient(circle, var(--gold) 60%, transparent 62%);
  background-repeat: no-repeat;
  background-size: 9px 9px, 7px 7px, 8px 8px, 6px 6px, 8px 8px;
  background-position: 92% 22%, 96% 40%, 88% 62%, 97% 74%, 90% 88%;
  opacity: 0.5;
}
.promise-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.promise-grid h2 { font-size: var(--t-h2); }
.promise-grid p { color: var(--ink-soft); margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 9px 16px;
  font-size: 0.88rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, var(--rose-hi), var(--rose)); }
@media (max-width: 760px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---- Peek at the counter (product cards) -------------------- */
.peek { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.pcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease);
}
.pcard:hover { transform: translateY(-7px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.pcard-photo { background: var(--card-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.pcard-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s var(--ease); }
.pcard:hover .pcard-photo img { transform: scale(1.05); }
.pcard-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-body h3 { font-size: var(--t-h3); margin: 0; }
.pcard-body p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.pcard-body .ulink { margin-top: auto; }
@media (max-width: 800px) { .peek { grid-template-columns: 1fr; } }

/* ---- Reviews ------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.review { border-radius: var(--r); padding: var(--sp-4); position: relative; }
.review::before {  /* oversized quote mark */
  content: "\201C"; position: absolute; top: 6px; right: 20px;
  font-family: var(--display); font-weight: 800; font-size: 4.2rem;
  color: var(--rose-soft); line-height: 1;
}
.review .stars { color: var(--gold); display: flex; gap: 3px; margin-bottom: var(--sp-2); }
.review blockquote { margin: 0 0 var(--sp-3); font-size: 1.1rem; position: relative; z-index: 1; }
.review .who { font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
.review .who b { color: var(--ink); }
@media (max-width: 820px) { .reviews { grid-template-columns: 1fr; } }

/* ---- CTA band ------------------------------------------------ */
.cta-band .band { text-align: center; }
.cta-band h2 { font-size: var(--t-h2); }
.cta-band p { color: var(--ink-soft); font-size: var(--t-lead); margin-inline: auto; max-width: 48ch; }

/* ---- Footer -------------------------------------------------- */
.site-footer { margin-top: var(--sp-4); }
.site-footer .wrap { padding-block: 0; }
.footer-inner {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--sp-6) clamp(24px, 4vw, 56px) var(--sp-3);
  background: var(--card); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: var(--shadow-lg);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-5); }
.footer-grid h4 {
  font-family: var(--body); font-size: var(--t-label); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--rose-deep); font-weight: 800; margin-bottom: var(--sp-2);
}
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--rose-deep); }
.footer-grid p { color: var(--ink-soft); }
.footer-bar {
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 0.82rem; color: var(--ink-faint);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Sticky mobile call bar --------------------------------- */
.call-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 249, 240, 0.9);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--line);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; color: #fff;
  background: linear-gradient(160deg, var(--rose-deep) 0%, var(--rose-ink) 100%);
  font-weight: 800; text-decoration: none; border-radius: 999px;
  font-family: var(--display); font-size: 1.05rem;
  box-shadow: var(--shadow-berry);
}
@media (max-width: 720px) {
  .call-bar { display: block; }
  body { padding-bottom: 82px; }
}
@media (prefers-reduced-motion: no-preference) {
  .call-bar.pulse a { animation: pulse 1s var(--ease) 1; }
  @keyframes pulse {
    0%, 100% { box-shadow: var(--shadow-berry), 0 0 0 0 rgba(31, 106, 168, 0); }
    35%      { box-shadow: var(--shadow-berry), 0 0 0 9px rgba(31, 106, 168, 0.34); }
  }
}

/* ---- Scroll reveal ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.09s; }
.reveal.d2 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Page hero (inner pages) -------------------------------- */
.page-hero { padding-block: clamp(32px, 5vw, 60px) 0; }
.page-hero .inner { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); }
.crumbs { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: var(--sp-2); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--rose-deep); }
.page-hero h1 { font-size: var(--t-h1); max-width: 18ch; }
.page-hero p { font-size: var(--t-lead); color: var(--ink-soft); max-width: 58ch; margin: 0; }

/* ---- Detail content ----------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(26px, 4vw, 54px); align-items: start; }
.detail-figure { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.prose { max-width: 64ch; }
.prose h2 { font-size: var(--t-h2); margin-top: var(--sp-5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-h3); margin-top: var(--sp-4); }
.prose ul.ticks { list-style: none; display: grid; gap: 10px; margin: var(--sp-2) 0; }
.prose ul.ticks li { display: flex; gap: 12px; }
.prose ul.ticks li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, var(--rose-hi), var(--rose)); flex: none; }
.factline {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  border-radius: var(--r); padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0;
}
.fact .k { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--rose-deep); display: block; }
.fact .v { font-size: 1.2rem; font-family: var(--display); font-weight: 700; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---- Gallery ------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease); }
.gallery figure:hover { transform: translateY(-5px) rotate(-0.8deg); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---- Three-up ----------------------------------------------- */
.threeup { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.threeup .item { border-radius: var(--r); padding: var(--sp-4); }
.threeup .item .n { font-family: var(--script); font-weight: 700; font-size: 2.4rem; color: var(--rose-deep); display: block; margin-bottom: 4px; line-height: 1; }
.threeup .item h3 { font-size: var(--t-h3); margin: 0 0 8px; }
.threeup .item p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .threeup { grid-template-columns: 1fr; } }

/* ---- Order / enquiry form ----------------------------------- */
.order-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 52px); }
.form-card { border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); }
.field { display: grid; gap: 6px; margin-bottom: var(--sp-2); }
.field label { font-weight: 700; font-size: 0.96rem; }
.field .opt { font-weight: 700; font-size: 0.74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
  font: inherit; padding: 13px 16px; color: var(--ink);
  background: var(--card-2);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--rose-deep); background: #fff;
  box-shadow: 0 0 0 4px var(--rose-soft);
}
.field textarea { min-height: 108px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.callbox {
  border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 38px);
  display: flex; flex-direction: column; gap: var(--sp-2); align-self: start;
}
.callbox .big-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: -0.01em; text-decoration: none; color: var(--rose-deep);
}
.form-note { color: var(--ink-soft); font-size: 0.87rem; margin: 0; }
@media (max-width: 760px) {
  .order-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---- Visit / map -------------------------------------------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--sp-5); }
.visit-info { border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 38px); }
.visit-info dl { display: grid; margin: 0; }
.visit-info dt { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--rose-deep); margin-top: var(--sp-3); }
.visit-info dt:first-child { margin-top: 0; }
.visit-info dd { margin: 5px 0 0; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table th, .hours-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.99rem; }
.hours-table th { font-weight: 700; }
.hours-table td { color: var(--ink-soft); }
.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---- Misc --------------------------------------------------- */
.confirm {
  font-family: var(--body); font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold-deep);
  border: 1.5px dashed var(--gold); border-radius: 999px; padding: 1px 9px;
  white-space: nowrap;
}
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 700px) { .related { grid-template-columns: 1fr; } }


/* ============================================================
   Reevozign portfolio demo layer — added for the iPad showcase
   build only. Not part of the client deliverable.
   ============================================================ */

/* Unfilled-fact markers are hidden in the demo; the sentences
   they annotate read correctly without them. */
.confirm { display: none !important; }

/* Offline-safe map: the styled address card sits underneath and
   is revealed whenever the Google embed cannot load. */
.map-embed { position: relative; }
.map-embed .map-offline {
  display: flex; flex-direction: column; gap: .5rem;
  align-items: center; justify-content: center; text-align: center;
  min-height: 320px; padding: 1.5rem;
  background:
    repeating-linear-gradient(0deg,  rgba(0,0,0,.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.045) 0 1px, transparent 1px 34px),
    var(--paper-2, #f3efe9);
  color: inherit;
}
.map-embed .map-offline svg { opacity: .8; }
.map-embed .map-offline b { font-size: 1.05rem; }
.map-embed .map-offline span { opacity: .72; font-size: .92rem; line-height: 1.5; }
.map-embed iframe { position: relative; z-index: 1; }

/* Discreet return-to-portfolio control (demo chrome). */
#rvz-back {
  position: fixed; z-index: 2147483000;
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .95rem .6rem .8rem;
  font: 600 14px/1 ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em; text-decoration: none;
  color: #fff; background: rgba(24,24,27,.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0,0,0,.26);
  opacity: .5; transition: opacity .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
#rvz-back:hover, #rvz-back:focus-visible { opacity: 1; transform: translateY(-1px); }
#rvz-back:active { opacity: 1; transform: scale(.97); }
@media (hover: none) { #rvz-back { opacity: .72; } }
@media print { #rvz-back { display: none; } }

