/* ============================================================
   InsureX — brand system derived from CallX (callx.com)
   Colors: black canvas, white type, green→blue gradient accent
   ============================================================ */

:root {
  --bg: #050607;
  --panel: #0e1113;
  --panel-2: #14181b;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f7f8;
  --muted: #9aa3ab;
  --green: #08f491;
  --blue: #02b1e9;
  --grad: linear-gradient(90deg, #08f491 0%, #02b1e9 100%);
  --radius: 18px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #03140d;
  border: none;
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(8, 244, 145, 0.25); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 7, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo svg { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.3rem;
  padding: 4px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
  text-align: center;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
}
.hero::before { background: radial-gradient(circle, var(--blue), transparent 65%); top: -180px; left: -220px; }
.hero::after { background: radial-gradient(circle, var(--green), transparent 65%); bottom: -220px; right: -220px; }

.hero .container { position: relative; z-index: 1; }

.hero p.lede {
  max-width: 640px;
  margin: 22px auto 38px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero.hero-sub { padding: 90px 0; text-align: left; }
.hero.hero-sub p.lede { margin: 22px 0 34px; }
.hero.hero-sub .hero-actions { justify-content: flex-start; }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
section.block.alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(8, 244, 145, 0.35); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(8, 244, 145, 0.08);
  border: 1px solid rgba(8, 244, 145, 0.25);
}
.card .icon svg { width: 22px; height: 22px; }

/* ---------- Steps ---------- */
.step { text-align: center; padding: 34px 22px; }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #03140d;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.trust-strip .item { text-align: center; }
.trust-strip .item strong { display: block; font-size: 1.35rem; }
.trust-strip .item span { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 90px 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px circle at 12% 20%, rgba(2, 177, 233, 0.18), transparent 60%),
    radial-gradient(420px circle at 88% 80%, rgba(8, 244, 145, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band p { max-width: 560px; margin: 16px auto 34px; color: var(--muted); }

/* ---------- Scheduler embed ---------- */
.scheduler-frame {
  width: 100%;
  height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-top: 34px;
}

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card a { color: var(--green); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; padding: 80px 0 100px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 10px; }
.legal h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.notice {
  background: rgba(2, 177, 233, 0.08);
  border: 1px solid rgba(2, 177, 233, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: #030405;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); font-size: 0.95rem; }
.site-footer a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 380px; }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  color: #6b747c;
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    background: #0a0c0d;
    border-bottom: 1px solid var(--border);
    padding: 24px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
}

@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0; }
  section.block { padding: 70px 0; }
}

/* ---------- CallX additions: dropdown nav ---------- */
.nav-item { position: relative; }
.nav-item > span { font-size: 0.95rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.nav-item:hover > span { color: var(--text); }
.dropdown {
  position: absolute; top: 100%; left: -14px; padding-top: 14px; display: none; z-index: 60;
}
.nav-item:hover .dropdown { display: block; }
.dropdown-inner {
  background: #0e1113; border: 1px solid var(--border); border-radius: 14px;
  padding: 10px; min-width: 190px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.dropdown-inner a { padding: 9px 14px; border-radius: 9px; font-size: 0.93rem; color: var(--muted); }
.dropdown-inner a:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* ---------- Article pages ---------- */
.article { max-width: 760px; padding: 70px 0 100px; }
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.article h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.article h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.article h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.article p, .article li { color: #c9d1d7; font-size: 1.05rem; line-height: 1.75; margin-bottom: 18px; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 18px; }
.article img { border-radius: var(--radius); margin: 28px 0; }
.article a { color: var(--green); }
.article blockquote { border-left: 3px solid var(--green); padding-left: 20px; color: var(--muted); margin: 24px 0; }

/* ---------- Article cards on resources ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card img.cover { width: 100%; height: 200px; object-fit: cover; border-radius: 0; margin: 0; }
.post-card .body { padding: 24px; }
.post-card .date { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.post-card h3 { line-height: 1.3; }
.post-card .body a.read { color: var(--green); font-weight: 600; font-size: 0.95rem; }

/* ---------- Video/testimonial embeds ---------- */
.video-frame { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--border); border-radius: var(--radius); background: #000; }
.quote-card p.quote { color: #c9d1d7; }
.quote-card .who { margin-top: 14px; font-weight: 700; }
.quote-card .who span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* ---------- Layout hardening (spacing / overlap fixes) ---------- */
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card > * { max-width: 100%; }
.card p { margin-bottom: 0; }
.card p + p { margin-top: 10px; }
.card .btn { margin-top: auto; }
.card p ~ .btn, .card h3 ~ .btn { margin-top: 20px; }
.card img { margin-top: 18px; }
.card .icon img { margin-top: 0; }
.card.step, .card.step.card { align-items: center; }
.card br { display: none; }              /* kill <br> spacing hacks */
.grid > * { min-width: 0; }              /* stop embeds/images blowing out grid tracks */
.video-frame { display: block; }
.hero-actions { margin-top: 6px; }
.hero-actions .btn { white-space: nowrap; }
section .btn + .btn { margin-left: 0; }  /* gap comes from flex gap, not margins */
.section-head + .grid { margin-top: 8px; }
.cta-band .hero-actions { justify-content: center; }
h2 + p, h3 + p { margin-top: 10px; }
.block .container > .btn { margin-top: 28px; }

/* Responsive tables (legal pages) */
.legal table, .article table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; }
