/* ============================================================
   The Cake Studio — Components
   All values come from tokens. Rectangles are square.
   Circles preserved only for circular interaction semantics.
   ============================================================ */


/* =============================================================
   BUTTONS — single primitive `.btn` parameterized by --btn-* vars.
   Variants: primary (plum), pink, outline, ghost, whatsapp, light.
   Modifiers: --sm, --lg, --block.
   ============================================================ */
.btn {
  --btn-bg:           transparent;
  --btn-fg:           var(--text-primary);
  --btn-border:       transparent;
  --btn-bg-hover:     var(--btn-bg);
  --btn-fg-hover:     var(--btn-fg);
  --btn-border-hover: var(--btn-border);
  --btn-pad-y:        var(--space-3);
  --btn-pad-x:        var(--space-6);
  --btn-font-size:    var(--font-size-sm);
  --btn-min-h:        var(--control-size-md);    /* ≥ 44px touch */

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-h);

  font-family: var(--font-family-body);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;

  background: var(--btn-bg);
  color: var(--btn-fg);
  border: var(--border-width-thin) solid var(--btn-border);
  border-radius: var(--radius-none);

  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    color            var(--duration-fast) var(--ease-standard),
    border-color     var(--duration-fast) var(--ease-standard),
    transform        var(--duration-fast) var(--ease-standard);
}
.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
  border-color: var(--btn-border-hover);
}
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn .arrow {
  font-size: var(--font-size-md);
  line-height: 1;
  transform: translateY(-1px);
}

/* Variants */
.btn--primary {
  --btn-bg:       var(--accent);
  --btn-fg:       var(--text-on-accent);
  --btn-bg-hover: var(--accent-hover);
}
.btn--pink {
  --btn-bg:       var(--accent-secondary);
  --btn-fg:       var(--text-on-pink);
  --btn-bg-hover: var(--accent-secondary-hover);
}
.btn--outline {
  --btn-bg:           transparent;
  --btn-fg:           var(--accent);
  --btn-border:       var(--accent);
  --btn-bg-hover:     var(--accent);
  --btn-fg-hover:     var(--text-on-accent);
  --btn-border-hover: var(--accent);
}
.btn--ghost {
  --btn-bg:           transparent;
  --btn-fg:           var(--text-primary);
  --btn-border:       var(--border-subtle);
  --btn-bg-hover:     var(--accent-tint);
  --btn-fg-hover:     var(--accent);
  --btn-border-hover: var(--accent-tint);
}
.btn--light {
  --btn-bg:       var(--color-white);
  --btn-fg:       var(--text-primary);
  --btn-bg-hover: var(--accent-tint);
}
.btn--whatsapp {
  --btn-bg:       var(--color-whatsapp);
  --btn-fg:       var(--color-whatsapp-dark);
  --btn-bg-hover: var(--color-whatsapp-hover);
}
.btn--whatsapp .icon { color: currentColor; }

.btn--sm { --btn-pad-y: var(--space-2); --btn-pad-x: var(--space-4); --btn-font-size: var(--font-size-2xs); --btn-min-h: 36px; }
.btn--lg { --btn-pad-y: var(--space-4); --btn-pad-x: var(--space-8); --btn-font-size: var(--font-size-sm); --btn-min-h: 52px; }
.btn--block { width: 100%; justify-content: space-between; }

/* Action group — primary + secondary CTA pair */
.actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}


/* =============================================================
   ICON BUTTONS — circular by intent
   ============================================================ */
.icon-btn {
  width:  var(--control-size-md);
  height: var(--control-size-md);
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-circle);
  color: var(--text-primary);
  position: relative;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.icon-btn:hover { background: var(--accent-tint); color: var(--accent); }


/* =============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-page);
  border-bottom: var(--border-width-thin) solid var(--border-subtle);
}
.site-header { isolation: isolate; }   /* establishes a stacking context for the drop-down drawer */
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-height);
}

/* Logo — image-based lockup. The PNG is the brand mark; never typeset. */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__img {
  height: 52px;       /* header sizing — reduced for balance */
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
}

