/* ==========================================================================
   16 Grados · Brunch & Matcha Bar · Luquillo, PR
   Palette pulled from the logo (slate ink on cream) and the highlight covers.
   ========================================================================== */

:root {
  /* Brand */
  --cream: #f3eee7;
  --paper: #fbf8f3;
  --sand: #e8e0d4;
  --sand-light: #efe3cd;
  --sea: #4f8aa3;
  --rail: #7d8b96;
  --concrete: #ddd3c3;
  --plaque: #3a2a20;
  --plaque-text: #f4e6c8;
  --ink: #1f2d3a;
  --ink-soft: #3d5263;
  --slate: #4e6a7d;
  --sky: #c9dce7;
  --sky-soft: #e3edf3;
  --navy: #22324a;
  --navy-2: #2b3d57;
  --matcha: #8fae4a;
  --matcha-soft: #dfe9c8;
  --coral: #c8473d;
  --open: #2f7d4f;
  --line: rgba(31, 45, 58, 0.12);
  --line-strong: rgba(31, 45, 58, 0.2);

  /* Spacing scale (only these) */
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Radius (Tailwind steps) */
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --container: 1200px;
  --gutter: 16px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
em, i, cite { font-style: normal; }
button { font: inherit; color: inherit; }

/* Bilingual: hide whichever language isn't active */
html[lang="es"] [lang="en"],
html[lang="en"] [lang="es"] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--s-200);
  top: -64px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: top 400ms var(--ease);
}
.skip-link:focus { top: var(--s-200); }

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: var(--r-lg);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.eyebrow .ph { font-size: 16px; }

.section { padding: var(--s-700) 0; }
@media (min-width: 900px) { .section { padding: var(--s-900) 0; } }

.section-head { max-width: 680px; margin-bottom: var(--s-600); }
.section-head h2 {
  margin-top: var(--s-100);
  font-size: 36px;
  line-height: 40px;
}
.section-head p {
  margin-top: var(--s-200);
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .section-head h2 { font-size: 48px; line-height: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-100) var(--s-300);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 500ms var(--ease), background-color 500ms var(--ease),
    color 500ms var(--ease), border-color 500ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .ph { font-size: 20px; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--slate); transform: translateY(-2px); } }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--paper); border-color: var(--ink); } }

.btn-light { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--sky); transform: translateY(-2px); } }

.btn-sm {
  padding: var(--s-75) var(--s-200);
  font-size: 14px;
  line-height: 20px;
}
.btn-sm .ph { font-size: 16px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: var(--s-25);
  transition: border-color 500ms var(--ease), gap 500ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .text-link:hover { border-color: var(--ink); gap: var(--s-75); } }

/* ---------- Status pill ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--slate);
  flex: none;
}
.status.is-open .status-dot {
  background: var(--open);
  box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}
.status.is-closed .status-dot { background: var(--coral); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(47, 125, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0); }
}

/* ==========================================================================
   Navigation: floating glass island
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: var(--s-200) var(--gutter) 0;
  pointer-events: none;
}
@media (min-width: 768px) { .nav { padding-top: var(--s-300); } }

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-75);
  width: max-content;
  max-width: 100%;
  padding: var(--s-75);
  border-radius: var(--r-full);
  background: rgba(251, 248, 243, 0.72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(31, 45, 58, 0.08);
  transition: box-shadow 700ms var(--ease), background-color 700ms var(--ease);
}
.nav.is-scrolled .nav-pill { box-shadow: 0 12px 40px rgba(31, 45, 58, 0.14); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  padding-right: var(--s-75);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  border-radius: var(--r-full);
}
.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
}
.nav-brand span { white-space: nowrap; }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--s-25);
}
.nav-links a {
  display: block;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { background: rgba(31, 45, 58, 0.06); color: var(--ink); } }
.nav-links a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 var(--s-100);
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 500ms var(--ease), transform 500ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .lang-toggle:hover { background: var(--paper); } }
.lang-toggle:active { transform: scale(0.96); }

.nav-cta { display: none; }

/* Hamburger that morphs into an X */
.burger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 0;
  background: var(--ink);
  cursor: pointer;
  transition: transform 500ms var(--ease);
}
.burger:active { transform: scale(0.96); }
.burger span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--paper);
  transition: transform 700ms var(--ease), top 700ms var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.nav.is-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Mobile overlay menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-900) var(--s-300) var(--s-600);
  background: rgba(243, 238, 231, 0.94);
  -webkit-backdrop-filter: blur(64px);
  backdrop-filter: blur(64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}
