/* ============================================================
   Aita Mari — Restaurante · Parte Vieja, Donostia
   Hoja de estilos de producción (fiel al diseño de Claude Design)
   ============================================================ */

:root {
  --bg: oklch(96% 0.02 55);
  --bg-card: oklch(98% 0.012 60);
  --bg-strip: oklch(93% 0.03 50);
  --bg-dark: oklch(28% 0.045 40);
  --bg-footer: oklch(22% 0.04 40);
  --text: oklch(26% 0.03 40);
  --text-heading: oklch(24% 0.035 40);
  --text-soft: oklch(38% 0.03 40);
  --text-muted: oklch(45% 0.03 40);
  --accent: oklch(58% 0.13 42);
  --accent-strong: oklch(55% 0.14 40);
  --accent-nav: oklch(64% 0.13 42);
  --accent-gold: oklch(78% 0.09 55);
  --on-dark: oklch(97% 0.01 60);
  --on-accent: oklch(98% 0.01 60);
  --border-input: oklch(85% 0.03 50);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg-dark);
  padding: 0 48px;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--on-dark);
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 9px 18px;
  border-radius: 6px;
  color: oklch(90% 0.02 55);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.15s ease;
}

.main-nav a:hover { background: oklch(34% 0.05 40); }

.main-nav a.active {
  background: var(--accent-nav);
  color: var(--on-accent);
}

/* ---------- Componentes comunes ---------- */

.kicker {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.page-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 48px 20px;
  text-align: center;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  margin: 0 0 14px;
  color: var(--text-heading);
}

.page-head p {
  font-size: 15.5px;
  color: oklch(42% 0.03 40);
  max-width: 580px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 7px;
  background: var(--accent-strong);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

.btn-shadow { box-shadow: 0 8px 20px oklch(55% 0.14 40 / 0.28); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-strong);
  color: oklch(40% 0.1 40);
}

.btn-outline:hover { filter: none; background: oklch(93% 0.03 50); }

.btn-gold {
  background: var(--accent-nav);
  color: oklch(20% 0.03 40);
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 18px oklch(30% 0.03 40 / 0.08);
}

/* ---------- Inicio: hero ---------- */

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 48px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text { animation: fadeUp 0.7s ease both; }

.hero-text .kicker { margin-bottom: 18px; }

.hero-text h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 58px;
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--text-heading);
}

.hero-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 460px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media { animation: fadeUp 0.9s ease both; }

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 12px 30px oklch(30% 0.04 40 / 0.25);
}

/* ---------- Inicio: franja de info ---------- */

.info-strip {
  background: var(--bg-strip);
  margin-top: 72px;
  padding: 34px 48px;
}

.info-strip-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.info-strip-grid h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: oklch(30% 0.04 40);
  margin: 0 0 4px;
}

.info-strip-grid p {
  font-size: 14.5px;
  color: oklch(40% 0.03 40);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Inicio: platos destacados ---------- */

.highlights {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  margin: 0;
  color: var(--text-heading);
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dish-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px oklch(30% 0.03 40 / 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px oklch(30% 0.03 40 / 0.14);
}

.dish-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.dish-card .dish-body { padding: 22px 24px 26px; }

.dish-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: oklch(26% 0.035 40);
  margin: 0 0 6px;
}

.dish-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Banda CTA ---------- */

.cta-band {
  background: var(--bg-dark);
  padding: 56px 48px;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  color: var(--on-dark);
  margin: 0 0 22px;
}

/* ---------- Carta ---------- */

.menu-anchors {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.menu-anchors .btn { padding: 11px 24px; font-size: 14.5px; }

.menu-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 48px 10px;
  scroll-margin-top: 24px;
}

.menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.menu-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  color: oklch(38% 0.11 42);
  margin: 0;
}

.menu-price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  color: oklch(30% 0.04 40);
  white-space: nowrap;
}

.menu-note {
  font-size: 14px;
  color: oklch(50% 0.03 45);
  font-style: italic;
  margin-bottom: 30px;
}

.menu-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 40px 44px;
  box-shadow: 0 4px 20px oklch(30% 0.03 40 / 0.08);
}

.menu-group { margin-bottom: 34px; }

.menu-group h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid oklch(85% 0.06 48);
}

.menu-item {
  display: flex;
  gap: 12px;
  font-size: 16.5px;
  color: oklch(30% 0.03 40);
  line-height: 1.5;
  padding: 10px 0;
}

.menu-item .mark {
  color: var(--accent);
  font-size: 18px;
  line-height: 1.4;
}

.menu-foot {
  padding-top: 16px;
  border-top: 1px dashed oklch(85% 0.03 50);
  font-size: 13.5px;
  color: oklch(45% 0.03 42);
  font-style: italic;
}

