/* =========================================================
   Los Gallegos Restaurant — Miami
   Modern static rebuild · ThatsKrispy
   ========================================================= */

:root {
  --ink: #1b2024;          /* brand charcoal (from original) */
  --ink-soft: #2a2f34;
  --garnet: #8e2a2b;       /* Spanish garnet red */
  --garnet-dark: #6f1f20;
  --gold: #c8962e;         /* saffron / gold accent */
  --gold-soft: #efd9a6;
  --cream: #faf6ef;
  --cream-2: #f3ece0;
  --paper: #ffffff;
  --text: #26221e;
  --text-soft: #5b554d;
  --line: #e6ddcf;
  --shadow: 0 18px 40px -20px rgba(27, 32, 36, .35);
  --shadow-sm: 0 8px 24px -16px rgba(27, 32, 36, .4);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .3px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-bottom: 14px;
}
.lead { font-size: 1.16rem; color: var(--text-soft); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--garnet); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--garnet-dark); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #b9851f; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(27,32,36,.25); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.22); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(27, 32, 36, .96);
  box-shadow: 0 6px 24px -16px rgba(0,0,0,.6);
  padding: 10px 0;
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  line-height: 1; letter-spacing: .5px;
}
.brand__mark span { color: var(--gold); }
.brand__sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: rgba(255,255,255,.88); font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__call { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.nav__call svg { width: 18px; height: 18px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px; z-index: 60;
}
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; border-radius: 2px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; text-align: center; padding: 120px 0 60px;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27,32,36,.62) 0%, rgba(27,32,36,.55) 40%, rgba(27,32,36,.82) 100%);
}
.hero__inner { max-width: 880px; margin: 0 auto; }
.hero h1 { color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero .accent { color: var(--gold); font-style: italic; }
.hero__tag {
  font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 56ch; margin: 0 auto 32px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__meta {
  margin-top: 40px; display: flex; gap: 14px 32px; justify-content: center; flex-wrap: wrap;
  font-size: .92rem; color: rgba(255,255,255,.85);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--gold); }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.7), transparent); }

/* ---------- About ---------- */
.about { background: var(--cream); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media .badge {
  position: absolute; bottom: -22px; right: -10px; background: var(--ink); color: #fff;
  padding: 18px 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.split__media .badge strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold); display: block; line-height: 1; }
.split__media .badge span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.feature { display: flex; gap: 14px; }
.feature__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; background: var(--cream-2); display: grid; place-items: center; color: var(--garnet); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 2px 0 4px; }
.feature p { font-size: .9rem; color: var(--text-soft); margin: 0; }

/* ---------- Menu ---------- */
.menu { background: var(--ink); color: #fff; }
.menu .eyebrow { color: var(--gold); }
.menu h2 { color: #fff; }
.menu__intro { max-width: 60ch; margin: 0 auto 18px; color: rgba(255,255,255,.78); }
.menu__filters {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 30px 0 46px;
}
.filter-btn {
  background: transparent; color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.2);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: .2s; font-family: var(--font-body);
}
.filter-btn:hover { border-color: rgba(255,255,255,.55); color: #fff; }
.filter-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.filter-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dish {
  background: #21272c; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dish:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -24px rgba(0,0,0,.7); }
.dish__img { aspect-ratio: 4/3; overflow: hidden; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dish:hover .dish__img img { transform: scale(1.06); }
.dish__body { padding: 20px 22px 24px; }
.dish__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff; }
.dish__price { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); white-space: nowrap; }
.dish__tag { display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.dish__desc { font-size: .92rem; color: rgba(255,255,255,.7); margin: 10px 0 0; }
.dish.is-hidden { display: none; }
.menu__note {
  margin-top: 44px; text-align: center; color: rgba(255,255,255,.7); font-size: .95rem;
}
.menu__note a { color: var(--gold); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream-2); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; margin-top: 40px;
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ---------- Visit ---------- */
.visit { background: var(--cream); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); }
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.info-block { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: 0; padding-bottom: 0; }
.info-block:first-child { padding-top: 0; }
.info-block__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; color: var(--garnet); }
.info-block__icon svg { width: 22px; height: 22px; }
.info-block h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 4px; }
.info-block p { margin: 0; font-size: 1.05rem; }
.info-block a { color: var(--garnet); font-weight: 600; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 9px 0; font-size: .98rem; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 500; color: var(--text-soft); }
.hours-table td { text-align: right; font-weight: 600; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--garnet); }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.amenities span { font-size: .82rem; background: var(--cream-2); color: var(--text-soft); padding: 6px 12px; border-radius: 999px; }
.visit__cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; text-align: center; padding: clamp(70px, 9vw, 120px) 0; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(27,32,36,.78); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 54ch; margin: 0 auto 30px; font-size: 1.15rem; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #15191c; color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .92rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__mark { font-size: 1.6rem; }
.footer__about { margin-top: 14px; max-width: 38ch; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; transition: .2s; }
.footer__social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer__bottom a { color: rgba(255,255,255,.7); }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.1);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.callbar .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: .95rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 14px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; position: fixed; inset: 0; flex-direction: column; justify-content: center;
    align-items: center; gap: 30px; background: rgba(27,32,36,.99); font-size: 1.4rem;
  }
  .nav.is-open .nav__links a { color: #fff; font-family: var(--font-display); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media .badge { right: 14px; }
  .visit-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .wide { grid-column: span 2; }
  .gallery-grid .tall { grid-row: span 1; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .callbar { display: flex; }
  body { padding-bottom: 70px; }
  .nav__cta .btn--primary { display: none; }
}
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 10px 20px; font-size: .82rem; }
  .info-card { padding: 24px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .dish:hover { transform: none; }
}
