/* ==========================================================================
   Etxea — Basque Kitchen & Pintxo Bar
   Design tokens
   ========================================================================== */
:root {
  --ink:        #1A1A18;
  --bone:       #EDE8DE;
  --paprika:    #B23A2E;
  --sea:        #4A5D53;
  --ochre:      #C9A050;
  --bone-dim:   #DCD5C4;
  --ink-soft:   #33322E;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-expanded: 'Archivo Expanded', var(--font-body);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-sm: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75em 1.25em;
  z-index: 999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--paprika);
  outline-offset: 3px;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.eyebrow {
  font-family: var(--font-expanded);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paprika);
  margin: 0 0 0.9em;
}

.eus {
  display: block;
}

.text-link {
  display: inline-block;
  font-weight: 600;
  border-bottom: 1px solid var(--paprika);
  padding-bottom: 2px;
  transition: opacity 0.2s var(--ease);
}
.text-link:hover { opacity: 0.65; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.8em;
  font-family: var(--font-expanded);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: var(--paprika);
  color: var(--bone);
}
.btn-primary:hover { background: #96271D; }
.btn-ghost {
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(26,26,24,0.08); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(237, 232, 222, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(26,26,24,0.08);
}
.site-header.is-scrolled .brand,
.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .nav-toggle span {
  color: var(--ink);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
  transition: color 0.3s var(--ease);
}
.brand-mark { display: inline-flex; color: var(--ochre); }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  color: var(--bone);
  font-family: var(--font-expanded);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), opacity 0.2s var(--ease);
}
.main-nav a:hover { opacity: 0.7; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 0.6em 1.1em;
  border-radius: var(--radius-sm);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--bone);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.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(26,26,24,0.35) 0%, rgba(26,26,24,0.35) 40%, rgba(26,26,24,0.92) 100%);
}
/* Fallback texture if no image is supplied */
.img-fallback {
  background:
    repeating-linear-gradient(135deg, rgba(237,232,222,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #2b2b26, #1A1A18);
}
.img-fallback img { visibility: hidden; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
  color: var(--bone);
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-expanded);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.2em;
}
.hero-title {
  margin: 0 0 0.6em;
  line-height: 0.98;
}
.hero-title .eus {
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--bone);
}
.hero-title-en {
  display: block;
  font-family: var(--font-expanded);
  font-style: normal;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.5em;
}
.hero-sub {
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--bone-dim);
  margin: 1.2em 0 1.8em;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost { color: var(--bone); }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(237,232,222,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--ochre);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s infinite var(--ease);
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ==========================================================================
   Skewer divider — signature motif
   ========================================================================== */
.skewer-divider {
  color: var(--ink);
  opacity: 0.18;
  line-height: 0;
  background: var(--bone);
}
.skewer-divider svg { width: 100%; height: 32px; display: block; }

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  background: var(--bone);
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
}
.story-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.story-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.6em;
  font-weight: 600;
}
.story-text p {
  max-width: 34em;
  color: var(--ink-soft);
}
.story-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.story-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.story-media.img-fallback,
.story-media .img-fallback { background: linear-gradient(160deg, var(--sea), #2c3630); }
.story-media-caption {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  background: rgba(26,26,24,0.75);
  color: var(--bone);
  font-family: var(--font-expanded);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5em 0.8em;
}

/* ==========================================================================
   Menu
   ========================================================================== */
.menu-section {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
}
.section-head {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--bone);
}
.menu-section .eyebrow { color: var(--ochre); }

.menu-tabs {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.menu-tab {
  background: none;
  border: 1px solid rgba(237,232,222,0.3);
  color: var(--bone-dim);
  padding: 0.7em 1.6em;
  font-family: var(--font-expanded);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}
.menu-tab:hover { border-color: var(--ochre); color: var(--bone); }
.menu-tab.is-active {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--ink);
}

.menu-panel {
  max-width: 760px;
  margin: 0 auto;
}
.menu-list {
  display: grid;
  gap: 1.6rem;
}
.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px dotted rgba(237,232,222,0.25);
  padding-bottom: 0.3em;
  margin-bottom: 0.35em;
}
.menu-item-head h3 {
  font-size: 1.2rem;
  font-weight: 500;
  flex: 0 0 auto;
}
.menu-price {
  margin-left: auto;
  font-family: var(--font-expanded);
  font-weight: 700;
  color: var(--ochre);
}
.menu-item p {
  color: var(--bone-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  background: var(--bone);
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
}
.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 0.9rem;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--sea), #2c3630);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item--tall { grid-row: span 2; grid-column: span 1; }
.gallery-item--wide { grid-column: span 2; }

/* ==========================================================================
   Reserve / Hours
   ========================================================================== */
.reserve {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
}
.reserve-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.reserve-info h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.7em;
  color: var(--bone);
}
.reserve .eyebrow { color: var(--ochre); }
.hours-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.8rem;
  max-width: 22em;
}
.hours-list div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(237,232,222,0.2);
  padding-bottom: 0.5em;
  font-family: var(--font-expanded);
  font-size: 0.85rem;
}
.hours-list dt { color: var(--bone-dim); font-weight: 600; }
.hours-list dd { margin: 0; }
address {
  font-style: normal;
  color: var(--bone-dim);
  margin-bottom: 1em;
  line-height: 1.6;
}
.reserve-phone { color: var(--bone-dim); font-size: 0.92rem; }

