/* ── VOLATRIO SHARED STYLES — LAPIS LAZULI EDITION ───────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Blues */
  --navy:       #0A1628;
  --navy-mid:   #0E1E38;
  --navy-card:  #122144;
  --lapis:      #1F4E9A;
  --lapis-mid:  #2563B8;
  --sky:        #4DA3D4;
  --sky-light:  #7EC8E3;
  --ice:        #C8E6F5;

  /* Accents */
  --gold:       #C9A84C;
  --gold-light: #E2C06A;
  --gold-dim:   rgba(201,168,76,.3);

  /* Neutrals */
  --white:      #FFFFFF;
  --cloud:      #EEF4FB;
  --mist:       #B0C8E0;
  --slate:      #6B8FAF;
  --slate-dim:  #3D5A78;

  /* Borders */
  --border:     rgba(77,163,212,.15);
  --border-mid: rgba(77,163,212,.28);

  /* Typography */
  --ff-serif:   'Cormorant Garamond', Georgia, serif;
  --ff-sans:    'Cormorant Garamond', Georgia, serif;
  --ease:       cubic-bezier(.25,.8,.25,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy);
  color: var(--cloud);
  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(77,163,212,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,163,212,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

section, nav, footer { position: relative; z-index: 1; }

::selection { background: var(--lapis); color: var(--white); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}

nav.scrolled {
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: .1em;
  color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: .7rem;
  transition: color .2s;
}

.nav-logo svg { color: var(--sky); flex-shrink: 0; }
.nav-logo:hover { color: var(--sky-light); }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-sans);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  border: 1px solid var(--lapis-mid) !important;
  background: rgba(37,99,184,.15) !important;
  color: var(--sky-light) !important;
  padding: .5rem 1.4rem !important;
  letter-spacing: .1em !important;
  transition: background .2s, border-color .2s, color .2s !important;
}

.nav-cta:hover {
  background: rgba(37,99,184,.35) !important;
  border-color: var(--sky) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--mist); transition: .3s;
}
.hamburger:hover span { background: var(--white); }

.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(10,22,40,.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 2rem 5vw; gap: 1.5rem; z-index: 998;
}

.mobile-menu a {
  font-family: var(--ff-sans); font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mist); text-decoration: none;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu.open { display: flex; }

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-family: var(--ff-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.25rem;
  display: block;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--white);
}

