/* Faragalla Law — PPC landing page system
   Mobile-first. System font stack only (no webfont 404 risk, no layout shift).
   Contrast: cyan #00BFFF carries navy-950 text (7.7:1, AAA). White text only on navy. */

:root {
  --navy-950: #071d33;
  --navy-900: #0b2a4a;
  --navy-800: #103a63;
  --navy-700: #15497c;
  --cyan-500: #00bfff;
  --cyan-600: #00a9e2;
  --cyan-050: #e8f8ff;
  --gold-500: #f5a623;
  --ink: #16232f;
  --muted: #51606f;
  --line: #dde6ee;
  --bg-alt: #f4f8fb;
  --white: #ffffff;
  --ok: #1e7d43;
  --err: #b42318;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(7, 29, 51, 0.12);
  --header-h: 60px;
  --stickybar-h: 64px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  /* Room for the sticky call bar on mobile so it never covers content (incl. iPhone safe area) */
  padding-bottom: calc(var(--stickybar-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

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

a { color: var(--navy-700); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan-600);
  outline-offset: 2px;
}

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

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Header: brand always visible on mobile (review fix #1) ---------- */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 100; /* sane z-index — not 2147483647 */
  background: var(--navy-900);
  color: var(--white);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(7, 29, 51, 0.25);
}

.lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.lp-header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.lp-header__name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-header__tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #bcd6ea;
  white-space: nowrap;
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lp-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 6px;
  border-radius: 8px;
  white-space: nowrap;
}

.lp-header__phone svg { flex-shrink: 0; }

.lp-header__phone-num { display: none; }

@media (min-width: 560px) {
  .lp-header__phone-num { display: inline; }
}

/* Header CTA hides only on very narrow screens (brand + phone still fit);
   the sticky bottom bar always carries both actions on mobile. */
.lp-header__cta.btn { display: none; }

@media (min-width: 400px) {
  .lp-header__cta.btn { display: inline-flex; }
}

/* ---------- Buttons: cyan bg + navy-950 text = 7.7:1 contrast (review fix #23) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 15px 26px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--cyan-500);
  color: var(--navy-950);
}

.btn--primary:hover { background: var(--cyan-600); }

.btn--navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn--navy:hover { background: var(--navy-700); }

.btn--block { width: 100%; }

.btn--sm { font-size: 15px; padding: 10px 18px; border-radius: 8px; }

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

.hero {
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(0, 191, 255, 0.16), transparent 60%),
    linear-gradient(168deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  padding: 34px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); gap: 48px; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--cyan-500);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 850;
  color: var(--white); /* fully opaque on controlled gradient — no video, no variable contrast */
}

.hero__sub {
  margin: 0 0 18px;
  font-size: clamp(16px, 2.4vw, 18px);
  color: #d9e6f2;
  max-width: 56ch;
}

.hero__bullets {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero__bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.hero__bullets svg { flex-shrink: 0; margin-top: 3px; }

.hero__cta-wrap { display: grid; gap: 10px; }

@media (min-width: 560px) {
  .hero__cta-wrap { display: flex; align-items: center; gap: 14px; }
}

.hero__call {
  color: #d9e6f2;
  font-size: 15px;
}

.hero__call a { color: var(--white); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Trust strip — proof above the fold (review fix: zero trust signals) */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  color: #d9e6f2;
}

.hero__trust strong { color: var(--white); font-weight: 800; }

.hero__trust a { color: inherit; }

.hero__trust .stars { color: var(--gold-500); letter-spacing: 1px; }

/* ---------- Form card: flows in normal document order — no top offset ever (review fix #2) ---------- */

.form-card {
  position: static; /* the old page broke mobile with top:200px; this card lives in-flow */
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
}

@media (min-width: 900px) {
  .form-card { padding: 28px 26px 24px; }
}

.form-card h2, .form-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.25;
  color: var(--navy-900);
}

.form-card__sub {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--muted);
}

.lp-form { display: grid; gap: 12px; }

.lp-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.lp-form input,
.lp-form select,
.lp-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #b9c7d4;
  border-radius: 8px;
  padding: 12px 12px;
}

.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus {
  border-color: var(--cyan-600);
}

.lp-form select { appearance: auto; }

.lp-form .field-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.lp-form .btn { margin-top: 4px; }

.lp-form__microcopy {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 2px 0 0;
}

.lp-form__microcopy a { color: var(--navy-700); }

.lp-form__status {
  display: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
}

.lp-form__status--error {
  display: block;
  background: #fdecea;
  color: var(--err);
}

.lp-form__status--sending {
  display: block;
  background: var(--cyan-050);
  color: var(--navy-800);
}

/* Honeypot */
.lp-form .hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

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

.section { padding: 48px 0; }

@media (min-width: 900px) { .section { padding: 64px 0; } }

.section--alt { background: var(--bg-alt); }

.section--navy {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: var(--white);
}

.section__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin: 0 0 8px;
}

.section--navy .section__kicker { color: var(--cyan-500); }

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  font-weight: 850;
  max-width: 30ch;
}