.nav.is-open + .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms var(--ease), visibility 0s;
}
.menu-overlay ul { display: grid; gap: var(--s-75); }
.menu-overlay li { overflow: hidden; }
.menu-overlay a {
  display: block;
  padding: var(--s-75) 0;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transform: translateY(48px);
  opacity: 0;
  transition: transform 800ms var(--ease), opacity 800ms var(--ease);
}
.nav.is-open + .menu-overlay a { transform: translateY(0); opacity: 1; }
.nav.is-open + .menu-overlay li:nth-child(1) a { transition-delay: 100ms; }
.nav.is-open + .menu-overlay li:nth-child(2) a { transition-delay: 150ms; }
.nav.is-open + .menu-overlay li:nth-child(3) a { transition-delay: 200ms; }
.nav.is-open + .menu-overlay li:nth-child(4) a { transition-delay: 250ms; }
.nav.is-open + .menu-overlay li:nth-child(5) a { transition-delay: 300ms; }
.menu-overlay-foot {
  margin-top: var(--s-600);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-100);
  opacity: 0;
  transform: translateY(24px);
  transition: transform 800ms var(--ease) 350ms, opacity 800ms var(--ease) 350ms;
}
.nav.is-open + .menu-overlay .menu-overlay-foot { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 120px 0 var(--s-700);
  position: relative;
}
@media (min-width: 900px) { .hero { padding: 160px 0 var(--s-900); } }

.hero-grid {
  display: grid;
  gap: var(--s-600);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-700); }
}

.hero h1 {
  max-width: 680px;
  margin-top: var(--s-200);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, var(--ink) 0%, #5e7586 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ink);
  padding-bottom: var(--s-50);
}
@media (min-width: 640px) { .hero h1 { font-size: 60px; } }
@media (min-width: 1100px) { .hero h1 { font-size: 72px; } }

.hero-sub {
  max-width: 680px;
  margin-top: var(--s-300);
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-soft);
}
@media (min-width: 900px) { .hero-sub { font-size: 20px; line-height: 28px; } }

.hero-actions {
  margin-top: var(--s-400);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-300);
}

.hero-proof {
  margin-top: var(--s-500);
  padding-top: var(--s-300);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-100) var(--s-300);
  font-size: 14px;
  line-height: 20px;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .rating:hover .rating-count { border-color: var(--ink); } }
.stars { display: inline-flex; color: #d99a2b; font-size: 16px; }
.rating-count { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }

.hero-visual {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.hero-photo {
  border-radius: var(--r-3xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sky);
  box-shadow: 0 32px 64px rgba(31, 45, 58, 0.16);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-card {
  position: absolute;
  left: -16px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-100) var(--s-200) var(--s-100) var(--s-100);
  border-radius: var(--r-2xl);
  background: rgba(251, 248, 243, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(31, 45, 58, 0.14);
}
@media (min-width: 900px) { .hero-card { left: -40px; } }
.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-lg);
  background: var(--sky);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink);
}
.hero-card strong { display: block; font-size: 14px; line-height: 20px; font-weight: 700; }
.hero-card span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-soft); }

