/* Liesel and Tess' Cinnamon Rolls: styles (mobile-first).
   Colors live in the :root block below if you ever want to tweak them. */

:root {
  --cream: #fff8ef;
  --cream-deep: #f7e9d6;
  --paper: #ffffff;
  --brown: #3b2314;        /* main text */
  --brown-soft: #6b4a34;   /* secondary text */
  --cinnamon: #a3461c;     /* buttons & links */
  --cinnamon-dark: #7d3313;
  --gold: #f2b63a;         /* badges: pairs with FFA gold */
  --gold-soft: #fdf0cf;
  --ffa-blue: #1b3a68;     /* About section: pairs with FFA blue */
  --line: #ead9c3;
  --error: #a3201c;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(59, 35, 20, 0.12);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font: 400 1.0625rem/1.6 var(--font-body);
  padding-bottom: 84px; /* room for the mobile order bar */
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--cinnamon); text-underline-offset: 3px; }
a:hover { color: var(--cinnamon-dark); }
:focus-visible { outline: 3px solid var(--ffa-blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--brown-soft); max-width: 60ch; }
.section { padding: 64px 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  background: var(--cinnamon); color: #fff;
  border: 2px solid var(--cinnamon); border-radius: 999px;
  font: 800 1.05rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(163, 70, 28, 0.3);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--cinnamon-dark); border-color: var(--cinnamon-dark); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn-large { min-height: 56px; padding: 16px 32px; font-size: 1.15rem; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); border-color: #fff; box-shadow: none; }
.btn-ghost:hover { background: #fff; color: var(--brown); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 239, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { font: 700 1.05rem/1.2 var(--font-head); color: var(--brown); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--brown); font-weight: 700; text-decoration: none; display: none; }
.nav-links a:not(.btn):hover { color: var(--cinnamon); }
.nav-links .btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 20, 8, 0.15) 0%, rgba(40, 20, 8, 0.55) 45%, rgba(40, 20, 8, 0.88) 100%);
}
.hero-content { position: relative; padding-top: 140px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.5rem, 11vw, 4.75rem); margin-bottom: 0.3em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); max-width: 14ch; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--gold); color: var(--brown); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-sub { font-size: clamp(1.1rem, 4.2vw, 1.35rem); max-width: 40ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 40px; align-items: center; }
.why-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.why-points li {
  position: relative; padding: 20px 20px 20px 64px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.why-points li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--cream) 0 3px, var(--cinnamon) 3px 6px, var(--cream) 6px 8px, var(--cinnamon) 8px 11px, var(--gold) 11px);
}
.why-points h3 { margin-bottom: 0.25em; }
.why-points p { margin: 0; color: var(--brown-soft); }
.why-photo { margin: 0; }
.why-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }

