/* Taqueria Vallarta — site styles */

:root {
  --brand-red: #d62828;
  --brand-red-dark: #a91d1d;
  --brand-orange: #f77f00;
  --brand-green: #2a9d4a;
  --ink: #1f1b16;
  --cream: #fff8ee;
  --cream-dark: #f4e9d8;
  --gold: #eab308;
  --radius-pill: 999px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: inherit;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--brand-red-dark);
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: #5b5147;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-order {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 16px 36px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
}

.btn-order:hover,
.btn-order:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.btn-order.small {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(31, 27, 22, 0.92);
  backdrop-filter: blur(6px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand .flag-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 8px 0 0 var(--cream), 16px 0 0 var(--brand-red);
  margin-right: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f4e9d8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.55), rgba(20, 15, 10, 0.75)),
    url('../images/photo-01.jpg') center 60% / cover no-repeat;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 18px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero p.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #f4e9d8;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost {
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  font-size: 1rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-rating {
  margin-top: 28px;
  font-size: 0.95rem;
  color: #f4e9d8;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

/* About */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-photos img {
  border-radius: 16px;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about-photos img:first-child {
  grid-row: span 2;
  height: 100%;
}

.about-text h2 {
  color: var(--brand-red-dark);
}

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

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.menu-tab {
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
  color: var(--brand-red-dark);
  transition: all 0.15s ease;
}

.menu-tab.active,
.menu-tab:hover {
  background: var(--brand-red-dark);
  color: #fff;
}

.menu-category {
  display: none;
}

.menu-category.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.menu-item {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.menu-item h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--ink);
}

.menu-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #6b6055;
}

.menu-item .price {
  font-weight: 700;
  color: var(--brand-red);
  white-space: nowrap;
  font-size: 1.05rem;
}

.menu-note {
  text-align: center;
  margin-top: 32px;
  color: #6b6055;
  font-size: 0.9rem;
}

/* Gallery */
.gallery {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-grid a {
  overflow: hidden;
  border-radius: 12px;
  display: block;
}

.gallery-grid a:hover img {
  transform: scale(1.06);
}

.gallery-grid .tall {
  grid-row: span 2;
}

/* Reviews */
.reviews {
  background: var(--cream-dark);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
}

.review-card .stars {
  display: block;
  margin-bottom: 12px;
}

.review-card p {
  font-style: italic;
  color: #4a423a;
}

.review-card .author {
  font-weight: 700;
  font-style: normal;
  color: var(--brand-red-dark);
  margin-top: 12px;
}

.review-summary {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-red-dark);
}

/* Hours & Location */
.hours-location {
  background: #fff;
}

.hl-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.hours-table td:first-child {
  font-weight: 700;
}

.hours-table td:last-child {
  text-align: right;
  color: #6b6055;
}

.info-block {
  margin-top: 28px;
}

.info-block h4 {
  margin-bottom: 6px;
  color: var(--brand-red-dark);
}

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* Footer */
footer {
  background: var(--ink);
  color: #f4e9d8;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 32px;
}

footer h4 {
  color: var(--gold);
  margin-bottom: 12px;
}

footer a {
  color: #f4e9d8;
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #a89b8c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal h3 {
  color: var(--brand-red-dark);
  margin-bottom: 14px;
}

.modal p {
  color: #4a423a;
}

.modal .modal-phone {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-red);
  text-decoration: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #a89b8c;
  line-height: 1;
}

.modal-close:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .hl-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(31, 27, 22, 0.97);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  section {
    padding: 52px 0;
  }
}
