/* ==========================================================================
   Acapulco Restaurant — Stylesheet
   ========================================================================== */

:root {
  --color-brand: #e0392b;
  --color-brand-dark: #b82a1f;
  --color-accent: #f4a627;
  --color-dark: #221815;
  --color-cream: #fff8ee;
  --color-text: #2b2320;
  --color-muted: #6b5f58;
  --font-heading: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius-pill: 999px;
  --radius-card: 16px;
  --shadow-card: 0 12px 30px rgba(34, 24, 21, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

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

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  color: var(--color-brand);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-dark);
  margin-bottom: 12px;
}

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

/* ---------------- Buttons ---------------- */

.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  padding: 16px 34px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(224, 57, 43, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-order:hover,
.btn-order:focus-visible {
  background: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(224, 57, 43, 0.5);
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-dark);
}

/* ---------------- Navbar ---------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(34, 24, 21, 0.92);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #f2e9e4;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(34,24,21,0.55) 0%, rgba(34,24,21,0.75) 60%, rgba(34,24,21,0.95) 100%),
              url("../images/photo-01.jpg") center 65% / cover no-repeat;
}

.hero-content {
  max-width: 680px;
  padding-top: 76px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(244, 166, 39, 0.18);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

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

.hero p {
  font-size: 1.2rem;
  color: #f2e9e4;
  margin-bottom: 34px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
}

.hero-stat span {
  font-size: 0.85rem;
  color: #dcd0c9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------------- About ---------------- */

.about {
  background: #fff;
}

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

.about-images {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.about-images img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.about-images .tall {
  grid-row: span 2;
  height: 100%;
  aspect-ratio: 3/4;
}

.about-images .short {
  aspect-ratio: 4/3;
}

.about-text .section-tag,
.about-text h2 {
  text-align: left;
}

.about-text h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.about-text p {
  color: var(--color-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-badges {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-dark);
}

.about-badge .icon {
  font-size: 1.5rem;
}

/* ---------------- Menu ---------------- */

.menu {
  background: var(--color-cream);
}

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

.menu-tab {
  background: #fff;
  border: 2px solid #eadfd4;
  color: var(--color-dark);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.menu-tab:hover {
  border-color: var(--color-brand);
}

.menu-tab.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.menu-panel {
  display: none;
}

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

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

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

.menu-item-info p {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.menu-item-price {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-brand);
  font-size: 1.1rem;
  white-space: nowrap;
}

.menu-note {
  text-align: center;
  margin-top: 36px;
  color: var(--color-muted);
  font-style: italic;
}

/* ---------------- Gallery ---------------- */

.gallery {
  background: #fff;
}

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

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

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

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

.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:nth-child(4) { grid-row: span 2; }
.gallery-grid a:nth-child(7) { grid-column: span 2; }

/* ---------------- Reviews ---------------- */

.reviews {
  background: var(--color-dark);
  color: #fff;
}

.reviews .section-header p {
  color: #cbbdb5;
}

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

.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 28px;
}

.review-stars {
  color: var(--color-accent);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.review-card p.review-text {
  color: #e7dcd6;
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.review-author {
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

.reviews-summary {
  text-align: center;
  margin-top: 40px;
  color: #cbbdb5;
}

.reviews-summary strong {
  color: var(--color-accent);
  font-size: 1.3rem;
}

/* ---------------- Hours / Location ---------------- */

.visit {
  background: var(--color-cream);
}

.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.visit-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.visit-card h3 {
  color: var(--color-dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.hours-list {
  list-style: none;
  margin-bottom: 28px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed #eadfd4;
  color: var(--color-muted);
}

.hours-list li strong {
  color: var(--color-dark);
}

.hours-list li.today {
  color: var(--color-brand);
  font-weight: 700;
}

.visit-contact p {
  margin-bottom: 10px;
  color: var(--color-muted);
}

.visit-contact a {
  color: var(--color-brand);
  font-weight: 700;
}

.map-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 100%;
  min-height: 420px;
}

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

/* ---------------- CTA Banner ---------------- */

.cta-banner {
  background: linear-gradient(120deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 14px;
}

.cta-banner p {
  margin-bottom: 30px;
  color: #ffe6e0;
  font-size: 1.1rem;
}

.cta-banner .btn-order {
  background: #fff;
  color: var(--color-brand);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-banner .btn-order:hover {
  background: var(--color-dark);
  color: #fff;
}

/* ---------------- Footer ---------------- */

.footer {
  background: var(--color-dark);
  color: #cbbdb5;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand p {
  max-width: 320px;
  margin-bottom: 20px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a:hover {
  color: var(--color-accent);
}

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

/* ---------------- Modal ---------------- */

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

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

.modal-box {
  background: #fff;
  border-radius: var(--radius-card);
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.modal-box h3 {
  color: var(--color-dark);
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.modal-box p {
  color: var(--color-muted);
  margin-bottom: 26px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f4ece4;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-dark);
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #eadfd4;
}

.modal-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-brand);
  font-size: 1.15rem;
}

/* ---------------- Responsive ---------------- */

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

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

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

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

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

  .gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-grid a:nth-child(7) { grid-column: span 1; }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn-order {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 16px;
  }

  .navbar.open .nav-actions .btn-order {
    display: none;
  }

  .hero {
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

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

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

  .footer-brand p {
    margin: 0 auto 20px;
  }
}

@media (max-width: 560px) {
  section {
    padding: 56px 0;
  }

  .about-images {
    grid-template-columns: 1fr 1fr;
  }

  .about-images .tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
}
