/* ============================================================
   Dip & Drizzle — design system
   Palette drawn from the current logo (cream / cocoa / soft gray)
   plus blush-pink "drizzle" accents. Everything themeable via
   the variables below so a logo/brand refresh is a quick swap.
   ============================================================ */

:root {
  --cream: #FDF8F1;          /* page background */
  --cream-2: #F7EEE1;        /* alternate section background */
  --shell: #EFE9E1;          /* soft gray from logo circle */
  --cocoa: #3E2C21;          /* deep chocolate — headings, footer */
  --cocoa-2: #5A4434;        /* lighter chocolate — body text */
  --taupe: #B3A491;          /* ribbon taupe — subtle borders */
  --blush: #F4BFD2;          /* soft raspberry pink */
  --berry: #C22B5A;          /* raspberry — CTAs (Crystal's pick) */
  --berry-dark: #9E1D46;     /* CTA hover */
  --berry-shadow: rgba(194, 43, 90, 0.35);
  --caramel: #C98A4B;        /* warm accent */
  --pistachio: #9BA65D;      /* tiny accent (mascot's earring) */
  --white: #FFFFFF;

  --font-display: "Pacifico", cursive;
  --font-body: "Nunito", "Avenir Next", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(62, 44, 33, 0.10);
  --shadow-soft: 0 4px 14px rgba(62, 44, 33, 0.08);
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--cocoa-2);
  background: var(--cream);
}

img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--cocoa); line-height: 1.2; }

.script { font-family: var(--font-display); font-weight: 400; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }
section[id] { scroll-margin-top: 64px; }

.section-alt { background: var(--cream-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.section-head p { color: var(--cocoa-2); }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry);
  margin-bottom: 8px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(179, 164, 145, 0.25);
}

.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--cocoa); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.wordmark .amp { color: var(--berry); }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--cocoa-2); font-weight: 700; font-size: 0.98rem;
  padding-bottom: 2px; border-bottom: 2px solid transparent; transition: all .15s ease;
}
.nav-links a:hover { color: var(--berry); }
.nav-links a.active { color: var(--berry); border-bottom-color: var(--blush); }
.nav-links a.btn-primary, .nav-links a.btn-primary.active, .nav-links a.btn-primary:hover { color: var(--white); border-bottom: none; }

.nav-party { position: relative; }
.nav-hat {
  position: absolute; top: -13px; left: -10px; width: 19px;
  transform: rotate(-24deg); pointer-events: none;
}
.nav-hat svg { width: 100%; height: auto; display: block; }

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 800; font-family: var(--font-body); font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--berry); color: var(--white); box-shadow: 0 6px 18px var(--berry-shadow, rgba(217, 83, 122, 0.35)); }
.btn-primary:hover { background: var(--berry-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cocoa); border: 2px solid var(--taupe); }
.btn-ghost:hover { border-color: var(--berry); color: var(--berry); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

.nav .btn { padding: 10px 20px; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--cocoa); cursor: pointer; }
.nav-toggle svg { width: 27px; height: auto; display: block; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 0 0 6px;
}
.hero .eyebrow { margin-bottom: 16px; }
/* Title lockup: baker stands to the right of the wordmark, feet on the
   eyebrow line, which nestles under the title from the p's swoop to her boots */