/* ---------- Menu ---------- */
.menu { background: var(--cream-deep); }
.menu-grid { list-style: none; padding: 0; margin: 32px 0 24px; display: grid; gap: 20px; }
.menu-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.menu-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.menu-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.menu-card h3 { margin-bottom: 0.1em; }
.roll-count { font-weight: 800; color: var(--cinnamon); margin-bottom: 0.5em; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.menu-desc { color: var(--brown-soft); flex: 1; }
.badge {
  position: absolute; top: 14px; left: 14px; margin: 0;
  background: var(--gold); color: var(--brown); font-weight: 800; font-size: 0.9rem;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.price { font: 700 2rem/1 var(--font-head); color: var(--cinnamon-dark); margin: 0; }
.price-soon { font-size: 1.25rem; color: var(--brown-soft); }
.savings { margin: 8px 0 0; font-weight: 700; color: var(--ffa-blue); font-size: 0.95rem; }
.menu-note { text-align: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 20px; }

/* ---------- Gallery ---------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- About ---------- */
.about { background: var(--ffa-blue); color: #fff; }
.about h2 { color: #fff; }
.about-grid { display: grid; gap: 36px; }
.about-text p { font-size: 1.1rem; color: #eef2f8; max-width: 62ch; }
.about-side { display: grid; gap: 24px; align-content: start; }
/* Clean white background behind the emblem, per FFA emblem guidelines. */
.emblem-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; justify-content: center; justify-self: start;
}
.ffa-emblem { width: 120px; height: auto; }
.emblem-card-small { padding: 12px; }
.emblem-card-small .ffa-emblem { width: 72px; }
.tess-note { background: var(--cream); color: var(--brown); border-radius: var(--radius); padding: 24px; border-top: 6px solid var(--gold); }
.tess-note p { margin-bottom: 0.75em; }
.signature { font: 700 1.4rem/1 var(--font-head); color: var(--cinnamon); margin: 0; }

/* ---------- Order form ---------- */
.order-form { display: grid; gap: 20px; margin-top: 28px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
fieldset.card { border: 0; margin: 0; min-width: 0; }
legend { font: 700 1.25rem/1.2 var(--font-head); padding: 0; margin-bottom: 14px; float: left; width: 100%; }
legend + * { clear: both; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field-row { display: grid; gap: 0 16px; }
label { font-weight: 700; }
.req, .optional { font-weight: 400; color: var(--brown-soft); font-size: 0.9em; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--brown); background: var(--cream);
  border: 2px solid #c9b29a; border-radius: 12px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ffa-blue); box-shadow: 0 0 0 3px rgba(27, 58, 104, 0.2); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.hint { color: var(--brown-soft); font-size: 0.95rem; margin: 10px 0 0; }
.field .hint { margin: 0; }
.field-error { color: var(--error); font-weight: 700; margin: 8px 0 0; font-size: 0.95rem; }
.form-error-summary { border: 2px solid var(--error); background: #fdeceb; border-radius: 14px; padding: 14px 18px; }
.form-error-summary p, .form-error-summary ul { margin: 0; }
.form-error-summary ul { padding-left: 1.2em; margin-top: 4px; }

.qty-list { list-style: none; padding: 0; margin: 0; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty-row:last-child { border-bottom: 0; }
.qty-label { display: grid; gap: 2px; }
.qty-name { font-weight: 700; }
.qty-price { font-weight: 400; color: var(--brown-soft); font-size: 0.95rem; }
.is-unavailable { opacity: 0.6; }
.stepper { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.stepper input { width: 56px; text-align: center; padding: 8px 4px; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--cinnamon); background: var(--paper); color: var(--cinnamon);
  font: 800 1.4rem/1 var(--font-body); cursor: pointer;
}
.step:hover:not(:disabled) { background: var(--cinnamon); color: #fff; }
.step:disabled { border-color: #c9b29a; color: #a8927c; cursor: not-allowed; }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 64px; padding: 10px; border: 2px solid #c9b29a; border-radius: 14px;
  background: var(--cream); font-weight: 800; text-align: center;
}
.choice small { font-weight: 600; color: var(--brown-soft); }
.choice input:checked + span { border-color: var(--cinnamon); background: #fbe7d9; box-shadow: inset 0 0 0 1px var(--cinnamon); }
.choice input:focus-visible + span { outline: 3px solid var(--ffa-blue); outline-offset: 2px; }

.summary h3 { margin-bottom: 10px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 10px; }
.summary-lines li, .summary-total { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines li { padding: 4px 0; }
.summary-total { border-top: 2px dashed var(--line); padding-top: 12px; margin: 0; font-size: 1.15rem; align-items: baseline; }
.summary-total strong { font: 700 1.5rem/1 var(--font-head); color: var(--cinnamon-dark); }
.summary-empty { margin: 0; color: var(--brown-soft); text-align: center; }

.no-payment {
  margin: 0; padding: 14px 16px; border-radius: 14px;
  background: var(--gold-soft); border-left: 6px solid var(--gold); font-weight: 700;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.confirmation { margin-top: 28px; border-top: 8px solid var(--gold); }
.confirmation .summary { margin: 16px 0; padding: 16px; background: var(--cream); border-radius: 14px; }
.order-number { font-weight: 800; color: var(--ffa-blue); }
.confirm-details { margin: 0 0 16px; }
.confirm-details dt { font-weight: 800; margin-top: 10px; }
.confirm-details dd { margin: 0; color: var(--brown-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #f6e9da; padding: 48px 0 28px; }
.site-footer a { color: var(--gold); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { font: 700 1.4rem/1.2 var(--font-head); color: #fff; }
.footer-heading { font-size: 1.2rem; color: #fff; }
.contact-links { list-style: none; padding: 0; margin: 0; }
.footer-ffa { display: grid; gap: 12px; justify-items: start; }
.support-line { font-weight: 800; color: var(--gold); margin: 0; }
.small-print { font-size: 0.9rem; color: #d9c4ae; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* ---------- Mobile order bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 239, 0.96); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(59, 35, 20, 0.12);
  transition: transform 0.25s;
}
.mobile-cta.is-hidden { transform: translateY(110%); }

.noscript { background: var(--gold-soft); padding: 16px; text-align: center; margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .nav-links a:not(.btn), .nav-links .btn { display: inline-flex; }
  .brand { font-size: 1.2rem; }
  .section { padding: 96px 0; }
  .hero { align-items: center; }
  .hero-content { padding-top: 96px; padding-bottom: 96px; }
  .hero-shade { background: linear-gradient(90deg, rgba(40, 20, 8, 0.85) 0%, rgba(40, 20, 8, 0.55) 50%, rgba(40, 20, 8, 0.1) 100%); }
  .why-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