/* Rotating circular badge */
.badge {
  position: absolute;
  top: -24px;
  right: -12px;
  width: 112px;
  height: 112px;
}
@media (min-width: 900px) { .badge { width: 136px; height: 136px; right: -40px; top: -40px; } }
.badge svg { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge text {
  font-family: "Manrope", sans-serif;
  font-size: 10.4px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: var(--ink);
}
.badge-center {
  position: absolute;
  inset: 22%;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.badge-center img { width: 100%; height: 100%; object-fit: cover; }
.badge-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(31, 45, 58, 0.12);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  background: var(--sky-soft);
  overflow: hidden;
  padding: var(--s-200) 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: var(--s-400);
  padding-right: var(--s-400);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.marquee-group .ph,
.marquee-group .ph-fill { color: var(--slate); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Favorites
   ========================================================================== */
.fav-grid {
  display: grid;
  gap: var(--s-300);
}
@media (min-width: 640px) { .fav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fav-grid { grid-template-columns: repeat(3, 1fr); } }

.dish {
  display: flex;
  flex-direction: column;
  padding: var(--s-75);
  border-radius: var(--r-3xl);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .dish:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(31, 45, 58, 0.1); } }
.dish-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-2xl); /* 24 - 8 */
  overflow: hidden;
  background: var(--sand);
}
.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .dish:hover .dish-photo img { transform: scale(1.04); } }
.dish-tag {
  position: absolute;
  top: var(--s-100);
  left: var(--s-100);
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: var(--paper);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--ink);
}
.dish-tag.is-new { background: var(--coral); color: var(--paper); }
.dish-body { padding: var(--s-200) var(--s-100) var(--s-100); display: grid; gap: var(--s-75); }
.dish-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-200); }
.dish h3 { font-size: 20px; line-height: 28px; }
.price {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dish p { font-size: 14px; line-height: 20px; color: var(--ink-soft); }

/* ==========================================================================
   Tagline reveal
   ========================================================================== */
.tagline { padding: var(--s-900) 0; }
@media (min-width: 900px) { .tagline { padding: 160px 0; } }
.tagline p {
  max-width: 880px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
@media (min-width: 900px) { .tagline p { font-size: 60px; line-height: 1.05; } }
.tagline mark { background: none; color: inherit; }
.tagline .word {
  color: rgba(31, 45, 58, 0.28);
  transition: color 900ms var(--ease);
}
.tagline .word.is-lit { color: var(--ink); }
.tagline .word.accent.is-lit { color: var(--slate); }

/* ==========================================================================
   Matcha bar (navy)
   ========================================================================== */
.matcha {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--r-3xl);
  margin: 0 var(--s-75);
}
@media (min-width: 768px) { .matcha { margin: 0 var(--s-200); } }
.matcha .eyebrow { color: var(--sky); }
.matcha .section-head p { color: rgba(251, 248, 243, 0.78); }

.matcha-grid { display: grid; gap: var(--s-600); }
@media (min-width: 1000px) {
  .matcha-grid { grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: start; }
}

.drinks { display: grid; gap: var(--s-75); }
.drink {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  padding: var(--s-200);
  border-radius: var(--r-2xl);
  background: var(--navy-2);
  border: 1px solid rgba(251, 248, 243, 0.08);
  transition: background-color 500ms var(--ease), transform 500ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .drink:hover { background: #33476a; transform: translateX(4px); } }
.drink-swatch {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink);
}
.drink-body { flex: 1; min-width: 0; }
.drink h3 { font-size: 16px; line-height: 24px; }
.drink p { font-size: 14px; line-height: 20px; color: rgba(251, 248, 243, 0.7); }
.drink-tag {
  flex: none;
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  border: 1px solid rgba(251, 248, 243, 0.24);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: rgba(251, 248, 243, 0.86);
  white-space: nowrap;
}

.matcha-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-200);
}
.matcha-photos figure {
  margin: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--navy-2);
}
.matcha-photos img { width: 100%; height: 100%; object-fit: cover; }
.matcha-photos .tall { grid-row: span 2; aspect-ratio: 3 / 5; }
.matcha-photos .sq { aspect-ratio: 1 / 1; }
@media (min-width: 1000px) { .matcha-photos { position: sticky; top: 112px; } }

.coffee-card {
  margin-top: var(--s-600);
  display: grid;
  gap: var(--s-300);
  padding: var(--s-75);
  border-radius: var(--r-3xl);
  background: var(--paper);
  color: var(--ink);
}
@media (min-width: 768px) {
  .coffee-card { grid-template-columns: 200px 1fr; align-items: center; }
}
.coffee-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-2xl);
}
.coffee-card div { padding: var(--s-100) var(--s-200) var(--s-200); }
@media (min-width: 768px) { .coffee-card div { padding: var(--s-200) var(--s-300) var(--s-200) 0; } }
.coffee-card h3 { font-size: 24px; line-height: 32px; }
.coffee-card p { margin-top: var(--s-75); color: var(--ink-soft); }
.chips { margin-top: var(--s-200); display: flex; flex-wrap: wrap; gap: var(--s-75); }
.chip {
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: var(--sky-soft);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

/* ==========================================================================
   Full menu
   ========================================================================== */
.menu-layout { display: grid; gap: var(--s-400); }
@media (min-width: 900px) {
  .menu-layout { grid-template-columns: 1fr 1fr; gap: var(--s-400) var(--s-700); }
}
.menu-cat {
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  background: var(--paper);
  border: 1px solid var(--line);
}
@media (min-width: 900px) { .menu-cat { padding: var(--s-400); } }
.menu-cat h3 {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  font-size: 24px;
  line-height: 32px;
  padding-bottom: var(--s-200);
  margin-bottom: var(--s-75);
  border-bottom: 1px solid var(--line);
}
.menu-cat h3 .ph { color: var(--slate); font-size: 24px; }
.menu-item { padding: var(--s-200) 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-item-top {
  display: flex;
  align-items: baseline;
  gap: var(--s-100);
}
.menu-item h4 { font-size: 16px; line-height: 24px; font-weight: 700; }
.menu-item .leader {
  flex: 1;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-4px);
  min-width: var(--s-200);
}
.menu-item p { margin-top: var(--s-50); font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.menu-item .addon { margin-top: var(--s-50); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--slate); }
.mini-tag {
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  background: var(--coral);
  color: var(--paper);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-75) var(--s-300); padding-top: var(--s-100); }
