/* ============================================================
   Mesquite & Sun Fresh-Mex Catering — styles.css
   ============================================================ */

:root {
  --cream: #fdf8ef;
  --cream-dark: #f7eeda;
  --charcoal: #2b2420;
  --charcoal-soft: #5c5148;
  --lime: #7ab317;
  --lime-dark: #5c8a0f;
  --gold: #e8a020;
  --gold-dark: #c07f0a;
  --chile: #c0392b;
  --chile-dark: #96261b;
  --teal: #1f6f6b;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(43, 36, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 36, 32, 0.12);
  --shadow-lg: 0 16px 48px rgba(43, 36, 32, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-accent: "Caveat", cursive;
}

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

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(122, 179, 23, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(122, 179, 23, 0.45); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(232, 160, 32, 0.35);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(232, 160, 32, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

.btn-chile {
  background: linear-gradient(135deg, var(--chile) 0%, var(--chile-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
}

.btn-sm { padding: 10px 22px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(253, 248, 239, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold) 0%, var(--chile) 65%, var(--chile-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.logo-mark svg { width: 26px; height: 26px; }

.logo-text .logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chile);
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  transition: width 0.25s ease;
}

.main-nav a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  padding: 6px;
}

.nav-toggle svg { width: 28px; height: 28px; }

/* Color swap of nav for transparent-over-hero state */
.site-header:not(.scrolled) .main-nav a { color: var(--white); }
.site-header:not(.scrolled) .logo { color: var(--white); }
.site-header:not(.scrolled) .logo-text .logo-sub { color: var(--gold); }
.site-header:not(.scrolled) .nav-toggle { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(24, 16, 10, 0.72) 0%, rgba(24, 16, 10, 0.45) 45%, rgba(24, 16, 10, 0.8) 100%),
    url("../images/hero.webp") center / cover no-repeat;
  padding: 140px 0 100px;
}

.hero-content { max-width: 780px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 160, 32, 0.2);
  border: 1px solid rgba(232, 160, 32, 0.55);
  color: #ffd98a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 680px;
  margin-bottom: 36px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 44px;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 248, 239, 0.12);
  border: 1px solid rgba(253, 248, 239, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.hero-badges svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }

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

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

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chile);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 16px;
}

.section-head p { color: var(--charcoal-soft); font-size: 1.08rem; }

.accent-line {
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--lime), var(--gold), var(--chile));
  margin: 18px auto 0;
}

/* ---------- Heritage ---------- */
.heritage-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.heritage-media { position: relative; }

.heritage-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}

.heritage-card {
  position: absolute;
  bottom: -28px;
  right: -16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 26px;
  text-align: center;
  border-top: 5px solid var(--lime);
}

.heritage-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--lime-dark);
}

.heritage-card span { font-size: 0.85rem; font-weight: 600; color: var(--charcoal-soft); }

.heritage-copy .handwritten {
  font-family: var(--font-accent);
  font-size: 1.7rem;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.heritage-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 20px;
}

.heritage-copy > p { color: var(--charcoal-soft); margin-bottom: 24px; }

.heritage-points { display: grid; gap: 16px; }

.heritage-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.point-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.point-icon svg { width: 24px; height: 24px; }

.pi-lime { background: var(--lime); }
.pi-gold { background: var(--gold); }
.pi-chile { background: var(--chile); }
.pi-teal { background: var(--teal); }

.heritage-points strong { display: block; font-size: 1.05rem; }

.heritage-points p { font-size: 0.95rem; color: var(--charcoal-soft); }

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

.menu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.menu-card img { aspect-ratio: 4 / 3; object-fit: cover; }

.menu-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

.menu-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tag-lime { background: rgba(122, 179, 23, 0.15); color: var(--lime-dark); }
.tag-gold { background: rgba(232, 160, 32, 0.16); color: var(--gold-dark); }
.tag-chile { background: rgba(192, 57, 43, 0.13); color: var(--chile); }

.menu-body h3 { font-size: 1.35rem; margin-bottom: 10px; }

.menu-body p { color: var(--charcoal-soft); font-size: 0.97rem; margin-bottom: 18px; }

.menu-feats { display: grid; gap: 8px; margin-bottom: 22px; }

.menu-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.menu-feats svg { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; }

.menu-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed #e3d7bf;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.menu-price strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--chile);
}

.menu-price span { font-size: 0.85rem; color: var(--charcoal-soft); }

