/* ============================================================
   NAIA TAMARINDO — DESIGN SYSTEM
   Rooftop · Pool · Sunset — Above Iguana Surf, Tamarindo CR
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=League+Gothic&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --teal:       #007A87;   /* Deep Teal   — primary */
  --teal-lt:    #359EA4;   /* Ocean Teal  — secondary */
  --peach:      #E9A991;   /* Coral Peach — accent */
  --peach-lt:   #F3BEAA;   /* Soft Peach  — accent light */
  --mist:       #EBE7E5;   /* Warm Mist   — neutral bg */
  --white:      #FFFFFF;
  --ink:        #17302F;   /* near-black, teal-biased, for body copy */
  --ink-soft:   #4A5E5C;

  --f-display:  'League Gothic', 'Oswald', sans-serif;
  --f-body:     'Montserrat', sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h:      84px;
  --max-w:      1360px;
  --gutter:     clamp(20px, 4vw, 64px);
  --section-v:  clamp(72px, 9vw, 128px);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── Typography ─────────────────────────────────────────────── */
.t-display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.t-headline {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--teal);
}
.t-eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}
.t-body { font-family: var(--f-body); font-weight: 400; line-height: 1.7; }
.t-body-sm { font-family: var(--f-body); font-weight: 400; font-size: 14px; line-height: 1.6; }

.fs-hero { font-size: clamp(64px, 12vw, 168px); }
.fs-xl   { font-size: clamp(46px, 6.5vw, 92px); }
.fs-lg   { font-size: clamp(34px, 4.5vw, 60px); }
.fs-md   { font-size: clamp(26px, 3vw, 38px); }
.fs-sm   { font-size: clamp(19px, 2vw, 24px); }

/* ── Colour + surface utilities ───────────────────────────────── */
.c-white { color: var(--white); }
.c-teal  { color: var(--teal); }
.c-peach { color: var(--peach); }
.c-soft  { color: var(--ink-soft); }

.bg-white { background: var(--white); }
.bg-mist  { background: var(--mist); }
.bg-teal  { background: var(--teal); }
.bg-peach-lt { background: var(--peach-lt); }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-v) 0; }
.section--sm { padding: calc(var(--section-v) * 0.55) 0; }

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

.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Section label ─────────────────────────────────────────── */
.section-label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--peach); }
.section-label span { font-family: var(--f-body); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-lt); }

/* ── Logo lockup (recreated from Naia's real mark) ───────────── */
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-mark__arc { width: 34px; height: 22px; flex: none; }
.brand-mark__arc .arc-outer { stroke: var(--teal); }
.brand-mark__arc .arc-inner { stroke: var(--peach); }
.brand-mark__type { display: flex; flex-direction: column; line-height: 1; }
.brand-mark__naia {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: 0.05em;
  color: var(--teal);
}
.brand-mark__sub {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-top: 3px;
}

.brand-mark--lg .brand-mark__arc { width: 72px; height: 46px; }
.brand-mark--lg .brand-mark__naia { font-size: 58px; letter-spacing: 0.04em; }
.brand-mark--lg .brand-mark__sub { font-size: 15px; letter-spacing: 0.5em; margin-top: 8px; }
.brand-mark--lg .brand-mark__arc .arc-outer,
.brand-mark--lg .brand-mark__arc .arc-inner { stroke-width: 5; }

.brand-mark--on-dark .brand-mark__naia,
.brand-mark--on-dark .brand-mark__sub { color: var(--white); }
.brand-mark--on-dark .brand-mark__arc .arc-outer { stroke: var(--peach-lt); }
.brand-mark--on-dark .brand-mark__arc .arc-inner { stroke: var(--peach); }

/* ── Image placeholders ───────────────────────────────────────
   Swap the wrapping element's inner <div class="ph"> for a real
   <img>/<video> at the same aspect ratio when photography lands. */
