/* ============================================================
   INVERSE CORPORATION — LIGHT PROFESSIONAL DESIGN SYSTEM
   Aesthetic: Clean, minimal, corporate-polished
   Fonts: Fraunces (display) + Plus Jakarta Sans (body)
   Color: White base · Navy primary · Slate grays · Teal accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,600;0,700;1,300;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

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

:root {
  /* Color palette */
  --navy:       #0f2545;
  --navy-mid:   #1a3a68;
  --slate:      #3d5475;
  --slate-light:#6b84a3;
  --teal:       #0d7a6e;
  --teal-light: #e6f4f2;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --gray-50:    #f4f5f7;
  --gray-100:   #e8eaee;
  --gray-200:   #d1d5dc;
  --gray-400:   #9aa3b0;
  --gray-600:   #5e6a7a;
  --gray-800:   #2c3340;
  --ink:        #111827;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout */
  --nav-h:    72px;
  --max-w:    1200px;
  --radius:   10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(15,37,69,0.07), 0 1px 2px rgba(15,37,69,0.04);
  --shadow-md: 0 4px 16px rgba(15,37,69,0.08), 0 2px 6px rgba(15,37,69,0.04);
  --shadow-lg: 0 12px 40px rgba(15,37,69,0.10), 0 4px 12px rgba(15,37,69,0.06);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
p  { color: var(--gray-600); line-height: 1.75; }
a  { color: inherit; text-decoration: none; }

.display-italic { font-style: italic; color: var(--teal); }
.label-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.85rem;
}
.label-tag::before { content:''; width:24px; height:2px; background:var(--teal); border-radius:2px; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-nav {
  position: fixed; top:0; left:0; right:0; z-index:900;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center;
  padding: 0 5%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 700; color: var(--navy); letter-spacing:-0.01em;
}
.nav-brand span { color: var(--teal); }
.nav-links { list-style:none; display:flex; align-items:center; gap:0.25rem; margin-left:auto; }
.nav-links > li > a {
  display: block; padding: 8px 14px;
  font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
  border-radius: var(--radius-sm); transition: all 0.18s;
}
.nav-links > li > a:hover { color: var(--navy); background: var(--gray-50); }
.nav-links > li > a.active { color: var(--navy); font-weight: 600; }
.nav-cta-btn {
  margin-left: 0.75rem; padding: 9px 22px !important;
  background: var(--navy) !important; color: var(--white) !important;
  border-radius: var(--radius-sm) !important; font-weight: 600 !important;
  font-size: 0.85rem !important; transition: background 0.2s, transform 0.15s !important;
}
.nav-cta-btn:hover { background: var(--navy-mid) !important; transform: translateY(-1px); }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd > a::after { content:''; display:inline-block; width:0; height:0;
  border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:4px solid currentColor; margin-left:6px; vertical-align:middle; opacity:0.6; }
.dd-menu {
  position:absolute; top:calc(100% + 8px); left:0;
  background:var(--white); border:1px solid var(--gray-100);
  border-radius:var(--radius); padding:6px;
  min-width:220px; box-shadow:var(--shadow-lg);
  opacity:0; pointer-events:none; transform:translateY(-6px);
  transition: all 0.18s;
}
.nav-dd:hover .dd-menu { opacity:1; pointer-events:auto; transform:translateY(0); }
.dd-menu a {
  display:block; padding:9px 14px; font-size:0.855rem;
  color:var(--gray-600); border-radius:var(--radius-sm); transition:all 0.15s;
}
.dd-menu a:hover { color:var(--navy); background:var(--gray-50); }
.dd-menu a.dd-active { color:var(--teal); font-weight:500; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 26px; border-radius:var(--radius-sm);
  font-family:var(--font-body); font-weight:600; font-size:0.875rem;
  cursor:pointer; border:none; text-decoration:none; transition:all 0.2s;
}
.btn-navy { background:var(--navy); color:var(--white); }
.btn-navy:hover { background:var(--navy-mid); transform:translateY(-2px); box-shadow:0 6px 20px rgba(15,37,69,0.22); }
.btn-teal { background:var(--teal); color:var(--white); }
.btn-teal:hover { background:#0a6258; transform:translateY(-2px); box-shadow:0 6px 20px rgba(13,122,110,0.25); }
.btn-outline { background:transparent; color:var(--navy); border:1.5px solid var(--gray-200); }
.btn-outline:hover { border-color:var(--navy); background:var(--gray-50); }
.btn-ghost { background:transparent; color:var(--teal); padding-left:0; }
.btn-ghost:hover { gap:14px; }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4.5rem) 5% 4.5rem;
  background: var(--navy);
  position:relative; overflow:hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(13,122,110,0.18) 0%, transparent 65%);
}
.page-hero-dot-grid {
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, black 0%, transparent 75%);
}
.page-hero-inner { position:relative; max-width:680px; }
.page-hero h1 { color:var(--white); }
.page-hero p { color:rgba(255,255,255,0.7); font-size:1.05rem; max-width:520px; margin-top:1rem; }
.page-hero-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.72rem; font-weight:600; letter-spacing:0.12em;
  text-transform:uppercase; color:rgba(13,122,110,1);
  background:rgba(13,122,110,0.12); border:1px solid rgba(13,122,110,0.25);
  padding:5px 14px; border-radius:20px; margin-bottom:1.25rem;
}