.section-title em { font-style: italic; color: var(--sky-light); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--lapis);
  color: var(--white);
  font-family: var(--ff-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .95rem 2.25rem;
  text-decoration: none;
  border: 1px solid var(--lapis-mid);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-primary:hover {
  background: var(--lapis-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(31,78,154,.4);
}

.btn-ghost {
  display: inline-flex; align-items: center;
  font-family: var(--ff-sans);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid rgba(77,163,212,.3);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.btn-ghost:hover { color: var(--sky-light); border-color: var(--sky); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 0 100px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 60%, rgba(31,78,154,.2));
}

.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(77,163,212,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,163,212,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(31,78,154,.25) 0%, transparent 65%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 2; max-width: 800px; }

.page-hero-inner .hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.page-hero-inner .hero-eyebrow-line { width: 40px; height: 1px; background: var(--sky); }
.page-hero-inner .hero-eyebrow span {
  font-family: var(--ff-sans); font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sky);
}

.page-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.page-title em { font-style: italic; color: var(--sky-light); }

.page-sub {
  font-family: var(--ff-sans);
  font-size: 1rem;
  color: var(--mist);
  max-width: 520px;
  line-height: 1.85;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--navy-mid);
  padding: 5rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo { margin-bottom: 1rem; }

.footer-brand p {
  font-family: var(--ff-sans);
  font-size: .86rem;
  color: var(--slate);
  line-height: 1.8;
  max-width: 280px;
  margin-top: .75rem;
}

.footer-col h4 {
  font-family: var(--ff-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .8rem; }

.footer-col ul li a {
  font-family: var(--ff-sans);
  font-size: .86rem;
  color: var(--slate);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover { color: var(--sky-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.footer-bottom p {
  font-family: var(--ff-sans);
  font-size: .76rem;
  color: var(--slate-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── BLUE PALETTE ACCENTS & OVERRIDES ── */

/* Lapis gradient hero backgrounds */
.hero-bg-gradient {
  background: linear-gradient(160deg, var(--navy) 55%, rgba(31,78,154,.25));
}

/* PTI Band colors — blue edition */
.band-trusted .band-score,
.band-trusted .band-name   { color: #5FB878; }

.band-stable .band-score,
.band-stable .band-name    { color: var(--sky-light); }

.band-eroding .band-score,
.band-eroding .band-name   { color: var(--gold-light); }

.band-critical .band-score,
.band-critical .band-name  { color: #E05555; }

/* Friction level scale — blue edition */
.fl-1 .fl-score, .fl-1 .fl-label { color: #5FB878; }
.fl-2 .fl-score, .fl-2 .fl-label { color: #8DC87A; }
.fl-3 .fl-score, .fl-3 .fl-label { color: var(--sky-light); }
.fl-4 .fl-score, .fl-4 .fl-label { color: var(--gold-light); }
.fl-5 .fl-score, .fl-5 .fl-label { color: #E05555; }

/* Churn risk colors */
.cc-low .cc-risk     { color: #5FB878; }
.cc-medium .cc-risk  { color: var(--sky-light); }
.cc-high .cc-risk    { color: var(--gold-light); }
.cc-critical .cc-risk { color: #E05555; }

/* Card hover glow — lapis tint */
.service-card:hover,
.dim-card:hover,
.pti-band:hover,
.promise-card:hover {
  box-shadow: 0 0 0 1px rgba(77,163,212,.2), 0 16px 48px rgba(10,22,40,.6);
}

/* Horizontal rule */
.divider {
  height: 1px;
  background: var(--border);
}

/* Sky blue text link */
a { color: var(--sky); }
a:hover { color: var(--sky-light); }

/* Gold accent bar — used on featured cards */
.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}

/* Cockpit-style data label */
.data-label {
  font-family: var(--ff-sans);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Instrument panel card */
.instrument-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--lapis);
  padding: 2rem;
  transition: border-color .3s, transform .3s;
}

.instrument-card:hover {
  border-top-color: var(--sky);
  transform: translateY(-3px);
}

/* Scale pip — blue */
.scale-pip.active { background: var(--sky); }

/* Report bar fills */
.rr-fill { background: var(--lapis-mid); }
.rr-fill-low { background: #E05555; }

/* Lapis CTA strip */
.lapis-strip {
  background: linear-gradient(135deg, var(--lapis) 0%, var(--navy-card) 100%);
  border: 1px solid var(--lapis-mid);
}


/* ── FULL-SERIF REFINEMENTS ── */

/* Base size bump — serif reads ~10% smaller than sans at same px */
body { font-size: 18px; }

/* Nav links — serif needs more size and less tight tracking */
.nav-links a {
  font-size: .92rem;
  letter-spacing: .05em;
  font-weight: 500;
}

.nav-cta {
  font-size: .88rem !important;
  letter-spacing: .07em !important;
}

/* Eyebrows — serif at tiny tracking needs slight size increase */
.section-eyebrow {
  font-size: .78rem;
  letter-spacing: .15em;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  font-size: .9rem;
  letter-spacing: .08em;
}

.btn-ghost {
  font-size: .9rem;
  letter-spacing: .05em;
}

/* Body text — serif reads beautifully at these sizes */
p, li, td { line-height: 1.85; }

/* Small caps labels — Cormorant has beautiful small caps */
.section-eyebrow,
.nav-links a,
.btn-primary,
.btn-ghost,
.footer-col h4,
.hero-eyebrow span,
.page-hero-inner .hero-eyebrow span {
  font-variant: small-caps;
}

/* Ensure form inputs stay readable */
input, select, textarea {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.05rem !important;
}

/* Mobile menu */
.mobile-menu a {
  font-size: 1rem;
  letter-spacing: .08em;
}

