/* =========================================================
   La Chapinita Restaurant — style.css
   Design: warm · rooted · handmade
   Palette: cobalt blue + warm red + navy (from logo)
   Fonts: Yeseva One (display) + Nunito (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Yeseva+One&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Colors — OKLCH perceptual, derived from logo */
  --c-bg:            oklch(97%  0.005 248);   /* cool white / very light blue  */
  --c-surface:       oklch(94%  0.009 248);   /* blue-tinted off-white         */
  --c-primary:       oklch(48%  0.20  247);   /* cobalt blue  — logo text      */
  --c-primary-dk:    oklch(40%  0.20  247);   /* darker cobalt                 */
  --c-navy:          oklch(24%  0.12  247);   /* dark navy — dark sections     */
  --c-red:           oklch(53%  0.22   22);   /* warm red  — figure accent     */
  --c-red-dk:        oklch(44%  0.22   22);   /* darker red                    */
  --c-gold:          oklch(72%  0.14   78);   /* warm gold — eyebrow labels    */
  --c-text:          oklch(18%  0.06  247);   /* dark navy text                */
  --c-muted:         oklch(50%  0.025 247);   /* blue-gray mid tone            */
  --c-white:         oklch(99%  0.003 248);   /* near white                    */
  --c-divider:       oklch(88%  0.010 248);   /* subtle separator              */

  /* Spacing — 4pt scale */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 96px;

  /* Type */
  --f-display: 'Yeseva One', Georgia, serif;
  --f-body:    'Nunito', system-ui, sans-serif;

  /* Radii */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1160px;
  --nav-h:     68px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; }
h1 { font-size: clamp(2rem,   5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw,  1.5rem); }

p {
  font-size: 1rem;
  line-height: 1.78;
  max-width: 65ch;
  color: var(--c-muted);
}

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}
@media (max-width: 600px) { .container { padding-inline: var(--sp-md); } }

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-primary);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 14px oklch(0% 0 0 / 0.22);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  width: 100%;
}

.nav-logo {
  background: oklch(99% 0.003 248);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  line-height: 0;
}
.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
}

.nav-links a {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
  opacity: 0.80;
  transition: opacity 0.18s;
  padding-block: var(--sp-sm);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-gold);
  transition: width 0.22s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--c-white);
  color: var(--c-primary);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--r-sm);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.btn-call:hover {
  background: var(--c-gold);
  color: var(--c-text);
}

.btn-call svg { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1.5px solid oklch(100% 0 0 / 0.45);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  color: var(--c-white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  transition: transform 0.22s, opacity 0.22s;
}

.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); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--c-primary-dk);
    padding: var(--sp-xl);
    gap: var(--sp-lg);
    box-shadow: 0 8px 24px oklch(0% 0 0 / 0.2);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1rem;
    opacity: 0.9;
  }

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

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: var(--sp-md) var(--sp-2xl);
  border-radius: var(--r-sm);
  border: none;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px oklch(0% 0 0 / 0.15);
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-primary:hover { background: var(--c-primary-dk); }

.btn-red {
  background: var(--c-red);
  color: var(--c-white);
}

.btn-red:hover { background: var(--c-red-dk); }

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-white {
  background: var(--c-white);
  color: var(--c-primary);
}

.btn-white:hover { background: var(--c-gold); color: var(--c-text); }

/* ── HERO ────────────────────────────────────────────────
   Background image set via inline style on the <section>.
   ::before provides the dark navy overlay.
   ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(78vh, 700px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--c-navy);   /* fallback while image loads */
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(24% 0.12 247 / 0.80);  /* dark navy overlay */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-4xl);
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-md);
}

.hero h1 {
  color: var(--c-white);
  max-width: 14ch;
  margin-bottom: var(--sp-lg);
}

.hero .lead {
  color: oklch(99% 0.003 248 / 0.80);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: var(--sp-2xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  align-items: center;
}

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar {
  background: var(--c-navy);
  padding-block: var(--sp-lg);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--c-white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--c-gold);
}

/* ── SPLIT SECTIONS ─────────────────────────────────────── */
.section    { padding-block: var(--sp-4xl); }
.section-sm { padding-block: var(--sp-3xl); }

/* Dark navy sections (was section-green) */
.section-dark {
  background: var(--c-navy);
}

.section-dark h2 { color: var(--c-white); }
.section-dark p  { color: oklch(99% 0.003 248 / 0.70); }
.section-dark .eyebrow { color: var(--c-gold); }

/* Keep section-green as alias for backward-compat */
.section-green {
  background: var(--c-navy);
}

.section-green h2 { color: var(--c-white); }
.section-green p  { color: oklch(99% 0.003 248 / 0.70); }
.section-green .eyebrow { color: var(--c-gold); }

.section-warm { background: var(--c-surface); }

.section-label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: var(--sp-md);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.split-text h2 { margin-bottom: var(--sp-lg); }
.split-text p  { margin-bottom: var(--sp-xl); }

.split-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--r-lg);
}

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .split-img { order: -1; }
  .split-img img { height: 280px; }
}

/* ── FEATURES GRID ──────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-xl);
  margin-top: var(--sp-3xl);
}

.feature {
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-md);
  display: block;
}

.feature h3 {
  color: var(--c-white);
  font-size: 1.05rem;
  margin-bottom: var(--sp-sm);
}

.feature p {
  color: oklch(99% 0.003 248 / 0.65);
  font-size: 0.9rem;
  max-width: none;
}

/* ── FULL-WIDTH IMAGE ───────────────────────────────────── */
.img-strip { overflow: hidden; }

