/* ==========================================================================
   Taqueria Saltillo — styles (elegant pass)
   Design authority: ui-ux-pro-max
     · typography   → "Restaurant Menu"/"Classic Elegant": Playfair Display + Inter
     · style        → Minimalism: space, hairlines, restrained colour, real hierarchy
     · density 3/10 → spacious; variance 3/10 → centred, calm
     · motion 2/10  → CSS micro-interactions only (150–250ms), no animation library
   Brand palette preserved (green / red / cream / warm yellow), refined usage:
   cream dominates, dark green is the accent, red is reserved for ordering, yellow is sparing.
   ========================================================================== */

@font-face{
  font-family:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;
  src:url("../fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;
  src:url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;
  src:url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;
  src:url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root{
  --yellow:#E9B21C;
  --yellow-soft:#FFD766;
  --green:#1E7A44;
  --green-deep:#14532D;
  --green-tint:#EFF6F1;
  --red:#B93136;
  --cream:#FFF8E7;
  --paper:#FFFDF8;
  --ink:#241A12;
  --ink-soft:#5F5044;
  --line:rgba(36,26,18,.12);
  --hairline:1px solid var(--line);
  --radius:12px;
  --radius-sm:8px;
  --shadow:0 4px 16px rgba(36,26,18,.07);
  --shell:1120px;
  --header-h:64px;
  --font-body:"Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display:"Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}
html:focus-within{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}

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

a{color:var(--green-deep);text-decoration-thickness:1px;text-underline-offset:3px;transition:color .18s ease}
a:hover{color:var(--red)}

h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.18;margin:0 0 .5em;letter-spacing:.005em}
h1{font-size:clamp(1.9rem, 1.25rem + 2.4vw, 2.9rem)}
h2{font-size:clamp(1.4rem, 1.15rem + 1.1vw, 1.85rem)}
h3{font-size:clamp(1.02rem, .98rem + .3vw, 1.15rem)}
p{margin:0 0 .85em}

.shell{width:100%;max-width:var(--shell);margin-inline:auto;padding-inline:clamp(1.05rem, .7rem + 1.6vw, 2rem)}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--green-deep);color:#fff;padding:.75rem 1.1rem;border-radius:0 0 var(--radius-sm) 0;
}
.skip-link:focus{left:0}

:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:4px}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-height:46px;padding:.6rem 1.2rem;
  border-radius:999px;border:1px solid transparent;
  font:inherit;font-weight:600;letter-spacing:.01em;text-decoration:none;cursor:pointer;
  transition:background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:#9E272B;color:#fff}
.btn-outline{border-color:rgba(36,26,18,.32);color:var(--ink);background:transparent}
.btn-outline:hover{border-color:var(--ink);background:var(--ink);color:var(--cream)}
.btn-ghost{background:rgba(255,255,255,.14);color:var(--ink)}
.btn-ghost:hover{background:rgba(255,255,255,.26)}
.btn-sm{min-height:40px;padding:.4rem .85rem;font-size:.88rem}
.btn-lg{min-height:52px;padding:.75rem 1.5rem;font-size:1rem}
.btn:hover{transform:translateY(-1px)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:var(--green-deep);
  border-bottom:2px solid var(--yellow);
}
.header-inner{display:flex;align-items:center;gap:.9rem;min-height:var(--header-h)}
.brand{display:flex;align-items:center;gap:.55rem;text-decoration:none;color:var(--cream);margin-right:auto}
.brand img{width:44px;height:auto;border-radius:6px;background:var(--cream)}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-family:var(--font-display);font-size:1.05rem;color:#fff;letter-spacing:.01em}
.brand-text small{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--yellow-soft)}

