/* ==========================================================================
   Restaurante Costa Varadero — redesign r1
   Palette: deep green-charcoal, warm cream, terracotta, gold.
   ========================================================================== */
:root {
  --ink: #1d2a26;
  --ink-2: #2c3b36;
  --cream: #faf6ee;
  --cream-2: #f2ecdf;
  --paper: #fffdf8;
  --accent: #b4563a;
  --accent-2: #c98f3d;
  --gold: #c9a24b;
  --muted: #5f6b66;
  --line: #e4dccb;
  --shadow: 0 10px 30px rgba(29, 42, 38, 0.08);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8f3f28; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
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: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(29, 42, 38, 0.97);
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.site-header .nav-logo { display: inline-flex; align-items: center; padding: 12px 18px; }
.site-header .nav-logo img { width: 200px; height: auto; }
.site-header .nav-links {
  display: flex; align-items: center; gap: 2px;
  justify-content: flex-end; flex-wrap: wrap;
}
.site-header .nav-links a {
  color: #f3eee2; text-decoration: none; padding: 10px 14px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .02em; border-radius: 8px;
}
.site-header .nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-header .nav-links a.active { color: var(--gold); }
.site-header .nav-cta {
  background: var(--accent); color: #fff !important; margin-left: 10px;
  padding: 10px 16px !important; font-weight: 600;
}
.site-header .nav-cta:hover { background: #93452d; }
.nav-lang { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 4px 6px; border-left: 1px solid rgba(255,255,255,.25); }
.nav-lang a { font-size: 13px; padding: 4px 8px !important; opacity: .75; }
.nav-lang a.active { opacity: 1; color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .site-header .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--ink);
    padding: 10px 14px 18px; gap: 2px; box-shadow: 0 18px 30px rgba(0,0,0,.3);
  }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links a { padding: 12px 14px; font-size: 16px; }
  .site-header .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-lang { border-left: 0; margin: 6px 0 0; padding: 0; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px;
    width: 46px; height: 46px; margin: 8px 14px 8px auto; cursor: pointer;
  }
  .nav-toggle .burger, .nav-toggle .burger::before, .nav-toggle .burger::after {
    content: ""; display: block; width: 22px; height: 2px; background: #fff;
    position: relative; transition: transform .2s;
  }
  .nav-toggle .burger::before { position: absolute; top: -7px; }
  .nav-toggle .burger::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .burger { background: transparent; }
  .nav-toggle[aria-expanded="true"] .burger::before { transform: rotate(45deg); top: 0; }
  .nav-toggle[aria-expanded="true"] .burger::after { transform: rotate(-45deg); top: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 24px; max-width: 1180px; margin: 0 auto; }
.section.alt { background: var(--cream-2); max-width: none; }
.section.alt > * { max-width: 1132px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head .kicker, .hero-kicker, .post-meta, .news-meta {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 8px;
}
.section-intro { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.center { text-align: center; }
.text-link { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 130px 24px 150px; overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/opt/hero-slider.jpg") center 40%/cover no-repeat;
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-kicker { color: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); margin-bottom: .35em; }
.hero-sub { font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.6em; color: #f0ead9; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #93452d; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.section .btn-ghost { border-color: var(--accent); color: var(--accent); }
.section .btn-ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Welcome / visit ---------- */
.welcome-grid, .visit-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center;
}
.welcome-grid img, .visit-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .welcome-grid, .visit-grid { grid-template-columns: 1fr; }
  .welcome-grid img, .visit-grid img { margin: 0 auto; }
}

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 34px; }
.cat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow);
}
.cat-card img { margin: 0 auto 12px; }
.cat-card h3 { margin-bottom: .2em; }
.cat-card p { color: var(--muted); margin: 0; font-size: 14.5px; }
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.testimonial {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; margin: 0; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.testimonial blockquote { margin: 0; font-size: 15px; color: var(--ink-2); quotes: "“" "”"; }
.testimonial figcaption { font-weight: 600; color: var(--accent); font-size: 14.5px; }
@media (max-width: 980px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Contact chips ---------- */
.contact-chips { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-weight: 600; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hours ---------- */
.hours-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto 46px;
}
.hours-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1.5fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: baseline;
}
.hours-row:last-of-type { border-bottom: 0; }
.hours-days { font-weight: 600; }
.hours-time { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); }
.hours-kitchen { color: var(--muted); font-size: 14px; }
.hours-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 640px) { .hours-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Map ---------- */
.map-section { max-width: 980px; margin: 0 auto; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-wrap iframe { width: 100%; }
.map-links { margin-top: 10px; font-size: 14.5px; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #30423b 100%);
  color: #fff; text-align: center; padding: 74px 24px 84px;
}
.page-hero h1 { margin-bottom: .25em; }
.page-hero p { color: #e8e2d2; max-width: 720px; margin: 0 auto; }
.lang-panel {
  display: inline-flex; gap: 6px; align-items: center; margin-top: 22px;
  background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 8px;
}
.lang-panel p { margin: 0 10px 0 6px; font-size: 13.5px; }
.lang-panel a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.lang-panel a.active { background: var(--accent); }
.lang-panel a:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-grid img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; height: 200px; object-fit: cover; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Menu ---------- */
.menu-main { max-width: 900px; }
.menu-section { margin-bottom: 46px; }
.menu-section > h2 {
  font-size: 1.6rem; color: var(--accent); border-bottom: 2px solid var(--gold);
  padding-bottom: 8px; margin-bottom: 18px; display: inline-block;
}
.menu-sub { color: var(--muted); font-size: 14px; margin: -12px 0 14px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dotted var(--line);
}
.menu-name { font-weight: 500; }
.menu-desc { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.menu-price { font-family: var(--font-display); font-weight: 600; color: var(--ink); white-space: nowrap; }
.menu-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.menu-allergen {
  margin: 30px 0; padding: 14px 18px; background: var(--paper);
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px;
  font-size: 14.5px;
}
.menu-imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.menu-img { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.menu-img img { border-radius: 8px; width: 100%; }
.menu-img figcaption { font-size: 13.5px; margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) { .menu-imgs { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-card img { border-radius: 8px; margin-bottom: 12px; width: 100%; height: 200px; object-fit: cover; }
.news-card h2 { font-size: 1.25rem; }
.news-card .news-meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

.post { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.post-header { text-align: center; margin-bottom: 26px; }
.post-img { border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow); }
.post-nav { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.post-nav ul { margin: 6px 0 16px; padding-left: 1.2em; }

/* ---------- Jobs ---------- */
.job-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow); max-width: 820px; margin: 34px auto 0;
}
.job-steps { padding-left: 1.2em; }
.job-steps li { margin-bottom: 10px; }
.job-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); margin-bottom: 34px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 18px; }
.contact-list address { font-style: normal; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e3d3; padding: 54px 24px 26px; margin-top: 70px; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px;
}
.site-footer h2 { font-size: 1.02rem; color: var(--gold); margin-bottom: .6em; }
.site-footer a { color: #e9e3d3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.footer-note { max-width: 1180px; margin: 34px auto 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: 13px; color: #b9b2a0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
