/* ==========================================================================
   La Fiesta Food Mart — stylesheet
   Color/type tokens live at the top. Change them here to re-theme the site.
   ========================================================================== */

:root {
  --color-terracotta: #d9502c;
  --color-terracotta-dark: #b53f21;
  --color-marigold: #f2a93b;
  --color-avocado: #4c7a46;
  --color-cream: #fbf4e9;
  --color-cream-alt: #f5e9d6;
  --color-charcoal: #2a2320;
  --color-white: #ffffff;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 8px 24px rgba(42, 35, 32, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1em; }

a { color: inherit; }

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

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

.section {
  padding: 64px 0;
}

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

.section-title {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.section-lead {
  color: #5c5350;
  max-width: 640px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 52px;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(217, 80, 44, 0.35);
}
.btn-primary:hover { background: var(--color-terracotta-dark); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-terracotta);
  border: 2px solid var(--color-terracotta);
}
.btn-secondary:hover { background: var(--color-cream-alt); }

.btn-ghost {
  background: var(--color-avocado);
  color: var(--color-white);
}
.btn-ghost:hover { opacity: 0.9; }

.btn-disabled {
  background: var(--color-white);
  color: #a39a94;
  border: 2px dashed #cbbfb6;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 233, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(42, 35, 32, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-terracotta);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-terracotta);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-charcoal);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  border: 2px solid var(--color-terracotta);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--color-terracotta);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(42, 35, 32, 0.15);
  background: var(--color-white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-charcoal);
  position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; width: 20px; height: 2px; background: var(--color-charcoal); }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; width: 20px; height: 2px; background: var(--color-charcoal); }

#nav-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-cream);
  padding: 16px 20px 24px;
  border-bottom: 1px solid rgba(42, 35, 32, 0.08);
  gap: 16px;
}

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

.hero {
  position: relative;
  color: var(--color-white);
  padding: 56px 0 64px;
  overflow: hidden;
  background: var(--color-terracotta-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 80, 44, 0.92) 0%, rgba(180, 63, 33, 0.88) 45%, rgba(42, 35, 32, 0.55) 100%);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-cream);
}

.hero-copy {
  font-size: 1.05rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 20px 0 24px;
  font-weight: 600;
  max-width: 460px;
}

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

.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Categories ---------- */

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

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: left;
  overflow: hidden;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-cream-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px 24px 24px;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.92rem;
  color: #6b615b;
  margin: 0;
}

.categories-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #8a7d75;
}

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

.gallery-heading {
  margin-top: 44px;
  font-size: 1.2rem;
}

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

.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #6b615b;
  font-weight: 600;
}

/* ---------- Visit / Map ---------- */

.visit-grid {
  display: grid;
  gap: 28px;
}

.visit-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.visit-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: block;
}

.visit-card address {
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(42, 35, 32, 0.1);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

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

.hours-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 8px 28px;
  box-shadow: var(--shadow-soft);
  max-width: 480px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(42, 35, 32, 0.08);
  font-size: 1.05rem;
}

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

.hours-days { font-weight: 600; }

.hours-time { color: var(--color-terracotta); font-weight: 700; }

.hours-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #8a7d75;
}

/* ---------- Contact ---------- */

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

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.placeholder-tag {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #a39a94;
}

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

.reviews-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.stars {
  color: var(--color-marigold);
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.rating-number {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.review-count {
  color: #6b615b;
  margin-bottom: 20px;
}

.reviews-note {
  font-size: 0.82rem;
  color: #a39a94;
  margin-top: 16px;
}

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

.site-footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

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

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 860px) {
  .nav-menu { display: flex; }
  .nav-toggle { display: none; }
  #nav-menu.open { position: static; flex-direction: row; padding: 0; border: none; background: transparent; }
  .hero h1 { font-size: 3rem; }
  .section { padding: 88px 0; }
}
