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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== THEME VARIABLES ========== */
[data-theme="light"] {
  --bg-primary: #f5f0eb;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #3c2415;
  --text-secondary: #6b4c3b;
  --text-muted: #8c7568;
  --accent: #a0522d;
  --accent-hover: #8b4513;
  --accent-light: #f0e6d8;
  --border: #e0d4c8;
  --shadow: rgba(60, 36, 21, 0.08);
  --overlay: rgba(60, 36, 21, 0.6);
  --header-bg: rgba(245, 240, 235, 0.95);
  --footer-bg: #3c2415;
  --footer-text: #f5f0eb;
  --input-bg: #ffffff;
  --input-border: #d4c8bc;
  --table-stripe: #faf6f2;
}

[data-theme="dark"] {
  --bg-primary: #1a0f0a;
  --bg-secondary: #2c1810;
  --bg-card: #2c1810;
  --text-primary: #e8d5c4;
  --text-secondary: #c4a88c;
  --text-muted: #a08470;
  --accent: #c67a4e;
  --accent-hover: #d4895c;
  --accent-light: #3d2418;
  --border: #4a3020;
  --shadow: rgba(0, 0, 0, 0.3);
  --overlay: rgba(0, 0, 0, 0.7);
  --header-bg: rgba(26, 15, 10, 0.95);
  --footer-bg: #0d0704;
  --footer-text: #c4a88c;
  --input-bg: #3d2418;
  --input-border: #5a3a28;
  --table-stripe: #24150d;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section__desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header__logo-icon {
  font-size: 1.8rem;
}

.header__nav-list {
  display: flex;
  gap: 2rem;
}

.header__nav-link {
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.header__nav-link:hover {
  color: var(--accent);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header__nav-close {
  display: none;
}

.theme-toggle {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: var(--accent);
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&h=900&fit=crop') center/cover no-repeat fixed;
  position: relative;
  margin-top: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero__inner {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding: 2rem;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero__desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* ========== MENU ========== */
.menu {
  background: var(--bg-primary);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.menu__card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.menu__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow);
}

.menu__card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.menu__card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  padding: 1rem 1.2rem 0.3rem;
  color: var(--text-primary);
}

.menu__card-desc {
  padding: 0 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.menu__card-price {
  display: block;
  padding: 0.8rem 1.2rem 1.2rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}

/* ========== SCHEDULE ========== */
.schedule {
  background: var(--bg-secondary);
}

.schedule__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.schedule__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.schedule__table th,
.schedule__table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.schedule__table th {
  background: var(--accent);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}

.schedule__table td {
  color: var(--text-secondary);
}

.schedule__table tbody tr:nth-child(even) {
  background: var(--table-stripe);
}

.schedule__table tbody tr:last-child td {
  border-bottom: none;
}

.schedule__address {
  font-style: normal;
  color: var(--text-secondary);
  line-height: 2;
}

.schedule__address p {
  font-size: 1rem;
}

.schedule__map iframe {
  width: 100%;
  box-shadow: 0 4px 16px var(--shadow);
}

/* ========== CONTACT ========== */
.contact {
  background: var(--bg-primary);
}

.contact__form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact__form-group label {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact__form-group input,
.contact__form-group textarea {
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--input-border);
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact__form-group input:focus,
.contact__form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.15);
}

.contact__form-group input::placeholder,
.contact__form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact__form-error {
  color: #d14545;
  font-size: 0.875rem;
  min-height: 1.2em;
  margin-top: 0.2rem;
}

.contact__form .btn {
  align-self: flex-start;
}

.contact__form-group input.error,
.contact__form-group textarea.error {
  border-color: #d14545;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 1.2rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--footer-text);
  color: var(--footer-text);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.footer__social a:hover {
  opacity: 1;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer__copy {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== SCROLL ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .schedule__content {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1100;
    box-shadow: -4px 0 20px var(--shadow);
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav-close {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 1.5rem;
    margin-left: auto;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 1.2rem;
  }

  .header__nav-link {
    font-size: 1.1rem;
  }

  .header__hamburger {
    display: flex;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section__title {
    font-size: 2rem;
  }

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

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

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }

  .container {
    padding: 0 1rem;
  }
}