.img-strip img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ── PAGE HEADER (menu / contact) ───────────────────────── */
.page-header {
  background: var(--c-navy);
  padding-block: var(--sp-3xl) var(--sp-2xl);
}

.page-header h1 { color: var(--c-white); margin-bottom: var(--sp-md); }
.page-header p  { color: oklch(99% 0.003 248 / 0.72); }
.page-header .eyebrow { color: var(--c-gold); }

/* ── MENU PAGE ──────────────────────────────────────────── */
.menu-intro  { padding-block: var(--sp-4xl); }
.menu-pages  { padding-block: var(--sp-2xl) var(--sp-4xl); }

.menu-pages-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.menu-pages-grid img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: 0 4px 28px oklch(0% 0 0 / 0.1);
  cursor: zoom-in;
}

.menu-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-2xl);
  color: var(--c-muted);
  font-size: 0.95rem;
}

.menu-zoom-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
}

/* ── CONTACT PAGE ───────────────────────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-xl);
  margin-top: var(--sp-2xl);
}

.contact-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl);
  box-shadow: 0 2px 18px oklch(0% 0 0 / 0.06);
}

.contact-card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-md);
  display: block;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-sm);
  color: var(--c-primary);
}

.contact-card p {
  font-size: 0.95rem;
  max-width: none;
  line-height: 1.8;
}

.contact-card a:not(.btn) {
  color: var(--c-primary);
  font-weight: 700;
}

.contact-card a:not(.btn):hover { text-decoration: underline; }

.map-wrap { padding-block: var(--sp-3xl); }

.map-wrap iframe {
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: var(--r-lg);
  display: block;
  box-shadow: 0 4px 24px oklch(0% 0 0 / 0.1);
}

/* ── HOURS (contact page) ───────────────────────────────── */
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-sm) 0;
  font-size: 0.95rem;
}

.hours-row + .hours-row { border-top: 1px solid var(--c-divider); }

.hours-day  { font-weight: 700; color: var(--c-text); }
.hours-time { color: var(--c-muted); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--c-navy);
  padding-block: var(--sp-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-3xl);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-2xl); }
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: var(--sp-lg);
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.9rem;
  color: oklch(99% 0.003 248 / 0.55);
  max-width: 38ch;
}

.footer-col-title {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: oklch(99% 0.003 248 / 0.60);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--c-white); }

.footer-info p {
  font-size: 0.9rem;
  color: oklch(99% 0.003 248 / 0.60);
  line-height: 1.85;
  max-width: none;
}

.footer-bottom {
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid oklch(99% 0.003 248 / 0.10);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: oklch(99% 0.003 248 / 0.35);
  max-width: none;
}

.footer-bottom a {
  color: oklch(99% 0.003 248 / 0.50);
  transition: color 0.15s;
}

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

/* ── MOBILE STICKY CALL BAR ─────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--c-navy);
  padding: var(--sp-sm) var(--sp-md);
  box-shadow: 0 -4px 20px oklch(0% 0 0 / 0.28);
}

@media (max-width: 820px) {
  .mobile-cta-bar { display: flex; }

  #scroll-top { bottom: calc(var(--sp-xl) + 60px); }

  body { padding-bottom: 60px; }
}

.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 12px var(--sp-md);
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--c-primary);
  color: var(--c-white);
  transition: background 0.18s;
}

.mobile-cta-bar a:hover { background: var(--c-primary-dk); }

/* ── SCROLL TO TOP ──────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  width: 48px;
  height: 48px;
  background: var(--c-red);
  color: var(--c-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 150;
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.35);
}

#scroll-top.show { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--c-red-dk); transform: translateY(-3px); }

@media (max-width: 820px) {
  #scroll-top { right: var(--sp-md); }
}

/* ── LIGHTBOX ────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: oklch(10% 0.05 247 / 0.95);
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
}

#lightbox.open { display: flex; }

#lightbox img {
  max-width: 100%;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 8px 48px oklch(0% 0 0 / 0.5);
}

#lb-close {
  position: absolute;
  top: var(--sp-lg);
  right: var(--sp-lg);
  width: 44px;
  height: 44px;
  background: oklch(99% 0.003 248 / 0.15);
  border: 1.5px solid oklch(99% 0.003 248 / 0.35);
  border-radius: 50%;
  color: var(--c-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}

#lb-close:hover { background: oklch(99% 0.003 248 / 0.28); }

/* ── 404 PAGE ───────────────────────────────────────────── */
.not-found {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-4xl) var(--sp-xl);
}

.not-found-num {
  font-family: var(--f-display);
  font-size: clamp(6rem, 20vw, 11rem);
  color: var(--c-surface);
  line-height: 1;
}

.not-found h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin-block: var(--sp-lg) var(--sp-md);
}

.not-found p {
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
}

/* ── FADE-IN ANIMATION ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  }

  .fade.in { opacity: 1; transform: none; }

  .fade-delay-1 { transition-delay: 0.1s; }
  .fade-delay-2 { transition-delay: 0.22s; }
  .fade-delay-3 { transition-delay: 0.34s; }
}

/* ── UTILITIES ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-lg  { margin-top: var(--sp-lg); }
.mt-xl  { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
