/* Casa Oliva — Warm Artisan Gourmet */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --terracotta: #C2410C;
  --terracotta-light: #EA580C;
  --olive: #4D7C0F;
  --olive-light: #65A30D;
  --cream: #FEF7ED;
  --warm-white: #FFFBF5;
  --brown: #44403C;
  --muted: #78716C;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--brown);
  line-height: 1.7;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover {
  color: var(--terracotta-light);
}

address {
  font-style: normal;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(194, 65, 12, 0.1);
}

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

.nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.9375rem;
  color: var(--muted);
  font-family: var(--font-body);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--brown);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--terracotta);
  color: var(--warm-white);
}

.btn--primary:hover {
  background: var(--terracotta-light);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

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

/* Hero */
.hero {
  position: relative;
  margin-top: 60px;
}

.hero__image {
  max-height: 70vh;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem;
  background: linear-gradient(to top, rgba(68, 64, 60, 0.85), transparent);
  color: var(--warm-white);
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero__desc {
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Sections */
section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
}

/* Menu Tabs */
.menu {
  background: var(--cream);
}

.menu__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.tab:hover {
  background: rgba(194, 65, 12, 0.08);
}

.tab.active {
  background: var(--terracotta);
  color: var(--warm-white);
}

.menu__panel {
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeIn 0.4s var(--ease);
}

.menu__panel[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.menu__grid--drinks {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.menu-item {
  display: flex;
  gap: 1.25rem;
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(68, 64, 60, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(68, 64, 60, 0.1);
}

.menu-item img {
  width: 140px;
  min-height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.menu-item--drink {
  padding: 1.25rem 1.5rem;
}

.menu-item__info {
  padding: 1.25rem 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-item--drink .menu-item__info {
  padding: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--brown);
}

.menu-item p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.menu-item--drink p {
  margin-bottom: 0;
}

.menu-item__price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--olive);
  font-size: 1rem;
  white-space: nowrap;
}

/* Reservation */
.reservation__wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.reservation__info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.reservation__info > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.reservation__hours {
  background: var(--cream);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--olive);
}

.reservation__hours h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.reservation__hours p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.reservation__form {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(194, 65, 12, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--warm-white);
  color: var(--brown);
  transition: border-color 0.3s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

/* Location */
.location {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.location h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.location address p {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.location__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--olive);
  font-weight: 600;
}

.location__map {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
}

.location__map iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(68, 64, 60, 0.08);
}

.location__ambiance img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid rgba(194, 65, 12, 0.1);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--olive);
  color: var(--warm-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  z-index: 10000;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .nav, .header .btn--sm {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--warm-white);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    z-index: 99;
  }

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

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

  .menu-item img {
    width: 100%;
    height: 180px;
  }

  .menu-item__info {
    padding: 1.25rem;
  }

  .menu-item--drink .menu-item__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .reservation__wrapper,
  .location {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  section.location {
    padding: 3rem 1.5rem;
  }
}
