/* ============================================================
   Slow Tide Cafe — styles
   Palette: sea teal #0C4A46 · sand #FAF6EE / #F0E7D7
            surf teal #1B8A80 · coral #E9674C / #C0492F · ink #173A37
   Type:    Fraunces (display) + Karla (body)
   ============================================================ */

:root {
  --sand: #FAF6EE;
  --sand-deep: #F0E7D7;
  --sea: #0C4A46;
  --sea-deep: #08322F;
  --surf: #1B8A80;
  --surf-text: #0E6A61;   /* AA-safe teal for text on sand */
  --coral: #E9674C;
  --coral-deep: #C0492F;
  --ink: #173A37;
  --ink-soft: rgba(23, 58, 55, .68);
  --line: rgba(23, 58, 55, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(12, 50, 46, .08);
  --shadow-pop: 0 18px 44px rgba(12, 50, 46, .16);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.25rem;
}

/* ---------- reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + .75rem);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--surf-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul { padding: 0; list-style: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--surf); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(27, 138, 128, .25); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 60;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--sea); color: var(--sand);
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(92rem, 100% - 2.5rem); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .72em 1.45em;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn--coral { background: var(--coral-deep); color: #fff; box-shadow: 0 6px 18px rgba(192, 73, 47, .28); }
.btn--coral:hover { background: #AD3D26; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192, 73, 47, .32); }
.btn--coral:active { transform: translateY(0); }
.btn--ghost { border: 1.5px solid rgba(250, 246, 238, .75); color: var(--sand); }
.btn--ghost:hover { background: rgba(250, 246, 238, .14); transform: translateY(-2px); }
.btn--lg { font-size: 1.05rem; padding: .8em 1.7em; }
.btn--xl { font-size: 1.08rem; padding: .9em 1.8em; }

.text-link {
  font-weight: 700; color: var(--surf-text);
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(27, 138, 128, .4);
  transition: text-decoration-color .15s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-solid {
  background: rgba(250, 246, 238, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(12, 50, 46, .07);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--sand);
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em;
  transition: color .25s ease;
}
.site-header.is-solid .brand { color: var(--sea); }
.brand-mark { flex: none; border-radius: 50%; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav ul { display: flex; align-items: center; gap: 1.3rem; }
.site-nav ul a {
  color: var(--sand); text-decoration: none; font-weight: 600; font-size: .98rem;
  opacity: .88; transition: opacity .15s ease, color .25s ease;
}
.site-nav ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.site-header.is-solid .site-nav ul a { color: var(--ink); }
.nav-book { font-size: .92rem; padding: .6em 1.25em; }

/* mobile drawer */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  width: 44px; height: 44px; padding: 0 10px;
  border-radius: 10px;
}
.nav-toggle-box { display: block; width: 24px; }
.nav-toggle-box span {
  display: block; height: 2.5px; border-radius: 2px; background: var(--sand);
  transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle-box span + span { margin-top: 6px; }
.site-header.is-solid .nav-toggle-box span { background: var(--sea); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 819px) {
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--sand);
    box-shadow: 0 24px 40px rgba(12, 50, 46, .18);
    border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
  }
  .site-nav.is-open {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .25s ease, opacity .25s ease;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a {
    display: block; padding: .8rem .4rem;
    color: var(--ink); font-size: 1.15rem; font-family: var(--font-display);
    border-bottom: 1px solid var(--line);
  }
  .nav-book { margin-top: 1rem; justify-content: center; }
}
@media (min-width: 820px) {
  .nav-toggle { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--sand); isolation: isolate; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 44, 41, .62) 0%, rgba(10, 44, 41, .18) 42%, rgba(10, 44, 41, .82) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; z-index: 1;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 54' preserveAspectRatio='none'%3E%3Cpath d='M0 27c150-27 300-27 450 0s300 27 450 0 225-20 300-14v41H0z' fill='%23FAF6EE'/%3E%3C/svg%3E") bottom center / 1200px 54px repeat-x;
}

