/* Restaurante eARTh — redesign r1 */
:root {
  --ink: #14211a;
  --leaf: #1e4d2b;
  --leaf-dark: #143a20;
  --leaf-soft: #2e6b3f;
  --moss: #5c7a4a;
  --cream: #faf7f0;
  --sand: #f1ead9;
  --clay: #b56a4a;
  --clay-dark: #9a5639;
  --text: #333d33;
  --muted: #6a7568;
  --gold: #c9a24b;
  --line: rgba(20, 33, 26, 0.14);
  --white-line: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 40px rgba(20, 33, 26, 0.12);
  --radius: 16px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--leaf-dark); color: #fff; padding: 10px 18px;
  z-index: 300; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--leaf); border-color: var(--leaf); }
.btn-outline:hover { background: var(--leaf); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-header { padding: 9px 18px; font-size: 0.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }

.text-link {
  font-weight: 600;
  color: var(--leaf-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 10px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  flex-wrap: wrap;
}
.brand { display: block; line-height: 0; }
.brand img { width: 140px; height: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--leaf); border-bottom-color: var(--clay); }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.lang-link {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}
.lang-link.active { background: var(--leaf); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 32, 20, 0.82) 0%, rgba(13, 32, 20, 0.55) 55%, rgba(13, 32, 20, 0.25) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 60px 24px; }
.hero-eyebrow {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #d8c9a3; margin-bottom: 14px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,0.92); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.band-eco { background: var(--leaf-dark); padding: 22px 0; }
.eco-badges {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 42px;
  color: #e7ecd9; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em;
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--sand); }
.section-map { background: var(--sand); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-text h2 { margin-bottom: 16px; }
.split-text p { margin-bottom: 14px; }
.address-block { font-style: normal; line-height: 1.8; margin: 14px 0; }

.map-embed iframe {
  width: 100%; height: 420px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); background: #e8e2d2; display: block;
}
.map-caption { font-size: 0.85rem; margin-top: 8px; }

/* ---------- news ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-media { display: block; aspect-ratio: 4/3; overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-body h3 { margin: 0; font-size: 1.12rem; }
.news-card-body h3 a { color: var(--ink); text-decoration: none; }
.news-card-body h3 a:hover { color: var(--leaf-soft); }
.news-date { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); margin: 0; }
.news-excerpt { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--leaf-dark) 0%, var(--leaf) 70%, var(--leaf-soft) 100%);
  color: #fff;
  padding: 70px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .eyebrow { color: #d8c9a3; }
.page-lead { font-size: 1.08rem; color: rgba(255,255,255,0.92); max-width: 720px; margin: 0; }
.page-hero-short { padding: 52px 0; }

/* ---------- cards / panels ---------- */
.card-stack { display: flex; flex-direction: column; gap: 24px; }
.card-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.menu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
}
.info-card h2 { font-size: 1.15rem; }
.info-card address { font-style: normal; }
.info-card .btn { margin: 6px 0; }

.booking-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.booking-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.booking-widget iframe { border-radius: 8px; }
.widget-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }

.menu-images { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 18px 0; }
.menu-images figure { margin: 0; }
.menu-images img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; }
.menu-images figcaption { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-top: 8px; text-align: center; }

.philosophy-media { margin: 34px 0; }
.philosophy-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.muted { color: var(--muted); font-size: 0.92rem; }

/* ---------- post ---------- */
.post-header { text-align: center; padding-top: 60px; }
.post-excerpt { font-size: 1.08rem; color: var(--muted); max-width: 720px; margin: 0 auto; }
.post-body { padding: 46px 24px 80px; }
.post-hero { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; width: 100%; }
.post-body h2 { margin-top: 1.6em; }
.post-body ul { padding-left: 1.2em; }
.post-body li { margin-bottom: 8px; }
.post-cta { margin-top: 42px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* ---------- legal ---------- */
.legal-text {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  font-size: 0.95rem;
  line-height: 1.75;
}
.legal-text p { margin-bottom: 1em; }

/* ---------- notfound ---------- */
.notfound { text-align: center; padding: 40px 0; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ---------- footer ---------- */
.site-footer { background: var(--leaf-dark); color: #dfe6d8; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-col p { margin: 0 0 8px; }
.footer-col a { color: #dfe6d8; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; margin-bottom: 12px; }
.footer-logo { width: 140px; height: auto; margin-bottom: 14px; }
.footer-tagline { color: #c3ceb8; max-width: 260px; }
.footer-heading {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.social-row { display: flex; gap: 16px; margin-top: 16px; }
.social-row a { font-weight: 600; font-size: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #b7c3aa; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-reverse .split-media { order: 0; }
  .news-grid { grid-template-columns: 1fr; }
  .menu-images { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    order: 5;
    padding: 12px 0 18px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 10px 4px; font-size: 1.05rem; }
  .btn-header { display: none; }
  .hero { min-height: 520px; }
  .hero-content { padding: 40px 24px; }
  .legal-text { padding: 26px 20px; }
  .card-panel, .menu-card { padding: 24px 20px; }
}