.extras li { display: flex; justify-content: space-between; gap: var(--s-75); font-size: 14px; line-height: 20px; }
.extras li span:last-child { font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; }
.menu-note {
  margin-top: var(--s-400);
  display: flex;
  gap: var(--s-100);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-soft);
  max-width: 880px;
}
.menu-note .ph { font-size: 16px; flex: none; }

/* ==========================================================================
   Story
   ========================================================================== */
.story { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-800); } }
.story-photo {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 480px;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo figcaption {
  position: absolute;
  left: var(--s-200);
  bottom: var(--s-200);
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: rgba(251, 248, 243, 0.9);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.story-copy { display: grid; gap: var(--s-200); }
.story-copy h2 { font-size: 36px; line-height: 40px; }
@media (min-width: 900px) { .story-copy h2 { font-size: 48px; line-height: 1; } }
.story-copy p { font-size: 18px; line-height: 28px; color: var(--ink-soft); }
.stats {
  margin-top: var(--s-200);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-75);
}
.stat {
  padding: var(--s-200);
  border-radius: var(--r-2xl);
  background: var(--cream);
  border: 1px solid var(--line);
}
.stat strong { display: block; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: var(--s-25); font-size: 12px; line-height: 16px; color: var(--ink-soft); }
@media (min-width: 640px) { .stat strong { font-size: 30px; line-height: 36px; } }

.mentions { margin-top: var(--s-100); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); }
.mentions-label { font-size: 14px; line-height: 20px; color: var(--ink-soft); margin-right: var(--s-50); }
.mention {
  display: inline-flex;
  gap: var(--s-50);
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: var(--sky-soft);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.mention b { color: var(--slate); font-weight: 700; }

/* ==========================================================================
   Happenings
   ========================================================================== */
.happen-grid { display: grid; gap: var(--s-300); }
@media (min-width: 900px) { .happen-grid { grid-template-columns: repeat(3, 1fr); } }
.happen {
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  padding: var(--s-400);
  border-radius: var(--r-3xl);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .happen:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(31, 45, 58, 0.08); } }
.happen-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-2xl);
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--sky);
}
.happen.is-hiring { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.happen.is-hiring .happen-icon { background: var(--coral); color: var(--paper); }
.happen.is-hiring p { color: rgba(251, 248, 243, 0.78); }
.happen h3 { font-size: 24px; line-height: 32px; }
.happen p { color: var(--ink-soft); flex: 1; }
.happen .text-link { align-self: flex-start; }
.happen.is-hiring .text-link { border-color: rgba(251, 248, 243, 0.4); }
@media (hover: hover) and (pointer: fine) { .happen.is-hiring .text-link:hover { border-color: var(--paper); } }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-300);
  margin-bottom: var(--s-400);
}
.gallery-head .section-head { margin-bottom: 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-75);
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s-200); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(6, 1fr); } }
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--sand);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 45, 58, 0);
  transition: background-color 700ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .gallery a:hover img { transform: scale(1.06); } }
@media (hover: hover) and (pointer: fine) { .gallery a:hover::after { background: rgba(31, 45, 58, 0.16); } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; gap: var(--s-600); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-700); } }
.faq-list { display: grid; gap: var(--s-75); }
.faq-item {
  border-radius: var(--r-2xl);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 500ms var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  border-radius: var(--r-2xl);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ph {
  flex: none;
  font-size: 20px;
  color: var(--slate);
  transition: transform 700ms var(--ease);
}
.faq-item[open] summary .ph { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 var(--s-300) var(--s-300);
  color: var(--ink-soft);
}

/* ==========================================================================
   Visit
   ========================================================================== */
.visit-grid { display: grid; gap: var(--s-400); }
@media (min-width: 1000px) { .visit-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-600); align-items: stretch; } }
.visit-card {
  display: grid;
  gap: var(--s-300);
  align-content: start;
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  background: var(--paper);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .visit-card { padding: var(--s-400); } }
.visit-row { display: flex; gap: var(--s-200); }
.visit-row > .ph {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--sky-soft);
  color: var(--ink);
}
.visit-row h3 { font-size: 14px; line-height: 20px; color: var(--ink-soft); font-weight: 600; letter-spacing: 0; }
.visit-row p, .visit-row a { font-size: 16px; line-height: 24px; font-weight: 600; }
.visit-row a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .visit-row a:hover { border-color: var(--ink); } }
.visit-row small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-soft); font-weight: 500; }