.ph {
  position: relative;
  width: 100%; height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #E7CFC3 0%, var(--peach-lt) 45%, var(--teal-lt) 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 26px, rgba(255,255,255,0.16) 26px, rgba(255,255,255,0.16) 27px);
}
.ph::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(0,122,135,0.25) 0%, transparent 55%);
}
.ph--dark {
  background: linear-gradient(150deg, #0C3238 0%, var(--teal) 55%, #0A5259 100%);
}
.ph--dark::after { background: radial-gradient(ellipse at 30% 80%, rgba(233,169,145,0.28) 0%, transparent 55%); }
.ph__icon { position: relative; z-index: 2; opacity: 0.75; margin-bottom: 12px; }
.ph__label {
  position: relative; z-index: 2;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(23,48,47,0.72);
  padding: 10px 18px;
  border: 1px solid rgba(23,48,47,0.22);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(3px);
  max-width: 220px;
}
.ph--dark .ph__label { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); background: rgba(0,0,0,0.18); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(23,48,47,0.08);
}
.nav.scrolled .nav__link { color: var(--ink); }
.nav.scrolled .nav__link:hover { color: var(--teal); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 var(--gutter); }
.nav__links { display: flex; align-items: center; gap: 38px; }
.nav__link {
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); transition: color 0.2s; position: relative;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 1px;
  background: var(--peach); transform: scaleX(0); transition: transform 0.3s var(--ease-out); transform-origin: left;
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__cta {
  background: var(--teal); color: var(--white) !important;
  padding: 11px 24px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--teal-lt); transform: translateY(-1px); }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 26px; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; height: 2px; background: var(--teal); transition: all 0.3s; }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white); flex-direction: column; align-items: center; justify-content: center; gap: 34px; z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 24px; color: var(--teal); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 34px; transition: all 0.25s var(--ease-out); cursor: pointer;
}
.btn--primary { background: var(--peach); color: var(--teal); }
.btn--primary:hover { background: var(--peach-lt); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(233,169,145,0.4); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.55); }
.btn--outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--outline-dark { background: transparent; color: var(--teal); border: 1px solid rgba(0,122,135,0.35); }
.btn--outline-dark:hover { background: rgba(0,122,135,0.06); border-color: var(--teal); }
.btn--dark { background: var(--teal); color: var(--white); }
.btn--dark:hover { background: #026570; transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__overlay {
  /* Light touch on purpose — the video is the content now, this just keeps
     the small signature and scroll cue legible at the very bottom. */
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,32,38,0.02) 0%, rgba(10,32,38,0.05) 60%, rgba(8,26,32,0.42) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(30px, 5vw, 52px); }
.hero__signature {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
/* Retained for a future pass if a fuller hero headline/CTA is wanted again */
.hero__eyebrow { color: var(--peach-lt); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--peach-lt); }
.hero__title { color: var(--white); }
.hero__title-line { display: block; }
.hero__title-line--2 { margin-left: clamp(20px, 4vw, 64px); color: var(--peach-lt); }
.hero__title-line--3 { margin-left: clamp(40px, 8vw, 128px); }
.hero__sub { color: rgba(255,255,255,0.86); max-width: 46ch; margin: 26px 0 34px; font-size: clamp(15px,1.6vw,18px); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll-label { font-family: var(--f-body); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.7); writing-mode: vertical-rl; }
.hero__scroll-line { width: 1px; height: 44px; background: rgba(255,255,255,0.35); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:''; position:absolute; left:0; top:-100%; width:100%; height:50%; background: var(--peach); animation: dripline 2.2s ease-in-out infinite; }
@keyframes dripline { 0%{ top:-50%; } 70%{ top:100%; } 100%{ top:100%; } }

/* ── Marquee ────────────────────────────────────────────────── */
.marquee { background: var(--teal); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__item { font-family: var(--f-display); font-weight: 400; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); white-space: nowrap; padding: 0 20px; }
.marquee__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--peach); align-self: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Stats strip ────────────────────────────────────────────── */
.stats-strip { background: var(--mist); padding: 46px 0; }
.stats-strip__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.stat-item { flex: 1; min-width: 150px; text-align: center; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(0,122,135,0.18); }
.stat-item__number { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); color: var(--teal); line-height: 1; }
.stat-item__label { font-family: var(--f-body); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

/* ── About / intro split ───────────────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.about-split__image { aspect-ratio: 4/5; }
.about-split__content { padding: clamp(32px, 5vw, 80px); }
.about-split__content p + p { margin-top: 18px; }

/* ── Cards (food & drink) ──────────────────────────────────── */
.menu-card { display: flex; flex-direction: column; }
.menu-card__image { aspect-ratio: 5/4; margin-bottom: 20px; overflow: hidden; }
.menu-card__image .ph, .menu-card__image img { transition: transform 0.6s var(--ease-out); }
.menu-card:hover .menu-card__image .ph, .menu-card:hover .menu-card__image img { transform: scale(1.05); }
.menu-card__name { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.02em; }
.menu-card__note { font-family: var(--f-body); font-style: italic; font-size: 13px; color: var(--teal-lt); margin: 6px 0 10px; }
.menu-card__desc { font-size: 14px; color: var(--ink-soft); }
.menu-card__desc.is-placeholder { font-style: italic; opacity: 0.75; }

/* ── Gallery grid ──────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-item { overflow: hidden; }
.gallery-item .ph, .gallery-item img { transition: transform 0.6s var(--ease-out); }
.gallery-item:hover .ph, .gallery-item:hover img { transform: scale(1.06); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

/* ── Events band ───────────────────────────────────────────── */
.events-band {
  background: var(--teal); color: var(--white);
  border-radius: 2px; padding: clamp(36px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.events-band__text { max-width: 46ch; }
.events-band .t-eyebrow { color: var(--peach-lt); }

/* ── Location / contact ───────────────────────────────────── */
.location-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; }
.location-split__map { min-height: 420px; }
.location-split__content { background: var(--mist); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(0,122,135,0.14); }
.info-row:first-of-type { border-top: 1px solid rgba(0,122,135,0.14); }
.info-row__icon { color: var(--peach); flex: none; margin-top: 2px; }
.info-row b { font-family: var(--f-body); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 3px; }
.info-row span { font-size: 14.5px; color: var(--ink-soft); }
.social-row { display: flex; gap: 14px; margin-top: 26px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(0,122,135,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--teal); transition: all 0.2s;
}
.social-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--teal); color: rgba(255,255,255,0.75); padding: 48px 0 28px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.16); }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 12px; }

/* ── Reveal-on-scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-left.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .about-split, .location-split { grid-template-columns: 1fr; }
  .about-split__image { aspect-ratio: 16/9; }
  .location-split__map { min-height: 280px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item--wide { grid-column: span 2; }
  .stats-strip__inner { justify-content: flex-start; }
  .stat-item { flex: 1 1 40%; }
}
