/* Shared stylesheet for SEO content pages (service, state, educational, case studies)
   Loaded with cache-control immutable on the assets path so it's downloaded once
   per visitor and reused across all 60+ SEO pages. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-mid: #1d1d1f;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #86868b;
  --line: #e5e5ea;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-dark: #003e7e;
  --green: #1f8a5b;
  --warm: #f5a623;
  --display: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --pad-x: 20px;
  --max: 720px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--text);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  height: 56px;
}
.nav-inner {
  max-width: var(--max); height: 100%; margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; gap: 0;
  position: relative;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 26px; width: auto; display: block; }

/* Inline desktop links — sit next to logo */
.nav-links {
  display: none; gap: 26px; align-items: center;
}
.nav-links a {
  color: var(--ink-2); font-family: var(--display); font-weight: 600; font-size: 14px;
  text-decoration: none; letter-spacing: -0.01em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

/* CTA pushed to the far right */
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  background: var(--blue); color: #fff !important; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  text-decoration: none;
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-hover); text-decoration: none; }

/* Hamburger button (mobile only) */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
  padding: 0;
}
.nav-toggle:hover { background: #ebebef; }
.nav-toggle svg { width: 18px; height: 18px; }

/* Mobile menu panel — slides down from top */
.nav-mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  z-index: 49;
  animation: navmobile-in 0.2s ease;
}
@keyframes navmobile-in {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.nav-mobile a {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  padding: 14px 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--blue); }
body.mobile-menu-open .nav-mobile { display: flex; }
body.mobile-menu-open { overflow: hidden; }

@media (min-width: 720px) {
  .nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ====== HERO ====== */
.hero {
  padding: 56px var(--pad-x) 48px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
  border-bottom: 1px solid var(--line);
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,113,227,0.08); color: var(--blue);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: -0.005em;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 6.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 auto 14px;
  max-width: 22ch;
  text-wrap: balance;
}
.hero h1 .it {
  font-style: italic;
  background: linear-gradient(180deg, #2997ff 0%, var(--blue-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-family: var(--display);
  font-size: 17px; line-height: 1.45;
  color: var(--ink-2);
  margin: 0 auto 22px;
  font-weight: 500;
  max-width: 38ch;
  text-wrap: balance;
}
.hero-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px;
  background: var(--blue); color: #fff;
  border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 20px -8px rgba(0,113,227,0.6);
  transition: background 0.18s, transform 0.12s;
}
.hero-cta:hover { background: var(--blue-hover); text-decoration: none; }
.hero-cta:active { transform: scale(0.98); }
.hero-cta::after { content: "→"; }
.hero-micro {
  margin-top: 14px;
  font-size: 13px; color: var(--ink-3);
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-micro .check { color: var(--green); font-weight: 700; }

/* ====== ARTICLE BODY ====== */
.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad-x);
}
.content > h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 36px 0 14px;
  text-wrap: balance;
}
.content > h2:first-child { margin-top: 0; }
.content > h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
  line-height: 1.25;
}
.content > p {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}
.content > p b, .content > p strong { font-weight: 600; color: var(--ink); }
.content > ul, .content > ol {
  margin: 0 0 18px 22px;
  padding-left: 0;
}
.content > ul li, .content > ol li {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}
.content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--bg-soft);
  padding: 16px 22px;
  margin: 22px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  border-radius: 0 12px 12px 0;
}
.content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
  font-style: normal;
}

/* Stat callouts inside articles */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.stat-cell {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 16px 18px;
}
.stat-cell .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.stat-cell .lbl {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}

/* ====== MID-PAGE CTA BAND ====== */
.cta-band {
  background: linear-gradient(135deg, #0071e3 0%, #003e7e 100%);
  color: #fff;
  text-align: center;
  padding: 48px var(--pad-x);
  margin: 48px 0;
  border-radius: 18px;
}
.cta-band h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 4.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #fff;
  text-wrap: balance;
}
.cta-band p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 22px;
  font-size: 16px;
  text-wrap: balance;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .hero-cta {
  background: #fff;
  color: var(--blue);
}
.cta-band .hero-cta:hover { background: #f5f5f7; }

/* ====== FAQ ====== */
.faq-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x) 48px;
}
.faq-section h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 24px;
}
.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
}
.faq-item summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  min-height: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; color: var(--ink-3); font-weight: 300;
  flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 10px;
}

/* ====== INTERNAL LINKS / RELATED ====== */
.related {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad-x) 56px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-family: var(--display);
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.related ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.related a {
  display: block; padding: 10px 14px;
  background: var(--bg-soft); border-radius: 10px;
  color: var(--ink); font-size: 15px;
  text-decoration: none;
}
.related a:hover { background: #ebebef; text-decoration: none; }

/* ====== FINAL CTA ====== */
.final {
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 64px var(--pad-x);
}
.final h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 6.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 auto 14px;
  max-width: 18ch;
  text-wrap: balance;
}
.final h2 .it {
  font-style: italic;
  background: linear-gradient(180deg, #2997ff 0%, var(--blue-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final p {
  color: #a1a1a6;
  max-width: 48ch;
  margin: 0 auto 24px;
  font-size: 16px;
  text-wrap: balance;
}
.final .hero-micro { color: #6e6e73; margin-top: 18px; }

/* ====== FOOTER ====== */
footer {
  padding: 24px var(--pad-x) 32px;
  background: #fff;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
footer .legal-links {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 8px; flex-wrap: wrap;
}
footer .legal-links a { color: var(--ink-2); text-decoration: underline; padding: 6px 4px; }
footer .legal-links .sep { color: var(--ink-3); opacity: 0.5; }

/* ====== TYPE / RESPONSIVE ====== */
@media (min-width: 720px) {
  :root { --pad-x: 32px; }
  .content { padding: 80px var(--pad-x); }
  .hero { padding: 88px var(--pad-x) 64px; }
}
@media (min-width: 1024px) {
  :root { --pad-x: 48px; --max: 800px; }
}
