/* ============================================================
   Common Grounds — Kite Beach
   Shared brand stylesheet
   Palette sampled from the real beachfront kiosk (teal / pink /
   lilac on white). Facts: research/* + media/* only.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #fbfbf9;   /* soft beach white */
  --surface:   #ffffff;
  --sand:      #f3efe7;   /* warm sand panel */
  --sky:       #e7f1f8;   /* soft sky tint */
  --mist:      #eafafa;   /* pale teal tint */

  /* Ink */
  --ink:       #122a2c;   /* deep teal-charcoal text */
  --ink-soft:  #3c5557;
  --muted:     #6c8284;
  --line:      #e3e7e3;   /* hairline */

  /* Brand */
  --teal:      #12b3b8;   /* kiosk turquoise — primary */
  --teal-deep: #0a7f86;
  --teal-ink:  #06484e;   /* dark teal for panels/footer */
  --pink:      #ef6fa0;   /* kiosk pink */
  --lilac:     #8e7ddb;   /* kiosk purple */
  --coral:     #f59e6b;   /* warm highlight */
  --gold:      #e7a93b;

  /* Functional */
  --focus:     #0a7f86;
  --shadow-sm: 0 1px 2px rgba(8,40,42,.06), 0 2px 8px rgba(8,40,42,.05);
  --shadow-md: 0 8px 24px rgba(8,40,42,.10);
  --shadow-lg: 0 24px 60px rgba(8,40,42,.16);

  /* Type */
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* Rhythm */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;
  --maxw: 1200px;
  --gutter: clamp(18px, 5vw, 56px);
  --nav-h: 74px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); line-height: 1.55; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

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

/* ---------- Brand wordmark device (echoes kiosk signage) ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
}
.wordmark__logo { height: 46px; width: auto; }
.wordmark__txt { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark__sub {
  font-family: var(--display);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 4px;
}

/* Signage chip — black box, spaced caps (their real sign) */
.signbox {
  display: inline-flex; align-items: center;
  background: #14211f;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(18,179,184,.30); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10,127,134,.34); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #0c1f20; transform: translateY(-2px); }

.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }

.btn--pink { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(239,111,160,.30); }
.btn--pink:hover { background: #e2548d; transform: translateY(-2px); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,251,249,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--ink); background: var(--mist); }
.nav__link.is-active { color: var(--teal-deep); background: var(--mist); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  align-items: center; justify-content: center;
}
.nav__burger span { position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 55;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu a.m-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a.m-link .ar { color: var(--teal); }
.mobile-menu .m-actions { margin-top: auto; display: grid; gap: 12px; padding-top: 28px; }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.chip--open .dot { background: #18b566; box-shadow: 0 0 0 3px rgba(24,181,102,.18); }
.chip--rating { background: #fff7e6; border-color: #f3e2b8; color: #7a5a17; }

.star { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-ink);
  color: #cfe7e6;
  padding-block: clamp(48px, 7vw, 80px) 32px;
}
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.site-footer a { color: #cfe7e6; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .wordmark__name, .footer-brand .wordmark__sub { color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 15px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #9fc3c2;
}
.footer-note { font-size: 12.5px; color: #8fb6b5; max-width: 60ch; line-height: 1.5; }

/* ---------- Mobile bottom action bar ---------- */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(8,40,42,.10);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--display); font-weight: 600; font-size: 11.5px;
  color: var(--ink-soft); padding: 6px 4px; border-radius: 12px;
}
.action-bar a svg { width: 21px; height: 21px; color: var(--teal-deep); }
.action-bar a.primary { background: var(--teal); color: #fff; }
.action-bar a.primary svg { color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-s { gap: 10px; } .gap-m { gap: 18px; }
.wrap-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-accent-pink { color: var(--pink); }
.tag-accent-lilac { color: var(--lilac); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta .btn--call-desktop { display: none; }
  .nav__burger { display: inline-flex; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 70px; } /* room for action bar */
  .action-bar { display: grid; }
}
@media (max-width: 600px) {
  .cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  body { font-size: 16px; }
}
