/* ==========================================================================
   LeadAds — shared stylesheet
   ========================================================================== */

:root {
  --navy: #1B3A57;
  --navy-mid: #2F6B9A;
  --navy-pale: #EAF1F7;
  --red: #E5342B;
  --red-dark: #B8271F;
  --teal: #1FA398;
  --ink: #1B2530;
  --muted: #5B6675;
  --line: #E3E8EE;
  --paper: #FFFFFF;
  --bg: #F7F9FB;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------- Header: floating pill nav ---------------- */
.site-header {
  position: relative;
  z-index: 50;
}
.topbar {
  background: var(--navy);
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-social { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-social a { color: rgba(255,255,255,0.7); display: flex; }
.topbar-social a:hover { color: #fff; }
@media (max-width: 560px) {
  .topbar-tag { display: none; }
  .topbar .container { justify-content: flex-end; }
}
.nav-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: padding 0.2s ease;
}
.site-header.is-scrolled .nav-band { padding: 8px 0; box-shadow: 0 8px 24px rgba(20,40,60,0.18); }

.nav-pill {
  background: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(20,40,60,0.12);
}

.logo-mark { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-inline-end: 10px; }
.logo-img { height: 46px; width: auto; display: block; }

.main-nav { flex: 1; min-width: 0; }
.main-nav > ul {
  list-style: none; display: flex; align-items: center; margin: 0; padding: 0;
  gap: 2px; flex-wrap: nowrap;
}
.main-nav > ul > li { position: relative; }
.has-dropdown { position: relative; }
.main-nav a, .main-nav .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
}
.main-nav li.current > a,
.main-nav a:hover,
.main-nav .dropdown-toggle:hover,
.main-nav li.dropdown-open > .dropdown-toggle {
  background: var(--navy-pale);
  color: var(--navy);
}
.dropdown-toggle svg { transition: transform 0.15s ease; color: var(--muted); }
.has-dropdown.dropdown-open .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown-menu {
  list-style: none;
  margin: 0; padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(20,40,60,0.16);
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10;
}
.has-dropdown.dropdown-open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  border-radius: 8px; width: 100%; padding: 10px 12px; font-size: 14px;
}

.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-login {
  padding: 10px 14px; color: var(--muted); text-decoration: none;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.nav-login:hover { color: var(--navy); }
.dropdown-menu-right { left: auto; right: 0; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  background: linear-gradient(120deg, var(--navy-mid), var(--teal));
  color: #fff;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.nav-cta svg { color: rgba(255,255,255,0.85); }
.nav-cta:hover, .nav-cta-dropdown.dropdown-open .nav-cta { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,163,152,0.3); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .logo-img { height: 38px; }
  .nav-pill { flex-wrap: wrap; border-radius: 20px; padding: 12px 16px; }
  .nav-toggle {
    display: block; margin-inline-start: auto; background: none; border: none;
    color: var(--navy); font-size: 22px; padding: 6px 10px; cursor: pointer;
  }
  .main-nav { flex-basis: 100%; order: 3; display: none; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; }
  .main-nav a, .main-nav .dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none; margin-inline-start: 12px; min-width: 0;
  }
  .has-dropdown.dropdown-open .dropdown-menu { display: block; }
  .nav-actions { order: 2; margin-inline-start: auto; }
  .nav-login { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(27,58,87,0.88) 0%, rgba(47,107,154,0.82) 100%),
    url('/newsite/assets/img/hero-bg.png');
  background-size: cover;
  background-position: center 40%;
  color: #fff;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 22px;
  max-width: 640px;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p {
  font-size: 18px;
  max-width: 480px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.trust-strip {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-strip span {
  font-size: 13.5px; color: rgba(255,255,255,0.75);
  display: flex; align-items: center; gap: 8px;
}
.trust-strip span::before { content: "✓"; color: var(--teal); font-weight: 700; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline-navy { border-color: var(--navy-mid); color: var(--navy-mid); }
.btn-outline-navy:hover { background: var(--navy-mid); color: #fff; }

/* ---------------- Sections ---------------- */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  margin: 0 0 14px;
}
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------------- Segment cards ---------------- */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.segment-card {
  background: var(--navy);
  border-radius: 10px;
  padding: 30px 26px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
  overflow: hidden;
}
.segment-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.06));
}
.segment-card:hover { transform: translateY(-5px); background: var(--navy-mid); box-shadow: 0 18px 34px rgba(30,66,98,0.28); }
.segment-num { font-family: var(--font-display); font-size: 13px; color: var(--teal); font-weight: 600; }
.segment-card h3 { font-size: 20px; font-weight: 700; margin: 0; }
.segment-card p { font-size: 14px; color: rgba(255,255,255,0.82); margin: 0; line-height: 1.5; }
.segment-arrow { font-size: 14px; font-weight: 700; color: #fff; margin-top: auto; }

/* ---------------- Feature list ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-item { display: flex; gap: 16px; }
.feature-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px;
  background: var(--navy-pale); display: flex; align-items: center; justify-content: center;
  color: var(--navy-mid); font-size: 20px;
}
.feature-item h3 { font-size: 16.5px; margin: 0 0 6px; color: var(--navy); }
.feature-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------------- Benefit list (page content) ---------------- */
.benefits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.benefits-list li {
  display: flex; gap: 14px; padding: 18px 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.benefits-list .b-icon { color: var(--red); font-size: 18px; flex-shrink: 0; }
.benefits-list strong { color: var(--navy); }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  background:
    linear-gradient(120deg, rgba(27,58,87,0.90) 0%, rgba(47,107,154,0.85) 100%),
    url('/newsite/assets/img/hero-bg.png');
  background-size: cover;
  background-position: center 40%;
  color: #fff;
  padding: 64px 0 72px;
}
.page-hero .breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin: 0 0 14px; }
.page-hero p { font-size: 16.5px; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
}
.cta-band h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0 0 26px; }

/* ---------------- News cards ---------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(30,66,98,0.14); }
.news-card-img { position: relative; aspect-ratio: 16/9; background: var(--navy-pale); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 3px;
}
.news-card-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.news-card-title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 10px; line-height: 1.35; }
.news-card-excerpt { font-size: 13.5px; color: var(--muted); flex: 1; margin: 0 0 14px; }
.news-card-link { font-size: 13.5px; font-weight: 700; color: var(--red); }

.news-state { text-align: center; padding: 40px 0; color: var(--muted); }
.news-skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, #eef1f4 37%, var(--bg) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 10px;
  height: 320px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.pagination button {
  padding: 10px 18px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer;
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination button:not(:disabled):hover { border-color: var(--navy-mid); color: var(--navy-mid); }
.pagination .page-info { align-self: center; font-size: 14px; color: var(--muted); }

/* ---------------- Sticky header shadow on scroll ---------------- */
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(20,40,60,0.08); }