/* Footer logo: rendered white on the dark inverse surface via filter,
   sized larger to anchor the column. PNG transparency lets the silhouette
   carry through cleanly. */
.footer-brand .logo__img {
  height: 80px;
  max-width: 288px;
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .logo__img { height: 44px; max-width: 208px; }
  .footer-brand .logo__img { height: 70px; max-width: 256px; }
}
@media (max-width: 560px) {
  .logo__img { height: 40px; max-width: 176px; }
  .footer-brand .logo__img { height: 64px; max-width: 224px; }
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul {
  display: flex;
  gap: var(--space-7);
  align-items: center;
}
.main-nav a {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-standard);
  position: relative;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--accent); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

/* Cakes dropdown
   ---------------------------------------------------------------
   Desktop: parent <li class="has-dropdown"> reveals .dropdown on
   hover/focus-within. Items are compact (44px-ish target height),
   hover slides in a small accent indicator on the left. Mobile:
   .dropdown shows inline as a nested list inside the slide-down
   drawer (see media query below).                                   */
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a::after {
  content: " \25BE";
  font-size: 0.7em;
  margin-left: var(--space-1);
  opacity: 0.55;
  transition: transform var(--duration-fast) var(--ease-standard);
  display: inline-block;
}
.main-nav .has-dropdown:hover > a::after,
.main-nav .has-dropdown:focus-within > a::after { transform: rotate(180deg); opacity: 1; }

.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: flex;
  flex-direction: column;
  /* CRITICAL: explicitly stretch children so each row fills the panel width.
     Without this, .dropdown inherits align-items: center from .main-nav ul
     above, which centres the rows on the cross-axis and makes the hover
     backgrounds float in mid-panel instead of spanning edge-to-edge. */
  align-items: stretch;
  gap: 0;
  min-width: 200px;
  padding: var(--space-1) 0;
  margin: 0;
  list-style: none;
  background: var(--color-white);
  border: var(--border-width-thin) solid var(--border-subtle);
  box-shadow: 0 16px 36px -8px rgba(36, 26, 31, 0.16),
              0 4px 8px -2px rgba(36, 26, 31, 0.06);
  border-radius: var(--radius-sm);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard),
              visibility 0s linear var(--duration-fast);
  z-index: 50;
}
.main-nav .dropdown li { display: block; position: relative; width: 100%; }

.main-nav .dropdown a {
  display: block;
  width: 100%;
  /* Same padding in every state so the row never resizes or shifts.
     Desktop only — mobile drawer overrides this in the @media block. */
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  color: var(--text-primary);
  position: relative;
  transition: color var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
}
/* Accent indicator on the left edge — appears WITHOUT changing padding. */
.main-nav .dropdown a::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.main-nav .dropdown a:hover,
.main-nav .dropdown a:focus-visible,
.main-nav .dropdown a[aria-current="page"] {
  color: var(--accent);
  background: var(--bg-panel);
}
.main-nav .dropdown a:hover::before,
.main-nav .dropdown a:focus-visible::before,
.main-nav .dropdown a[aria-current="page"]::before { transform: scaleY(1); }
.main-nav .dropdown a[aria-current="page"]::after { display: none; }

.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition: opacity var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard),
              visibility 0s;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.menu-toggle {
  display: none;
  width: var(--control-size-md);
  height: var(--control-size-md);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
}
.menu-toggle:hover { background: var(--accent-tint); color: var(--accent); }


/* =============================================================
   MOBILE MENU — slide-down drawer
   - JS injects this as a child of .site-header
   - Hidden at >900px, visible-on-toggle at ≤900px
   ============================================================ */
.mobile-menu {
  position: absolute;
  top: 100%;          /* sits flush below the sticky header */
  left: 0; right: 0;
  background: var(--bg-page);
  border-bottom: var(--border-width-thin) solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(36, 26, 31, 0.08);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard),
    visibility 0s linear var(--duration-base);
}
.site-header[data-menu-open="true"] .mobile-menu {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard),
    visibility 0s;
}
.mobile-menu__inner {
  padding-block: var(--space-5) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
}
.mobile-menu li {
  border-bottom: var(--border-width-thin) solid var(--border-subtle);
}
.mobile-menu li:last-child { border-bottom: 0; }
/* Nav-link styling — scoped to <li> children so the WhatsApp .btn below
   isn't caught by the same selector. */
