/* ==========================================================
   HAZEL'S HOME KITCHEN — STYLES
   Palette: warm dough cream, baked-crust brick, rosemary sage,
   caramel honey. Type: Fraunces (display) + Work Sans (body).
   ========================================================== */

:root {
  --cream:  #FBF5EA;
  --paper:  #FFFFFF;
  --ink:    #2E2119;
  --ink-60: #2E2119a3;
  --brick:  #8B2E1A;
  --brick-dark: #6E2314;
  --sage:   #566246;
  --honey:  #C6862B;
  --line:   #E4D9C6;
  --parchment: #F4E9D3;
  --xmas-green: #1B4332;
  --candy-red: #C8102E;

  --display: "Fraunces", ui-serif, Georgia, serif;
  --body: "Work Sans", ui-sans-serif, system-ui, sans-serif;

  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { max-width: 62ch; }

a { color: var(--brick); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 3px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brick); color: var(--paper); }
.btn-primary:hover { background: var(--brick-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-whatsapp { background: var(--sage); color: var(--paper); }
.btn-whatsapp:hover { background: #454f38; }
.btn-disabled {
  background: #A8A196;
  color: #6b6459;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
  filter: grayscale(60%);
}
.btn-disabled:hover { transform: none; }
.festive .btn-note {
  margin-top: 10px;
  font-size: 0.82rem;
  font-style: italic;
  color: #E9E1D2;
}

/* ---------- Banner ---------- */
#christmas-banner {
  background: var(--brick);
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.9rem;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
#christmas-banner[hidden] { display: none; }
.banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.banner-copy strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  animation: flash-attention 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .banner-copy strong { animation: none; }
}
#banner-text { white-space: pre-line; }
#christmas-banner button {
  background: none;
  border: 1px solid var(--cream);
  color: var(--cream);
  border-radius: 3px;
  width: 24px;
  height: 24px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream)ee;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 60px; width: auto; flex: none; }
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand-copy strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
}
.brand-copy em {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-60);
}
@media (max-width: 460px) {
  .brand-copy { display: none; }
}
.navlinks {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navlinks a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}
.navlinks a:hover { border-color: var(--brick); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 760px) {
  .navlinks {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .navlinks.open { display: flex; }
  .navlinks a { display: block; padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 32px 0 48px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--display);
  font-style: italic;
  color: var(--sage);
  font-size: 1rem;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  max-width: 34ch;
}
.hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-60);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-photo {
  position: relative;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 24px 48px -20px #2e211940;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1.5px solid var(--honey);
  border-radius: 6px;
  z-index: -1;
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- Marquee image band ---------- */
.band {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.band-track {
  display: flex;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.band-track img {
  height: 220px;
  width: 300px;
  object-fit: cover;
  flex: none;
  margin-right: 4px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .band-track { animation: none; overflow-x: auto; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
/* Keeps anchor-linked targets (nav links, the order button, etc.)
   from landing hidden behind the sticky nav bar when scrolled to. */
[id] { scroll-margin-top: 90px; }
.section-label {
  font-family: var(--display);
  font-style: italic;
  color: var(--brick);
  font-size: 1rem;
  margin-bottom: 6px;
}

/* About */
.about-subline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-60);
  margin: -8px 0 16px;
}
.about .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.about img {
  border-radius: 6px;
  aspect-ratio: 4/5;
  object-fit: cover;
}
@media (max-width: 760px) {
  .about .wrap { grid-template-columns: 1fr; }
}

/* Menu */
.menu {
  position: relative;
  background: var(--parchment);
  background-image:
    repeating-linear-gradient(0deg, rgba(90, 74, 44, 0.08) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(90, 74, 44, 0.08) 0 1px, transparent 1px 26px);
  padding-top: 88px;
  padding-bottom: 88px;
}
.menu::before, .menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, var(--sage) 50%, transparent 50%),
    linear-gradient(var(--sage) 50%, transparent 50%);
  background-size: 16px 16px;
  opacity: 0.55;
}
.menu::before { top: 0; }
.menu::after { bottom: 0; }
.menu .section-label,
.menu h2 {
  position: relative;
}
.menu h2 {
  padding-bottom: 4px;
}
#menu-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px 20px;
}
@media (max-width: 1000px) {
  #menu-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  #menu-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  #menu-list { grid-template-columns: 1fr; }
}
.menu-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1.5px dashed #6B7A5566;
  border-radius: 3px;
  box-shadow: 3px 4px 0 #8B2E1A0d;
  position: relative;
}
.menu-item h3 {
  margin: 0;
  font-size: 1.1rem;
}
.menu-item-qty {
  margin: 0;
  color: var(--sage);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.menu-item-desc { margin: 0; color: var(--ink-60); font-size: 0.92rem; }
.menu-item .price {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--brick);
  margin: 4px 0 0;
}
.menu .hero-actions { margin-top: 32px; }