.hero-inner { padding-block: 7rem 6.5rem; max-width: 52rem; margin-inline: 0; }
.hero-kicker { font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: rgba(250, 246, 238, .85); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.7rem, 7.5vw, 4.75rem); font-weight: 620; max-width: 15ch; }
.hero-sub { margin-block: 1.25rem 1.9rem; font-size: clamp(1.05rem, 1.9vw, 1.2rem); max-width: 46ch; color: rgba(250, 246, 238, .94); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-facts {
  display: flex; flex-direction: column; gap: .3rem;
  margin-top: 2.2rem; font-size: .93rem; font-weight: 600; color: rgba(250, 246, 238, .85);
}
@media (min-width: 700px) { .hero-facts { flex-direction: row; gap: 1.6rem; } }
.fact-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #58B368; margin-right: .45rem; vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}
.fact-dot--closed { background: var(--coral); animation: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(88, 179, 104, .45); } 50% { box-shadow: 0 0 0 5px rgba(88, 179, 104, 0); } }

/* hero entrance — the one orchestrated moment */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; }
.hero-inner > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4) { animation-delay: .24s; }
.hero-inner > :nth-child(5) { animation-delay: .32s; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .8rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; }

/* ============================================================
   MENU
   ============================================================ */
.section--menu { background: var(--sand-deep); }

.menu-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.tab {
  padding: .55em 1.2em; border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 700; font-size: .98rem; color: var(--ink);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.tab:hover { border-color: var(--surf); color: var(--surf-text); transform: translateY(-1px); }
.tab[aria-selected="true"] {
  background: var(--sea); border-color: var(--sea); color: var(--sand);
}

.menu-panels { position: relative; max-width: 47rem; }
.menu-panel { animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.menu-list { display: grid; gap: 1.15rem; }
.menu-item { display: flex; align-items: baseline; gap: .7rem; }
.mi-name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; line-height: 1.3; }
.mi-note { display: block; font-family: var(--font-body); font-size: .88rem; font-weight: 400; color: var(--ink-soft); line-height: 1.45; margin-top: .1rem; }
.mi-dots { flex: 1 1 2rem; border-bottom: 2px dotted rgba(23, 58, 55, .32); transform: translateY(-.3em); }
.mi-price { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tag {
  display: inline-block; vertical-align: 2px; margin-left: .5rem;
  padding: .1em .6em .15em; border-radius: 999px;
  background: rgba(233, 103, 76, .14); color: #A63E28;
  font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.menu-footnote {
  margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-soft);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 1.2rem; }
  .gallery-item--tall { grid-row: span 2; }
}
.gallery-item { display: flex; flex-direction: column; gap: .55rem; }
.gallery-btn {
  display: block; width: 100%; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s ease, transform .25s ease;
}
.gallery-item--tall .gallery-btn { height: 100%; }
.gallery-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.gallery-btn img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s ease; }
.gallery-item--tall .gallery-btn img { aspect-ratio: auto; }
.gallery-btn:hover img { transform: scale(1.04); }
.gallery-btn:focus-visible { outline-offset: 3px; }
.gallery-item figcaption { font-size: .88rem; color: var(--ink-soft); padding-inline: .2rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 2fr 3fr; gap: 4.5rem; } }
.about-media { position: relative; max-width: 26rem; }
.about-media img { border-radius: 18px; box-shadow: var(--shadow-pop); }
.about-media::after {
  content: ""; position: absolute; top: -14px; right: -14px; width: 58px; height: 58px; z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--coral) 0 38%, transparent 40%),
    var(--sand-deep);
  transform: rotate(0deg);
}
.about-copy h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 1.1rem; }
.about-copy p { margin-bottom: 1.05rem; color: var(--ink); max-width: 58ch; }
.about-copy p:last-of-type { color: var(--ink-soft); font-family: var(--font-display); font-size: 1.14rem; }
.about-copy strong { color: var(--sea); }

/* ============================================================
   EVENTS & WIFI
   ============================================================ */
