/* ===== Theme Tokens ===== */
:root {
  --brand: #8B5E3C;
  --brand-light: #C4906A;
  --brand-dark: #5C3A20;
  --bg: #FFFBF5;
  --bg-alt: #F5ECE0;
  --surface: #FFFFFF;
  --text: #3B2C1E;
  --text-muted: #8B7B6B;
  --border: #E5D5C0;
  --accent: #D4A574;
  --success: #4CAF50;
  --error: #D32F2F;
  --shadow: 0 2px 8px rgba(92, 58, 32, 0.08);
  --shadow-lg: 0 8px 32px rgba(92, 58, 32, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --width: 1120px;
  --width-narrow: 640px;
}

[data-theme="dark"] {
  --bg: #2C1F14;
  --bg-alt: #352819;
  --surface: #3D2E1F;
  --text: #F0E6DC;
  --text-muted: #B8A896;
  --border: #5C4530;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-dark);
}

/* ===== Container ===== */
.container {
  width: min(var(--width), 100% - 2rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--width-narrow), 100% - 2rem);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: var(--border);
  transform: scale(1.05);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #8B5E3C 0%, #C4906A 40%, #E5D5C0 100%);
  padding: 6rem 0;
  text-align: center;
  color: #FFFBF5;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #3D2510 0%, #5C3A20 40%, #2C1F14 100%);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.5em;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--brand-dark);
  color: #FFFBF5;
  border-color: var(--brand-dark);
}

.btn--primary:hover {
  background: #4A2A15;
  border-color: #4A2A15;
  color: #FFFBF5;
}

.btn--ghost {
  background: transparent;
  color: #FFFBF5;
  border-color: rgba(255, 251, 245, 0.6);
}

.btn--ghost:hover {
  background: rgba(255, 251, 245, 0.12);
  border-color: #FFFBF5;
  color: #FFFBF5;
}

.btn--block {
  width: 100%;
}

/* Hero buttons dark mode */
[data-theme="dark"] .btn--primary {
  background: #D4A574;
  border-color: #D4A574;
  color: #2C1F14;
}

[data-theme="dark"] .btn--primary:hover {
  background: #C4906A;
  border-color: #C4906A;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-alt);
  transition: background 0.3s;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  color: var(--brand-dark);
  margin-bottom: 0.35em;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 3em;
  font-size: 1.05rem;
}

/* ===== Menu Grid ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.menu-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.menu-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.menu-item__body {
  padding: 1.25rem;
}

.menu-item__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.35em;
}

.menu-item__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85em;
  line-height: 1.55;
}

.menu-item__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  margin-bottom: 1em;
  color: var(--text-muted);
  line-height: 1.75;
}

.about__images {
  display: grid;
  gap: 1rem;
}

.about__images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

/* ===== Contact Form ===== */
.lead-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: background 0.3s;
}

.field {
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.35em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(196, 144, 106, 0.2);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.5em;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: background 0.3s;
}

.footer__address {
  margin-top: 0.3rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__images {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .nav {
    gap: 0.85rem;
    font-size: 0.85rem;
  }

  .lead-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .logo {
    font-size: 1.1rem;
  }
}
