/* ============================================================
   Maui Cookie Queen — styles.css
   Mobile-first. Palette is canonical (do not change without client).
   Signature element: royal-icing scalloped section dividers.
   ============================================================ */

:root {
  --cream:   #fff8ef;
  --blush:   #f7c6d0;
  --rose:    #d96c8c;
  --rose-dk: #b9536f;
  --cocoa:   #5b3a2e;
  --vanilla: #fffdf8;
  --gold:    #c89b4a;
  --mint:    #dcefe7;
  --text:    #332722;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --font-script: "Allura", cursive;

  --maxw: 1100px;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(91, 58, 46, 0.10);
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-dk); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--cocoa); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 700; margin: 0.4em 0; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose-dk);
  margin: 0;
}
.script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.35em;
  color: var(--rose);
}
.lead { font-size: 1.15rem; max-width: 34em; }
.section-sub { max-width: 40em; margin-top: -0.25rem; color: #5a4a42; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--cocoa); color: var(--vanilla);
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-dk); }
.btn-outline { background: transparent; color: var(--cocoa); border: 2px solid var(--cocoa); }
.btn-outline:hover { background: var(--cocoa); color: var(--vanilla); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.92rem; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(91, 58, 46, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: var(--cocoa); text-decoration: none;
}
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 0.5rem; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--cocoa); border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--vanilla);
  display: none; flex-direction: column; align-items: center; gap: 1rem;
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid rgba(91, 58, 46, 0.1);
  box-shadow: var(--shadow);
}
.nav-menu.open { display: flex; }
.nav-menu a:not(.btn) {
  text-decoration: none; color: var(--cocoa); font-weight: 700;
}
.nav-menu a:not(.btn):hover { color: var(--rose-dk); }

/* ---- section backgrounds ---- */
.section-vanilla { background: var(--vanilla); }
.section-cream { background: var(--cream); }
.section-blush { background: var(--blush); }
.section-cocoa { background: var(--cocoa); }

/* ---- signature: royal-icing scallop dividers ---- */
.scallop {
  height: 26px;
  margin-bottom: -1px;
  background-image: radial-gradient(circle at 50% 0, currentColor 13px, transparent 13.6px);
  background-size: 36px 26px;
  background-repeat: repeat-x;
}
.scallop-vanilla { color: var(--vanilla); }
.scallop-cream { color: var(--cream); }
.scallop-blush { color: var(--blush); }
.scallop-cocoa { color: var(--cocoa); }

/* ---- hero ---- */
.hero { padding: 3rem 0 0; background: linear-gradient(180deg, var(--cream), #ffeef2); }
.hero-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- about ---- */
.about { padding: 3.5rem 0 0; }
.about .container { padding-bottom: 3rem; }

/* ---- gallery ---- */
.gallery { padding: 3.5rem 0 0; }
.gallery .container { padding-bottom: 3rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1.8rem 0 1.2rem;
}
.gallery-grid img { border-radius: var(--radius); box-shadow: 0 4px 16px rgba(91,58,46,0.08); }
.gallery-cta { text-align: center; font-weight: 600; }
.gallery .center { margin-top: 0.8rem; }

/* ---- pricing ---- */
.pricing { padding: 3.5rem 0 1rem; }
.tier-heading { color: var(--rose-dk); letter-spacing: 0.02em; }
.pricing-grid { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.card {
  background: var(--cream);
  border: 1.5px solid rgba(217, 108, 140, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.card h4 { margin-top: 0; }
.card-featured { background: var(--mint); border-color: var(--gold); }
.price {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--rose-dk);
  margin: 0.3rem 0 0.6rem;
}
.price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* ---- custom + addons ---- */
.custom, .addons { padding: 1.5rem 0 0; }
.addons .container { padding-bottom: 3rem; }
.petal-list { list-style: none; padding: 0; }
.petal-list li { padding-left: 1.5em; position: relative; margin: 0.4rem 0; }
.petal-list li::before { content: "🌸"; position: absolute; left: 0; font-size: 0.85em; top: 0.15em; }
.addon-price { font-size: 1.25rem; }

/* ---- how to order ---- */
.order { padding: 3.5rem 0 0; }
.order .container { padding-bottom: 3rem; }
.steps {
  counter-reset: step;
  list-style: none; padding: 0; margin: 1.6rem 0;
  display: grid; gap: 0.9rem;
}
.steps li {
  counter-increment: step;
  background: var(--vanilla);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1rem 3.6rem;
  position: relative;
  box-shadow: 0 3px 12px rgba(91,58,46,0.07);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  background: var(--rose); color: #fff;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 700;
}
.notice {
  background: var(--vanilla);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.3rem;
}

/* ---- contact ---- */
.contact { padding: 3.5rem 0; }
.contact h2, .contact .lead-light { color: var(--vanilla); }
.lead-light { font-size: 1.1rem; opacity: 0.92; }
.contact .btn-gold { margin-top: 0.8rem; }
.ig-handle { margin-top: 1.4rem; }
.ig-handle a { color: var(--blush); font-weight: 700; text-decoration: none; }
.ig-handle a:hover { text-decoration: underline; }

/* ---- order request form ---- */
.order-form { padding: 3.5rem 0 0; }
.order-form .container { padding-bottom: 3rem; }
.order-form-card {
  background: var(--cream);
  border: 1.5px solid rgba(217, 108, 140, 0.25);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  margin-top: 1.4rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--cocoa); margin-bottom: 0.4rem; }
.field .req { color: var(--rose-dk); }
.field .optional { font-weight: 400; color: #6a5a52; font-size: 0.9em; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--vanilla);
  border: 1.5px solid rgba(91, 58, 46, 0.22);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 1px;
  border-color: var(--rose);
}
.field-help { font-size: 0.9rem; color: #6a5a52; margin: 0.4rem 0 0; }
.order-form-card .btn-rose { width: 100%; border: 0; cursor: pointer; margin-top: 0.3rem; }
.order-form-card .btn-rose[disabled] { opacity: 0.6; cursor: progress; }
/* Honeypot — visually removed, still in the DOM for bots */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.form-status { margin: 1rem 0 0; font-weight: 700; min-height: 1.2em; }
.form-status.is-success { color: #2f7d57; }
.form-status.is-error { color: var(--rose-dk); }
.form-status a { color: var(--rose-dk); font-weight: 700; }

/* ---- footer ---- */
.site-footer { background: #4a2f25; color: var(--cream); padding: 1.8rem 0; font-size: 0.95rem; }
.site-footer p { margin: 0.2rem 0; }
.footer-sub { opacity: 0.75; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---- desktop ---- */
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; display: flex; flex-direction: row;
    background: none; border: 0; box-shadow: none; padding: 0; gap: 1.4rem;
  }
  .hero { padding-top: 4.5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .order-form-card { padding: 2rem 1.9rem; }
  .order-form-card .btn-rose { width: auto; }
}
@media (min-width: 1000px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}