.section--events { background: var(--sea); color: var(--sand); }
.section--events .section-head p { color: rgba(250, 246, 238, .75); }

.events-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .events-grid { grid-template-columns: 1fr 1fr 1.15fr; align-items: start; } }

.event-card {
  background: var(--sand); color: var(--ink);
  border-radius: var(--radius); padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-card);
}
.event-when { font-weight: 700; font-size: .9rem; color: var(--coral-deep); margin-bottom: .55rem; }
.event-card h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.event-card p:not(.event-when) { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1.1rem; }

.wifi-card {
  border: 1.5px solid rgba(250, 246, 238, .32);
  border-radius: var(--radius); padding: 1.8rem 1.7rem;
  background: rgba(250, 246, 238, .06);
}
.wifi-card h3 { font-size: 1.45rem; margin-bottom: 1.1rem; }
.wifi-facts { display: grid; gap: .9rem; }
.wifi-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; align-items: baseline; }
.wifi-facts dt { font-weight: 700; font-size: .88rem; color: rgba(250, 246, 238, .7); }
.wifi-facts dd { margin: 0; font-weight: 600; }
.wifi-note { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(250, 246, 238, .2); font-size: .92rem; color: rgba(250, 246, 238, .78); }
@media (max-width: 460px) { .wifi-facts div { grid-template-columns: 1fr; gap: .1rem; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-book {
  background: var(--sand-deep);
  border-radius: 22px; padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  box-shadow: var(--shadow-card);
  max-width: 52rem; margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.contact-book-copy h3 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .7rem; }
.contact-book-copy p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; margin-bottom: 1.7rem; }
.contact-book-note { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

.contact-grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.contact-block h4 {
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  letter-spacing: .04em; text-transform: none; color: var(--coral-deep);
  margin-bottom: .9rem;
}
.contact-block address { font-style: normal; margin-bottom: .8rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: .9rem; }
.hours th, .hours td { text-align: left; padding: .3rem 0; font-size: .98rem; }
.hours th { font-weight: 600; padding-right: 1rem; }
.hours td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours-note { font-size: .9rem; color: var(--ink-soft); }
.ig-link { display: flex; gap: .55rem; align-items: baseline; margin-bottom: .8rem; }
.ig-link svg { flex: none; transform: translateY(3px); color: var(--coral); }
.ig-link a { font-weight: 700; }
.ig-link, .mail-link { font-size: .95rem; color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--sea-deep); color: rgba(250, 246, 238, .85); padding-block: 3rem 2.5rem; }
.footer-inner { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr; align-items: start; } }
.footer-brand { display: flex; gap: .8rem; align-items: center; }
.footer-brand p { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.4; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; align-content: start; }
.footer-nav a { color: rgba(250, 246, 238, .85); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 4px; }
.footer-fine { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid rgba(250, 246, 238, .16); font-size: .86rem; color: rgba(250, 246, 238, .6); }
.footer-fine a { color: rgba(250, 246, 238, .85); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  border: 0; padding: 0; border-radius: 18px;
  background: var(--sand); color: var(--ink);
  max-width: min(92vw, 880px); margin: auto;
  box-shadow: 0 30px 80px rgba(8, 50, 46, .4);
}
.lightbox::backdrop { background: rgba(8, 40, 37, .82); backdrop-filter: blur(4px); }
.lightbox[open] { animation: panel-in .3s ease both; }
.lightbox figure { padding: .8rem .8rem 0; }
.lightbox img { border-radius: 12px; max-height: 74vh; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
.lightbox figcaption { padding: .85rem .4rem 1rem; font-family: var(--font-display); font-size: 1.05rem; text-align: center; }
.lightbox-close {
  position: absolute; top: -1.2rem; right: -1.2rem; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral-deep); color: #fff; font-size: 1.5rem; line-height: 1;
  box-shadow: var(--shadow-pop);
  transition: transform .18s ease;
}
.lightbox-close:hover { transform: scale(1.08); }
@media (max-width: 700px) {
  .lightbox-close { top: -1rem; right: .8rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}