.mobile-menu li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-standard);
}
.mobile-menu li > a:hover,
.mobile-menu li > a:focus-visible,
.mobile-menu li > a[aria-current="page"] { color: var(--accent); }
.mobile-menu li > a[aria-current="page"]::after {
  content: "\2022";
  margin-left: var(--space-2);
  color: var(--accent);
}
.mobile-menu .caret { display: none; }   /* dropdown carets are noise on mobile */

/* WhatsApp CTA in the drawer — full width, centred icon + label. */
.mobile-menu__cta {
  margin-top: var(--space-3);
  width: 100%;
  justify-content: center;
  gap: var(--space-3);
}
.mobile-menu__cta svg {
  width: 22px;
  height: 22px;
}

/* Hide the drawer entirely above the breakpoint, even if injected. */
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}


/* =============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: var(--section-pad-y) var(--section-pad-y);
  background: var(--bg-panel);
  border-bottom: var(--border-width-thin) solid var(--border-subtle);
}
.hero--inverse {
  background: var(--bg-inverse);
  color: var(--text-on-dark);
}
.hero--inverse h1, .hero--inverse h2, .hero--inverse h3 { color: var(--text-on-dark); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.hero-grid--single {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero-copy { max-width: 540px; }
.hero-copy h1 {
  font-size: var(--font-size-display);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-5);
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: var(--font-weight-medium);
}
.hero-copy .lead { margin-bottom: var(--space-8); }

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-white);
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-image__caption {
  position: absolute;
  left: var(--space-4); bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: rgba(36, 26, 31, 0.78);
  color: var(--color-canvas);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}


/* =============================================================
   TRUST STRIP — sits under the hero on every page.
   ---------------------------------------------------------------
   Each `.trust-strip__item` carries:
     • an icon (top, accent colour, sits in a tinted disc)
     • a value (display font, accent colour — the headline number/phrase)
     • a label (small uppercase, muted)
   Items are separated by hairlines on desktop; on smaller screens they
   tighten up, then turn into a swipeable row on phones. Subtle hover lifts
   the icon.
   ============================================================ */
.trust-strip {
  border-top: var(--border-width-thin) solid var(--border-subtle);
  border-bottom: var(--border-width-thin) solid var(--border-subtle);
  background: var(--bg-page);
}
.trust-strip__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-strip__item {
  padding: var(--space-5) var(--space-3);
  text-align: center;
  border-right: var(--border-width-thin) solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  transition: background var(--duration-fast) var(--ease-standard);
}
.trust-strip__item:last-child { border-right: 0; }
.trust-strip__item:hover { background: var(--accent-tint); }
.trust-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: var(--accent-tint);
  color: var(--accent);
  transition: transform var(--duration-fast) var(--ease-standard),
              background var(--duration-base) var(--ease-standard);
  flex-shrink: 0;
}
.trust-strip__item:hover .trust-strip__icon {
  transform: translateY(-2px) scale(1.04);
  background: var(--color-white);
}
.trust-strip__icon svg { width: 18px; height: 18px; display: block; }
.trust-strip__value {
  display: block;
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: var(--line-height-tight);
}
.trust-strip__label {
  display: block;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
}


/* =============================================================
   SECTIONS — generic content section
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--section-pad-y);
}
.section--tight { padding-block: var(--section-pad-y-tight); }
.section--loose { padding-block: var(--section-pad-y-loose); }
.section--panel { background: var(--bg-panel); }
.section--warm  { background: var(--bg-warm); }
.section--inverse { background: var(--bg-inverse); color: var(--text-on-dark); }
.section--inverse h1,
.section--inverse h2,
.section--inverse h3 { color: var(--text-on-dark); }
.section--inverse .lead { color: var(--color-line-strong); }


/* =============================================================
   CARD primitive — used by cake cards, recipe cards, blog cards.
   ---------------------------------------------------------------
   CARDS ALWAYS STRETCH: `height: 100%` + `align-self: stretch`
   guarantees that any card placed in a grid or flex row fills its
   cell, so a row of cards always shares one bottom edge regardless
   of how their content lengths differ. Pair this with
   `.card__body { flex: 1; }` and `.card__meta { margin-top: auto; }`
   (defined below) and the meta row anchors to the bottom edge in
   every card automatically — no per-page tweaks required.
   ============================================================ */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-self: stretch;
  background: var(--color-white);
  border: var(--border-width-thin) solid var(--border-subtle);
  border-radius: var(--radius-none);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.card:hover { border-color: var(--border-accent); }

