:root {
  --cream: #fff7ec;
  --pink: #f7bfd0;
  --pink-soft: #fde3ea;
  --berry: #c93d6b;
  --berry-dark: #a82f57;
  --cocoa: #3a1d1b;
  --mint: #cdebdd;
  --butter: #ffe29a;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --nav-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--cocoa);
  background: var(--cream);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.015em; }
a { color: var(--berry-dark); }
img { max-width: 100%; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--berry-dark);
}
.section-pad { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 0.75rem; }
.section-sub { max-width: 560px; font-size: 1.1rem; }

/* scalloped frosting edge — set --scallop on the section to the NEXT section's colour */
.scallop { position: relative; }
.scallop::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -17px;
  height: 18px;
  background: radial-gradient(circle at 18px 0, var(--scallop) 17px, transparent 18px) 0 0 / 36px 18px repeat-x;
  z-index: 3;
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn-bake {
  display: inline-block;
  background: var(--berry);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--berry);
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn-bake:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  display: inline-block;
  color: var(--cocoa);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--cocoa);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--cocoa); color: var(--cream); }

/* ---------- nav: centred badge hanging over the hero ---------- */
.site-nav {
  background: var(--cream);
  height: var(--nav-h);
  padding: 0;
  z-index: 1030;
  border-bottom: 3px solid var(--cocoa);
}
.site-nav .container { height: 100%; position: relative; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cocoa);
}
.brand img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.site-nav .navbar-toggler { border: 2px solid var(--cocoa); padding: 0.3rem 0.55rem; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--pink); }
.site-nav .nav-link {
  color: var(--cocoa);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
}
.site-nav .nav-link:hover { color: var(--berry); }
.nav-order {
  background: var(--berry);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.55rem 1.1rem !important;
}
.nav-order:hover { background: var(--berry-dark); color: #fff !important; }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    position: absolute;
    top: calc(var(--nav-h) - 2px);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--cocoa);
    padding: 0.75rem 1.5rem 1.25rem;
    box-shadow: 0 14px 24px rgba(58, 29, 27, .15);
  }
  .site-nav .nav-link { padding: 0.8rem 0; border-bottom: 1px dashed rgba(58, 29, 27, .2); }
  .nav-order { display: inline-block; margin-top: 0.8rem; text-align: center; }
}
@media (min-width: 992px) {
  .site-nav .container { display: flex; align-items: center; }
  .brand {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 0;
    z-index: 5;
  }
  .brand img {
    width: 128px; height: 128px;
    border: 5px solid var(--cream);
    box-shadow: 0 0 0 3px var(--cocoa), 0 10px 22px rgba(58, 29, 27, .25);
    background: var(--cream);
  }
  .brand-name {
    margin-top: 0.55rem;
    background: var(--cocoa);
    color: var(--cream);
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
  }
  .site-nav .navbar-collapse { width: 100%; justify-content: space-between; }
  .nav-side { flex: 1 1 0; display: flex; align-items: center; }
  .nav-side.right { justify-content: flex-end; }
}

/* ---------- hero: photo mosaic beside a pink headline block ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}
.hero-copy {
  background: var(--pink);
  padding: 5rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy-inner { max-width: 560px; margin-left: auto; margin-right: auto; width: 100%; }
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  margin: 0 0 1.25rem;
  color: var(--cocoa);
}
.hero-title em { font-style: italic; color: var(--berry-dark); font-weight: 700; }
.hero-sub { font-size: 1.15rem; max-width: 30rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.hero-note { font-weight: 600; font-size: 0.95rem; margin: 0; }
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  background: var(--cocoa);
  position: relative;
}
.hero-mosaic .tile { aspect-ratio: 1 / 1; overflow: hidden; }
.hero-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-hero { background: url('img/hero.webp') center / cover no-repeat; }
.stamp {
  position: absolute;
  left: 50%; top: 50%;
  width: 118px; height: 118px;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: var(--butter);
  color: var(--cocoa);
  border: 3px dashed var(--cocoa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.05;
  z-index: 2;
  box-shadow: 0 0 0 5px var(--butter);
}
@media (min-width: 992px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: min(86vh, 760px); }
  .hero-copy { padding: 11rem 3rem 4rem; }
  .hero-copy-inner { margin-right: 0; padding-right: 2rem; }
  .hero-mosaic .tile { aspect-ratio: auto; }
}
@media (min-width: 1200px) {
  .hero-copy { padding-left: max(3rem, calc((100vw - 1140px) / 2 + 12px)); }
}

/* ---------- ticker ---------- */
.ticker { background: var(--cocoa); color: var(--cream); overflow: hidden; padding: 0.85rem 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  white-space: nowrap;
  padding: 0 1.4rem;
}
.ticker span::after { content: '✦'; margin-left: 2.8rem; color: var(--pink); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- specialties ---------- */
.specialties { background: var(--cream); }
.spec-card { text-align: center; position: relative; max-width: 320px; margin: 0 auto; }
.spec-photo {
  position: relative;
  border-radius: 999px 999px 28px 28px;
  box-shadow: 12px 12px 0 var(--spec-shadow, var(--pink));
  overflow: hidden;
  border: 3px solid var(--cocoa);
  background: var(--pink-soft);
  margin: 0 12px 0 0;
}
.spec-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.spec-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--cocoa);
  margin-top: 1.5rem;
}
.spec-name { font-size: 1.9rem; font-style: italic; margin: 0.15rem 0 0; }
.delivery-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; justify-content: center; }
.pill {
  display: inline-block;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cocoa);
  text-decoration: none;
  background: var(--cream);
}
.pill:hover { background: var(--cocoa); color: var(--cream); }

