/* Emmy's Tex Mex Restaurant — stylesheet */

:root {
  --color-cream: #fff8ec;
  --color-cream-dark: #f7ecd8;
  --color-brown: #3a2318;
  --color-brown-soft: #5c3d2b;
  --color-red: #d62828;
  --color-red-dark: #a81f1f;
  --color-orange: #e8672a;
  --color-mustard: #f2a93c;
  --color-avocado: #4c7a4a;
  --color-avocado-dark: #365c37;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --shadow-soft: 0 10px 30px rgba(58, 35, 24, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-brown);
  background: var(--color-cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

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

section {
  padding: 72px 0;
}

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

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

.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--color-brown);
}

.section-header p {
  color: var(--color-brown-soft);
}

/* Buttons */
.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-orange) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(214, 40, 40, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-order:hover,
.btn-order:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(214, 40, 40, 0.5);
}

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

.btn-order--large {
  padding: 18px 42px;
  font-size: 1.15rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(255, 248, 236, 0.7);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 248, 236, 0.15);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(58, 35, 24, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-cream);
}

.nav-brand__mark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-mustard);
}

.nav-brand__text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-cream);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-mustard);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--color-cream);
  background: radial-gradient(circle at 20% 20%, rgba(242, 169, 60, 0.35), transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(76, 122, 74, 0.3), transparent 50%),
              linear-gradient(160deg, #7a1f1f 0%, #d62828 45%, #e8672a 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 26px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0.06) 2px, transparent 2px, transparent 26px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to top, var(--color-cream), transparent);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 100px;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 248, 236, 0.16);
  border: 1px solid rgba(255, 248, 236, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}

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

.hero p.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 248, 236, 0.92);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.95rem;
}

.hero-meta__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta__icon {
  font-size: 1.1rem;
}

/* About */
.about {
  background: var(--color-cream);
}

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

.about-copy p {
  color: var(--color-brown-soft);
  margin-bottom: 18px;
}

.about-copy p:last-of-type {
  margin-bottom: 0;
}

.about-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(135deg, var(--color-mustard) 0%, var(--color-orange) 55%, var(--color-red) 100%);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 0 2px, transparent 2px);
  background-size: 26px 26px;
  opacity: 0.5;
}

.about-visual__badge {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 30px;
}

.about-visual__badge .rating-number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  display: block;
  text-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.about-visual__badge .rating-stars {
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin: 6px 0;
}

.about-visual__badge .rating-label {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.95;
}

.stat-row {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat {
  background: var(--color-cream-dark);
  border-radius: 14px;
  padding: 16px 22px;
  min-width: 130px;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-red);
}

.stat span {
  font-size: 0.85rem;
  color: var(--color-brown-soft);
}

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

.menu-note {
  text-align: center;
  color: var(--color-brown-soft);
  font-size: 0.95rem;
  margin: -20px auto 40px;
  max-width: 560px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.menu-category {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 8px;
  box-shadow: var(--shadow-soft);
}

.menu-category h3 {
  color: var(--color-red);
  font-size: 1.25rem;
  border-bottom: 2px solid var(--color-mustard);
  padding-bottom: 12px;
  margin-bottom: 6px;
}

.menu-category__note {
  font-size: 0.8rem;
  color: var(--color-brown-soft);
  opacity: 0.8;
  margin-bottom: 14px;
  display: block;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(58, 35, 24, 0.12);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item__name {
  font-weight: 700;
  color: var(--color-brown);
}

.menu-item__desc {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-brown-soft);
  margin-top: 2px;
}

.menu-item__price {
  font-weight: 700;
  color: var(--color-avocado-dark);
  white-space: nowrap;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item--generated {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.gallery-item__icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 8px;
}

.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}

.gallery-item--generated .gallery-item__label {
  position: static;
  background: none;
  padding: 0 16px;
}

.g1 { background: linear-gradient(135deg, var(--color-red), var(--color-orange)); }
.g2 { background: linear-gradient(135deg, var(--color-avocado), var(--color-avocado-dark)); }
.g3 { background: linear-gradient(135deg, var(--color-mustard), var(--color-red)); }
.g4 { background: linear-gradient(135deg, var(--color-orange), var(--color-red-dark)); }

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

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

.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.review-card__stars {
  color: var(--color-mustard);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-card__quote {
  color: var(--color-brown);
  font-style: italic;
  margin-bottom: 16px;
  flex-grow: 1;
}

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

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

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

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

.hl-card h3 {
  color: var(--color-red);
  margin-bottom: 18px;
}

.hours-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-cream-dark);
  font-size: 0.95rem;
}

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

.hl-contact p {
  margin: 6px 0;
}

.hl-contact a {
  text-decoration: none;
  font-weight: 700;
  color: var(--color-red);
}

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

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

/* Footer */
.site-footer {
  background: var(--color-brown);
  color: var(--color-cream);
  padding: 56px 0 28px;
}

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

.footer-brand__mark {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-mustard);
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p {
  color: rgba(255, 248, 236, 0.75);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mustard);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 248, 236, 0.85);
}

.footer-col a:hover {
  color: var(--color-mustard);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 236, 0.15);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 248, 236, 0.6);
}

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

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

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

.modal h2 {
  color: var(--color-red);
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.modal p {
  color: var(--color-brown-soft);
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-cream-dark);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-brown);
  line-height: 1;
}

.modal-close:hover {
  background: var(--color-mustard);
  color: #fff;
}

.modal-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-red);
  text-decoration: none;
  margin-bottom: 22px;
}

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

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(58, 35, 24, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    display: none;
  }

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

  .nav-toggle {
    display: block;
  }

  .navbar .btn-order--small {
    display: none;
  }

  .nav-links .btn-order {
    display: inline-flex;
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  section {
    padding: 52px 0;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
