:root {
  --cream: #f5e6c8;
  --brown: #8b6b4c;
  --green: #6b7f45;
  --red: #c94c39;
  --charcoal: #2c2c2c;
  --bg: #fffaf3;
  --surface: #ffffff;
  --text: var(--charcoal);
  --heading: var(--brown);
  --link: var(--green);
  --link-hover: var(--red);
  --shadow: rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1100px;
  --space: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #221f1b;
    --surface: #2d2924;
    --text: #f5e6c8;
    --heading: #e3cda5;
    --link: #a3b66e;
    --link-hover: #e06655;
    --shadow: rgba(0,0,0,0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--link);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

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

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
  padding-block: var(--space);
}

.narrow { max-width: 720px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(139,107,76,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  padding: 0.25rem 0;
}

.main-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--charcoal);
  border-radius: 2px;
}

@media (prefers-color-scheme: dark) {
  .nav-toggle span { background: var(--cream); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s ease, background 0.2s;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover { background: #556634; color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}

.btn-secondary:hover { background: var(--green); color: #fff; }

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: var(--brown);
  color: #fff;
}

.btn-small:hover { background: #6f5236; color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-block: 3rem;
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

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

.hero-image {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 12px 30px var(--shadow);
}

/* Sections */
section {
  padding-block: 2.5rem;
}

.intro, .featured, .values {
  background: var(--surface);
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  display: flex;
  flex-direction: column;
  padding-bottom: 1.25rem;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card h3, .card p, .card .price, .card .btn {
  padding-inline: 1.25rem;
}

.card .price {
  display: block;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.cta {
  text-align: center;
  background: var(--cream);
}

/* Page header */
.page-header {
  text-align: center;
  background: var(--cream);
  padding-block: 3rem;
}

.page-header-image {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-header-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 2;
}

.overlay-text {
  position: relative;
  z-index: 3;
  color: #fff;
}

.overlay-text h1 {
  color: #fff;
  margin: 0;
}

/* Menu */
.menu-section, .add-ons {
  background: var(--surface);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--shadow);
}

.menu-item h3 { margin-bottom: 0.35rem; }
.menu-item p { margin: 0; font-size: 0.95rem; }

.addon-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 600px;
}

.addon-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(139,107,76,0.3);
}

.price {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

/* Story & ingredients */
.story, .ingredients {
  background: var(--bg);
}

.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.ingredient-list li { padding: 0.25rem 0; }

/* Contact */
.contact-section { background: var(--surface); }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(139,107,76,0.3);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--green);
}

button[type="submit"] {
  justify-self: start;
  margin-top: 0.5rem;
}

.thank-you {
  background: #e8f3d6;
  color: #2c4a18;
  padding: 1.5rem;
  border-radius: var(--radius);
}

@media (prefers-color-scheme: dark) {
  .thank-you {
    background: #3a4a28;
    color: #dcedc4;
  }
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contact-info li {
  margin-bottom: 1rem;
}

.map {
  margin: 0;
}

.map svg {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px var(--shadow);
}

.map figcaption {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--brown);
}

.catering-note {
  text-align: center;
  background: var(--cream);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer a {
  color: var(--cream);
  margin-inline-start: 1rem;
}

.site-footer a:hover { color: var(--red); }

/* Mobile */
@media (max-width: 820px) {
  .hero-grid, .three-col, .card-grid, .menu-grid, .two-col, .ingredient-list {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: flex; }

  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open {
    max-height: 300px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 1rem;
  }

  .hero-actions { justify-content: center; }

  .hero-text { text-align: center; }

  .menu-item { flex-direction: column; }
}
