/* Amy's Sweet Treats — shared styles. One stylesheet, no build step.
   Palette taken from the logo: cream ground, cocoa-brown script, dusty-rose
   hearts, sage laurel. Soft, warm, hand-made — not corporate. */

:root {
  --cocoa: #4b3a2f;         /* deep warm brown — headings, footer, board */
  --cocoa-soft: #6f5a48;
  --ink: #433b33;           /* body text */
  --cream: #f8f3ea;         /* page background */
  --cream-deep: #f1e8d9;    /* alt panels */
  --paper: #fffdf8;         /* cards */
  --rose: #d7a7a3;          /* dusty pink from the hearts — tags, small accents */
  --rose-deep: #bd7f7b;     /* primary button */
  --rose-deeper: #a86b67;   /* button hover */
  --sage: #a8b79a;          /* laurel green — secondary accent, rules */
  --sage-deep: #8a9b7b;
  --muted: #877c6d;
  --border: #e9dfce;
  --shadow: 0 10px 30px rgba(75, 58, 47, 0.08);
  --shadow-lg: 0 24px 60px rgba(75, 58, 47, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script: "Caveat", "Fraunces", cursive;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-deeper); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cocoa);
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink); }
.muted { color: var(--muted); }

/* Section rhythm is margin-based so the gap between any two sections is exactly
   one value (collapsed margins), not the sum of two paddings. .wrap only owns
   the horizontal gutter — padding-inline can't be clobbered by a margin. */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

main { padding-block: clamp(36px, 5vw, 60px) clamp(48px, 7vw, 88px); }
main > section + section { margin-top: clamp(40px, 6vw, 72px); }
main > section.section-tight + section,
main > section.section-tight { margin-top: clamp(28px, 4vw, 44px); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--rose-deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--rose-deeper); }
.btn-ghost { background: transparent; color: var(--cocoa); border-color: var(--cocoa-soft); }
.btn-ghost:hover { background: var(--cocoa); color: #fff; }
.btn-block { width: 100%; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--cocoa);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 9px 16px;
}
.announce a { color: #fff; text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 243, 234, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cocoa);
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (max-width: 480px) { .brand-word { display: none; } }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--cocoa);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--rose-deeper); text-decoration: none; }
.nav .btn { padding: 9px 20px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--cocoa); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; width: 100%; }
  .nav .btn { margin: 10px 24px 0; width: calc(100% - 48px); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hero-grid > div { max-width: 640px; }
.hero .script { margin: 4px 0 6px; }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; max-width: 42ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  background: #efe5d5;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 11; }
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-photo { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: #efe5d5; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { margin-bottom: 2px; }
.price { font-weight: 700; color: var(--cocoa); }
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rose-deeper);
  background: #f6e8e5;
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- weekly board ---------- */
.board {
  background: var(--cocoa);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
}
.board h2 { color: #fff; }
.board ul { list-style: none; margin: 20px 0; display: grid; gap: 10px; }
.board li { padding-left: 22px; position: relative; }
.board li::before { content: "\2665"; position: absolute; left: 2px; color: var(--rose); font-size: 0.85em; top: 3px; }
.board .meta { display: flex; gap: 6px 26px; flex-wrap: wrap; font-size: 0.92rem; color: #e6ddd2; margin-top: 8px; }
.board .meta strong { color: #fff; }

/* ---------- reviews ---------- */
.quote {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.quote p { font-family: var(--font-display); font-size: 1.08rem; color: var(--cocoa); }
.quote .by { margin-top: 12px; font-size: 0.88rem; color: var(--muted); font-family: var(--font-body); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); width: 100%; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--cocoa); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--rose-deep);
  outline-offset: 1px;
  border-color: var(--rose-deep);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #4a7d55; }
.form-status.err { color: #b4534f; }

.hint-box { background: var(--cream-deep); padding: 12px 14px; border-radius: 10px; }

/* ---------- filter chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--cocoa);
  cursor: pointer;
}
.chip.active { background: var(--cocoa); color: #fff; border-color: var(--cocoa); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--cocoa);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--rose-deep); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin-top: 12px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--cocoa);
  color: #e6ddd2;
  padding: 56px 0 32px;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #c3b8a8;
  font-size: 0.82rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(248, 243, 234, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: none;
}
.sticky-cta .btn { width: 100%; }
@media (max-width: 860px) { .sticky-cta { display: block; } body { padding-bottom: 76px; } }

/* ---------- misc ---------- */
.center { text-align: center; }
.section-head { max-width: 46ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head > * + * { margin-top: 10px; }
.section-head .eyebrow + h1, .section-head .eyebrow + h2 { margin-top: 0; }
.local-love {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
}
.stack-sm > * + * { margin-top: 8px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.script { font-family: var(--font-script); font-size: 1.5em; color: var(--rose-deeper); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
