/* ============================================================
   XOXO PASTRY — styles.css
   Design tokens → resets → layout → components → responsive
   ============================================================ */

:root {
  /* Color palette */
  --bg-cream:         #F5E6D8;
  --bg-cream-soft:    #FAF1E5;
  --bg-cream-deep:    #EFD9C2;
  --ink-brown:        #4A2E1F;
  --ink-brown-soft:   #6B4A38;
  --accent-rose:      #C7826F;
  --accent-rose-deep: #A85F4C;
  --gold-line:        #C9A678;
  --gold-line-soft:   #E0C9A3;
  --shadow-warm:      0 18px 40px -24px rgba(74, 46, 31, 0.22);
  --shadow-card:      0 10px 30px -18px rgba(74, 46, 31, 0.18);

  /* Type */
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-script:  "Allura", "Great Vibes", cursive;
  --font-body:    "Cormorant Garamond", "Lora", Georgia, serif;
  --font-ui:      system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (clamp-only) */
  --fs-hero:   clamp(3rem, 7vw + 1rem, 6.5rem);
  --fs-script: clamp(2.25rem, 5vw + 0.5rem, 4.25rem);
  --fs-h2:     clamp(2rem, 3.2vw + 1rem, 3.25rem);
  --fs-h3:     clamp(1.4rem, 1.5vw + 0.75rem, 1.9rem);
  --fs-body:   clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  --fs-tag:    clamp(1.1rem, 1.4vw + 0.6rem, 1.6rem);
  --fs-small:  0.875rem;
  --lh-tight:  1.15;
  --lh-body:   1.65;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --radius-card: 14px;
  --radius-soft: 6px;
  --maxw-content: 1180px;
  --maxw-narrow: 720px;
  --nav-h: 68px;

  color-scheme: light;
  accent-color: var(--accent-rose);
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-brown);
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--bg-cream-deep), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, var(--bg-cream-soft), transparent 65%),
    var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}
a:hover { color: var(--accent-rose-deep); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-rose-deep);
  outline-offset: 3px;
  border-radius: var(--radius-soft);
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ============================================================
   Utility / layout shell
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--maxw-content);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--space-7);
  position: relative;
}

.section__head {
  text-align: center;
  margin-bottom: var(--space-5);
}
.section__head--left { text-align: left; }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  color: var(--ink-brown);
  letter-spacing: -0.01em;
}

.section__sub {
  margin-top: 0.4rem;
  font-family: var(--font-script);
  font-size: var(--fs-tag);
  color: var(--accent-rose);
  line-height: 1.1;
}

/* Divider: thin line — heart — thin line */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  padding: var(--space-4) clamp(1.25rem, 4vw, 2.5rem);
  max-width: 460px;
  color: var(--accent-rose);
}
.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.divider__heart {
  width: 14px;
  height: 14px;
  color: var(--accent-rose);
  flex-shrink: 0;
}

/* ============================================================
   SVG ornaments
   ============================================================ */

.orn { color: var(--accent-rose); }

.orn-bow-sm {
  display: block;
  margin: 0 auto var(--space-2);
  color: var(--accent-rose);
  opacity: 0.85;
  filter: drop-shadow(0 4px 6px rgba(199, 130, 111, 0.18));
}
.section__head--left .orn-bow-sm { margin-inline: 0 0; }

/* ============================================================
   Logo lockup
   ============================================================ */

.logo-xoxo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-brown);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}
.logo-xoxo .logo-heart {
  width: 0.55em;
  height: 0.55em;
  margin: 0 0.02em;
  color: var(--accent-rose);
  transform: translateY(0.03em);
}
.logo-script {
  font-family: var(--font-script);
  color: var(--ink-brown);
  line-height: 1;
}