/* ---------------- Scroll reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- How it works ---------------- */
.how-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 44px;
}
.how-tabs button {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.15s ease;
}
.how-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute; top: 26px; left: 12%; right: 12%; height: 1px;
  background: var(--line); z-index: 0;
}
.how-step { position: relative; z-index: 1; text-align: center; }
.how-step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--navy-mid); color: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  margin: 0 auto 18px;
}
.how-step h3 { font-size: 16.5px; color: var(--navy); margin: 0 0 8px; }
.how-step p { font-size: 14px; color: var(--muted); margin: 0; max-width: 240px; margin-inline: auto; }

.how-panel { display: none; }
.how-panel.active { display: block; }

@media (max-width: 720px) {
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
  .how-steps::before { display: none; }
}

/* ---------------- Legal document pages ---------------- */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h2 {
  font-family: var(--font-display); color: var(--navy); font-size: 20px;
  font-weight: 600; margin: 40px 0 12px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { font-size: 15px; color: var(--ink); line-height: 1.75; margin: 0 0 16px; }
.legal-doc ul { margin: 0 0 16px; padding-inline-start: 22px; }
.legal-doc li { font-size: 15px; color: var(--ink); line-height: 1.75; margin-bottom: 6px; }
.legal-doc a { color: var(--navy-mid); }
.legal-doc strong { color: var(--navy); }
.legal-doc .legal-caps { font-size: 13.5px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 56px 0 26px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.footer-bottom .social a { color: rgba(255,255,255,0.6); margin-inline-start: 14px; text-decoration: none; }
.footer-bottom .social a:hover { color: #fff; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 80px; }
}
