/* Tex Grill Los Mochis — main.css
   Family sports bar & grill. Warm ember-on-charcoal palette. */

:root {
  --ink:        #17110d;
  --ink-2:      #1f1812;
  --panel:      #2a201a;
  --panel-2:    #322619;
  --ember:      #ef7d2e;
  --ember-2:    #f4a23c;
  --red:        #d8412a;
  --field:      #2f9e63;
  --cream:      #f6ede0;
  --cream-dim:  #c9b8a4;
  --line:       rgba(246, 237, 224, 0.12);
  --shadow:     0 18px 50px rgba(0, 0, 0, 0.45);
  --radius:     16px;
  --maxw:       1180px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: "Anton", "Inter", sans-serif; font-weight: 400; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ember); color: var(--ink); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ember-2); font-weight: 600; margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--ember); color: var(--ink); }
.btn--primary:hover { background: var(--ember-2); }
.btn--ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--ember-2); color: var(--ember-2); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 17, 13, 0);
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(23, 17, 13, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: 0.35rem; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: "Anton", sans-serif; font-size: 1.5rem; letter-spacing: 0.02em;
  color: var(--cream); text-transform: uppercase;
}
.brand-mark--alt { color: var(--ember); }
.brand-sub {
  font-size: 0.6rem; letter-spacing: 0.3em; color: var(--cream-dim);
  align-self: center; margin-left: 0.4rem; font-weight: 600;
}
.nav-menu {
  list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0;
}
.nav-menu a { color: var(--cream); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--ember-2); text-decoration: none; }
.nav-cta {
  background: var(--ember); color: var(--ink) !important; padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: var(--ember-2); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: transform 0.3s, opacity 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,17,13,0.55) 0%, rgba(23,17,13,0.15) 35%, rgba(23,17,13,0.85) 100%),
    radial-gradient(80% 60% at 15% 90%, rgba(239,125,46,0.30), transparent 60%);
}
.hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 0 1.25rem 4.5rem;
}
.hero-title {
  font-size: clamp(3rem, 7vw + 1rem, 7rem); margin: 0.4rem 0 1rem; color: var(--cream);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-lede { font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem); max-width: 40ch; color: var(--cream); margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0;
  font-size: 0.95rem; color: var(--cream-dim);
}
.hero-badges strong { color: var(--cream); }
.hero-badges li { display: flex; align-items: center; gap: 0.4rem; }
.hero-badges li + li::before { content: ""; }

/* ---------- Section base ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 1.25rem; }
.section-head { max-width: 56ch; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw + 0.5rem, 3.4rem); margin: 0 0 0.6rem; color: var(--cream); }
.section-sub { color: var(--cream-dim); font-size: 1.08rem; margin: 0; }

/* ---------- Menu ---------- */
.section--menu { border-top: 1px solid var(--line); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.menu-card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.menu-card:hover { transform: translateY(-4px); border-color: rgba(239,125,46,0.5); }
.menu-card h3 {
  font-size: 1.35rem; color: var(--ember-2); margin: 0 0 1rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line); letter-spacing: 0.03em;
}
.menu-card ul { list-style: none; margin: 0; padding: 0; }
.menu-card li { padding: 0.3rem 0; color: var(--cream); border-bottom: 1px dashed rgba(246,237,224,0.08); }
.menu-card li:last-child { border-bottom: 0; }
.menu-note { margin-top: 1.8rem; color: var(--cream-dim); font-size: 0.98rem; }

/* ---------- Pillars ---------- */
.section--pillars { background: linear-gradient(180deg, var(--ink), var(--ink-2)); max-width: none; }
.section--pillars > .section-head, .pillars { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; padding: 0 0.25rem; }
.pillar { padding: 1.2rem 0.5rem; }
.pillar-icon { font-size: 2.4rem; display: block; margin-bottom: 0.8rem; }
.pillar h3 { font-size: 1.5rem; color: var(--cream); margin: 0 0 0.6rem; }
.pillar p { color: var(--cream-dim); margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.gallery-item { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--panel); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Events ---------- */
.section--events { max-width: none; padding: 0; }
.events-card {
  max-width: var(--maxw); margin: 0 auto;
  background:
    linear-gradient(120deg, rgba(216,65,42,0.92), rgba(239,125,46,0.92));
  border-radius: 0; padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}
.events-text { max-width: 60ch; margin: 0 auto; text-align: center; }
.events-text h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0.3rem 0 1rem; }
.events-text .eyebrow { color: rgba(255,255,255,0.85); }
.events-text p { color: rgba(255,255,255,0.95); margin: 0 0 1.6rem; font-size: 1.1rem; }
.events-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.events-actions .btn--primary { background: var(--ink); color: var(--cream); }
.events-actions .btn--primary:hover { background: #000; }
.events-actions .btn--ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.events-actions .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.location-info h3 { font-size: 1.7rem; color: var(--ember-2); margin: 0 0 0.8rem; }
.location-info h4 { font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; color: var(--cream-dim); margin: 1.6rem 0 0.6rem; }
.addr { color: var(--cream); margin: 0; line-height: 1.7; }
.addr-ref { color: var(--cream-dim); font-size: 0.92rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--cream-dim); }
.hours td { color: var(--cream); font-weight: 600; text-align: right; }
.open-note { color: var(--field); font-weight: 600; margin: 0.8rem 0 0; }
.location-actions { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.location-map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; margin: 0; }
.location-map .locate-zoom { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; background: #0c1a2a; }
.map-cap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 1.5rem 1rem 0.7rem; font-size: 0.82rem; color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.footer-brand p { color: var(--cream-dim); margin: 0.3rem 0 0; font-size: 0.9rem; }
.footer-links { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.footer-links a { color: var(--cream); font-size: 0.95rem; }
.footer-legal { color: var(--cream-dim); font-size: 0.85rem; margin: 0; width: 100%; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item img, .btn, .menu-card { transition: none; }
}

/* ---------- Responsive ---------- */
/* Even rows: 6 menu cards & 6 gallery photos => 3 across on desktop (2 rows of 3) */
@media (min-width: 980px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .menu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 0.4rem;
    background: rgba(23,17,13,0.98); backdrop-filter: blur(10px);
    padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--line);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.3s var(--ease), visibility 0.3s;
  }
  .nav-menu.open { max-height: 70vh; visibility: visible; }
  .nav-menu li { width: 100%; }
  .nav-cta { display: inline-block; margin-top: 0.4rem; }
  .location-grid { grid-template-columns: 1fr; }
  .hours td { text-align: right; }
}