/* ============================================================
   Top navigation
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: transparent;
  transition: background-color 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 230, 216, 0.85);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom-color: var(--gold-line-soft);
  box-shadow: var(--shadow-warm);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: rgba(245, 230, 216, 0.96); }
}

.nav__inner {
  height: 100%;
  max-width: var(--maxw-content);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.1rem;
}
.nav__logo .logo-xoxo { font-size: 1.35rem; }
.nav__logo .logo-script { font-size: 1.5rem; transform: translateY(2px); color: var(--accent-rose); }

.nav__links {
  display: none;
  gap: clamp(1rem, 2vw, 2rem);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-brown);
}
.nav__links a {
  position: relative;
  padding: 0.5rem 0.25rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.25rem; right: 0.25rem; bottom: 0.25rem;
  height: 1px;
  background: var(--accent-rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-brown);
  border: 1px solid var(--gold-line-soft);
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}
.nav__ig:hover {
  background: var(--accent-rose);
  color: #fff;
  transform: translateY(-1px);
}
.nav__ig svg { width: 20px; height: 20px; }

@media (min-width: 720px) {
  .nav__links { display: inline-flex; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-rose);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(168, 95, 76, 0.6);
}
.btn--primary:hover {
  background: var(--accent-rose-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -14px rgba(168, 95, 76, 0.7);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-brown);
  border-color: var(--gold-line);
}
.btn--ghost:hover {
  background: rgba(201, 166, 120, 0.12);
  color: var(--ink-brown);
  transform: translateY(-1px);
}
.btn--lg {
  min-height: 56px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--space-5)) clamp(1.25rem, 4vw, 2.5rem) var(--space-6);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--gold-line-soft);
  border-radius: 4px;
  pointer-events: none;
}
.hero::after {
  inset: clamp(1.4rem, 3.4vw, 2.4rem);
  border-color: var(--gold-line);
  opacity: 0.55;
}

.hero__bow {
  width: clamp(86px, 11vw, 140px);
  aspect-ratio: 100 / 64;
  height: auto;
  color: var(--accent-rose);
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 8px 14px rgba(199, 130, 111, 0.3));
}

.hero__lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.logo-xoxo--big {
  font-size: var(--fs-hero);
  margin-bottom: -0.15em;
}
.logo-xoxo--big .logo-heart { width: 0.5em; height: 0.5em; }
.logo-script--big {
  font-size: var(--fs-script);
  color: var(--accent-rose);
  margin-top: 0;
  letter-spacing: 0.01em;
}

.hero__eyebrow {
  margin-top: var(--space-3);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(0.78rem, 0.4vw + 0.7rem, 0.95rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-rose);
}
.hero__tagline {
  margin-top: var(--space-1);
  max-width: 32ch;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.4rem);
  color: var(--ink-brown);
  line-height: 1.1;
  font-style: normal;
}

.hero__ctas {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Floral corners */
.orn-floral {
  position: absolute;
  width: clamp(90px, 14vw, 180px);
  height: auto;
  color: var(--accent-rose);
  opacity: 0.7;
  pointer-events: none;
}
.orn-floral--tl { top: clamp(3rem, 7vw, 5rem); left: clamp(1rem, 4vw, 3rem); transform: rotate(-12deg); }
.orn-floral--br { bottom: clamp(2rem, 6vw, 4rem); right: clamp(1rem, 4vw, 3rem); transform: rotate(170deg); }

@media (max-width: 760px) {
  .orn-floral { display: none; }
}

/* ============================================================
   About
   ============================================================ */

.about {
  text-align: center;
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: var(--space-6) clamp(1.25rem, 4vw, 2.5rem) var(--space-5);
}
.about__eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: var(--space-2);
}
.about p {
  font-size: clamp(1.15rem, 0.6vw + 1.05rem, 1.4rem);
  color: var(--ink-brown-soft);
  line-height: 1.6;
  font-style: italic;
}
.about__sign {
  margin-top: var(--space-3) !important;
  font-family: var(--font-script) !important;
  font-style: normal !important;
  color: var(--accent-rose) !important;
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem) !important;
  line-height: 1.1 !important;
}

/* ============================================================
   Menu
   ============================================================ */

/* Centered intro line above the menu */
.menu-stack__legend {
  max-width: var(--maxw-narrow);
  margin: 0 auto var(--space-5);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-brown-soft);
}
.menu-stack__legend strong { color: var(--accent-rose-deep); font-style: normal; }

