:root {
  --navy: #143b64;
  --blue: #1f77d4;
  --blue-mid: #1f81e8;
  --blue-link: #1f81e8;
  --sky: #eaf3fc;
  --sky-2: #d4e6f8;
  --ink: #0f172a;
  --muted: #5b6b82;
  --line: #dce7f3;
  --bg: #ffffff;
  --bg-alt: #f5faff;
  --accent: #1f81e8;
  --radius: 10px;
  --max: 1180px;
  --gutter: 24px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 59, 100, 0.06), 0 1px 3px rgba(20, 59, 100, 0.04);
  --shadow-md: 0 6px 24px rgba(20, 59, 100, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-family: var(--sans); font-size: 14px;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--blue); text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { margin: 0 auto; }

/* Hero */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 7vw, 80px);
  background:
    radial-gradient(1200px 400px at 20% 0%, var(--sky) 0%, transparent 60%),
    radial-gradient(900px 300px at 90% 10%, var(--sky-2) 0%, transparent 60%);
}
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 52ch; font-size: 1.2rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-link);
  margin-bottom: 12px;
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #c7d6ea; }
.card h3 { margin-top: 0; }

/* Blog cards */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card a { color: inherit; }
.post-card a:hover { text-decoration: none; }
.post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sky), var(--sky-2));
  position: relative;
  overflow: hidden;
}
.post-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(31, 129, 232, 0.22), transparent 60%);
}
.post-card .post-body { padding: 4px 22px 22px; }
.post-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.post-card .meta {
  font-size: 0.82rem; color: var(--muted);
  display: flex; gap: 10px; align-items: center; margin-bottom: 6px;
}
.post-card .meta .tag {
  background: var(--sky); color: var(--blue);
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
  text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em;
}

/* Featured post */
.post-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin-bottom: 40px;
}
.post-feature .post-thumb { aspect-ratio: 4 / 3; }
.post-feature .post-body { padding: 32px; }
.post-feature h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
}

/* Forms */
.form {
  max-width: 640px;
  margin: 0 auto;
}
.form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 18px 0 6px;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 129, 232, 0.18);
}
.form textarea { resize: vertical; min-height: 140px; }
.form .btn { margin-top: 24px; }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 16px;
}

/* Calendly CTA */
.calendly-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--sky), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.calendly-cta h2 { font-size: 1.4rem; }
@media (max-width: 640px) {
  .calendly-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .calendly-cta .btn { width: 100%; text-align: center; }
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-info p { color: var(--muted); margin-bottom: 20px; }
.contact-info a { color: var(--navy); font-weight: 500; }

/* Article (individual post) */
.article { padding: clamp(48px, 7vw, 88px) 0; }
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
}
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.8em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em 1.2em; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 12px 24px;
  border-left: 3px solid var(--accent);
  color: var(--navy);
  font-style: italic;
  background: var(--bg-alt);
}
.article-header { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.article-header .meta { justify-content: center; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cfd9e8;
  padding: 64px 0 28px;
  margin-top: 40px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.site-footer a { color: #cfd9e8; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-grid p { font-size: 0.95rem; color: #a9b8cd; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8ea0bc;
  flex-wrap: wrap;
  gap: 12px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e2f2; max-width: 56ch; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--sky); }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .post-thumb { aspect-ratio: 16 / 9; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0 24px; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .nav-cta { margin: 8px 24px 16px; text-align: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
}
