/**
 * Shared marketing chrome — nav, footer, glass CTAs.
 * Used by index.html (inline today) and static destination guides.
 */

/* Marketing / editorial pages are designed for light mode only.
   Pin tokens here so OS dark mode does not flip theme.css variables. */
body.marketing-page,
body.dest-page {
  color-scheme: light;

  --cream: rgba(245, 243, 236, 1);
  --cream2: rgba(227, 221, 202, 1);
  --cream3: rgba(250, 249, 245, 1);
  --sheen-lavender: #e6e9ff;
  --sheen-rose: #ffe8ef;
  --ink: rgba(25, 25, 25, 1);
  --ink2: rgba(61, 61, 61, 1);
  --muted: rgba(102, 102, 102, 1);
  --muted-l: rgba(163, 163, 163, 1);
  --green: rgba(25, 97, 62, 1);
  --green-lift: rgba(60, 205, 135, 1);
  --green-l: rgba(231, 249, 240, 1);
  --navy: rgba(25, 31, 97, 1);
  --navy-d: rgba(42, 52, 162, 1);
  --navy-l: rgba(223, 225, 247, 1);
  --navy-ll: rgba(240, 241, 252, 1);
  --cafe: rgba(128, 102, 60, 1);
  --purple: rgba(125, 107, 242, 1);
  --rule: rgba(25, 25, 25, 0.09);
  --surface-elevated: #ffffff;

  --btn-radius: 20px;
  --forest: #1c4535;
  --moss: #5a8b6b;
  --terra: #c8623a;
  --ios-glass-bg: rgba(255, 255, 255, 0.72);
  --ios-glass-bg-hover: rgba(255, 255, 255, 0.88);
  --ios-glass-border: rgba(255, 255, 255, 0.92);
  --ios-glass-blur: blur(40px) saturate(180%);
  --ios-glass-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
  --ios-glass-inset:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);

  background-color: var(--cream3);
  background-image:
    radial-gradient(ellipse 90% 55% at 0% 0%, var(--sheen-lavender) 0%, transparent 60%),
    radial-gradient(ellipse 90% 55% at 100% 0%, var(--sheen-rose) 0%, transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink2);
  font-family: var(--sans);
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body.dest-page {
  padding-top: 56px;
  /* Marketing / discover forest palette (index-landing parity) */
  --cafe: #2b5c3a;
  --cafe-light: color-mix(in srgb, var(--cream3) 90%, var(--cafe) 10%);
  --navy: #2b5c3a;
  --navy-d: #1e4228;
  --navy-l: #d6e8dc;
  --navy-ll: #ebf4ee;
  --app-cream: rgba(251, 247, 236, 0.88);
}

body.dest-page > nav .nav-back {
  position: absolute;
  left: max(
    clamp(1.25rem, 4vw, 3rem),
    calc((100% - 1280px) / 2 + clamp(1.25rem, 4vw, 3rem))
  );
  top: 50%;
  transform: translateY(-50%);
}

/* ── Nav ── */
body.marketing-page > nav,
body.dest-page > nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: transparent;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: none;
  box-shadow: none;
  transition: background 0.3s ease;
}

body.marketing-page > nav.scrolled,
body.dest-page > nav.scrolled {
  background: color-mix(in srgb, var(--cream3) 80%, transparent);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo img {
  border-radius: 7px;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-back {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--ink);
}

.nav-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ios-glass-bg);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ios-glass-border);
  border-radius: 16px;
  backdrop-filter: var(--ios-glass-blur);
  -webkit-backdrop-filter: var(--ios-glass-blur);
  box-shadow: var(--ios-glass-shadow), var(--ios-glass-inset);
  transition: background 160ms ease, box-shadow 160ms ease, transform 120ms ease, color 160ms ease;
  cursor: pointer;
}

.btn-primary--lg {
  padding: 14px 28px;
  font-size: 0.9rem;
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--ios-glass-bg-hover);
  color: var(--green);
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    0 2px 8px rgba(28, 69, 53, 0.06),
    var(--ios-glass-inset);
}

.nav-cta:active,
.btn-primary:active {
  transform: scale(0.97);
}

.sec-lbl {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Footer (compact variant for inner pages) ── */
.site-footer {
  position: relative;
  overflow: clip;
  background: #fdfcfa;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem)
    clamp(2.5rem, 5vw, 3.5rem);
  color: var(--ink);
  border-top: 1px solid var(--rule);
}

.site-footer--compact {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-footer__logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.site-footer__tagline {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 14rem;
}

.site-footer__cols {
  position: static;
  background: none;
  backdrop-filter: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-footer__col-title {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(113, 113, 113, 0.95);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__list a {
  font-size: 0.8125rem;
  color: rgba(25, 25, 25, 0.78);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__list a:hover {
  color: var(--ink);
}

.site-footer__divider {
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.35rem, 3vw, 2rem);
  height: 1px;
  background: rgba(25, 25, 25, 0.08);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(25, 25, 25, 0.55);
  transition: color 0.15s ease, background 0.15s ease;
}

.site-footer__social a:hover {
  color: var(--ink);
  background: rgba(25, 25, 25, 0.05);
}

.site-footer__social svg {
  width: 18px;
  height: 18px;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.dest-page > nav {
    padding: 10px 16px;
  }

  body.dest-page > nav .nav-back {
    display: none;
  }

  .nav-right {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}
