/* ============================================================
   Medical Malpractice landing page — modernized design
   ------------------------------------------------------------
   Dark navy + gold. The hero form card OVERFLOWS the hero:
   it is pulled down past the hero's bottom edge (negative
   bottom margin) so it overlaps the section beneath it, and
   the form frame itself scrolls internally (overflow: auto)
   when the embedded form runs tall.

   Two things control the overlap — change them together:
     .hero            padding-bottom  (room inside the hero)
     .hero-form       margin-bottom   (how far it hangs over)
     .section--after-hero  padding-top (clearance for the card)
   ============================================================ */

:root {
  --navy: #0d2138;
  --navy-2: #143252;
  --navy-3: #1b4066;
  --gold: #c9a227;
  --gold-light: #e8c95a;
  --ink: #1a2433;
  --muted: #5b6775;
  --bg: #f5f7fa;
  --line: #e2e8f0;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Top bar ---------- */

.topbar { background: var(--navy); color: #cdd7e3; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.topbar .dot { margin: 0 8px; color: var(--gold); }
.topbar-phone { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }

/* ---------- Header ---------- */

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.logo { text-decoration: none; color: var(--navy); }
.logo-text { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 24px; letter-spacing: 0.01em; }
.logo-amp { color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--small { background: var(--navy); color: #fff; padding: 10px 22px; font-size: 14px; }
.btn--small:hover { background: var(--navy-2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--cta { background: var(--gold); color: var(--navy); padding: 15px 34px; font-size: 16px; box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35); }
.btn--cta:hover { background: var(--gold-light); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #fff;
  padding: 64px 0 150px; /* extra bottom room for the overlapping form card */
  position: relative;
  overflow: visible;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.hero-eyebrow {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero-sub { color: #cdd7e3; font-size: 18px; margin: 0 0 26px; max-width: 540px; }

.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #eef2f7;
}

/* ---------- OVERFLOW FORM CARD ----------
   The card hangs 110px below the hero (negative margin) so it
   overlaps the section underneath, and the frame scrolls
   internally (overflow: auto) if the embed runs tall. */

.hero-form {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(4, 20, 38, 0.45);
  padding: 28px 28px 22px;
  position: relative;
  z-index: 2;
  margin-bottom: -110px; /* <-- the overflow: card extends past the hero */
}

.form-heading { font-family: "Fraunces", Georgia, serif; font-size: 26px; margin: 0 0 4px; color: var(--navy); }
.form-sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }

.form-frame {
  height: 520px;
  max-height: 72vh;
  overflow: auto; /* <-- auto overflow: tall embeds scroll inside the card */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.form-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
}

.form-consent { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.form-privacy { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }

/* First section under the hero needs clearance for the card */
.section--after-hero { padding-top: 170px; }

.section-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.section-kicker--light { color: var(--gold-light); }

.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--navy);
  max-width: 820px;
}
.section-title--light { color: #fff; }
.section-title .accent { color: var(--gold); }

.lead { font-size: 19px; color: #334155; max-width: 820px; }

.section--dark { background: var(--navy); color: #dbe4ee; }
.section--dark .lead { color: #cdd7e3; }

.section--gold { background: #fdf8e3; text-align: center; }
.section--gold .section-title, .section--gold .lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px;
}
.card-title { color: #fff; font-size: 19px; margin: 0 0 8px; }
.card p { margin: 0; color: #cdd7e3; font-size: 15px; }

/* ---------- Qualifier list ---------- */

.qualifier-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; max-width: 760px; }
.qualifier-list li { padding-left: 34px; position: relative; font-size: 17px; }
.qualifier-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #cdd7e3; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.footer-heading { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer-text { margin: 0 0 12px; font-size: 15px; }
.footer-phone { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.footer-nav a { display: block; color: #cdd7e3; text-decoration: none; margin-bottom: 8px; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 22px; font-size: 13px; color: #9fb0c3; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; font-size: 13px; color: #9fb0c3; }
.footer-legal a { color: #9fb0c3; text-decoration: none; }
.footer-legal .dot { margin: 0 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 48px 0 110px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 38px; }
  .hero-form { margin-bottom: -70px; }
  .section--after-hero { padding-top: 120px; }
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; }
}