.card__media {
  aspect-ratio: 4 / 5;          /* portrait — most Cake Studio photos are portrait, this shows the full cake */
  background: var(--bg-panel);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-base) var(--ease-standard);
}
.card:hover .card__media img { transform: scale(1.03); }

.card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.card__eyebrow {
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}
.card__title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  color: var(--text-primary);
}
.card__desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}
.card__meta {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: var(--border-width-thin) solid var(--border-subtle);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}
.card__price {
  font-weight: var(--font-weight-semibold);
  color: var(--accent);
  font-size: var(--font-size-base);
  letter-spacing: var(--tracking-normal);
}


/* =============================================================
   GALLERY + LIGHTBOX — used on Roora Day landing
   -------------------------------------------------------------
   - 3-up at desktop, 2-up at md, 1-up at sm
   - Items are real <button>s for accessibility (keyboard + SR)
   - Lightbox uses native <dialog> so Esc + focus trap come free
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);                    /* roomier than --section-gap (16px) */
}
.gallery__item {
  aspect-ratio: 4 / 5;                    /* matches the rest of the card system */
  background: var(--bg-panel);
  border: var(--border-width-thin) solid var(--border-subtle);
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  position: relative;
  transition: border-color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.gallery__item:hover { border-color: var(--accent); }
.gallery__item:active { transform: translateY(1px); }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-base) var(--ease-standard);
}
.gallery__item:hover img { transform: scale(1.04); }

/* Lightbox dialog */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: rgba(20, 10, 16, 0.96);
  color: var(--color-canvas);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(20, 10, 16, 0.96); }

.lightbox__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: var(--space-10);
  position: relative;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  display: block;
  background: var(--color-white);
}
.lightbox__caption {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: min(640px, calc(100vw - 32px));
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-canvas);
  font-size: var(--font-size-sm);
  text-align: center;
  backdrop-filter: blur(6px);
}
.lightbox__counter {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-pink-300);
  flex: 0 0 auto;
}
.lightbox__text {
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wide);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: var(--control-size-md);
  height: var(--control-size-md);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-canvas);
  border-radius: var(--radius-circle);
  border: 0;
  cursor: pointer;
  z-index: 2;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: var(--space-5); right: var(--space-5); }
.lightbox__nav--prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--space-5); top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .lightbox__figure { padding: var(--space-6); }
  .lightbox__nav--prev { left: var(--space-3); }
  .lightbox__nav--next { right: var(--space-3); }
  .lightbox__close { top: var(--space-3); right: var(--space-3); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; gap: var(--space-4); }
}


/* =============================================================
   GRIDS — product/recipe layouts
   ---------------------------------------------------------------
   align-items: start is the deliberate default. When one column
   is text and another is media (or one column is taller than the
   other for any reason), `center` would float the shorter column
   in the middle of the row and create a visible vertical gap —
   exactly the bug we kept seeing on the homepage wedding section.
   Pages that genuinely need centred alignment should opt-in with
   `.grid--align-center`.
   ============================================================ */
.grid {
  display: grid;
  gap: var(--section-gap);
  align-items: start;
}
.grid--2  { grid-template-columns: repeat(2, 1fr); }
.grid--3  { grid-template-columns: repeat(3, 1fr); }
.grid--4  { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--align-center { align-items: center; }
.grid--align-end    { align-items: end; }


/* =============================================================
   PROCESS / STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.steps--6 { grid-template-columns: repeat(3, 1fr); }   /* 6 cards = 3 cols x 2 rows; readable at desktop */
.step {
  counter-increment: step;
  padding: var(--space-6);
  background: var(--color-white);
  border: var(--border-width-thin) solid var(--border-subtle);
  border-radius: var(--radius-none);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-weight-medium);
}
.step h3 {
  font-size: var(--font-size-lg);
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}