/* ---------- Vinos ---------- */

.wines-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 48px 10px;
  text-align: center;
  scroll-margin-top: 24px;
}

.wines-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  margin: 0 0 10px;
  color: oklch(38% 0.11 42);
}

.wines-head p { font-size: 14px; color: oklch(48% 0.03 42); margin: 0; }

.wines {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px 100px;
}

.wine-cat { margin-bottom: 40px; }

.wine-cat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.wine-cat-head h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  color: oklch(30% 0.05 42);
  margin: 0;
  white-space: nowrap;
}

.wine-cat-head .rule {
  height: 1px;
  background: oklch(80% 0.05 50);
  flex: 1;
}

.wine-group { margin-bottom: 16px; }

.wine-label {
  font-size: 13px;
  font-weight: 600;
  color: oklch(48% 0.1 42);
  margin-bottom: 6px;
}

.wine-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  border-bottom: 1px dotted oklch(87% 0.03 50);
}

.wine-row .name { font-size: 14px; color: oklch(30% 0.03 40); }

.wine-row .price {
  font-size: 14px;
  color: oklch(45% 0.1 42);
  white-space: nowrap;
  font-weight: 500;
}

/* ---------- Reservas ---------- */

.reservas-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 48px 100px;
}

.form-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 4px 20px oklch(30% 0.03 40 / 0.08);
  display: grid;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.field { display: block; }

.field-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: oklch(35% 0.04 42);
  text-transform: uppercase;
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 7px;
  border: 1.5px solid var(--border-input);
  font-family: var(--sans);
  font-size: 14.5px;
  background: oklch(99% 0.005 60);
  color: var(--text);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field textarea { resize: vertical; }

.form-error {
  display: none;
  background: oklch(93% 0.05 30);
  border: 1.5px solid oklch(70% 0.12 30);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 14px;
  color: oklch(38% 0.12 30);
  line-height: 1.5;
}

.form-error.visible { display: block; }

.success-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 4px 20px oklch(30% 0.03 40 / 0.08);
  animation: fadeUp 0.5s ease both;
}

.success-card .check { font-size: 40px; margin-bottom: 14px; color: var(--accent); }

.success-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 10px;
  color: oklch(30% 0.04 40);
}

.success-card p { font-size: 14.5px; color: oklch(42% 0.03 40); margin: 0; }

/* ---------- Ubicación ---------- */

.contact-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 48px 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card { padding: 26px 28px; }

.contact-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: oklch(30% 0.04 40);
  margin: 0 0 6px;
}

.contact-card p {
  font-size: 15px;
  color: oklch(40% 0.03 40);
  line-height: 1.7;
  margin: 0;
}

.contact-card a { color: inherit; }

.contact-media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 12px;
  display: block;
  flex: 1;
  box-shadow: 0 4px 18px oklch(30% 0.03 40 / 0.08);
}

.fachada-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 18px oklch(30% 0.03 40 / 0.08);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-footer);
  padding: 36px 48px;
  text-align: center;
}

.site-footer .brand-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: oklch(90% 0.02 55);
  margin-bottom: 8px;
}

.site-footer .info-line {
  font-size: 13px;
  color: oklch(65% 0.03 50);
}

.site-footer a { color: inherit; text-decoration: none; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-header { padding: 0 24px; }

  .header-inner { justify-content: center; text-align: center; }

  .hero { padding: 44px 24px 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text h1 { font-size: 40px; }

  .hero-media img { height: 300px; }

  .info-strip { padding: 30px 24px; margin-top: 52px; }

  .info-strip-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .highlights { padding: 56px 24px; }

  .dishes-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-head { padding: 44px 24px 16px; }

  .page-head h1 { font-size: 34px; }

  .menu-section { padding: 36px 24px 10px; }

  .menu-card { padding: 28px 24px; }

  .menu-head h2 { font-size: 32px; }

  .menu-price { font-size: 26px; }

  .wines { padding: 0 24px 70px; }

  .wines-head { padding: 56px 24px 10px; }

  .reservas-wrap { padding: 16px 24px 70px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px 24px 60px;
  }

  .map-frame { min-height: 320px; }

  .cta-band { padding: 44px 24px; }

  .site-footer { padding: 30px 24px; }
}

@media (max-width: 640px) {
  .hero-text h1 { font-size: 34px; }

  .form-card { padding: 26px 20px; }

  .form-row-2,
  .form-row-3 { grid-template-columns: 1fr; }

  .menu-item { font-size: 15.5px; }

  .main-nav a { padding: 8px 13px; font-size: 14px; }
}