.reserve-form {
  background: var(--bone);
  color: var(--ink);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-sm);
}
.reserve-form h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8em;
}
.form-row {
  margin-bottom: 1.1rem;
}
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-family: var(--font-expanded);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  color: var(--ink-soft);
}
.optional { text-transform: none; font-weight: 400; letter-spacing: 0; color: #8a8578; }
input, select, textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid rgba(26,26,24,0.2);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--paprika);
}
textarea { resize: vertical; }
.form-status {
  margin: 0.9em 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--sea);
  font-weight: 600;
}
.form-status.is-error { color: var(--paprika); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #14140F;
  color: var(--bone-dim);
  padding: 3rem var(--gutter) 1.5rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(237,232,222,0.1);
}
.footer-brand .brand-text { color: var(--bone); font-size: 1.2rem; }
.footer-brand p { margin-top: 0.4em; font-size: 0.88rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a, .footer-social a {
  font-family: var(--font-expanded);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover, .footer-social a:hover { color: var(--ochre); }
.footer-social { display: flex; gap: 1.2rem; }
.footer-legal {
  max-width: var(--container);
  margin: 1.5rem auto 0;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ==========================================================================
   Lunch menu page additions
   ========================================================================== */
.main-nav a.is-current {
  color: var(--ochre);
}

.hero--page {
  min-height: 62vh;
}
.hero--page .hero-title .eus {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

.section-note {
  max-width: 46em;
  margin: 0.6em auto 0;
  color: var(--bone-dim);
  font-size: 0.92rem;
}
.story .section-note,
.gallery .section-note { color: var(--ink-soft); }

.gf {
  color: var(--ochre);
  font-weight: 700;
}

.text-note {
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--ink-soft);
}

.story-grid--single {
  grid-template-columns: 1fr;
  max-width: 780px;
}

.menu-list--two-col {
  grid-template-columns: repeat(2, 1fr);
}
.menu-list--compact .menu-item-head {
  border-bottom: none;
  padding-bottom: 0;
}
.menu-list--compact .menu-item {
  border-bottom: 1px dotted rgba(26,26,24,0.15);
  padding-bottom: 0.5em;
}
.gallery .menu-item-head h3,
.gallery .menu-price { color: var(--ink); }
.gallery .menu-price { color: var(--paprika); }

.extras-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

.reserve--strip {
  text-align: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.reserve-strip-inner {
  max-width: 640px;
  margin: 0 auto;
}
.reserve-strip-inner h2 {
  color: var(--bone);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.4em;
}
.reserve-strip-inner p {
  color: var(--bone-dim);
  margin-bottom: 1.6em;
}
.reserve-strip-inner .hero-actions {
  justify-content: center;
}
.reserve-strip-inner .btn-ghost { color: var(--bone); }

/* ==========================================================================
   Banquet policy list
   ========================================================================== */
.policy-list {
  max-width: 780px;
  margin: 0 auto;
}
.policy-list ul {
  display: grid;
  gap: 1rem;
}
.policy-list li {
  position: relative;
  padding-left: 1.6em;
  color: var(--ink-soft);
  line-height: 1.6;
}
.policy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--paprika);
  border-radius: 50%;
}
.policy-revised {
  margin-top: 1.6rem;
  font-style: italic;
  font-size: 0.85rem;
  color: #8a8578;
}

/* ==========================================================================
   Dinner to-go: family packages
   ========================================================================== */
.togo-package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.8rem 0;
}
.togo-package {
  background: #fff;
  border: 1px solid rgba(26,26,24,0.1);
  border-radius: var(--radius-sm);
  padding: 1.6rem;
}
.togo-package h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}
.menu-price--lg {
  display: block;
  font-family: var(--font-expanded);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--paprika);
  margin-bottom: 0.8em;
}
.togo-includes {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.togo-includes li {
  padding-left: 1em;
  position: relative;
}
.togo-includes li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--sea);
}

/* ==========================================================================
   Dinner to-go: pricing tables
   ========================================================================== */
.togo-table-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.togo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.togo-table caption { text-align: left; }
.togo-table th, .togo-table td {
  text-align: left;
  padding: 0.65em 0.8em;
  border-bottom: 1px solid rgba(26,26,24,0.1);
}
.togo-table thead th {
  font-family: var(--font-expanded);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paprika);
  border-bottom: 2px solid var(--paprika);
}
.togo-table tbody th {
  font-weight: 600;
  color: var(--ink);
}
.togo-table td { color: var(--ink-soft); }
.togo-table--compact td { white-space: nowrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .story-grid,
  .reserve-grid {
    grid-template-columns: 1fr;
  }
  .menu-list--two-col,
  .extras-grid,
  .togo-package-grid,
  .togo-table-wrap {
    grid-template-columns: 1fr;
  }
  .story-media { order: -1; aspect-ratio: 16/10; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item--tall { grid-row: span 2; }
  .gallery-item--wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--ink);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }
  .main-nav a { color: var(--bone); font-size: 0.95rem; }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: var(--bone); }
  .site-header.is-scrolled .nav-toggle span { background: var(--ink); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .form-row--split { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--tall, .gallery-item--wide { grid-column: span 1; grid-row: span 1; }
  .header-inner { padding: 0.9rem var(--gutter); }
}