/* Orders closed: grey menu + note (switched by ordersOpen in config.js) */
.menu.orders-closed #menu-list {
  filter: grayscale(1);
  opacity: 0.8;
}
.closed-note {
  background: var(--ink);
  color: var(--cream);
  border-left: 5px solid var(--honey);
  border-radius: 4px;
  margin: 0 0 32px;
  padding: 16px 22px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Order */
.order-steps {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  counter-reset: step;
}
.order-steps li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.order-steps li::before {
  content: counter(step);
  font-family: var(--display);
  color: var(--brick);
  font-size: 1.3rem;
  flex: none;
  width: 32px;
}
.order-steps li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-steps li strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
}
.order-steps li p {
  margin: 0;
  color: var(--ink-60);
  font-size: 0.95rem;
}
.order h3 {
  margin-top: 0;
}
.order-info-box {
  background: var(--ink);
  border-radius: 6px;
  padding: 28px 32px;
  color: var(--cream);
}
.order-info-box h3 { color: var(--cream); }
.order-info-box .order-info dt { color: var(--honey); }
.order-info-box .order-info dd { color: #E9E1D2; }
.order-info {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.order-info dt { font-weight: 600; font-size: 0.9rem; color: var(--sage); }
.order-info dd { margin: 2px 0 0; }
@media (max-width: 600px) { .order-info { grid-template-columns: 1fr; } }
.order-info-footnote {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #ffffff22;
  font-style: italic;
  font-size: 0.85rem;
  color: #E9E1D2;
  max-width: none;
  text-align: center;
}

/* FAQ */
.faq { background: var(--paper); }
.faq-category {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--brick);
  margin: 40px 0 4px;
}
.faq-list:first-of-type,
h3.faq-category:first-of-type + .faq-list {
  margin-top: 12px;
}
.faq-list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 32px 14px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-family: var(--body);
  font-size: 1.3rem;
  color: var(--brick);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0 0 16px;
  color: var(--ink-60);
  font-size: 0.95rem;
  max-width: none;
}

/* Festive */
.festive {
  background: var(--xmas-green);
  color: var(--cream);
  border-style: solid;
  border-width: 10px;
  border-image: repeating-linear-gradient(
    45deg,
    #ffffff 0, #ffffff 12px,
    var(--candy-red) 12px, var(--candy-red) 24px
  ) 24;
}
.festive .band-festive {
  border-top: none;
  border-bottom: 1px solid #ffffff22;
  background: transparent;
}
.festive .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
}
.festive img { border-radius: 6px; aspect-ratio: 1/1; object-fit: cover; }
.festive h2, .festive .section-label { color: var(--cream); }
.festive .section-label {
  color: var(--honey);
  animation: flash-attention 1.6s ease-in-out infinite;
}
@keyframes flash-attention {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .festive .section-label { animation: none; }
}
.festive p { color: #E9E1D2; }
@media (max-width: 760px) { .festive .wrap { grid-template-columns: 1fr; } }

/* Featured */
.featured { background: var(--paper); }
.featured .hero-actions { margin-top: 24px; }

/* Reviews */
#reviews-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.review-card .stars { color: var(--honey); letter-spacing: 2px; margin-bottom: 8px; }
.review-card p.quote { font-style: italic; margin: 0 0 12px; }
.review-card .who { font-size: 0.85rem; color: var(--ink-60); }
.reviews .hero-actions { margin-top: 32px; }
.reviews .btn-note {
  margin-top: 10px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-60);
}
.menu .btn-note {
  margin-top: 10px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-60);
}
.admin-link-wrap { margin-top: 14px; }
.admin-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--ink-60);
  text-decoration: underline;
  cursor: pointer;
}
.admin-link:hover { color: var(--ink); }
#admin-status {
  margin-left: 10px;
  font-size: 0.82rem;
  color: var(--sage);
  font-weight: 600;
}
.review-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}
.field-hint {
  font-weight: 400;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-60);
}
.field input[type="file"] {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-60);
}
.review-manage {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.review-manage-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  text-decoration: underline;
  cursor: pointer;
}
.review-delete-btn { color: var(--brick); }

/* Review modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #2E2119aa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px -12px #2E2119a0;
}
.modal-box h3 { margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-60);
}
.modal-close:hover { color: var(--ink); }
#review-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input[type="text"],
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  resize: vertical;
}
.field input[type="text"]:focus,
.field textarea:focus {
  outline: 2px solid var(--brick);
  outline-offset: 1px;
}
.star-picker { display: flex; gap: 6px; }
.star-picker .star {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #D8CCB4;
  cursor: pointer;
  padding: 0;
  transition: color 0.1s ease;
}
.star-picker .star.filled { color: var(--honey); }
#review-form-status { margin: 0; }

/* Contact */
.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
#contact-area { white-space: pre-line; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  color: var(--ink-60);
  font-size: 0.85rem;
}
footer .foot-logo { height: 96px; width: auto; margin: 0 auto 16px; }
footer p { max-width: none; margin: 0 auto; }

/* Utility state message */
.state-msg { color: var(--ink-60); font-size: 0.95rem; padding: 12px 0; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--brick);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 8px 20px -6px #2E2119a0;
  z-index: 90;
  transition: background 0.15s ease, transform 0.15s ease;
}
.back-to-top:hover { background: var(--brick-dark); transform: translateY(-2px); }
@media (max-width: 460px) {
  .back-to-top { bottom: 16px; right: 16px; padding: 9px 16px; font-size: 0.8rem; }
}