/* Categories stack */
.menu-cats {
  max-width: var(--maxw-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* One category = a gold-framed panel */
.menu-cat {
  position: relative;
  background: var(--bg-cream-soft);
  border-radius: var(--radius-card);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-card);
}
.menu-cat::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px double var(--gold-line);
  border-radius: calc(var(--radius-card) - 4px);
  pointer-events: none;
  opacity: 0.5;
}
.menu-cat__head { text-align: center; margin-bottom: var(--space-4); }
.menu-cat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem);
  color: var(--accent-rose-deep);
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.menu-cat__sub {
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-brown-soft);
  font-size: 1rem;
}

/* Flavor cards: photo left, name + description + price right */
.fcard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
@media (min-width: 880px) {
  .fcard-list { grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 3vw, 2.6rem); }
}
.fcard {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.2rem);
  align-items: center;
  padding: 0.3rem;
}
.fcard__media {
  flex: 0 0 auto;
  width: clamp(108px, 26vw, 148px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: var(--bg-cream);
  box-shadow: inset 0 0 0 1px var(--gold-line-soft);
}
.fcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.fcard:hover .fcard__media img { transform: scale(1.05); }
.fcard__body { flex: 1; min-width: 0; }
.fcard--nophoto .fcard__body { padding-left: 0.4rem; }
.fcard__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink-brown);
  line-height: 1.2;
}
.fcard__emoji { font-size: 0.95em; }
.fcard__desc {
  margin-top: 0.25rem;
  font-family: var(--font-body);
  color: var(--ink-brown-soft);
  font-size: 1rem;
  line-height: 1.4;
}
.fcard__price {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-rose-deep);
  letter-spacing: 0.01em;
}
.fcard__note {
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.35;
}
.fcard__note--warn {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(168, 95, 76, 0.1);
  color: var(--accent-rose-deep);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ============================================================
   Custom Orders & Catering
   ============================================================ */

.section--custom {
  position: relative;
}
.custom__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  max-width: var(--maxw-content);
  margin: 0 auto;
}
.custom__body { padding: 0 clamp(0.25rem, 1vw, 1rem); }
.custom__body p {
  margin-top: var(--space-3);
  color: var(--ink-brown-soft);
  font-size: 1.1rem;
}
.custom__heading {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-rose);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.custom__heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin-top: 0.5rem;
  background: var(--accent-rose);
  opacity: 0.5;
}

.perfect-list {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .perfect-list { grid-template-columns: repeat(2, 1fr); gap: 0.85rem 1.5rem; }
}
.perfect-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink-brown);
  font-size: 1.08rem;
}
.perfect-list svg {
  width: 24px;
  height: 24px;
  color: var(--accent-rose);
  flex-shrink: 0;
}

.custom__cta { margin-top: var(--space-4); }

.custom__media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-cream-soft);
  box-shadow: var(--shadow-warm);
}
.custom__media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--radius-card) - 4px);
  pointer-events: none;
}
.custom__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  transition: transform 800ms cubic-bezier(.2, .7, .2, 1);
}
.custom__media:hover img { transform: scale(1.03); }

@media (min-width: 880px) {
  .custom__grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-6); }
  .custom__media { max-height: 720px; }
}

/* ============================================================
   Tips card
   ============================================================ */

.tips {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: center;
  background: var(--bg-cream-soft);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
  box-shadow: var(--shadow-card);
}
.tips::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px double var(--gold-line);
  border-radius: calc(var(--radius-card) - 4px);
  pointer-events: none;
  opacity: 0.5;
}
.tips__body { padding: 0.25rem; }
.tips__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  color: var(--ink-brown);
  line-height: 1.15;
}
.tips__title em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--accent-rose);
  font-size: 1.4em;
  margin-left: 0.1em;
}
.tips__body p { margin-top: 0.6rem; color: var(--ink-brown-soft); font-style: italic; }