/* =============================================================
   PRICE CARD
   ---------------------------------------------------------------
   Same stretch contract as `.card` and `.testimonial`: every price
   card in a row fills its grid cell to the tallest sibling, so a
   pricing row always shares one bottom edge regardless of how many
   list items each card carries. Any CTA button inside a price card
   pins to the bottom (see `.price-card .btn` below) so the buttons
   line up across cards too.
   ============================================================ */
.price-card {
  padding: var(--space-7);
  background: var(--color-white);
  border: var(--border-width-thin) solid var(--border-subtle);
  border-radius: var(--radius-none);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  align-self: stretch;
}
/* CTAs inside a price card pin to the bottom for cross-card alignment */
.price-card .btn { margin-top: auto; }
.price-card--featured {
  border-color: var(--accent);
  background: var(--bg-panel);
}
.price-card__name {
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
}
.price-card__from {
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-card__price {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
}
.price-card__serves {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}
.price-card__includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}
.price-card__includes li { padding-left: var(--space-5); position: relative; }
.price-card__includes li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: var(--font-weight-bold);
}


/* =============================================================
   FAQ — accordion-style (CSS only, <details>)
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  border-top: var(--border-width-thin) solid var(--border-subtle);
}
.faq details {
  border-bottom: var(--border-width-thin) solid var(--border-subtle);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-2) var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-standard);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "+";
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  color: var(--accent);
  font-weight: var(--font-weight-light);
  line-height: 1;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.faq details[open] summary::after { content: "-"; }
.faq__answer {
  padding: 0 var(--space-2) var(--space-5) 0;
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  max-width: 70ch;
}


/* =============================================================
   TESTIMONIAL
   ---------------------------------------------------------------
   Same stretch contract as `.card`: every testimonial in a row fills
   its grid/flex cell, so two side-by-side testimonials with quotes
   of different lengths share one bottom edge. The `.testimonial__author`
   block already has `margin-top: auto` (below), so the reviewer name
   pins to the bottom of every card automatically.
   ============================================================ */
.testimonial {
  padding: var(--space-8);
  background: var(--bg-panel);
  border: var(--border-width-thin) solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  height: 100%;
  align-self: stretch;
}
.testimonial__quote {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}
.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  flex: 0 0 var(--avatar-size);
  border-radius: var(--radius-circle);
  background-color: var(--color-line);
  background-size: cover;
  background-position: center;
}
.testimonial__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}
.testimonial__meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}


/* =============================================================
   FORMS
   ============================================================ */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-normal);
}
.field__hint { font-size: var(--font-size-xs); color: var(--text-muted); }
.field__input,
.field__select,
.field__textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: var(--border-width-thin) solid var(--border-input);
  border-radius: var(--radius-none);
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
  min-height: var(--control-size-md);
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.field__textarea { min-height: 140px; resize: vertical; line-height: var(--line-height-relaxed); }
.field--required .field__label::after { content: " *"; color: var(--accent-secondary); }


/* =============================================================
   FOOTER
   ---------------------------------------------------------------
   The footer sits flush against the previous section. We do NOT
   add `margin-top` here, because:
     - the previous section already supplies its own bottom padding
       via `.section { padding-block: var(--section-pad-y); }`,
     - a margin between two block elements lets the body's `--bg-page`
       (light) show through. When both the previous section AND the
       footer are dark (`.section--inverse` + footer), that margin
       paints a visible white band between them — a real bug we hit.
   Vertical rhythm: previous-section bottom-padding + footer
   top-padding from `padding-block: var(--section-pad-y) var(--space-6)`.
   ============================================================ */