.section--navy h2 { color: var(--white); }

.section__lead {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 62ch;
  font-size: 17px;
}

.section--navy .section__lead { color: #d9e6f2; }

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 22px 0;
}

.stats > div { text-align: center; padding: 6px 4px; }

.stats .stats__value {
  font-size: clamp(24px, 4.6vw, 34px);
  font-weight: 850;
  color: var(--navy-900);
  line-height: 1.1;
}

.stats .stats__label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Card grids */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.section--navy .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  line-height: 1.3;
  color: var(--navy-900);
}

.section--navy .card h3 { color: var(--white); }

.card p { margin: 0; font-size: 15px; color: var(--muted); }

.section--navy .card p { color: #cfdeeb; }

/* Process steps */
.steps { display: grid; gap: 14px; counter-reset: step; }

@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
}

.step h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--navy-900); }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Fit / not-fit columns (qualification — review fix #11) */
.fit {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) { .fit { grid-template-columns: 1.2fr 1fr; } }

.fit__col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.fit__col--no { background: var(--bg-alt); }

.fit__col h3 { margin: 0 0 12px; font-size: 17px; color: var(--navy-900); }

.fit__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.fit__col li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }

.fit__col--no li { color: var(--muted); }

.fit__col li svg { flex-shrink: 0; margin-top: 3px; }

/* Testimonials */
.quotes { display: grid; gap: 16px; }

@media (min-width: 820px) { .quotes { grid-template-columns: 1fr 1fr; } }

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin: 0;
}

.quote .stars { color: var(--gold-500); font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }

.quote blockquote { margin: 0 0 10px; font-size: 15.5px; color: var(--ink); }

.quote figcaption { font-size: 13.5px; color: var(--muted); font-weight: 600; }

.quotes__source {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Attorney */
.attorney {
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) { .attorney { grid-template-columns: 280px 1fr; gap: 40px; } }

.attorney__photo {
  background: var(--bg-alt);
  border: 1px dashed #a9bccd;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 16px;
}

.attorney__photo img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; }

.attorney h3 { margin: 0 0 2px; font-size: 22px; color: var(--navy-900); }

.attorney__role { margin: 0 0 14px; color: var(--cyan-600); font-weight: 700; font-size: 14.5px; }

.attorney p { margin: 0 0 12px; color: var(--ink); font-size: 15.5px; max-width: 62ch; }

.attorney__license { font-size: 13.5px; color: var(--muted); }

/* FAQ — native accordions, zero JS needed */
.faq { display: grid; gap: 10px; max-width: 820px; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy-900);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 600;
  color: var(--cyan-600);
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "–"; }

.faq details > div {
  padding: 0 18px 16px;
  font-size: 15px;
  color: var(--muted);
}

.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Final CTA section */
.final {
  text-align: left;
}

.final .form-card { max-width: 560px; margin-top: 26px; }

.final__call { margin-top: 18px; font-size: 15px; color: #d9e6f2; }
.final__call a { color: var(--white); font-weight: 800; }

/* ---------- Footer: minimal exit points (review fix #29) ---------- */

.lp-footer {
  background: var(--navy-950);
  color: #9db4c8;
  padding: 30px 0 40px;
  font-size: 13px;
  line-height: 1.6;
}

.lp-footer a { color: #c8dcec; }

.lp-footer__firm { color: var(--white); font-weight: 800; font-size: 15px; margin-bottom: 4px; }

.lp-footer__row { margin: 10px 0 0; }

.lp-footer__disclaimer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #7e97ac;
  max-width: 90ch;
}

/* ---------- Sticky mobile call bar (review fix #27): visible immediately, safe-area aware ---------- */

.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 29, 51, 0.97);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 900px) { .stickybar { display: none; } }

.stickybar .btn { padding: 12px 10px; font-size: 15.5px; border-radius: 9px; }

.stickybar .btn--call {
  background: var(--white);
  color: var(--navy-950);
}

/* ---------- Thank-you page ---------- */

.ty-wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px 64px; }

.ty-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e5f7ec;
  color: var(--ok);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.ty-wrap h1 { color: var(--navy-900); font-size: clamp(26px, 5vw, 34px); margin: 0 0 10px; }

.ty-wrap .ty-lead { font-size: 17px; color: var(--ink); }

.ty-steps { margin: 26px 0; display: grid; gap: 12px; }

.ty-steps .card h3 { display: flex; gap: 10px; align-items: baseline; }

.ty-callout {
  background: var(--cyan-050);
  border: 1px solid #bde6f8;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 26px 0;
}

.ty-callout strong { color: var(--navy-900); }

/* ---------- Hub index ---------- */

.hub-list { display: grid; gap: 14px; margin: 26px 0; }

@media (min-width: 760px) { .hub-list { grid-template-columns: 1fr 1fr; } }

.hub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
}

.hub-card:hover { border-color: var(--cyan-600); }

.hub-card h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 16.5px; }

.hub-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.hub-card .hub-card__slug { font-size: 12.5px; color: var(--cyan-600); font-weight: 700; }

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
