/* ─── DAYLIGHT SHARED STYLES ───────────────────────────────────
   Loaded by every marketing page. Contains brand tokens, reset,
   nav, footer, utilities, buttons, and fade animations.
   Page-specific CSS remains inline in each HTML file.
──────────────────────────────────────────────────────────────── */

/* ─── BRAND TOKENS ─────────────────────────────────────────── */
:root {
  --deep-night:  #0B0C10;
  --meridian:    #C09A3E;
  --solstice:    #D4AE56;
  --first-light: #F4EDD8;
  --haze:        #F9F8F5;
  --dusk:        #7A7570;
  --dusk-line:   rgba(122,117,112,0.18);

  --font-ui:   'Plus Jakarta Sans', sans-serif;
  --font-body: 'Lora', Georgia, serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --nav-h: 72px;
  --max-w: 1160px;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body {
  background: var(--haze);
  color: var(--deep-night);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

/* Constantly-visible grey scrollbar on desktop only.
   Mobile keeps the native auto-hide behaviour.
   - overflow-y: scroll forces the gutter to always exist (no layout shift, never disappears)
   - solid colours, no background-clip tricks (they render invisibly on Windows Chrome) */
@media (min-width: 768px) and (pointer: fine) {
  html {
    overflow-y: scroll;
    scrollbar-width: auto;
    scrollbar-color: #888 #e8e8e8;
  }
  ::-webkit-scrollbar { width: 14px; height: 14px; }
  ::-webkit-scrollbar-track { background: #e8e8e8; }
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 7px;
    border: 2px solid #e8e8e8;
  }
  ::-webkit-scrollbar-thumb:hover { background: #666; }
  ::-webkit-scrollbar-thumb:active { background: #555; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── UTILITIES ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meridian);
}
.label--light { color: var(--solstice); }
.label--muted { color: var(--dusk); }

/* ─── LOGO ───────────────────────────────────────────────────── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark svg { width: 28px; height: 28px; }
.logo-wordmark {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--deep-night);
}
.logo-mark--light .logo-wordmark { color: #fff; }

/* ─── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(249,248,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dusk-line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(249,248,245,0.97);
  box-shadow: 0 1px 24px rgba(11,12,16,0.06);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--dusk);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--deep-night); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--deep-night);
  color: var(--solstice);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--deep-night);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: transparent;
  color: var(--deep-night);
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--solstice);
  color: var(--deep-night);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: rgba(255,255,255,0.85); }
.btn-ghost-arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.2s;
}
.btn-ghost:hover .btn-ghost-arrow { width: 26px; }
.btn-ghost-arrow::after {
  content: '';
  position: absolute; right: -1px; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ─── SECTION TYPOGRAPHY ─────────────────────────────────────── */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
}
.section-title {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep-night);
}
.section-title em { font-style: normal; color: var(--meridian); }
.section-title--light { color: #fff; }
.section-title--light em { color: var(--solstice); }
.section-body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--dusk);
  line-height: 1.8;
  padding-top: 8px;
}
.section-body p + p { margin-top: 16px; }
.section-body strong { color: var(--deep-night); font-weight: 500; }
.section-body--light { color: rgba(255,255,255,0.45); }
.section-body--light strong { color: rgba(255,255,255,0.75); }

/* ─── FADE ANIMATIONS ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }
.fade-up-delay-6 { transition-delay: 0.6s; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
#footer {
  background: var(--deep-night);
  padding: 72px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.32);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 360px;
}
.footer-links-group {
  display: flex;
  gap: 64px;
}
.footer-link-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 20px;
}
.footer-link-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-link-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  transition: color 0.2s;
}
.footer-link-col a:hover { color: rgba(255,255,255,0.72); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-legal {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  line-height: 1.7;
}
.footer-compliance-badges,
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212,174,86,0.32);
  border: 1px solid rgba(212,174,86,0.12);
  border-radius: 3px;
  padding: 4px 9px;
}

/* ─── FOOTER LEGAL LINK (Scope of Services anchor) ───────────── */
/* Used inside .footer-legal on marketing pages to link the
   compressed Scope of Services disclosure back to terms.html §2. */
.footer-legal a {
  color: rgba(212,174,86,0.6);
  text-decoration: none;
  border-bottom: 1px dotted rgba(212,174,86,0.35);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--solstice); }

/* ─── HAMBURGER BUTTON ───────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep-night);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger span + span { margin-top: 5px; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU OVERLAY ────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(249,248,245,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  padding: 32px 40px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--deep-night);
  border-bottom: 1px solid var(--dusk-line);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--meridian); }
.mobile-menu a.active { color: var(--meridian); }
.mobile-menu .mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--deep-night);
  color: var(--solstice);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  margin-top: 24px;
  text-align: center;
}

/* ─── SHARED RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; flex-direction: column; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-group { gap: 32px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .mobile-menu { padding: 24px 20px; }
  .footer-links-group { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .section-title { font-size: clamp(24px, 7vw, 32px); }
  .section-body { font-size: 15px; }
  .btn-primary { padding: 14px 24px; font-size: 12px; }
}