.title-wrap { position: relative; display: inline-block; padding-right: 88px; margin-bottom: 16px; }
.title-wrap h1 { position: relative; z-index: 1; }
.title-wrap .eyebrow { display: block; margin: 5px 0 0 100px; white-space: nowrap; font-size: 0.62rem; letter-spacing: 0.1em; }
.title-baker {
  position: absolute; width: 112px; right: 0; bottom: 10px; z-index: 0;
  transform: rotate(4deg);
  filter: drop-shadow(0 8px 16px rgba(62, 44, 33, 0.22));
  animation: baker-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes baker-pop {
  from { transform: translateY(46px) rotate(0deg); opacity: 0; }
  to   { transform: translateY(0) rotate(4deg); opacity: 1; }
}
.hero h1 .amp { color: var(--berry); }

.hero .tagline {
  font-size: 1.2rem; color: var(--cocoa-2); max-width: 34rem; margin-bottom: 30px;
}
.hero .tagline strong { color: var(--cocoa); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Layered photo collage — crops and light color-grading done in CSS so tiles
   can be re-cropped or swapped without re-editing the source photos */
.hero-collage {
  position: relative; aspect-ratio: 1 / 1.04;
  max-width: 470px; width: 100%; margin-left: auto;
}
.hero-collage .tile {
  position: absolute; object-fit: cover;
  border: 6px solid var(--white); border-radius: 22px;
  box-shadow: 0 14px 34px rgba(62, 44, 33, 0.18);
  filter: saturate(1.08) brightness(1.04) contrast(1.03);
}
.tile-main   { width: 58%; height: 76%; left: 0; top: 7%; transform: rotate(-3deg); z-index: 2; overflow: hidden; display: block; }
.tile-main img {
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 52%;
  transform: scale(1.35); transform-origin: 38% 52%; display: block;
}
.tile-circle { width: 47%; aspect-ratio: 1; right: 0; top: -2%; transform: rotate(2deg); border-radius: 50%; object-position: 45% 62%; z-index: 3; animation: float 6s ease-in-out infinite; }
.tile-corner { width: 47%; height: 42%; right: 0; bottom: 7%; transform: rotate(2.5deg); z-index: 2; overflow: hidden; display: block; }
.tile-corner img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%;
  transform: scale(1.22); transform-origin: 50% 72%; display: block;
}
.tile-mini   { width: 30%; aspect-ratio: 1; left: 7%; bottom: 0; transform: rotate(-5deg); border-radius: 18px; object-position: 42% 55%; z-index: 4; }

.collage-chip {
  position: absolute; left: -3%; top: 2%; z-index: 5;
  background: var(--berry); color: var(--white);
  font-family: var(--font-display); font-size: 1.05rem;
  padding: 8px 18px; border-radius: 999px; transform: rotate(-5deg);
  box-shadow: 0 8px 20px var(--berry-shadow);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
.tile-circle { --r: 2deg; }
.collage-chip { --r: -5deg; }

.sprinkle { position: absolute; border-radius: 999px; opacity: 0.7; pointer-events: none; }

/* ---------- Drizzle divider ---------- */

.drizzle { display: block; width: 100%; height: 40px; }

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }

.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(179, 164, 145, 0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .emoji { font-size: 2rem; margin-bottom: 12px; }
.card .card-icon { height: 46px; margin-bottom: 12px; }
.card .card-icon svg { height: 100%; width: auto; display: block; margin: 0 auto; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; }
.card .price-hint { display: block; margin-top: 12px; font-weight: 800; color: var(--berry); font-size: 0.92rem; }

/* ---------- Stats band ---------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px; text-align: center;
}
.stat .big {
  font-family: var(--font-display); font-size: 2.4rem; color: var(--berry);
  height: 62px; display: flex; align-items: center; justify-content: center;
}
.stat .big-icon svg { height: 46px; width: auto; display: block; }
.stat .label { font-weight: 700; color: var(--cocoa); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); background: var(--white); border: 1px solid rgba(179,164,145,0.18); }

table.pricing { width: 100%; border-collapse: collapse; min-width: 560px; }
table.pricing th, table.pricing td { padding: 14px 18px; text-align: left; }
table.pricing thead th {
  background: var(--cocoa); color: var(--cream); font-size: 0.88rem;
  letter-spacing: 0.02em;
}
table.pricing thead th small { display: block; font-weight: 400; opacity: 0.75; }
table.pricing tbody tr:nth-child(even) { background: var(--cream-2); }
table.pricing td.na { color: var(--taupe); }
table.pricing td strong { color: var(--cocoa); }

.pricing-note { font-size: 0.9rem; color: var(--cocoa-2); margin-top: 10px; font-style: italic; }

.row-link { color: var(--cocoa); text-decoration: underline dotted rgba(194, 43, 90, 0.55); text-underline-offset: 3px; transition: color .12s ease; }
.row-link:hover { color: var(--berry); text-decoration-style: solid; }

.table-title { display: flex; align-items: center; gap: 12px; margin: 36px 0 12px; }
.table-title .table-icon svg { height: 42px; width: auto; display: block; }
.table-title-center { justify-content: center; margin: 44px 0 14px; }

/* ---------- Flavor explorer ---------- */

.flavor-search {
  width: 100%; max-width: 480px; display: block; margin: 0 auto 34px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid var(--taupe);
  font-family: var(--font-body); font-size: 1rem; color: var(--cocoa);
  background: var(--white);
}
.flavor-search:focus { outline: none; border-color: var(--berry); }

.collection { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(179,164,145,0.2); margin-bottom: 14px; box-shadow: var(--shadow-soft); overflow: hidden; }
.collection summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 12px;
  padding: 18px 22px; font-weight: 800; color: var(--cocoa); font-size: 1.05rem;
}
.collection summary::-webkit-details-marker { display: none; }
.collection summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--berry); transition: transform .15s ease; }
.collection[open] summary::after { transform: rotate(45deg); }
.collection summary .blurb { font-weight: 600; font-size: 0.88rem; color: var(--taupe); }
.collection summary .count { font-size: 0.82rem; font-weight: 700; color: var(--berry); background: var(--blush); border-radius: 999px; padding: 2px 10px; }
.collection .items { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 22px; }

