/* ============================================================
   Restaurante La Cascada — Puerto del Carmen, Lanzarote
   Redesign r1 · static multi-page site (Cloudflare Pages)
   Palette: coal/ink, ember, gold, cream — modern grill house
   ============================================================ */

:root {
  --ink: #17110b;
  --coal: #221a12;
  --coal-2: #2c2218;
  --ember: #b23a14;
  --ember-2: #d1541f;
  --gold: #cf9f4e;
  --gold-soft: #e3c288;
  --cream: #f7f1e6;
  --cream-2: #efe5d3;
  --paper: #fffdf8;
  --text: #3c322a;
  --muted: #7a6c5d;
  --line: rgba(60, 50, 42, 0.16);
  --line-light: rgba(247, 241, 230, 0.14);
  --shadow: 0 18px 50px rgba(23, 17, 11, 0.16);
  --radius: 14px;
  --maxw: 1180px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ember);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  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: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--cream); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 18px rgba(0,0,0,.35); }

.topbar {
  background: var(--coal);
  border-bottom: 1px solid var(--line-light);
  font-size: 0.82rem;
  color: var(--gold-soft);
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--gold-soft); font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar .top-phone { display: inline-flex; align-items: center; gap: 6px; }
.topbar .top-address { opacity: 0.92; }

.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 158px; height: auto; }
.brand-text { display: none; }

.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block;
  padding: 9px 11px;
  color: var(--cream-2);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0.01em;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(207,159,78,0.16); box-shadow: inset 0 -2px 0 var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  text-align: center;
}
.btn:hover { background: var(--ember-2); color: #fff; transform: translateY(-1px); }
.btn.btn-gold { background: var(--gold); color: var(--ink); }
.btn.btn-gold:hover { background: var(--gold-soft); }
.btn.btn-outline { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(247,241,230,0.55); }
.btn.btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn.btn-dark { background: var(--ink); color: var(--cream); }
.btn.btn-dark:hover { background: #2b2117; color: #fff; }
.btn svg { flex: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--cream);
  width: 46px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23,17,11,0.88) 8%, rgba(23,17,11,0.45) 55%, rgba(23,17,11,0.25) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(207,159,78,0.14);
  border: 1px solid rgba(207,159,78,0.4);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 15ch; text-wrap: balance; }
.hero p.lead { color: rgba(247,241,230,0.92); font-size: 1.12rem; max-width: 56ch; margin-bottom: 26px; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero.short { min-height: 300px; }
.hero.short .container { padding-top: 48px; padding-bottom: 48px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 52px 0; }
.section.alt { background: var(--paper); }
.section.coal { background: var(--ink); color: var(--cream-2); }
.section.coal h2, .section.coal h3 { color: #fff; }
.section.coal .muted { color: rgba(247,241,230,0.62); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 8px;
}
.section.coal .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section.coal .section-head p { color: rgba(247,241,230,0.7); }

.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 22px rgba(23,17,11,0.05);
}
.card.dark { background: var(--coal-2); border-color: var(--line-light); color: var(--cream-2); }
.card.dark h3 { color: #fff; }

.media-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 22px rgba(23,17,11,0.05); }
.media-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.media-card .mc-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.media-card .mc-body h3 { margin-bottom: 4px; }
.media-card .mc-body p { color: var(--muted); margin: 0; }
.media-card .mc-body .mc-foot { margin-top: auto; padding-top: 14px; }
.media-card .mc-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ember); }

.icon-tile { text-align: center; padding: 30px 18px; }
.icon-tile img { width: 96px; height: 96px; margin: 0 auto 16px; object-fit: contain; }
.icon-tile h3 { font-size: 1.12rem; }
.icon-tile p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split.reversed .media { order: 2; }
.split.reversed .text { order: 1; }

.list-checks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.list-checks li { padding: 7px 0 7px 30px; position: relative; }
.list-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 15px;
  height: 9px;
  border-left: 2.5px solid var(--ember);
  border-bottom: 2.5px solid var(--ember);
  transform: rotate(-45deg);
}