.hours { width: 100%; border-collapse: collapse; margin-top: var(--s-75); font-size: 14px; line-height: 20px; }
.hours td { padding: var(--s-75) var(--s-100); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours tr { border-radius: var(--r-lg); }
.hours tr.is-closed td { color: var(--ink-soft); font-weight: 500; }
.hours tr.is-today td { background: var(--sky-soft); font-weight: 700; }
.hours tr.is-today td:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.hours tr.is-today td:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.hours-note { margin-top: var(--s-75); font-size: 12px; line-height: 16px; color: var(--ink-soft); }

.visit-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }

.map {
  position: relative;
  min-height: 360px;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: var(--sky);
  border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--sky-soft);
  color: var(--slate);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.map-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.6s var(--ease) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: var(--s-600) 0 var(--s-400); background: var(--sand-light); }
.footer-top {
  display: grid;
  gap: var(--s-400);
  padding-bottom: var(--s-400);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; gap: var(--s-200); align-items: center; }
.footer-brand img { width: 64px; height: 64px; border-radius: var(--r-full); border: 1px solid var(--line); }
.footer-brand strong { display: block; font-size: 20px; line-height: 28px; }
.footer-brand span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.footer h3 { font-size: 14px; line-height: 20px; color: var(--ink-soft); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-100); }
.footer ul { display: grid; gap: var(--s-75); }
.footer li a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  text-decoration: none;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) { .footer li a:hover { color: var(--slate); } }
.footer-bottom {
  padding-top: var(--s-300);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-100);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Beach elements: palms, waves, postcard, shoreline
   ========================================================================== */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.palm { display: block; width: 100%; height: auto; fill: currentColor; overflow: visible; }
.palm-crown {
  transform-box: view-box;
  transform-origin: 130px 112px;
  animation: palm-sway 6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  animation-delay: var(--sway-delay, 0s);
}
@keyframes palm-sway {
  from { transform: rotate(-3deg); }
  to { transform: rotate(2.5deg); }
}

/* Hero palms peeking out from behind the photo */
.hero { overflow-x: clip; }
.hero-visual { isolation: isolate; }
.hero-photo { position: relative; z-index: 1; }
.hero-card, .badge { z-index: 2; }
.hero-palm { position: absolute; z-index: 0; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-palm-a { width: 160px; left: -48px; top: -32px; color: var(--slate); transform: rotate(-10deg); }
.hero-palm-b { width: 170px; right: -72px; bottom: 40px; color: #9db6c4; transform: rotate(8deg); }
@media (min-width: 900px) {
  .hero-palm-a { width: 280px; left: -100px; top: -120px; }
  .hero-palm-b { width: 220px; right: -120px; bottom: 24px; }
}

/* Ocean band around the marquee, with drifting wave edges */
.wave-edge { height: 16px; overflow: hidden; line-height: 0; margin-bottom: -1px; }
.wave-edge.is-bottom { transform: scaleY(-1); margin: -1px 0 0; }
.wave-edge-strip {
  width: calc(100% + 120px);
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cpath d='M0 8 Q30 0 60 8 T120 8 V16 H0 Z' fill='%23e3edf3'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 16px;
  animation: wave-drift 7s linear infinite;
}
.wave-edge.is-bottom .wave-edge-strip { animation-duration: 9s; animation-direction: reverse; }
@keyframes wave-drift { to { transform: translateX(-120px); } }

/* SVG sea motion */
.foam { animation: foam-drift 6s linear infinite; }
@keyframes foam-drift { to { transform: translateX(-60px); } }
.sea-lines { animation: sea-sway 5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
@keyframes sea-sway {
  from { transform: translateX(-6px); }
  to { transform: translateX(6px); }
}

/* La Pared section */
.beach-grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 1000px) {
  .beach-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-700); }
}
.postcard {
  position: relative;
  margin: 0;
  padding: var(--s-100);
  /* Framed in La Pared's broken tile mosaic */
  background: url("images/mosaic.svg") 0 0 / 120px 60px repeat;
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  box-shadow: 0 32px 64px rgba(31, 45, 58, 0.14);
  rotate: -1.5deg;
}
.js .postcard.reveal {
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease), rotate 900ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .postcard:hover { rotate: 0deg; } }
.postcard-art { display: block; width: 100%; height: auto; border-radius: var(--r-xl); } /* 24 - 12 */
.postcard-stamp {
  position: absolute;
  top: var(--s-300);
  left: var(--s-300);
  display: flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-xl);
  background: rgba(251, 248, 243, 0.92);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-soft);
}
@media (max-width: 639px) {
  .postcard-stamp { position: static; margin-top: var(--s-100); }
}
.postcard-stamp .ph-fill { font-size: 24px; color: var(--ink); }
.postcard-stamp > span > span,
.postcard-stamp strong { display: block; }
.postcard-stamp strong { font-size: 14px; line-height: 20px; color: var(--ink); }