.nav{display:none}
.nav-list{display:flex;gap:.15rem;list-style:none;margin:0;padding:0}
.nav-list a{
  display:block;padding:.5rem .7rem;border-radius:999px;
  color:rgba(255,255,255,.88);text-decoration:none;font-weight:500;font-size:.9rem;
  transition:background-color .2s ease, color .2s ease;
}
.nav-list a:hover{background:rgba(255,255,255,.12);color:#fff}

.header-actions{display:flex;align-items:center;gap:.45rem}
.header-actions .btn{white-space:nowrap}
.header-actions .btn-ghost{color:#fff;background:rgba(255,255,255,.1)}
.header-actions .btn-ghost:hover{background:rgba(255,255,255,.22);color:#fff}

.nav-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:10px;
  background:rgba(255,255,255,.12);border:0;cursor:pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after{
  content:"";display:block;width:18px;height:1.5px;background:#fff;border-radius:2px;position:relative;
}
.nav-toggle-bar::before{position:absolute;top:-5px}
.nav-toggle-bar::after{position:absolute;top:5px}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar{background:transparent}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before{transform:rotate(45deg);top:0}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after{transform:rotate(-45deg);top:0}

.mobile-nav{background:var(--green-deep);border-top:1px solid rgba(255,255,255,.14)}
.mobile-nav ul{list-style:none;margin:0;padding:.35rem 0}
.mobile-nav a{
  display:block;padding:.75rem clamp(1.05rem,.7rem + 1.6vw,2rem);
  color:#fff;text-decoration:none;font-weight:500;border-bottom:1px solid rgba(255,255,255,.08);
}
.mobile-nav li:last-child a{border-bottom:0;color:var(--yellow-soft)}

/* ---------- Language bar + switch ---------- */
.lang-bar{background:var(--green-tint);border-bottom:1px solid rgba(30,122,68,.14)}
.lang-bar-inner{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  padding-block:.4rem;font-size:.84rem;
}
.lang-bar-claim{margin:0;font-weight:600;color:var(--green-deep)}
.lang-switch{display:inline-flex;gap:.15rem;background:#fff;border:1px solid rgba(30,122,68,.2);border-radius:999px;padding:.12rem}
.lang-switch button{
  font:inherit;font-size:.76rem;font-weight:700;letter-spacing:.06em;
  border:0;background:transparent;color:var(--ink-soft);
  border-radius:999px;padding:.28rem .6rem;cursor:pointer;
  transition:background-color .2s ease, color .2s ease;
}
.lang-switch button[aria-pressed="true"]{background:var(--green-deep);color:#fff}
.lang-switch button:hover{color:var(--ink)}

/* Spanish-only typographic detail (hidden while EN is active) */
[lang="es"]:not(.lang-bar-claim), .es{font-style:italic}
html[data-lang="es"] .es{font-style:normal}

/* ---------- Hero ---------- */
.hero{
  position:relative;isolation:isolate;
  background-image:url("../img/storefront-real.webp");
  background-size:cover;background-position:center 62%;background-repeat:no-repeat;
  padding-block:clamp(2.2rem, 1.6rem + 3vw, 4rem);
  border-bottom:var(--hairline);
}
.hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(100deg, rgba(255,248,231,.95) 0%, rgba(255,248,231,.88) 40%, rgba(255,248,231,.58) 72%, rgba(255,248,231,.30) 100%),
    linear-gradient(0deg, rgba(255,248,231,.78) 0%, rgba(255,248,231,0) 46%);
}
.hero-inner{max-width:44rem}
.eyebrow{
  font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;
  font-weight:600;color:var(--green);margin:0 0 .6rem;
}
.hero h1 em{font-style:normal;color:var(--green-deep);text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:.1em;text-underline-offset:.09em}
.hero-lede{font-size:clamp(1rem,.97rem + .25vw,1.1rem);color:var(--ink-soft);max-width:34rem;margin-bottom:0}

.status{
  display:inline-flex;align-items:center;gap:.5rem;
  background:#fff;border:var(--hairline);border-radius:999px;
  padding:.35rem .85rem;font-size:.86rem;font-weight:500;margin:1.15rem 0 0;
}
.status-dot{width:8px;height:8px;border-radius:50%;background:var(--ink-soft);flex:none}
.status[data-open="true"] .status-dot{background:#1FA45B;box-shadow:0 0 0 3px rgba(31,164,91,.16)}
.status[data-open="false"] .status-dot{background:var(--red);box-shadow:0 0 0 3px rgba(185,49,54,.14)}

.hero-cta{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.15rem}

/* ---------- Sections ---------- */
.section{padding-block:clamp(2.4rem, 1.8rem + 2.6vw, 4rem)}
.section-alt{background:var(--paper);border-block:var(--hairline)}
.section-head{max-width:44rem;margin-bottom:clamp(1.3rem,1rem + 1.2vw,2rem)}
.section-sub{color:var(--ink-soft);margin:0}

.split{display:grid;gap:clamp(1.6rem,1.2rem + 2.2vw,3rem)}
.split-media{display:grid;gap:1rem;align-content:start}

/* ---------- Favourites ---------- */
.fav-grid{display:grid;gap:clamp(1rem,.9rem + 1vw,1.6rem)}
.fav-card{margin:0}
.fav-card img{
  width:100%;aspect-ratio:4 / 3;object-fit:cover;
  border-radius:var(--radius);box-shadow:var(--shadow);
}
.fav-card figcaption{padding:.85rem .2rem 0;display:flex;flex-direction:column;gap:.2rem}
.fav-card strong{font-family:var(--font-display);font-size:1.06rem;font-weight:600;color:var(--green-deep)}
.fav-card span{font-size:.9rem;color:var(--ink-soft)}

.quote{
  margin:clamp(2rem,1.6rem + 2vw,3rem) auto 0;max-width:46rem;text-align:center;
  border:0;padding:0;
}
.quote p{
  font-family:var(--font-display);font-style:italic;font-size:clamp(1.05rem,1rem + .5vw,1.3rem);
  line-height:1.5;color:var(--ink);margin:0 0 .5rem;
}
.quote footer{font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}

/* ---------- Menu preview (typographic, no boxes) ---------- */
.menu-preview{display:grid;gap:clamp(1.2rem,1rem + 1vw,2rem)}
.menu-col h3{
  margin:0 0 .15rem;color:var(--green-deep);font-size:1.02rem;
  padding-bottom:.4rem;border-bottom:1px solid rgba(30,122,68,.22);
}
.menu-col p{margin:0;font-size:.92rem;color:var(--ink-soft);line-height:1.65}

.menu-foot{
  margin-top:clamp(1.4rem,1.2rem + 1vw,2.2rem);padding-top:1.1rem;
  border-top:var(--hairline);display:grid;gap:.9rem;align-items:center;
}
.menu-weekend{margin:0;font-size:.92rem;color:var(--ink-soft)}
.menu-weekend strong{color:var(--green-deep)}

/* ---------- Truck & catering ---------- */
.services-grid{display:grid;gap:clamp(1.1rem,1rem + 1vw,1.8rem)}
.service-card{display:flex;flex-direction:column}
.service-card img{width:100%;aspect-ratio:3 / 2;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}
.service-body{padding:1rem .2rem 0;display:flex;flex-direction:column;gap:.4rem;flex:1}
.service-body h3{margin:0;color:var(--green-deep)}
.service-body p{margin:0;color:var(--ink-soft);font-size:.94rem}
.service-body .btn{margin-top:1rem;align-self:flex-start}
.service-badge{
  align-self:flex-start;margin:0;font-size:.68rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-soft);
  border:1px solid rgba(36,26,18,.2);border-radius:999px;padding:.22rem .6rem;
}
.service-badge-live{color:var(--green-deep);border-color:rgba(30,122,68,.35);background:var(--green-tint)}

/* ---------- Visit ---------- */
.visit-address{font-size:1.04rem;font-weight:600;font-family:var(--font-display);margin:0 0 1.1rem}
.split-copy h2{margin-bottom:.5rem}
.service-list{list-style:none;margin:1.4rem 0 0;padding:0;font-size:.92rem;color:var(--ink-soft)}
.service-list li{padding:.45rem 0;border-bottom:var(--hairline)}
.service-list li:last-child{border-bottom:0}
.service-list strong{color:var(--ink);font-weight:600}

.hours-table{width:100%;border-collapse:collapse;font-size:.92rem}
.hours-table caption{
  caption-side:top;text-align:left;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;font-size:.72rem;color:var(--green);padding:0 0 .5rem;
}
.hours-table th,.hours-table td{padding:.5rem 0;text-align:left;border-bottom:var(--hairline)}
.hours-table th{font-weight:500;color:var(--ink)}
.hours-table td{color:var(--ink-soft);text-align:right;white-space:nowrap}
.hours-open td{color:var(--green-deep);font-weight:600}

/* ---------- Footer ---------- */
.site-footer{background:var(--green-deep);color:rgba(255,255,255,.78);padding-block:2rem 1.6rem}
.footer-inner{display:grid;gap:.5rem;justify-items:center;text-align:center}
.footer-brand{font-family:var(--font-display);font-size:1.15rem;color:#fff;margin:0}
.footer-note{margin:0;font-size:.88rem;color:var(--yellow-soft)}
.footer-nav{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;justify-content:center;margin:.7rem 0 .2rem}
.footer-nav a{color:#fff;text-decoration:none;font-size:.9rem;border-bottom:1px solid rgba(255,255,255,.28);transition:border-color .2s ease, color .2s ease}
.footer-nav a:hover{color:var(--yellow-soft);border-color:var(--yellow-soft)}
.footer-base{font-size:.78rem;color:rgba(255,255,255,.55);margin:.6rem 0 0}

/* ---------- Anchor offset for the sticky header ---------- */
section[id]{scroll-margin-top:calc(var(--header-h) + 12px)}

/* ---------- Responsive ---------- */
@media (max-width:899px){
  .header-actions .btn-ghost{display:none}
  .header-actions .btn-primary{min-height:42px;padding:.45rem .85rem;font-size:.86rem}
  .brand img{width:38px}
  .brand-text strong{font-size:.98rem}
  .brand-text small{font-size:.62rem}
  .hero::before{
    background:
      linear-gradient(180deg, rgba(255,248,231,.94) 0%, rgba(255,248,231,.86) 52%, rgba(255,248,231,.72) 100%);
  }
}

/* ---------- Catering request form ---------- */
.form-section{background:var(--green-deep);color:rgba(255,255,255,.82)}
.form-section h2{color:#fff}
.form-section .split-copy p{color:rgba(255,255,255,.82)}
.form-section .service-list{color:rgba(255,255,255,.78)}
.form-section .service-list li{border-bottom-color:rgba(255,255,255,.16)}
.form-section .service-list a{color:var(--yellow-soft);text-decoration:underline}
.form-card{background:#fff;border-radius:var(--radius);padding:clamp(1.2rem,1rem + 1.2vw,1.8rem);box-shadow:0 10px 34px rgba(0,0,0,.22);color:var(--ink)}
.field{margin-bottom:1rem}
.field-row{display:grid;gap:1rem}
/* Grid items default to min-width:auto, so a wide native date control would
   override the 1fr track and squeeze/overlap its neighbour. Let tracks win. */
.field-row>.field{min-width:0}
.field label{display:block;font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:.35rem}
.field input,.field select,.field textarea{
  width:100%;min-width:0;font:inherit;font-size:1rem;color:var(--ink);
  background:var(--paper);border:1px solid rgba(36,26,18,.22);border-radius:var(--radius-sm);
  padding:.65rem .8rem;transition:border-color .18s ease, box-shadow .18s ease;
}
.field textarea{resize:vertical;min-height:6rem}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:0;border-color:var(--green);box-shadow:0 0 0 3px rgba(30,122,68,.16);
}
.field input:user-invalid,.field textarea:user-invalid,.field input.is-invalid,.field textarea.is-invalid{border-color:var(--red);box-shadow:0 0 0 3px rgba(185,49,54,.12)}
.form-submit{width:100%;margin-top:.3rem}
.form-smallprint{margin:.7rem 0 0;font-size:.78rem;color:var(--ink-soft);text-align:center}
.form-status{
  margin-bottom:1rem;padding:.7rem .9rem;border-radius:var(--radius-sm);font-size:.9rem;
  background:var(--green-tint);color:var(--green-deep);border-left:3px solid var(--green);
}
.form-status[data-state="error"]{background:rgba(185,49,54,.09);color:#8A2226;border-left-color:var(--red)}
.form-status[data-state="pending"]{background:rgba(233,178,28,.14);color:#7a5a06;border-left-color:var(--yellow)}

@media (min-width:600px){
  .menu-preview{grid-template-columns:repeat(2,1fr)}
  .menu-foot{grid-template-columns:1fr auto}
  .field-row{grid-template-columns:1fr 1fr}
}

@media (min-width:760px){
  .fav-grid{grid-template-columns:repeat(3,1fr)}
  .services-grid{grid-template-columns:1fr 1fr}
  .menu-preview{grid-template-columns:repeat(3,1fr)}
}

@media (min-width:900px){
  .nav{display:block}
  .nav-toggle{display:none}
  .mobile-nav{display:none !important}
  .split{grid-template-columns:1.05fr .95fr;align-items:start}
}

@media (prefers-reduced-motion:reduce){
  html:focus-within{scroll-behavior:auto}
  *{transition:none !important;animation:none !important}
  .btn:hover{transform:none}
}