/* ---------- Awards strip ---------- */
.awards-strip { background: var(--paper); border-block: 1px solid var(--line); }
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.award-item { text-align: center; padding: 22px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.award-item img { width: 92px; height: 92px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(23,17,11,0.12); }
.award-item .award-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.award-item .award-sub { font-size: 0.84rem; color: var(--muted); }
.award-item.wide-img img { border-radius: 12px; object-fit: cover; width: 100%; height: 150px; }

/* ---------- Dishes list ---------- */
.dish-list { list-style: none; margin: 0; padding: 0; }
.dish-list li { display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.dish-list li:last-child { border-bottom: 0; }
.dish-list .dish-name { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; color: var(--ink); }
.dish-list .dish-dot { flex: 1; border-bottom: 2px dotted rgba(60,50,42,0.28); transform: translateY(-4px); }
.dish-list .dish-note { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

/* ---------- Quotes / feature ---------- */
.feature-quote {
  background: var(--ink);
  color: var(--cream-2);
  border-radius: var(--radius);
  padding: 42px 44px;
  position: relative;
}
.feature-quote::before { content: "“"; font-family: var(--font-display); font-size: 5rem; color: var(--gold); position: absolute; top: 6px; left: 22px; opacity: 0.85; }
.feature-quote p { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; color: #fff; margin: 0 0 14px; }
.feature-quote .attrib { color: var(--gold-soft); font-size: 0.95rem; }

/* ---------- Tables ---------- */
.info-table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; }
.info-table th, .info-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ember); }

/* ---------- Contact blocks ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.contact-card .cc-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: rgba(178,58,20,0.1); color: var(--ember); display: flex; align-items: center; justify-content: center; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted); margin-bottom: 8px; }
.contact-card a.big { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.contact-card a.big:hover { color: var(--ember); }

.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Language toggle / rules ---------- */
.rules-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 30px; }
.rules-block .lang-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.lang-pill { font-size: 0.85rem; font-weight: 700; padding: 7px 16px; border-radius: 999px; background: var(--cream-2); color: var(--muted); border: 1px solid transparent; }
.lang-pill.active { background: var(--ink); color: var(--cream); }
.rules-block h3 { font-size: 1.12rem; }

/* ---------- Booking iframe ---------- */
.booking-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.booking-wrap iframe { width: 100%; min-height: 820px; border: 0; border-radius: 8px; }

/* ---------- News / posts ---------- */
.post-card { display: flex; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-items: flex-start; }
.post-card img { width: 210px; height: 150px; object-fit: cover; border-radius: 10px; flex: none; }
.post-card .post-body .post-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.post-card h3 { margin-bottom: 6px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--ember); }
.post-card p { color: var(--muted); margin: 0 0 10px; }

.article { max-width: 800px; }
.article .post-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.article img.lead-img { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article p, .article li { font-size: 1.03rem; }
.article ul { padding-left: 22px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ember) 0%, var(--ember-2) 100%); color: #fff; border-radius: var(--radius); padding: 44px 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.92; }
.cta-band .btn { background: var(--ink); }
.cta-band .btn:hover { background: #2b2117; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream-2); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.site-footer .brand img { width: 170px; margin-bottom: 14px; }
.site-footer p { color: rgba(247,241,230,0.66); font-size: 0.92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(247,241,230,0.78); font-size: 0.94rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); display: inline-flex; align-items: center; justify-content: center; color: var(--cream-2); }
.footer-social a:hover { border-color: var(--gold); color: var(--gold-soft); background: rgba(255,255,255,0.05); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-light); padding: 18px 0; font-size: 0.84rem; color: rgba(247,241,230,0.5); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(247,241,230,0.62); }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 20px; }
.notfound .code { font-family: var(--font-display); font-size: 6rem; color: var(--ember); line-height: 1; }
.notfound h1 { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 9px 8px; font-size: 0.86rem; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .navbar .container { flex-wrap: wrap; }
  .main-nav {
    order: 3;
    width: 100%;
    display: none;
    border-top: 1px solid var(--line-light);
    padding-top: 10px;
    margin-top: 6px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 13px 10px; font-size: 1rem; }
  .nav-cta .btn span.cta-label { display: none; }
  .nav-cta .btn { padding: 10px 14px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reversed .media { order: 1; }
  .split.reversed .text { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .post-card { flex-direction: column; }
  .post-card img { width: 100%; height: 200px; }
  .topbar .top-address { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 54px 0; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 480px; }
  .cta-band { padding: 32px 26px; }
  .feature-quote { padding: 30px 24px; }
  .feature-quote p { font-size: 1.25rem; }
  .booking-wrap iframe { min-height: 760px; }
}

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