/* ── SECTION LAYOUT ───────────────────────────────────────── */
section { padding: 5rem 5%; }
.container { max-width:var(--max-w); margin:0 auto; }
.section-intro { max-width:600px; margin-bottom:3rem; }
.section-intro.centered { margin-left:auto; margin-right:auto; text-align:center; }
.section-intro.centered .label-tag { justify-content:center; }
.divider-line { width:48px; height:3px; background:var(--teal); border-radius:2px; margin:1rem 0 1.5rem; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background:var(--white); border:1px solid var(--gray-100);
  border-radius:var(--radius-lg); padding:2rem;
  box-shadow:var(--shadow-sm); transition:all 0.25s;
}
.card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:var(--gray-200); }
.card-teal-top { border-top:3px solid var(--teal); }

/* ── GRIDS ────────────────────────────────────────────────── */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }

/* ── STAT ─────────────────────────────────────────────────── */
.stat-num { font-family:var(--font-display); font-size:2.8rem; font-weight:600; color:var(--navy); line-height:1; }
.stat-unit { color:var(--teal); }
.stat-lbl  { font-size:0.82rem; color:var(--gray-600); margin-top:0.3rem; }

/* ── BADGE / TAG ──────────────────────────────────────────── */
.badge {
  display:inline-block; padding:4px 12px;
  background:var(--teal-light); color:var(--teal);
  border-radius:20px; font-size:0.75rem; font-weight:600;
}
.badge-navy { background:rgba(15,37,69,0.08); color:var(--navy); }

/* ── SUB-NAV ──────────────────────────────────────────────── */
.sub-nav {
  background:var(--white); border-bottom:1px solid var(--gray-100);
  padding:0 5%; position:sticky; top:var(--nav-h); z-index:800;
  overflow-x:auto;
}
.sub-nav-inner { display:flex; gap:0; }
.sub-nav a {
  padding:14px 20px; font-size:0.84rem; font-weight:500; color:var(--gray-600);
  border-bottom:2px solid transparent; white-space:nowrap; display:block; transition:all 0.18s;
}
.sub-nav a:hover { color:var(--navy); }
.sub-nav a.active { color:var(--teal); border-bottom-color:var(--teal); font-weight:600; }

/* ── FORM ─────────────────────────────────────────────────── */
.form-field { margin-bottom:1rem; }
.form-field label { display:block; font-size:0.82rem; font-weight:600; color:var(--gray-800); margin-bottom:6px; }
.form-field input, .form-field textarea, .form-field select {
  width:100%; padding:11px 15px;
  background:var(--white); border:1.5px solid var(--gray-200);
  border-radius:var(--radius-sm); color:var(--ink);
  font-family:var(--font-body); font-size:0.92rem;
  transition:border-color 0.18s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color:var(--gray-400); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(13,122,110,0.1);
}
.form-field textarea { resize:vertical; min-height:110px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4.5rem 5% 2rem;
}
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem; }
.footer-brand-name { font-family:var(--font-display); font-size:1.35rem; font-weight:700; color:var(--white); margin-bottom:0.75rem; }
.footer-brand-name span { color:var(--teal); font-style:italic; }
.footer-brand p { font-size:0.875rem; line-height:1.7; }
.footer-col h5 {
  font-size:0.7rem; font-weight:700; letter-spacing:0.12em;
  text-transform:uppercase; color:rgba(255,255,255,0.4); margin-bottom:1.25rem;
}
.footer-col a { display:block; font-size:0.875rem; color:rgba(255,255,255,0.65); margin-bottom:0.65rem; transition:color 0.18s; }
.footer-col a:hover { color:var(--white); }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  padding-top:2rem; border-top:1px solid rgba(255,255,255,0.1);
  font-size:0.8rem; color:rgba(255,255,255,0.35);
}
.footer-bottom a { color:rgba(255,255,255,0.45); margin-left:1.5rem; transition:color 0.18s; }
.footer-bottom a:hover { color:rgba(255,255,255,0.85); }

/* ── UTILITIES ────────────────────────────────────────────── */
.bg-off   { background:var(--off-white); }
.bg-gray  { background:var(--gray-50); }
.bg-navy  { background:var(--navy); }
.border-t { border-top:1px solid var(--gray-100); }
.border-b { border-bottom:1px solid var(--gray-100); }
.text-teal { color:var(--teal); }
.text-navy { color:var(--navy); }
.text-muted { color:var(--gray-600); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width:1024px) {
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .grid-3 { grid-template-columns:1fr 1fr; }
  .grid-2 { grid-template-columns:1fr; }
  .nav-links { display:none; }
  .nav-hamburger { display:flex; }
  .form-row { grid-template-columns:1fr; }
}
@media (max-width:540px) {
  .grid-3, .grid-4 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:2rem; }
  section { padding:3.5rem 5%; }
}
