/* ---------------------------------------------------
   Quatre Quarts Og — design tokens
--------------------------------------------------- */
:root {
  --cream: #fbf3e7;
  --cream-soft: #f6ecda;
  --crust: #4a2e19;
  --crust-soft: #6b4226;
  --butter: #e9b94c;
  --butter-light: #f6d89a;
  --sage: #7c8b6a;
  --sage-dark: #5e6b4f;
  --terracotta: #c1693f;
  --terracotta-dark: #a4522c;
  --white: #ffffff;
  --ink: #33261a;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max-width: 1120px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 30px rgba(74, 46, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

/* Casual deterrent against right-click-saving/dragging product photos —
   paired with the contextmenu/dragstart handlers in main.js. Doesn't stop
   anyone determined (view-source, devtools, screenshots all still work),
   just removes the one-click "Save Image As" affordance. */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--crust);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--sage-dark);
  margin-bottom: 0.75rem;
}

.section {
  padding: 5rem 0;
}

.section--soft {
  background: var(--cream-soft);
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section-head p {
  color: var(--crust-soft);
  font-size: 1.05rem;
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(193, 105, 63, 0.35);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--crust);
  border: 1.5px solid var(--crust);
}

.btn-secondary:hover {
  background: var(--crust);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 231, 0.98);
  border-bottom: 1px solid rgba(74, 46, 25, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--crust);
  line-height: 1.1;
}

.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--crust);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--crust-soft);
}

.nav-links a:hover {
  color: var(--terracotta);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.15rem;
  }

  .site-nav .btn {
    align-self: center;
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  padding: 3.5rem 0 5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
}

.hero-copy p.lede {
  font-size: 1.15rem;
  color: var(--crust-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
  font-size: 0.85rem;
  color: var(--sage-dark);
}

.hero-meta li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.hero-meta {
  padding: 0;
  margin-left: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------------------------------------------------
   About / Our Story
--------------------------------------------------- */
.about-intro {
  max-width: 700px;
}

.about-intro .lede {
  font-size: 1.05rem;
  color: var(--crust-soft);
}

.story-flow {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3.5rem;
}

.story-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 760px) {
  .story-row {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .story-row:nth-child(even) .story-row-media {
    order: 2;
  }
}

.story-row-media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.story-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.18);
  opacity: 0;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .story-row-media img {
    transform: none;
    opacity: 1;
  }
}

.story-row-body h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 0.65rem;
}

.story-row-body p {
  font-size: 1rem;
  color: var(--crust-soft);
  margin-bottom: 0;
  max-width: 46ch;
}

/* ---------------------------------------------------
   Showcase
--------------------------------------------------- */
.showcase-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.showcase-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.recipe-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.recipe-list li {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--crust-soft);
  border: 1px solid rgba(74, 46, 25, 0.08);
  text-align: center;
}

/* ---------------------------------------------------
   Order section
--------------------------------------------------- */
.order-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .order-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.step-number {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.steps h3 {
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.steps p {
  font-size: 0.92rem;
  color: var(--crust-soft);
  margin-bottom: 0;
}

.step-schedule-note {
  margin-top: 0.5rem;
}

.order-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.order-card-head h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  font-weight: 600;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream-soft);
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0.75rem 0 1.5rem;
}

.availability-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--crust);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid rgba(74, 46, 25, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  background: var(--cream);
  color: var(--ink);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234a2e19'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--white);
}

.field input.field-invalid,
.field textarea.field-invalid,
.field select.field-invalid {
  border-color: var(--terracotta-dark);
  background: #fdf2ee;
}

.field-error {
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field-row--address {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 1.4fr;
  gap: 0.9rem;
}

/* .order-card's own 2rem padding plus the page container's 1.5rem leaves
   too little width on phone-sized screens for 2-3 fields side by side —
   email/city placeholders and dropdown text end up visually cut off.
   Stack to one column per row instead below this width. */
@media (max-width: 560px) {
  .field-row,
  .field-row--address {
    grid-template-columns: 1fr;
  }
}

.field-hint {
  font-weight: 500;
  color: var(--crust-soft);
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--crust);
  cursor: pointer;
}

.radio-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--terracotta);
}

.radio-note {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--crust-soft);
}

.tip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tip-chip {
  border: 1.5px solid rgba(74, 46, 25, 0.18);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--cream);
  color: var(--crust);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tip-chip:hover {
  border-color: var(--terracotta);
}

.tip-chip.is-selected {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.tip-custom-input {
  margin-top: 0.6rem;
}

/* Stays in flow (visibility: hidden, not display: none) even when not in
   "Custom" mode, so it keeps reserving its space — picking a tip option
   never shifts the card details/total below it, same fix as the
   pickup/delivery panels above. */
.tip-custom-input.is-inactive {
  visibility: hidden;
  pointer-events: none;
}

.tip-amount-note {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--terracotta-dark);
  margin: 0.6rem 0 0;
}

/* Both panels are stacked in the same grid cell so the container is
   always sized to the taller of the two — switching between delivery and
   pickup never changes the order card's height. The inactive panel stays
   in flow (visibility: hidden, not display: none) purely so it keeps
   contributing to that height; it's non-interactive either way. */
.fulfillment-details {
  display: grid;
}

.fulfillment-panel {
  grid-area: 1 / 1;
  min-width: 0;
}

.fulfillment-panel.is-inactive {
  visibility: hidden;
  pointer-events: none;
}

.pickup-note {
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--crust-soft);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
}

.pickup-note p {
  margin-bottom: 0;
}

.pickup-note strong {
  color: var(--crust);
}

.order-disclosure {
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
}

.order-disclosure p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--crust-soft);
  margin-bottom: 0.5rem;
}

.order-disclosure p:last-child {
  margin-bottom: 0;
}

.order-disclosure strong {
  color: var(--crust);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(74, 46, 25, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.qty-stepper button {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--cream-soft);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--crust);
}

.qty-stepper span {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin: 1.25rem 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(74, 46, 25, 0.18);
}

.form-note {
  font-size: 0.8rem;
  color: var(--sage-dark);
  text-align: center;
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.form-error {
  color: var(--terracotta-dark);
  font-weight: 600;
}

#card-container {
  border: 1.5px solid rgba(74, 46, 25, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--cream);
  min-height: 48px;
}

.order-closed {
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  color: var(--crust-soft);
  font-size: 0.98rem;
}

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  background: var(--crust);
  color: var(--butter-light);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-footer .brand-word {
  color: var(--cream);
}

.site-footer .brand-word span {
  color: var(--butter-light);
}

.site-footer p {
  color: rgba(246, 236, 218, 0.75);
  font-size: 0.92rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  color: rgba(246, 236, 218, 0.85);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--butter);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 236, 218, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(246, 236, 218, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ---------------------------------------------------
   Toast (stub interaction feedback)
--------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  background: var(--crust);
  color: var(--cream);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  max-width: calc(100% - 3rem);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------
   Utility
--------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