.beach-copy { display: grid; gap: var(--s-200); }
.beach-copy h2 { font-size: 36px; line-height: 40px; }
@media (min-width: 900px) { .beach-copy h2 { font-size: 48px; line-height: 1; } }
.beach-lead { font-size: 18px; line-height: 28px; color: var(--ink-soft); }
.beach-steps { margin: var(--s-75) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-75); }
.beach-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-200);
  padding: var(--s-200);
  border-radius: var(--r-2xl);
  background: var(--paper);
  border: 1px solid var(--line);
}
.step-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--sky);
}
.beach-steps strong { display: block; font-size: 16px; line-height: 24px; }
.beach-steps p { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.beach-chips { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.beach-chips .chip { display: inline-flex; align-items: center; gap: var(--s-50); }
.beach-chips .ph { font-size: 16px; color: var(--slate); }

/* La Pared: railing, concrete cap and the mosaic face of the seawall */
.seawall { position: relative; z-index: 1; line-height: 0; }
.seawall-rail {
  height: 28px;
  background:
    linear-gradient(var(--rail), var(--rail)) 0 4px / 100% 3px no-repeat,
    linear-gradient(var(--rail), var(--rail)) 0 16px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--rail) 0 4px, transparent 4px 88px) 0 4px / 100% 24px no-repeat;
}
.seawall-cap { height: 8px; background: var(--concrete); box-shadow: inset 0 -2px 0 rgba(31, 45, 58, 0.12); }
.seawall-face {
  height: 40px;
  background: url("images/mosaic.svg") 0 0 / 160px 80px repeat;
  box-shadow: inset 0 8px 8px -8px rgba(31, 45, 58, 0.45);
}
@media (min-width: 768px) { .seawall-face { height: 48px; } }
.seawall-footer { margin-top: -28px; }
.wave-edge.is-top { height: 28px; padding-top: 12px; background: var(--sand-light); }