.chip {
  background: var(--cream-2); border: 1px solid rgba(179,164,145,0.35);
  padding: 6px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--cocoa-2);
  text-decoration: none; display: inline-block; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
a.chip:hover { border-color: var(--berry); background: var(--blush); color: var(--cocoa); }

/* Touch-device flavor card (bottom sheet) */
#flavor-sheet-backdrop {
  position: fixed; inset: 0; z-index: 290;
  background: rgba(44, 32, 25, 0.45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#flavor-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
#flavor-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--cream); border-radius: 22px 22px 0 0;
  padding: 24px 26px calc(26px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(44, 32, 25, 0.28);
  transform: translateY(105%); transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1);
}
#flavor-sheet.open { transform: translateY(0); }
.sheet-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 1.15rem; font-weight: 800; color: var(--taupe); cursor: pointer; padding: 6px;
}
.sheet-collection {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--caramel); margin-bottom: 4px;
}
.sheet-name { font-family: var(--font-display); font-size: 1.55rem; color: var(--cocoa); margin-bottom: 8px; }
.sheet-note { color: var(--cocoa-2); font-size: 0.97rem; margin-bottom: 18px; }
.sheet-order { display: block; text-align: center; }

#flavor-tip {
  position: fixed; display: none; z-index: 200; max-width: 270px;
  background: var(--cocoa); color: var(--cream);
  font-size: 0.85rem; font-weight: 600; line-height: 1.45;
  padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(44, 32, 25, 0.35);
  pointer-events: none;
}
.chip.match { background: var(--blush); border-color: var(--berry); color: var(--cocoa); }

.seasonal-tag { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caramel); }

/* ---------- Package cards ---------- */

.package-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; align-items: stretch; }
.package {
  background: var(--white); border-radius: var(--radius); padding: 26px 22px;
  border: 2px solid rgba(179,164,145,0.25); display: flex; flex-direction: column; gap: 8px;
  flex: 1 1 280px; max-width: 320px; min-width: 240px;
}
@media (max-width: 860px) {
  .package { max-width: none; flex-basis: 240px; }
}
.package.feature { border-color: var(--berry); position: relative; }
.package.feature::before {
  content: "Most popular"; position: absolute; top: -12px; left: 20px;
  background: var(--berry); color: var(--white); font-size: 0.72rem; font-weight: 800;
  padding: 3px 12px; border-radius: 999px; letter-spacing: 0.06em;
}
.package h3 { font-family: var(--font-display); font-size: 1.4rem; }