.tips--text {
  max-width: 720px;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 3vw, 2.5rem);
}
.tips--text .tips__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}
.tips--text .orn-bow-sm { margin-bottom: var(--space-2); }
.tips--text .tips__title { line-height: 1.2; }
.tips--text p {
  margin-top: 0.6rem;
  color: var(--ink-brown-soft);
  font-style: italic;
  font-size: 1.1rem;
}

/* ============================================================
   Order / Contact tiles
   ============================================================ */

.order-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 980px;
  margin: 0 auto;
}
.order-list li { display: flex; }
@media (min-width: 720px) {
  .order-list { grid-template-columns: repeat(3, 1fr); }
}

.order-tile {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
  background: var(--bg-cream-soft);
  border-radius: var(--radius-card);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 280ms ease, box-shadow 280ms ease, background-color 280ms ease;
  min-height: 180px;
}
.order-tile::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px double var(--gold-line);
  border-radius: calc(var(--radius-card) - 4px);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 280ms ease;
}
.order-tile:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 26px 44px -20px rgba(74, 46, 31, 0.28);
  color: var(--ink-brown);
}
.order-tile:hover::before { opacity: 0.8; }
.order-tile__icon {
  width: 38px;
  height: 38px;
  color: var(--accent-rose);
}
.order-tile__label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--ink-brown-soft);
}
.order-tile__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink-brown);
  letter-spacing: 0.01em;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  margin-top: var(--space-5);
  padding: var(--space-5) clamp(1.25rem, 4vw, 2.5rem) var(--space-4);
  border-top: 1px solid var(--gold-line-soft);
  background: linear-gradient(180deg, transparent, rgba(239, 217, 194, 0.4));
  text-align: center;
}
.footer__inner {
  max-width: var(--maxw-content);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.footer__script {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 1.5vw + 1.2rem, 2.4rem);
  color: var(--accent-rose);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}
.footer__script svg { width: 18px; height: 18px; color: var(--accent-rose); }
.footer__contacts {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-brown);
}
.footer__contacts a {
  font-weight: 600;
  color: var(--ink-brown);
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.footer__contacts a:hover {
  color: var(--accent-rose-deep);
  border-bottom-color: var(--accent-rose);
}
.footer__contacts span { color: var(--gold-line); }
.footer__copy {
  margin-top: 0.4rem;
  font-size: var(--fs-small);
  color: var(--ink-brown-soft);
  font-family: var(--font-ui);
}

/* ============================================================
   Reveal animations
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease-out,
    transform 700ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .custom__media:hover img,
  .fcard:hover .fcard__media img { transform: none; }
}

/* ============================================================
   ORDER FORM (.section--orderform / .oform)
   Card mirrors .tips / .menu-card: cream-soft bg, gold double
   inner frame, warm shadow. Mobile-first single column.
   ============================================================ */

.oform {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-cream-soft);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}
.oform::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px double var(--gold-line);
  border-radius: calc(var(--radius-card) - 4px);
  pointer-events: none;
  opacity: 0.5;
}

/* --- loading / fallback / success panels --- */
.oform__loading {
  text-align: center;
  font-style: italic;
  color: var(--ink-brown-soft);
  padding: var(--space-4) 0;
}
.oform__fallback,
.oform__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-3) 0;
}
.oform__fallback[hidden],
.oform__success[hidden] { display: none; }
.oform__heart {
  width: 40px;
  height: 40px;
  color: var(--accent-rose);
}
.oform__panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  color: var(--ink-brown);
  line-height: 1.2;
}
.oform__fallback p,
.oform__success p {
  color: var(--ink-brown-soft);
  font-style: italic;
  max-width: 46ch;
}

/* --- form shell --- */
.oform__form {
  display: grid;
  gap: var(--space-4);
}
.oform__form[hidden] { display: none; }
.oform fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.oform legend { padding: 0; }
.oform__legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink-brown);
  margin-bottom: var(--space-2);
}

