/* ==========================================================================
   Restaurante Las Palmas — Antigua, Guatemala
   Self-contained stylesheet. No external dependencies, no WordPress.
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette sampled from the Las Palmas logo: white + amber on black */
  --ink:        #100E0C;
  --ink-soft:   #1B1816;
  --ink-line:   #2E2926;
  --cream:      #F6F1E8;
  --cream-dim:  #CFC6B8;
  --amber:      #E08B3C;
  --amber-soft: #F0B173;
  --amber-deep: #B96A22;

  --bg:       var(--ink);
  --surface:  var(--ink-soft);
  --text:     var(--cream);
  --text-dim: var(--cream-dim);
  --accent:   var(--amber);
  --line:     var(--ink-line);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Palatino, 'Palatino Linotype', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 10px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--amber-soft); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--amber); color: #1a1208;
  padding: .7rem 1.1rem; z-index: 200; font-weight: 700; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; top: 0; }

/* -------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 3rem) 0; }
.section--alt { background: var(--surface); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 62ch;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

.rule {
  width: 72px; height: 3px; border: 0; border-radius: 2px;
  background: var(--accent);
  margin: 0 0 1.6rem;
}
.center .rule { margin-inline: auto; }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 14, 12, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img {
  height: 38px; width: auto;
  /* The logo is a JPEG with a baked-in black background. 'screen' drops the
     black and keeps the white + amber, so it sits on any dark surface. */
  mix-blend-mode: screen;
}
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  color: var(--text); border-radius: 8px;
  padding: .5rem .8rem; font: inherit; font-size: .9rem; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav ul {
  list-style: none; display: flex; align-items: center;
  gap: clamp(.5rem, 1.6vw, 1.4rem);
  margin: 0; padding: 0;
}

.nav a {
  color: var(--text); font-size: .93rem;
  padding: .45rem .2rem; display: block;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--amber-deep); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* -------------------------------------------------------------- button -- */
.btn {
  display: inline-block;
  background: var(--accent); color: #1a1208;
  font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 2px solid var(--accent);
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--amber-soft); border-color: var(--amber-soft); color: #1a1208; text-decoration: none; }

.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #1a1208; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.center .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 11vw, 7.5rem) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 50% 0%, #241d16 0%, var(--ink) 62%);
}

.hero__logo {
  width: min(430px, 82vw);
  margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  mix-blend-mode: screen;
}

.hero__tag {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  color: var(--amber-soft);
  margin: 0 0 .6rem;
}

.hero__sub { color: var(--text-dim); max-width: 54ch; margin-inline: auto; }

/* --------------------------------------------------------------- cards -- */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; flex-direction: column;
}
.card h3 { color: var(--amber-soft); margin-bottom: .4rem; }
.card p { color: var(--text-dim); font-size: .97rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card--link:hover { border-color: var(--amber-deep); }

/* ---------------------------------------------------------------- menu -- */
.menu-group { margin-bottom: 3rem; }
.menu-group:last-child { margin-bottom: 0; }

.menu-group > h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--accent);
  padding-bottom: .6rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.dish {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .75rem 0;
  border-bottom: 1px dashed rgba(207, 198, 184, .16);
}
.dish:last-child { border-bottom: 0; }

.dish__name { font-weight: 600; font-size: 1.02rem; }
.dish__desc { display: block; color: var(--text-dim); font-size: .92rem; font-weight: 400; margin-top: .15rem; }
.dish__dots { flex: 1 1 auto; border-bottom: 1px dotted rgba(207,198,184,.3); transform: translateY(-4px); min-width: 1.5rem; }
.dish__price { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--amber-soft); white-space: nowrap; }

.note {
  font-size: .82rem; color: var(--text-dim);
  border-left: 3px solid var(--amber-deep);
  padding: .7rem 1rem; background: rgba(224,139,60,.07);
  border-radius: 0 6px 6px 0; margin-top: 1.6rem;
}

/* -------------------------------------------------------------- figure -- */
.media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.media img, .media video { width: 100%; }

.split {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .split--wide-text { grid-template-columns: 1.25fr 1fr; } }

/* ---------------------------------------------- image-missing placeholder */
.ph {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, #1d1915 0 12px, #211c17 12px 24px);
  border: 1px dashed #3a332c;
  border-radius: var(--radius);
  color: #857a6c;
  text-align: center;
  padding: 1.2rem;
  font-size: .82rem;
  line-height: 1.45;
}
.ph::before { content: "▦"; font-size: 1.7rem; display: block; margin-bottom: .45rem; color: #4e4639; }
.ph span { max-width: 28ch; }

/* --------------------------------------------------------------- hours -- */
.facts { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fact h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.fact p { color: var(--text-dim); font-size: .97rem; }
.fact a { color: var(--text); }
.fact strong { color: var(--text); font-weight: 600; }

.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed rgba(207,198,184,.14); font-size: .95rem; }
.schedule li:last-child { border-bottom: 0; }
.schedule b { font-weight: 600; color: var(--text); }
.schedule span { color: var(--text-dim); text-align: right; }

/* -------------------------------------------------------------- footer -- */
.site-footer {
  background: #0A0908;
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  font-size: .93rem;
}
.site-footer h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent); }

.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: #7d7267; font-size: .84rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
}

.social { display: flex; gap: .7rem; flex-wrap: wrap; }
.social a {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .9rem; font-size: .85rem; color: var(--text-dim);
}
.social a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.legal {
  font-size: .72rem; color: #6d6459; letter-spacing: .04em;
  border: 1px solid var(--line); border-radius: 6px;
  padding: .6rem .9rem; margin-top: 1.4rem;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    padding: .6rem var(--gutter) 1rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .site-header__bar { position: relative; }
}

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

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle, .ph { display: none; }
  body { background: #fff; color: #000; }
  .dish__price, .card h3, h1, h2, h3 { color: #000; }
  .section { padding: 1rem 0; }
}