/* ---------- cake gallery: polaroid scroll-snap carousel ---------- */
.cakes { background: var(--pink); --scallop: var(--cocoa); }
.cakes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.car-btns { display: flex; gap: 0.6rem; }
.car-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--cocoa);
  background: var(--cream);
  color: var(--cocoa);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.car-btn:hover { background: var(--cocoa); color: var(--cream); }
.cake-track {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 1.5rem max(1.5rem, calc((100vw - 1140px) / 2 + 12px)) 2.25rem;
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(1.5rem, calc((100vw - 1140px) / 2 + 12px));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cocoa) transparent;
}
.polaroid {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
  background: #fff;
  padding: 10px 10px 40px;
  box-shadow: 0 8px 20px rgba(58, 29, 27, .22);
  transform: rotate(-2.2deg);
  margin: 0;
}
.cake-track li:nth-child(even) .polaroid { transform: rotate(1.8deg) translateY(10px); }
.cake-track li:nth-child(3n) .polaroid { transform: rotate(-0.6deg); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.cakes-cta { margin-top: 1rem; }

/* ---------- story: pull-quote band ---------- */
.story { background: var(--cocoa); color: var(--cream); overflow: hidden; position: relative; }
.story .eyebrow { color: var(--pink); }
.story-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0;
}
.story-quote::before {
  content: '“';
  display: block;
  font-size: 6rem;
  line-height: 0.6;
  color: var(--pink);
}
.story-bird {
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  border: 4px dashed var(--cream);
  transform: rotate(6deg);
}
.story-bird img { width: 130px; height: auto; display: block; }

/* ---------- peek gallery ---------- */
.peek { background: var(--cream); }
.peek-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.peek-item { margin: 0; border: 3px solid var(--cocoa); box-shadow: 8px 8px 0 var(--c, var(--pink)); background: var(--pink-soft); }
.peek-item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.peek-item:nth-child(4n+1) { --c: var(--pink); }
.peek-item:nth-child(4n+2) { --c: var(--mint); }
.peek-item:nth-child(4n+3) { --c: var(--butter); }
.peek-item:nth-child(4n) { --c: var(--berry); }
@media (min-width: 768px) {
  .peek-grid { grid-template-columns: repeat(4, 1fr); }
  .peek-item:nth-child(even) { transform: translateY(1.5rem); }
}

/* ---------- reviews ---------- */
.reviews { background: var(--mint); }
.reviews .social-row { margin-top: 1.5rem; }

/* ---------- custom order ---------- */
.order { background: var(--butter); }
.order-card {
  background: #fff;
  border: 3px solid var(--cocoa);
  box-shadow: 10px 10px 0 var(--cocoa);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 20px;
}
.order-card label { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.order-card .form-control, .order-card .form-select {
  border: 2px solid var(--cocoa);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  background-color: var(--cream);
}
.order-card .form-control:focus, .order-card .form-select:focus { box-shadow: 0 0 0 4px var(--pink); border-color: var(--berry); }

/* ---------- visit ---------- */
.visit { background: var(--cream); }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.hours td { padding: 0.55rem 0; border-bottom: 1px dashed rgba(58, 29, 27, .3); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.closed td:last-child { color: var(--berry-dark); }
.visit-line { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.6rem; }
.visit-line i { color: var(--berry); font-size: 1.25rem; line-height: 1.5; }
.map-frame { border: 3px solid var(--cocoa); box-shadow: 10px 10px 0 var(--pink); border-radius: 20px; overflow: hidden; height: 100%; min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--cocoa); color: var(--cream); padding: 4rem 0 2.5rem; }
.site-footer a { color: var(--cream); }
.footer-name { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; margin-bottom: 0.5rem; }
.footer-social { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer-social a {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--pink);
}
.footer-social a:hover { background: var(--pink); color: var(--cocoa); }
.footer-social a.text { width: auto; padding: 0 1rem; font-size: 0.85rem; font-weight: 700; }
.footer-rule { border-top: 1px solid rgba(255, 247, 236, .2); margin-top: 2.5rem; padding-top: 1.5rem; }
.powered {
  display: inline-block;
  background: var(--pink);
  color: var(--cocoa) !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.powered:hover { background: var(--butter); }

@media (max-width: 575.98px) {
  .stamp { width: 92px; height: 92px; font-size: 0.85rem; }
  .polaroid { width: 215px; }
  .hero-copy { padding-top: 3.5rem; }
}
