/* ─────────── FOAMO BASE CSS ───────────
   Shared design system: color tokens, typography, reset, nav, hamburger menu.
   Linked by every page (services, portfolio, privacy, terms) so the brand stays consistent.
   hero.html currently has its own copy inline — will consolidate when porting to Astro. */

:root {
  --paper:         oklch(96.5% 0.008 220);
  --paper-2:       oklch(93%   0.012 220);
  --ink:           oklch(18%   0.015 220);
  --ink-soft:      oklch(40%   0.020 220);
  --ink-faint:     oklch(58%   0.018 220);
  --line:          oklch(85%   0.015 220);
  --foamo-blue:    oklch(54%   0.130 230);
  --foamo-bright:  oklch(64%   0.150 230);
  --foam:          oklch(96%   0.015 225);
  --foam-soft:     oklch(96%   0.015 225 / 0.7);
  --foam-faint:    oklch(96%   0.015 225 / 0.45);
  --cinema-bg:     oklch(15%   0.018 220);
  --cinema-deep:   oklch(10%   0.020 225);

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

  --max:   1240px;
  --pad-x: clamp(22px, 5vw, 64px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
::selection { background: var(--foamo-blue); color: var(--foam); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
:focus-visible {
  outline: 2px solid var(--foamo-bright);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-a11y {
  position: absolute; left: -9999px; top: 12px;
  background: var(--ink); color: var(--foam);
  padding: 10px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; z-index: 9999;
}
.skip-a11y:focus { left: 12px; }

/* ── NAV ── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 80;
  padding: 20px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background .35s var(--ease-out-soft), backdrop-filter .35s, border-color .35s, color .35s, padding .35s var(--ease-out-soft);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.nav.is-scrolled {
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: oklch(40% 0.020 220 / 0.12);
  padding-top: 14px; padding-bottom: 14px;
}
.wordmark {
  display: inline-flex; align-items: center;
  color: inherit;
  transition: opacity .2s var(--ease-out);
  opacity: 0;
  animation: navIn .9s 0.4s var(--ease-out-soft) forwards;
}
.wordmark-img {
  height: 36px; width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(6, 21, 37, 0.18));
}
.wordmark:hover { opacity: 0.85; }
@media (min-width: 720px) {
  .wordmark-img { height: 40px; }
}

.nav-meta {
  display: none;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: inherit; font-weight: 500; opacity: 0;
  animation: navIn .9s 0.55s var(--ease-out-soft) forwards;
}
.nav-meta .pin {
  display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--foamo-bright);
  margin-right: 9px;
}
@media (min-width: 820px) { .nav-meta { display: inline-flex; align-items: center; } }

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
}
.nav-book {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  background: var(--ink); color: var(--foam);
  padding: 12px 24px;
  border-radius: 100px;
  transition: transform .18s var(--ease-out), background .2s, box-shadow .25s var(--ease-out);
  opacity: 0;
  animation: navIn .9s 0.5s var(--ease-out-soft) forwards;
}
@media (hover: hover) and (pointer: fine) {
  .nav-book:hover {
    background: var(--foamo-blue); color: var(--foam);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px oklch(54% 0.130 230 / 0.32);
  }
}
.nav-book:active { transform: scale(0.97); }
@keyframes navIn { to { opacity: 1; } }

/* ── HAMBURGER TOGGLE ── */
.nav-menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: navIn .9s 0.6s var(--ease-out-soft) forwards;
  -webkit-tap-highlight-color: transparent;
}
.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--foamo-bright);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav-menu-toggle .bar {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: top 0.3s cubic-bezier(0.65, 0, 0.35, 1),
              transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-menu-toggle .bar:nth-child(1) { top: calc(50% - 4px); }
.nav-menu-toggle .bar:nth-child(2) { top: calc(50% + 4px); }
.nav-menu-toggle.is-open .bar:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}
.nav-menu-toggle.is-open .bar:nth-child(2) {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}
.nav-menu-toggle-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: oklch(82% 0.090 232);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.nav-menu-toggle.is-open .nav-menu-toggle-label {
  opacity: 1;
  transition-delay: 0.18s;
}

/* ── NAV MENU OVERLAY ── */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: color-mix(in oklch, var(--cinema-deep) 94%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  color: var(--foam);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.5s;
  overflow-y: auto;
}
.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}
.nav-menu-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vh, 140px) var(--pad-x) clamp(40px, 6vh, 80px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 8vh, 100px);
}
.nav-menu-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: oklch(82% 0.090 232);
  margin-bottom: clamp(28px, 4.5vh, 44px);
}
.nav-menu-tag::before {
  content: "";
  width: 32px; height: 1px;
  background: oklch(82% 0.090 232);
}
.nav-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6vh, 10px);
}
.nav-menu-list li {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-menu.is-open .nav-menu-list li { opacity: 1; transform: none; }
.nav-menu.is-open .nav-menu-list li:nth-child(1) { transition-delay: 0.18s; }
.nav-menu.is-open .nav-menu-list li:nth-child(2) { transition-delay: 0.26s; }
.nav-menu.is-open .nav-menu-list li:nth-child(3) { transition-delay: 0.34s; }
.nav-menu.is-open .nav-menu-list li:nth-child(4) { transition-delay: 0.42s; }
.nav-menu-link {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(16px, 2vw, 32px);
  font-family: "Crimson Pro", serif;
  font-weight: 500;
  font-size: clamp(44px, 8.5vw, 108px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--foam);
  text-decoration: none;
  padding: clamp(4px, 0.6vh, 8px) 0;
  transition: color 0.3s var(--ease-out);
}
.nav-menu-link .num {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(82% 0.090 232);
  align-self: flex-start;
  padding-top: clamp(20px, 3vh, 38px);
  min-width: 36px;
}
.nav-menu-link.is-italic { font-style: italic; color: oklch(82% 0.090 232); }
@media (hover: hover) and (pointer: fine) {
  .nav-menu-link:hover { color: oklch(82% 0.090 232); }
}

.nav-menu-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.4vh, 14px);
  margin-bottom: clamp(20px, 3vh, 32px);
}
@media (min-width: 640px) {
  .nav-menu-cta {
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 1.4vw, 18px);
  }
}
.nav-menu-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: clamp(16px, 2vh, 22px) clamp(20px, 2.4vw, 28px);
  border: 1px solid oklch(96% 0.015 225 / 0.22);
  border-radius: 14px;
  background: oklch(96% 0.015 225 / 0.04);
  color: var(--foam);
  text-decoration: none;
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.18s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-menu-cta-btn:hover {
    background: oklch(96% 0.015 225 / 0.10);
    border-color: oklch(96% 0.015 225 / 0.42);
    transform: translateY(-1px);
  }
}
.nav-menu-cta-btn:active { transform: scale(0.985); }
.nav-menu-cta-btn .cta-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: oklch(82% 0.090 232);
}
.nav-menu-cta-btn .cta-detail {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav-menu-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 22px);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: oklch(96% 0.015 225 / 0.7);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}
.nav-menu.is-open .nav-menu-footer { opacity: 1; transform: none; }
.nav-menu-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.nav-menu-footer a:hover { color: oklch(82% 0.090 232); }
.nav-menu-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 28px);
}
.nav-menu-footer-row.legal {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(96% 0.015 225 / 0.45);
}
body.menu-open { overflow: hidden; }