.site-footer {
  background: var(--bg-inverse);
  color: var(--text-on-dark);
  padding-block: var(--section-pad-y) var(--space-6);
}
.site-footer h4 {
  color: var(--text-on-dark);
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-grid {
  display: grid;
  /* 6-column desktop layout:
       brand (1) | cakes spans 2 cols (2-col list inside) | learn (1) | studio (1) | visit (1) */
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.3fr;
  gap: var(--space-9);
  margin-bottom: var(--section-pad-y-tight);
  align-items: start;
}
/* Cakes section spans 2 grid columns and renders its list as a 2-col
   internal grid so it stays visually tight while listing every cake type.
   Note the `.footer-col` prefix on the list selector — needed to beat
   `.footer-col ul { display: flex }` further down which has equal class
   count plus an element selector (specificity 0,1,1 vs the modifier's
   0,1,0). With the prefix we're at 0,2,1 and grid wins.                  */
.footer-cakes { grid-column: span 2; }
.footer-col ul.footer-list--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;             /* fills down col 1 first, then col 2 */
  gap: var(--space-2) var(--space-5);
}
/* Visit column: address + phone + embedded map + directions link + social */
.footer-visit address {
  font-style: normal;
  color: var(--color-line-strong);
  line-height: var(--line-height-normal);
}
.footer-visit a { display: inline-block; }
.footer-visit__map {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: var(--space-4) 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.footer-visit__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  font-size: var(--font-size-sm);
  color: var(--color-line-strong);
  transition: color var(--duration-fast) var(--ease-standard);
}
.footer-col a:hover { color: var(--color-canvas); }
.footer-brand p {
  font-size: var(--font-size-sm);
  color: var(--color-line-strong);
  max-width: 32ch;
  margin-top: var(--space-4);
}
/* Footer brand wrapper — logo image styling is in the .logo block above. */

