/* =========================================================
   KELLEY RANAUDO — Shared Stylesheet
   Ice-blue / cyan palette · Fraunces + Inter
========================================================= */

/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
  --ice-100: #E8F2F4;
  --ice-200: #DBE9EC;
  --ice-300: #CDDFE5;
  --cyan-light: #7DC4D6;
  --cyan-deep: #0387A6;
  --ink-deep: #0A2A33;
  --accent: #04A6CC;
  --accent-deep: #0387A6;
  --ink: #1F3A42;
  --ink-soft: #4A6470;
  --ink-mute: #7B8E96;
  --bg: #F4F8F9;

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --max-w: 1140px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* =========================================================
   RESET / BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }

/* =========================================================
   UTILITY CLASSES
========================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cyan-deep);
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 72px 0; } }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; max-width: 600px; }

.pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(125, 196, 214, 0.16);
  color: var(--ink-deep);
  letter-spacing: 0.02em;
  display: inline-block;
}

.section-ice {
  background: linear-gradient(180deg, transparent 0%, var(--ice-100) 25%, var(--ice-100) 75%, transparent 100%);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(4,166,204,0.45); }
.btn-dark { background: var(--ink-deep); color: var(--ice-100); }
.btn-dark:hover { background: #0d3340; color: var(--ice-100); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(10,42,51,0.4); }
.btn-outline { border: 1.5px solid var(--cyan-deep); color: var(--cyan-deep); background: transparent; }
.btn-outline:hover { background: var(--cyan-deep); color: #fff; transform: translateY(-2px); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* =========================================================
   NAV
========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,248,249,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.logo-mark {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
}
.nav-cta:hover {
  background: var(--ink-deep) !important;
  color: var(--bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(10,42,51,0.4);
}
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* =========================================================
   PAGE HERO (all sub-pages share this base)
========================================================= */
.page-hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(4,166,204,0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(125,196,214,0.10), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(31,58,66,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.5;
}
.page-hero .container { position: relative; z-index: 1; }
@media (max-width: 900px) { .page-hero { padding: 56px 0 72px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--cyan-deep);
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--ink-deep);
}
.page-hero h1 .line { display: block; }
.page-hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero-lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 600px;
}

/* Centered hero variant */
.page-hero.centered { text-align: center; }
.page-hero.centered .hero-lede { margin-left: auto; margin-right: auto; }
.page-hero.centered .hero-eyebrow { justify-content: center; }
.page-hero.centered .hero-ctas { justify-content: center; }

/* Portrait frame */
.hero-portrait { position: relative; }
.hero-portrait .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ice-100);
  transform: rotate(0.5deg);
  box-shadow: 0 30px 60px -30px rgba(10,42,51,0.35), 0 10px 20px -10px rgba(10,42,51,0.15);
}
.hero-portrait .frame img,
.hero-portrait .frame svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-portrait .badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--ink-deep);
  color: var(--ice-100);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.3;
  transform: rotate(-3deg);
  max-width: 220px;
  box-shadow: 0 16px 30px -12px rgba(10,42,51,0.4);
}
.hero-portrait .badge strong {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Square / landscape frame variant */
.hero-portrait .frame.square { aspect-ratio: 1/1; transform: rotate(-0.5deg); }
.hero-portrait .frame.landscape { aspect-ratio: 16/10; transform: rotate(0.3deg); }

/* =========================================================
   PROOF BAR
========================================================= */
.proof {
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: var(--ice-100);
}
.proof-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.proof-stat { display: flex; align-items: baseline; gap: 10px; }
.proof-stat .num { font-family: var(--serif); font-size: 1.7rem; color: var(--ink-deep); font-weight: 500; }
.proof-stat .lbl { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.3; max-width: 110px; }
.proof-divider { width: 1px; height: 36px; background: rgba(10,42,51,0.18); }
@media (max-width: 720px) { .proof-divider { display: none; } .proof-inner { justify-content: flex-start; gap: 16px 32px; } }

/* =========================================================
   CARDS (generic reusable card)
========================================================= */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -25px rgba(10,42,51,0.25); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 12px; color: var(--ink-deep); }
.card p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.card-icon { font-size: 2rem; margin-bottom: 16px; }

/* =========================================================
   DARK SECTION
========================================================= */
.section-dark {
  background: var(--ink-deep);
  color: var(--ice-100);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(4,166,204,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(125,196,214,0.18), transparent 60%);
  pointer-events: none;
}
.section-dark .container { position: relative; z-index: 1; }
.section-dark .eyebrow { color: rgba(232,242,244,0.7); }
.section-dark h2 { color: var(--ice-100); }
.section-dark h2 em { color: #7DC4D6; font-style: italic; font-weight: 300; }
.section-dark p { color: rgba(232,242,244,0.78); line-height: 1.7; }
.section-dark .section-head p { color: rgba(232,242,244,0.78); }

/* =========================================================
   FINAL CTA SECTION
========================================================= */
.final { background: var(--bg); text-align: center; }
.final .container { max-width: 740px; }
.final h2 { color: var(--ink-deep); margin-bottom: 18px; }
.final h2 em { font-style: italic; color: var(--accent-deep); font-weight: 300; }
.final p { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--ink-deep);
  color: rgba(232,242,244,0.72);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand .logo { color: var(--ice-100); margin-bottom: 16px; }
.footer-brand p { color: rgba(232,242,244,0.64); line-height: 1.6; max-width: 320px; }
footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ice-100);
  margin-bottom: 18px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a:hover { color: var(--accent); }
.footer-base {
  border-top: 1px solid rgba(232,242,244,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(232,242,244,0.5);
}
.footer-base a:hover { color: var(--ice-100); }

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: rise .9s cubic-bezier(.22,.61,.36,1) forwards; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.32s; }
.reveal-4 { animation-delay: 0.46s; }
.reveal-5 { animation-delay: 0.60s; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
