/* El Agave — Tex-Mex restaurant site */

:root {
  --brand-orange: #e8590c;
  --brand-red: #c1121f;
  --brand-dark: #241a15;
  --brand-cream: #fdf6ec;
  --brand-gold: #d4a017;
  --brand-green: #3a5a40;
  --text-dark: #2b2119;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--brand-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

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

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

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

/* ---------- Buttons ---------- */
.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(193, 18, 31, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-order:hover,
.btn-order:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(193, 18, 31, 0.55);
}

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

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(36, 26, 21, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.nav-brand .agave-icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn-order) {
  color: #f4e9dc;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn-order):hover {
  color: var(--brand-gold);
}

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(36, 26, 21, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links[hidden] {
    display: none;
  }
}

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

.hero-content {
  max-width: 700px;
  padding: 0 24px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--brand-gold);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

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

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 32px;
  color: #f4e9dc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

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

/* ---------- Section basics ---------- */
section {
  padding: 90px 0;
}

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

.section-eyebrow {
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

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

.section-header p {
  color: #5a4c3f;
  font-size: 1.05rem;
}

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

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

.about-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-text p {
  margin-bottom: 18px;
  color: #4a3d31;
  font-size: 1.02rem;
}

.about-text h2 {
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  margin-bottom: 20px;
}

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

  .about-media {
    order: -1;
  }
}

/* ---------- Menu ---------- */
.menu {
  background: var(--brand-dark);
  color: #f4e9dc;
  position: relative;
}

.menu .section-header p {
  color: #c9b8a7;
}

.menu .section-eyebrow {
  color: var(--brand-gold);
}

.menu .section-header h2 {
  color: #fff;
}

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

.menu-category h3 {
  color: var(--brand-gold);
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.35);
  padding-bottom: 10px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.menu-item-name {
  font-weight: 600;
  color: #fff;
}

.menu-item-desc {
  font-size: 0.88rem;
  color: #c9b8a7;
  margin-top: 4px;
}

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

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

@media (max-width: 780px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--brand-cream);
}

.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;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

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

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}

/* ---------- Reviews ---------- */
.reviews {
  background: #fff;
}

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

.review-card {
  background: var(--brand-cream);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-stars {
  color: var(--brand-gold);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.review-text {
  color: #4a3d31;
  font-size: 0.98rem;
  font-style: italic;
}

.review-author {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 0.9rem;
}

.review-summary {
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
  color: #5a4c3f;
}

.review-summary strong {
  color: var(--brand-red);
  font-size: 1.2rem;
}

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

@media (max-width: 620px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hours & Location ---------- */
.hours-location {
  background: var(--brand-cream);
}

.hl-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.hl-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.hl-card h3 {
  color: var(--brand-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: 8px 0;
  border-bottom: 1px dashed #e3d5c4;
  font-size: 0.95rem;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list .day {
  font-weight: 600;
  color: var(--brand-dark);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #4a3d31;
}

.contact-line a {
  color: var(--brand-red);
  font-weight: 600;
}

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 420px;
}

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

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

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

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col a {
  color: #c9b8a7;
  font-size: 0.92rem;
  margin-bottom: 8px;
  display: block;
}

.footer-col h4 {
  color: var(--brand-gold);
  font-size: 0.95rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

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

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

@keyframes modal-pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-box .agave-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

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

.modal-box p {
  color: #4a3d31;
  margin-bottom: 24px;
  font-size: 1rem;
}

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

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

.modal-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 20px;
}

/* ---------- Utility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  color: var(--brand-dark);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 2000;
}