/* Party decorations on the featured package */
.party-hat {
  position: absolute; top: -47px; right: -16px; width: 78px; z-index: 2;
  transform: rotate(16deg); pointer-events: none;
}
.party-hat svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 8px rgba(62,44,33,0.18)); }
.confetti { position: absolute; width: 62px; pointer-events: none; opacity: 0.95; }
.confetti svg { width: 100%; height: auto; display: block; }
.confetti-a { left: -36px; top: 30%; animation: float 4.5s ease-in-out infinite; }
.confetti-b { right: -38px; bottom: 10%; animation: float 5.5s ease-in-out 0.8s infinite; }
.confetti-b svg { transform: scaleX(-1); }
.confetti-c { left: -28px; top: -32px; animation: float 5s ease-in-out 0.4s infinite; }
.confetti-c svg { transform: rotate(130deg); }
.confetti-d { right: -42px; top: 22%; animation: float 4.8s ease-in-out 1.2s infinite; }
.confetti-d svg { transform: scaleX(-1) rotate(-30deg); }
.package .price { font-size: 1.7rem; font-weight: 900; color: var(--berry); }
.package .guests { font-weight: 800; color: var(--caramel); font-size: 0.9rem; }
.package p { font-size: 0.92rem; }
.package .note { font-size: 0.85rem; color: var(--pistachio); font-weight: 700; }

/* ---------- Baking scene (order page header) ---------- */

.baking-scene {
  position: relative; width: 252px; height: 152px; margin: 0 auto 14px;
}
.scene-baker { position: absolute; left: 0; bottom: 4px; height: 142px; width: auto; }
.scene-oven { position: absolute; right: 0; bottom: 0; height: 124px; width: auto; }
.scene-tray {
  position: absolute; left: 86px; top: 48px; width: 76px; z-index: 2;
  animation: float 4.5s ease-in-out infinite;
}
.scene-tray svg { width: 100%; height: auto; display: block; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(179,164,145,0.2); padding: 36px; max-width: 760px; margin: 0 auto;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-weight: 800; color: var(--cocoa); font-size: 0.92rem; margin-bottom: 6px; }
label .req { color: var(--berry); }
.hint { font-size: 0.82rem; color: var(--taupe); font-weight: 600; margin-top: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--shell);
  font-family: var(--font-body); font-size: 0.98rem; color: var(--cocoa); background: var(--cream);
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--berry); background: var(--white); }
textarea { resize: vertical; min-height: 96px; }

fieldset { border: none; margin: 26px 0 0; }
fieldset legend {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--cocoa); margin-bottom: 14px;
}

.order-item {
  background: var(--cream-2); border-radius: 14px; padding: 18px; margin-bottom: 14px;
  border: 1px solid rgba(179,164,145,0.25); position: relative;
}
.order-item .remove {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: var(--taupe); font-size: 1.1rem; cursor: pointer; font-weight: 800;
}
.order-item .remove:hover { color: var(--berry); }

.addon-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 8px; }
.addon-option {
  display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer;
  background: var(--cream-2); border: 1px solid rgba(179,164,145,0.3);
  border-radius: 12px; padding: 11px 14px; font-weight: 700; font-size: 0.9rem;
  transition: border-color .12s ease;
}
.addon-option:hover { border-color: var(--berry); }
.addon-option:has(input:checked) { border-color: var(--berry); background: var(--blush); }
.addon-option .addon-price { margin-left: auto; color: var(--berry); font-weight: 800; white-space: nowrap; }
@media (max-width: 860px) { .addon-list { grid-template-columns: 1fr; } }

.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; margin: 0; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--berry); width: 18px; height: 18px; }

.form-actions { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.success-panel { text-align: center; padding: 40px 20px; }
.success-panel .big-emoji { font-size: 3.4rem; margin-bottom: 12px; }
.success-panel .big-emoji svg { height: 76px; width: auto; display: block; margin: 0 auto; }
.success-panel h3 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 12px; }
.success-panel p { max-width: 420px; margin: 0 auto 8px; }

.error-msg { color: var(--berry-dark); font-weight: 700; font-size: 0.9rem; display: none; }

/* ---------- About / story ---------- */