/* --- labels, inputs, helpers --- */
.oform__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-brown-soft);
  margin-bottom: 0.4rem;
}
.oform__optional {
  text-transform: none;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.oform__input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.65em 0.8em;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-brown);
  background: var(--bg-cream-soft);
  border: 1px solid var(--gold-line-soft);
  border-radius: var(--radius-soft);
}
.oform__input::placeholder {
  color: var(--ink-brown-soft);
  opacity: 0.55;
  font-style: italic;
}
.oform__input:focus-visible {
  outline: 2px solid var(--accent-rose-deep);
  outline-offset: 2px;
}
.oform__input[aria-invalid="true"] { border-color: var(--accent-rose-deep); }
.oform__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236B4A38' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 12px 8px;
}
.oform__textarea {
  min-height: 0;
  resize: vertical;
}
.oform__help {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-brown-soft);
  line-height: 1.4;
}
.oform__help--center {
  text-align: center;
  margin-top: calc(var(--space-3) * -1 + 0.25rem);
}
.oform__error {
  margin-top: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--accent-rose-deep);
}
.oform__error--form {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.6rem;
}
.oform__error--form a {
  font-weight: 600;
  text-decoration: underline;
}

/* --- item rows --- */
.oform__rows { display: grid; gap: var(--space-3); }
.oform-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "product product product"
    "flavor  flavor  flavor"
    "addons  addons  addons"
    "qty     price   remove"
    "error   error   error";
  align-items: end;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gold-line-soft);
}
.oform-row--noflavor {
  grid-template-areas:
    "product product product"
    "addons  addons  addons"
    "qty     price   remove"
    "error   error   error";
}
.oform-row--noflavor .oform-row__flavor { display: none; }
.oform-row__addons {
  grid-area: addons;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  align-items: center;
}
.oform-row__addons[hidden] { display: none; }
.oform-addon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-brown-soft);
  cursor: pointer;
}
.oform-addon input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent-rose);
  cursor: pointer;
}
.oform-row__product { grid-area: product; }
.oform-row__flavor  { grid-area: flavor; }
.oform-row__qty     { grid-area: qty; }
.oform-row__price {
  grid-area: price;
  align-self: end;
  padding-bottom: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-rose-deep);
  text-align: right;
  white-space: nowrap;
}
.oform-row__remove {
  grid-area: remove;
  justify-self: end;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-rose-deep);
  background: transparent;
  border: 1px solid var(--gold-line-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease;
}
.oform-row__remove:hover {
  background: rgba(199, 130, 111, 0.12);
  border-color: var(--gold-line);
}
.oform-row__error { grid-area: error; margin-top: 0; }
.oform__add { margin-top: var(--space-3); }

/* --- radio pills (Pickup / Delivery) --- */
.oform__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.oform__pill {
  position: relative;
  display: inline-flex;
}
.oform__pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.oform__pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink-brown);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.oform__pill:hover span { background: rgba(201, 166, 120, 0.12); }
.oform__pill input:checked + span {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(168, 95, 76, 0.6);
}
.oform__pill input:focus-visible + span {
  outline: 2px solid var(--accent-rose-deep);
  outline-offset: 3px;
}

/* --- field groups --- */
.oform__grid {
  display: grid;
  gap: var(--space-3);
}

/* --- honeypot: visually removed, ignored by AT --- */
.oform__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- summary & actions --- */
.oform__summary {
  margin-top: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--gold-line-soft);
  text-align: center;
}
.oform__total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.45rem);
  color: var(--ink-brown);
}
.oform__actions {
  display: flex;
  justify-content: center;
}

/* --- wide screens --- */
@media (min-width: 720px) {
  .oform-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) 6.5rem minmax(4.5rem, auto) 48px;
    grid-template-areas:
      "product flavor qty price remove"
      "addons  addons addons addons addons"
      "error   error  error error error";
  }
  .oform-row--noflavor {
    grid-template-areas:
      "product product qty price remove"
      "addons  addons  addons addons addons"
      "error   error   error error error";
  }
  .oform__grid--when {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .oform__grid--contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   Print
   ============================================================ */

@media print {
  .nav, .hero__bow, .orn-floral, .reveal { all: revert; opacity: 1; }
  body { background: white; color: black; }
}