/* Surfers bobbing on the break */
.surfer { animation: surf-bob 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
@keyframes surf-bob {
  from { transform: translate(-4px, 1px); }
  to { transform: translate(8px, -2px); }
}

/* The La Pared signpost (our version): mosaic pillar with stacked plaques */
.beach-visual { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
@media (min-width: 1000px) { .beach-visual { max-width: none; } }
.signpost { width: 152px; margin: var(--s-400) auto 0; rotate: 2deg; }
.js .signpost.reveal {
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease), rotate 900ms var(--ease);
}
@media (min-width: 768px) {
  .beach-visual { margin-bottom: var(--s-700); }
  .signpost { position: absolute; right: -64px; bottom: -56px; margin: 0; z-index: 2; }
}
@media (min-width: 1000px) { .beach-visual { margin-bottom: 0; } }
.signpost-pillar {
  display: grid;
  gap: var(--s-75);
  padding: var(--s-100);
  border-radius: 64px 64px var(--r-lg) var(--r-lg);
  background: url("images/mosaic.svg") 0 0 / 120px 60px repeat;
  border: 3px solid #e8dcc6;
  box-shadow: 0 24px 48px rgba(31, 45, 58, 0.22);
}
.plaque {
  display: block;
  padding: var(--s-75) var(--s-50);
  border-radius: var(--r-md);
  background: var(--plaque);
  color: var(--plaque-text);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: inset 0 0 0 1px rgba(244, 230, 200, 0.22), 0 2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 500ms var(--ease), background-color 500ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { a.plaque:hover { background: #5a3f2f; transform: translateX(4px) rotate(-1.5deg); } }
a.plaque:active { transform: scale(0.97); }
a.plaque:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.plaque-title {
  padding: var(--s-200) var(--s-50) var(--s-75);
  border-radius: 52px 52px var(--r-md) var(--r-md); /* 64 - 12 */
  font-size: 14px;
  line-height: 20px;
}
.plaque-title span,
.plaque-eco span { display: block; }
.plaque-eco { background: #2f5b3e; }
@media (hover: hover) and (pointer: fine) { a.plaque-eco:hover { background: #3d7351; } }
.signpost-base {
  height: 20px;
  margin: 0 var(--s-200);
  background: var(--concrete);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: inset 0 4px 0 rgba(31, 45, 58, 0.1);
}
.signpost-note {
  margin-top: var(--s-75);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-soft);
  text-align: center;
  text-wrap: balance;
}

/* Tinglar card */
.tinglar {
  margin-top: var(--s-700);
  display: grid;
  gap: var(--s-400);
  align-items: center;
  padding: var(--s-400) var(--s-300);
  border-radius: var(--r-3xl);
  background: #1e4a56;
  color: var(--paper);
}
@media (min-width: 768px) { .tinglar { padding: var(--s-500); } }
@media (min-width: 1000px) {
  .tinglar { grid-template-columns: 160px 1.3fr 1fr; gap: var(--s-500); margin-top: var(--s-800); }
}
.tinglar-art {
  width: 160px;
  height: 160px;
  border-radius: var(--r-full);
  background: var(--sea);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.turtle {
  width: 140px;
  height: 140px;
  animation: turtle-swim 7s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes turtle-swim {
  from { transform: translateY(4px) rotate(-6deg); }
  to { transform: translateY(-4px) rotate(6deg); }
}
.tinglar .eyebrow { color: var(--sky); }
.tinglar h3 { margin-top: var(--s-75); font-size: 30px; line-height: 36px; }
.tinglar-copy > p:last-child { margin-top: var(--s-100); color: rgba(251, 248, 243, 0.8); }
.tinglar-tips { display: grid; gap: var(--s-75); }
.tinglar-tips li {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-100) var(--s-200);
  border-radius: var(--r-2xl);
  background: #285e6b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.tinglar-tips .ph { flex: none; font-size: 20px; color: var(--sky); }

/* Shoreline that runs into the sandy footer */
.shore { line-height: 0; }
.shore svg { display: block; width: 100%; height: 160px; }
@media (min-width: 768px) { .shore svg { height: 220px; } }

/* ==========================================================================
   Scroll reveal (gentle, heavy fade up)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
  .tagline .word { color: var(--ink); }
}

/* ==========================================================================
   iPhone, iPhone Duo and iPad
   Device widths checked in Mobile Safari: Duo cover 382 · iPhone 17 / 18 Pro 402
   · Duo inner ~669 · iPad 820 portrait / 1180 landscape.
   ========================================================================== */

/* Touch basics: no gray tap flash, no double-tap delay, no text selection on controls */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="button"] { touch-action: manipulation; }
.btn, .nav-links a, .nav-brand, .lang-toggle, .burger, .plaque, .menu-overlay a,
.faq-item summary, .chip, .drink-tag, .dish-tag {
  -webkit-user-select: none;
  user-select: none;
}
.btn, .plaque, .burger, .lang-toggle { -webkit-touch-callout: none; }

/* Press feedback: what touch gets instead of hover */
.nav-links a:active, .menu-overlay a:active, .footer li a:active, .visit-row a:active,
.text-link:active, .rating:active, .nav-brand:active { opacity: 0.6; }
.gallery a { transition: transform 160ms var(--ease); }
.gallery a:active { transform: scale(0.98); }
.faq-item summary:active { background: rgba(31, 45, 58, 0.04); }

/* Safe areas: Dynamic Island in landscape and the home screen web app */
.container {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.nav {
  padding-top: calc(var(--s-200) + env(safe-area-inset-top, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) { .nav { padding-top: calc(var(--s-300) + env(safe-area-inset-top, 0px)); } }
.hero { padding-top: calc(120px + env(safe-area-inset-top, 0px)); }
@media (min-width: 900px) { .hero { padding-top: calc(160px + env(safe-area-inset-top, 0px)); } }
.footer { padding-bottom: calc(var(--s-500) + env(safe-area-inset-bottom, 0px)); }

/* Mobile menu: scrolls when it doesn't fit (landscape), never cuts off the top */
.menu-overlay {
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding:
    calc(var(--s-900) + env(safe-area-inset-top, 0px))
    max(var(--s-300), env(safe-area-inset-right, 0px))
    calc(var(--s-600) + env(safe-area-inset-bottom, 0px))
    max(var(--s-300), env(safe-area-inset-left, 0px));
}
.menu-overlay ul { margin-top: auto; }
.menu-overlay-foot { margin-bottom: auto; }

/* Phones (iPhone, Duo cover): favorites become a swipeable row */
.swipe-hint { display: none; }
@media (max-width: 639px) {
  .fav-grid {
    display: flex;
    gap: var(--s-100);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) var(--s-200);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .fav-grid::-webkit-scrollbar { display: none; }
  .fav-grid .dish { flex: 0 0 84%; scroll-snap-align: start; }
  .js .fav-grid .reveal { opacity: 1; transform: none; filter: none; }
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: var(--s-75);
    margin-top: var(--s-75);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--slate);
  }
  .swipe-hint .ph { font-size: 20px; }
}

/* Narrowest screen (Duo cover, 382pt with Safari's side rail) */
@media (max-width: 389px) {
  .extras { grid-template-columns: 1fr; }
  .hero-actions { gap: var(--s-200); }
  .stat { padding: var(--s-100); }
}

/* Two columns where there's room: iPad portrait and the unfolded Duo */
@media (min-width: 640px) and (max-width: 899px) {
  .happen-grid { grid-template-columns: repeat(2, 1fr); }
  .happen.is-hiring { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .story-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-500); }
  .hero-visual { max-width: 460px; }
}
@media (min-width: 768px) and (max-width: 999px) {
  .tinglar { grid-template-columns: 160px 1fr; }
  .tinglar-tips { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .tinglar-tips li { align-items: flex-start; }
}

/* Phones in landscape: short screens */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .hero-visual { max-width: 360px; }
  .menu-overlay { padding-top: calc(var(--s-700) + env(safe-area-inset-top, 0px)); }
  .menu-overlay a { font-size: 24px; line-height: 32px; padding: var(--s-50) 0; }
}

/* iPad portrait: headline and photo side by side so the whole first screen fits */
@media (min-width: 768px) and (max-width: 899px) {
  .hero { padding-bottom: var(--s-800); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--s-500); }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 18px; line-height: 28px; }
  .hero-visual { max-width: none; }
  .hero-palm-a { width: 200px; left: -72px; top: -72px; }
}

/* Phones in landscape: keep the hero photo shorter than the screen */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-palm-a { top: -40px; }
}

/* ==========================================================================
   Navigation and calling (the Pollo Isleño pattern)
   Phones up to 760px: a floating action dock in thumb reach (Llamar · Menú · Llegar).
   761px and up: Llamar and Cómo llegar live in the nav pill. Status is always in the nav.
   ========================================================================== */

/* Compact open/closed status in the nav pill */
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  height: 40px;
  padding: 0 var(--s-100);
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-status .status-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--slate); }
.nav-status.is-open .status-dot { background: var(--open); animation: pulse 2.4s var(--ease) infinite; }
.nav-status.is-closed .status-dot { background: var(--coral); }

/* Call and directions in the nav from tablet width up; links need 1100px to fit beside them */
.nav-call { display: none; }
@media (min-width: 761px) {
  .nav-call, .nav-cta { display: inline-flex; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .nav-links { display: none; }
  .burger { display: block; }
}
.nav-call { background: var(--paper); }

/* The dock */
.dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    position: fixed;
    left: max(var(--s-100), env(safe-area-inset-left, 0px));
    right: max(var(--s-100), env(safe-area-inset-right, 0px));
    bottom: calc(var(--s-100) + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: var(--s-75);
    padding: var(--s-75);
    border-radius: var(--r-3xl);
    background: rgba(31, 45, 58, 0.92);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 16px 40px rgba(31, 45, 58, 0.28);
  }
  .dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-25);
    min-height: 56px;
    border-radius: var(--r-2xl); /* 24 - 8 */
    color: var(--paper);
    text-decoration: none;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: transform 120ms var(--ease), background-color 300ms var(--ease);
  }
  .dock-btn .ph { font-size: 22px; }
  .dock-btn:active { transform: scale(0.95); background: rgba(251, 248, 243, 0.1); }
  .dock-btn-main { background: var(--sky); color: var(--ink); font-size: 14px; line-height: 20px; }
  .dock-btn-main:active { background: #b5cfdf; }
  .dock :focus-visible { outline-color: var(--sky); outline-offset: 2px; }

  /* The dock already has call and directions, so the menu overlay just lists sections */
  .menu-overlay-foot { display: none; }
  .menu-overlay { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
}

/* Narrowest phone (Duo cover): the logo carries the brand, the status keeps its room */
@media (max-width: 389px) {
  .nav-brand span { display: none; }
  .nav-brand { padding-right: 0; }
}