.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.story-grid .photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background:
    repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 14px, var(--shell) 14px, var(--shell) 28px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--taupe); font-weight: 800; padding: 20px; border: 2px dashed var(--taupe);
}

/* ---------- Menu photo strip ---------- */

.menu-strip-wrap { padding: 40px 0 8px; overflow: hidden; }
.menu-strip { display: flex; gap: 16px; align-items: center; justify-content: center; }
.mtile {
  display: block; overflow: hidden; flex: 1 1 0;
  height: 168px; border: 5px solid var(--white); border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.mtile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.06) brightness(1.03) contrast(1.02);
}
.mtile-wide { flex: 1.7 1 0; }
.mtile:nth-child(odd) { transform: rotate(-2deg); }
.mtile:nth-child(even) { transform: rotate(2deg); }

/* tighter crops to highlight the goodies */
.menu-strip .mtile:nth-child(2) img { transform: scale(1.28); transform-origin: 50% 58%; } /* drip cake */
.menu-strip .mtile:nth-child(3) img { transform: scale(1.35); transform-origin: 50% 42%; } /* party spread */
.menu-strip .mtile:nth-child(4) img { transform: scale(1.5); transform-origin: 50% 52%; }  /* kitty tray */

/* pull the pricing heading up toward the strip */
.menu-strip-wrap + section { padding-top: 28px; }

@media (max-width: 860px) {
  .menu-strip { flex-wrap: wrap; }
  .mtile { flex: 1 1 40%; height: 130px; }
  .mtile-wide { flex: 1 1 86%; }
}

/* ---------- Contact cards ---------- */

#contact .card p { font-size: 0.92rem; overflow-wrap: anywhere; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-grid figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-soft); margin: 0;
}
.gallery-grid img {
  --z: 1; /* per-tile zoom for tighter crops */
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--z));
  transition: transform .25s ease;
  /* light unifying grade over mixed kitchen lighting */
  filter: saturate(1.06) brightness(1.03) contrast(1.02);
}
.gallery-grid figure:hover img { transform: scale(calc(var(--z) * 1.05)); }
.gallery-grid a.gallery-link { display: block; }
/* tighter crops on wide/busy shots */
.gallery-grid a:nth-child(1) img { --z: 1.45; transform-origin: 50% 58%; } /* royal crowns */
.gallery-grid a:nth-child(2) img { --z: 1.3; transform-origin: 50% 55%; }  /* kitty cones */
.gallery-grid a:nth-child(4) img { --z: 1.5; transform-origin: 50% 47%; }  /* wild ones */
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px; color: #fff; font-weight: 800; font-size: 0.9rem;
  background: linear-gradient(transparent, rgba(44, 32, 25, 0.75));
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--cocoa); color: var(--cream); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.site-footer .wordmark { color: var(--cream); font-size: 1.6rem; }
.site-footer h4 { color: var(--blush); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--blush); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-sub { font-size: 0.82rem; opacity: 0.75; letter-spacing: 0.02em; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(253,248,241,0.15); font-size: 0.85rem; text-align: center; opacity: 0.7; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  section { padding: 56px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-collage { order: -1; max-width: 320px; margin: 0 auto; }
  .collage-chip { font-size: 0.9rem; }
  .title-wrap { padding-right: 52px; }
  .title-wrap .eyebrow { margin: 14px 0 0 0; white-space: normal; }
  .title-baker { width: 62px; right: -6px; bottom: 24px; }
  .story-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }

  /* friendlier tap targets for flavor chips */
  .chip { padding: 9px 16px; font-size: 0.92rem; }

  /* pricing tables compress to fit instead of scrolling off-screen */
  table.pricing { min-width: 0 !important; width: 100%; }
  table.pricing th, table.pricing td { padding: 10px 9px; font-size: 0.84rem; vertical-align: top; }
  table.pricing thead th { font-size: 0.78rem; }
  table.pricing thead th small { font-size: 0.66rem; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--cream); padding: 20px 24px 26px;
    border-bottom: 1px solid rgba(179,164,145,0.25); gap: 18px;
  }
  .nav-links.open { display: flex; }
}