.menu-note {
  text-align: center;
  margin-top: 40px;
  color: var(--charcoal-soft);
  font-size: 0.98rem;
}

.menu-note a { color: var(--chile); font-weight: 700; text-decoration: underline; }

/* ---------- Packages ---------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.package-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.package-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.package-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #fffdf7 0%, var(--white) 40%);
}

.pkg-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

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

.pkg-desc { color: var(--charcoal-soft); font-size: 0.95rem; margin-bottom: 20px; }

.pkg-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.pkg-price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  font-weight: 400;
}

.pkg-list { display: grid; gap: 12px; margin-bottom: 30px; }

.pkg-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.pkg-list svg { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; margin-top: 3px; }

.package-card .btn { margin-top: auto; }

/* ---------- Event Types ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
}

.event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover img { transform: scale(1.06); }

.event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 16, 10, 0) 30%, rgba(24, 16, 10, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

.event-overlay h3 { font-size: 1.25rem; margin-bottom: 8px; }

.event-overlay p { font-size: 0.9rem; color: #f1e8d8; }

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

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

.contact-info h3 { font-size: 1.6rem; margin-bottom: 12px; }

.contact-info > p { color: var(--charcoal-soft); margin-bottom: 28px; }

.contact-list { display: grid; gap: 18px; }

.contact-list li { display: flex; gap: 14px; align-items: flex-start; }

.contact-list .point-icon { width: 42px; height: 42px; border-radius: 10px; }

.contact-list .point-icon svg { width: 20px; height: 20px; }

.contact-list strong { display: block; font-size: 0.98rem; }

.contact-list a, .contact-list span { font-size: 0.95rem; color: var(--charcoal-soft); }

.contact-list a:hover { color: var(--chile); }

.quote-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border-top: 6px solid var(--lime);
}

.quote-form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }

.quote-form-card > p { color: var(--charcoal-soft); font-size: 0.95rem; margin-bottom: 26px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field.full { grid-column: 1 / -1; }

.form-field label { font-weight: 700; font-size: 0.88rem; }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 2px solid #eadfc8;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(122, 179, 23, 0.15);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lime); flex-shrink: 0; }

.quote-form-card .btn { width: 100%; margin-top: 8px; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background: rgba(122, 179, 23, 0.14);
  color: var(--lime-dark);
  border: 1px solid rgba(122, 179, 23, 0.4);
}

.form-status.error {
  display: block;
  background: rgba(192, 57, 43, 0.1);
  color: var(--chile-dark);
  border: 1px solid rgba(192, 57, 43, 0.35);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #241d18;
  color: #d9cfc2;
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 52px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }

.footer-brand p { font-size: 0.93rem; max-width: 300px; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a, .footer-col li { font-size: 0.93rem; color: #d9cfc2; }

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

.footer-col address { font-style: normal; font-size: 0.93rem; display: grid; gap: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }

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

/* ---------- Inner (legal) pages ---------- */
.legal-main {
  padding: 150px 0 90px;
  min-height: 60vh;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
}

.breadcrumb a { color: var(--chile); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.legal-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 48px;
  max-width: 860px;
  border-top: 6px solid var(--gold);
}

.legal-article h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-bottom: 28px;
}

.legal-article h2 {
  font-size: 1.3rem;
  margin: 30px 0 10px;
}

.legal-article p {
  color: var(--charcoal-soft);
  margin-bottom: 14px;
}

.legal-article a { color: var(--chile); font-weight: 600; }

.legal-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding-left: 4px;
}

.legal-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--charcoal-soft);
  font-size: 0.97rem;
}

.legal-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .legal-main { padding: 120px 0 60px; }
  .legal-article { padding: 28px 20px; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .menu-grid, .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .heritage-grid { grid-template-columns: 1fr; gap: 64px; }
  .heritage-media { max-width: 560px; margin: 0 auto; }
  .quote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(253, 248, 239, 0.98);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.open { max-height: 420px; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 6%;
  }

  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid #efe5d0; }

  .site-header:not(.scrolled) .main-nav a { color: var(--charcoal); }

  .main-nav a::after { display: none; }

  .nav-toggle { display: block; }

  .nav-cta .btn { display: none; }

  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .menu-grid, .packages-grid, .events-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .quote-form-card { padding: 28px 22px; }
  .heritage-card { right: 8px; bottom: -22px; padding: 14px 20px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
