/* ============================================================
   Scam Spotter HQ — Phase 1 stylesheet
   Mobile-first · senior-friendly: 18px base type, high contrast,
   48px minimum tap targets, system fonts only (fast, no webfonts).
   Palette: deep navy + warm amber on white.
   ============================================================ */

:root {
  --navy: #14325c;
  --navy-dark: #0b2140;
  --amber: #f5a00b;
  --amber-hover: #d98706;
  --ink: #1b1e24;
  --muted: #4a5568;
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --border: #d9e1ec;
  --radius: 12px;
}

* { box-sizing: border-box; }

html {
  font-size: 18px; /* 1rem = 18px — senior-friendly minimum */
  -webkit-text-size-adjust: 100%;
}

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

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { line-height: 1.25; color: var(--navy-dark); }
h1 { font-size: 2.1rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-hover);
  margin: 0 0 0.5rem;
}
.hero .eyebrow { color: var(--amber); }

a { color: var(--navy); }
a:hover { color: var(--amber-hover); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-dark); color: #fff;
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 2px solid var(--border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--navy-dark); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem;
}
.main-nav a {
  display: inline-block;
  padding: 0.7rem 1rem;      /* 48px minimum tap target */
  min-height: 48px;
  text-decoration: none; font-weight: 600;
  color: var(--navy); border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy-dark); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--navy-dark); color: #fff; padding: 3.5rem 0; }
.hero h1 { color: #fff; font-size: 2.4rem; max-width: 20ch; }
.hero .lede { color: #d7e0ee; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* ---------- Buttons (48px minimum tap target) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font-size: 1.05rem; font-weight: 700; font-family: inherit;
  text-decoration: none; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--navy-dark); }
.btn-primary:hover { background: var(--amber-hover); color: var(--navy-dark); }
.btn-secondary { background: transparent; color: var(--navy-dark); border-color: var(--navy); }
.btn-secondary:hover { background: var(--bg-soft); }
.hero .btn-secondary { color: #fff; border-color: #fff; }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.card {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.cta-band { background: var(--navy); color: #fff; padding: 3rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d7e0ee; max-width: 40rem; margin-left: auto; margin-right: auto; }

/* ---------- Alert articles ---------- */
.alert {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 2rem; background: #fff;
}
.alert h2 { margin-top: 0; }
.alert-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.rule-box {
  background: #fff8e6; border-left: 5px solid var(--amber);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.rule-box strong { color: var(--navy-dark); }
.sources {
  font-size: 0.95rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1.5rem;
}

.video-placeholder {
  border: 2px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-soft); padding: 2.5rem 1.5rem;
  text-align: center; color: var(--muted); margin: 1.5rem 0;
}
/* When a real video ships, swap the placeholder div for this responsive wrapper: */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.5rem 0; }
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 0; border-radius: var(--radius);
}

/* ---------- Forms ---------- */
.lead-form, .contact-form { max-width: 34rem; margin: 2rem 0; }
label { display: block; font-weight: 700; margin-bottom: 1.25rem; color: var(--navy-dark); }
input[type="text"],
input[type="email"],
textarea {
  display: block; width: 100%; min-height: 48px;
  margin-top: 0.4rem; padding: 0.7rem 0.9rem;
  font-size: 1rem; font-family: inherit;
  border: 2px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus {
  border-color: var(--amber);
  outline: 3px solid rgba(245, 160, 11, 0.35); outline-offset: 1px;
}
.form-note { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding: 0.6rem 0 0.6rem 2.2rem; position: relative; }
.check-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0.55rem;
  width: 1.6rem; height: 1.6rem;
  background: var(--navy); color: #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #d7e0ee; padding: 2.5rem 0; margin-top: 3rem; }
.footer-trust { font-size: 1rem; max-width: 44rem; }
.footer-meta { font-size: 0.9rem; color: #9fb0c9; margin-bottom: 0; }

/* ---------- Wider screens ---------- */
@media (min-width: 860px) {
  h1 { font-size: 2.6rem; }
  .hero h1 { font-size: 3rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