/* When the menu is open, the nav sits ABOVE the dark menu overlay. On light pages
   the nav's default text color is dark — which makes the hamburger X invisible
   against the dark menu. Force the nav to use the light foam color while open.
   Same logic for the Book button: invert from dark-bg/light-text → light-bg/dark-text
   so it stays prominent against the dark menu. */
.nav.is-menu-open {
  color: var(--foam);
}
.nav.is-menu-open.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav.is-menu-open .nav-book {
  background: var(--foam);
  color: var(--cinema-bg);
}

/* ── COMMON EDITORIAL PATTERNS ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--foamo-blue);
}
.section-tag::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
}
.italic-accent {
  font-style: italic;
  color: var(--foamo-blue);
}

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .wordmark, .nav-meta, .nav-book, .nav-menu-toggle { animation: none; opacity: 1; }
  .nav-menu, .nav-menu *, .nav-book, .nav-menu-cta-btn { transition: none !important; }
}

/* ─────────── FOOTER (shared across all pages) ─────────── */
.page-footer {
  background: var(--cinema-deep);
  color: var(--foam);
  padding: clamp(72px, 10vh, 130px) var(--pad-x) clamp(28px, 4vh, 48px);
  position: relative;
  overflow: hidden;
}
.page-footer-watermark {
  position: absolute;
  bottom: clamp(-50px, -5vh, -22px);
  right: clamp(-40px, -3vw, -18px);
  font-family: "Crimson Pro", serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(220px, 32vw, 480px);
  color: oklch(20% 0.020 225 / 0.32);
  pointer-events: none;
  line-height: 0.78;
  letter-spacing: -0.04em;
  user-select: none;
  z-index: 0;
}
.page-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vh, 56px);
  margin-bottom: clamp(48px, 7vh, 80px);
}
@media (min-width: 720px) {
  .page-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(28px, 3vw, 56px);
  }
}
.page-footer-col-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: oklch(82% 0.090 232);
  margin-bottom: clamp(18px, 2.2vh, 24px);
}
.page-footer-col-tag::before {
  content: "";
  width: 24px; height: 1px;
  background: oklch(82% 0.090 232);
}
.page-footer-brand-wordmark {
  display: inline-block;
  margin-bottom: clamp(14px, 1.8vh, 20px);
  text-decoration: none;
}
.page-footer-brand-img {
  width: clamp(200px, 26vw, 280px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(43, 168, 224, 0.25));
}
.page-footer-brand-tagline {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.4;
  color: oklch(96% 0.015 225 / 0.85);
  max-width: 30ch;
  margin: 0 0 clamp(18px, 2.4vh, 26px);
}
.page-footer-brand-desc {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: oklch(96% 0.015 225 / 0.55);
  max-width: 32ch;
  margin: 0;
}
.page-footer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 12px);
}
.page-footer-list a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: oklch(96% 0.015 225 / 0.75);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.page-footer-list a:hover { color: oklch(82% 0.090 232); }
.page-footer-list-cities li {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: oklch(96% 0.015 225 / 0.7);
}
.page-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 24px);
  padding-top: clamp(24px, 3vh, 36px);
  border-top: 1px solid oklch(96% 0.015 225 / 0.10);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(96% 0.015 225 / 0.4);
}
.page-footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.page-footer-legal a:hover { color: oklch(82% 0.090 232); }
.page-footer-legal-right {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}