.footer-newsletter p {
  font-size: var(--font-size-sm);
  color: var(--color-line-strong);
  margin-bottom: var(--space-4);
}
.signup {
  display: flex;
  border: var(--border-width-thin) solid var(--color-plum-400);
  background: rgba(255, 255, 255, 0.04);
}
.signup input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  color: var(--color-canvas);
  outline: none;
  min-height: var(--control-size-md);
}
.signup input::placeholder { color: var(--color-line-strong); }
.signup input:focus { background: rgba(255,255,255,0.07); }
.signup button {
  padding: 0 var(--space-5);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: var(--font-size-2xs);
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.signup button:hover { background: var(--accent-hover); }

.footer-col .social,
.social {
  display: flex;
  flex-direction: row;          /* beats .footer-col ul (column) — specificity 0,2,0 vs 0,1,1 */
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
}
.social a {
  width: var(--control-size-sm);
  height: var(--control-size-sm);
  display: grid;
  place-items: center;
  border-radius: var(--radius-circle);
  color: var(--color-canvas);
  border: var(--border-width-thin) solid var(--color-plum-400);
  transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.social a:hover { background: var(--accent); border-color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: var(--border-width-thin) solid var(--color-plum-700);
  font-size: var(--font-size-xs);
  color: var(--color-line-strong);
}
.footer-bottom a:hover { color: var(--color-canvas); }


/* =============================================================
   FAB — floating WhatsApp button (mobile-first)
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: var(--z-fab);
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--color-whatsapp);
  color: var(--color-whatsapp-dark);
  border-radius: var(--radius-circle);
  box-shadow: var(--shadow-overlay);
  transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.fab-whatsapp:hover { background: var(--color-whatsapp-hover); transform: translateY(-2px); }


/* =============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-5);
}
.breadcrumbs ol { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.breadcrumbs li { display: inline-flex; gap: var(--space-2); align-items: center; }
.breadcrumbs li::after { content: "/"; color: var(--border-strong); opacity: 0.4; margin-left: var(--space-2); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-secondary); transition: color var(--duration-fast) var(--ease-standard); }
.breadcrumbs a:hover { color: var(--accent); }


/* =============================================================
   RESPONSIVE
   Breakpoints (constants — CSS does not allow var() in @media):
     --bp-lg: 1080px   nav contracts, display type steps down
     --bp-md:  900px   sections collapse to single column
     --bp-sm:  560px   stacking + tightest paddings
   ============================================================ */

@media (max-width: 1080px) {
  .hero-copy h1 { font-size: var(--font-size-5xl); }
  /* Footer keeps the 6-col layout down to 901px — sections are narrow but readable.
     Below 901px the next media block kicks in. */
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .main-nav ul { gap: var(--space-5); }
}

@media (max-width: 900px) {
  :root { --header-height: 76px; --section-pad-y: var(--space-12); --section-pad-y-loose: var(--space-14); }
  .header-inner { gap: var(--space-3); }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  /* Mobile drawer: dropdown items show inline as a nested list */
  .mobile-menu .has-dropdown > a::after { display: none; }
  .mobile-menu .dropdown {
    position: static;
    opacity: 1;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 var(--space-2) var(--space-5);
    min-width: 0;
    list-style: none;
    margin: 0;
  }
  .mobile-menu .dropdown a {
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: normal;
  }
  /* Suppress desktop-only flourishes inside the drawer */
  .mobile-menu .dropdown a::before { display: none; }
  .mobile-menu .dropdown a:hover,
  .mobile-menu .dropdown a:focus-visible,
  .mobile-menu .dropdown a[aria-current="page"] {
    color: var(--accent);
    background: transparent;
  }
  .header-actions { margin-left: auto; }   /* push hamburger to the right edge */
  .header-actions .btn--sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero-copy h1 { font-size: var(--font-size-4xl); }
  .hero .hero-image {
    width: 100%;
    min-height: clamp(320px, 88vw, 460px);
    aspect-ratio: auto !important;
    margin-inline: auto;
    justify-self: center;
    align-self: center;
  }
  .hero .hero-image img {
    display: block;
    object-position: center center;
  }
  .trust-strip { overflow: hidden; }
  .trust-strip__row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(46%, 1fr);
    gap: var(--space-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--space-6);
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-block: var(--space-2);
    will-change: scroll-position;
  }
  .trust-strip__row::-webkit-scrollbar { display: none; }
  .trust-strip__item,
  .trust-strip__item:nth-child(1),
  .trust-strip__item:nth-child(2),
  .trust-strip__item:last-child {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-right: var(--border-width-thin) solid var(--border-subtle);
    border-bottom: 0;
    padding: var(--space-4) var(--space-3);
  }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps--6 { grid-template-columns: repeat(2, 1fr); }   /* tablet: 6 cards = 2 cols x 3 rows */
  /* Tablet/medium footer (≤900px):
       Brand spans full width
       Cakes spans full width (keeps internal 2-col list)
       Learn + Studio share a row (each in 1 col)
       Visit spans full width
     This keeps the long lists on their own rows so they don't unbalance
     a half-row beside a much shorter section.                              */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7) var(--space-8);
  }
  .footer-brand,
  .footer-cakes,
  .footer-visit { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

@media (max-width: 560px) {
  :root { --container-pad: var(--space-5); }
  h1 { font-size: var(--font-size-4xl); }
  .hero-copy h1 { font-size: 36px; }
  .hero { padding-block: var(--space-12); }
  .hero .hero-image {
    min-height: clamp(280px, 92vw, 420px);
  }
  .hero .hero-image__caption {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
  }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps--6 { grid-template-columns: 1fr; }              /* mobile: 1 card per row */
  .trust-strip__row {
    grid-auto-columns: minmax(84%, 1fr);
    scroll-padding-inline: var(--space-5);
  }
  .trust-strip__item,
  .trust-strip__item:nth-child(1),
  .trust-strip__item:nth-child(2),
  .trust-strip__item:last-child {
    padding: var(--space-4) var(--space-3);
  }
  .trust-strip__icon {
    width: 34px;
    height: 34px;
  }
  .trust-strip__icon svg {
    width: 16px;
    height: 16px;
  }
  .trust-strip__value { font-size: var(--font-size-md); }
  /* Phone footer (≤560px): everything stacks single column.
     Cakes keeps its internal 2-col list because the cake-name links are short. */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer-brand,
  .footer-cakes,
  .footer-visit { grid-column: 1; }
  /* Stack action button pairs vertically at mobile so wide CTA labels can't overflow.
     Buttons take full container width; gap unchanged. */
  .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .actions .btn { width: 100%; flex: 0 0 auto; min-width: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
