/* =========================================================
   Ford Wet Belt Awareness — Global Stylesheet
   ========================================================= */

:root {
  --ford-blue:    #003499;
  --ford-blue-lt: #1a4ec5;
  --danger:       #c0392b;
  --warning:      #e67e22;
  --warning-lt:   #fff3e0;
  --success:      #27ae60;
  --bg:           #f5f7fa;
  --surface:      #ffffff;
  --border:       #dde1e7;
  --text:         #1a1a2e;
  --muted:        #6b7280;
  --radius:       10px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.14);
  --max-w:        1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--ford-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── UTILITY ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-sponsored { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.badge-warning  { background: #fde8e8; color: #c0392b; }
.badge-info     { background: #e0ecff; color: #003499; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ── HEADER / NAV ─────────────────────────────────────────── */
header {
  background: var(--ford-blue);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 700; color: #fff; }
.logo svg { flex-shrink: 0; }
.logo span em { color: #ffcc00; font-style: normal; }

nav ul { list-style: none; display: flex; gap: .2rem; flex-wrap: wrap; }
nav ul li a {
  color: rgba(255,255,255,.85);
  padding: .45rem .75rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
nav ul li a:hover,
nav ul li a.active { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }

.nav-cta {
  background: var(--danger) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #a93226 !important; }

/* burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ── ALERT BANNER ─────────────────────────────────────────── */
.alert-banner {
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 600;
}
.alert-banner a { color: #ffcc00; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #003499 60%, #1a4ec5 100%);
  color: #fff;
  padding: 5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 .highlight { color: #ffcc00; }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #ffcc00; display: block; }
.hero-stat .lbl { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.btn {
  display: inline-block; padding: .8rem 1.8rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; }
.btn-primary { background: var(--danger); color: #fff; }
.btn-secondary { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline { background: transparent; color: var(--ford-blue); border: 2px solid var(--ford-blue); }
.btn-outline:hover { background: var(--ford-blue); color: #fff; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── AD SLOTS ─────────────────────────────────────────────── */
.ad-wrap  { padding: .75rem 0; text-align: center; }
.ad-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }

/* Placeholder shown while real ad hasn't loaded yet */
.ad-slot {
  background: #f5f7fa;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #c0c8d4; font-size: .75rem;
  margin: 0 auto;
}
.ad-slot-leaderboard { min-height: 90px;  width: 100%; max-width: 728px; }
.ad-slot-rectangle   { min-height: 250px; max-width: 336px; }
.ad-slot-sidebar     { min-height: 250px; width: 100%; }

/* Once real AdSense ins tag is injected the placeholder is gone automatically */

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: #fff; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  margin-bottom: .5rem; color: var(--text);
}
.section-sub { color: var(--muted); margin-bottom: 2.5rem; max-width: 600px; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.5rem; }
.card-icon-danger  { background: #fde8e8; }
.card-icon-warning { background: #fff3e0; }
.card-icon-info    { background: #e0ecff; }
.card-icon-success { background: #e8f8ef; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.card p  { font-size: .9rem; color: var(--muted); }

/* ── REPORT STORIES ──────────────────────────────────────── */
.story-card {
  background: var(--surface); border-radius: var(--radius);
  border-left: 4px solid var(--danger); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 1rem;
}
.story-card .story-meta { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.story-card .story-cost { font-weight: 700; color: var(--danger); font-size: 1.1rem; }
.story-card .story-model { font-weight: 600; color: var(--ford-blue); }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ford-blue);
  box-shadow: 0 0 0 3px rgba(0,52,153,.1);
}
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit { background: var(--ford-blue); color: #fff; width: 100%; padding: .9rem; font-size: 1rem; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; transition: background .15s; }
.btn-submit:hover { background: var(--ford-blue-lt); }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-q {
  width: 100%; background: var(--surface); border: none; padding: 1.1rem 1.25rem;
  text-align: left; font-size: .98rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background .15s;
}
.faq-q:hover { background: #f0f4ff; }
.faq-q .arrow { flex-shrink: 0; transition: transform .25s; font-size: 1.1rem; color: var(--muted); }
.faq-q.open .arrow { transform: rotate(180deg); color: var(--ford-blue); }
.faq-a { display: none; padding: 1rem 1.25rem 1.25rem; background: #f9fafb; font-size: .93rem; line-height: 1.7; color: var(--text); }
.faq-a.open { display: block; }
.faq-a a { color: var(--ford-blue); font-weight: 600; }

/* ── SPECIALISTS ──────────────────────────────────────────── */
.search-bar { display: flex; gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 200px; }
.search-bar select { min-width: 160px; }
.search-bar .btn { white-space: nowrap; background: var(--ford-blue); color: #fff; padding: .65rem 1.4rem; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; }
.specialist-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow); display: flex; gap: 1.25rem;
  align-items: flex-start; margin-bottom: 1rem;
  transition: box-shadow .2s;
}
.specialist-card:hover { box-shadow: var(--shadow-hover); }
.specialist-card.sponsored { border-color: #ffc107; background: #fffdf0; }
.specialist-logo {
  width: 60px; height: 60px; border-radius: 10px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  flex-shrink: 0; border: 1px solid var(--border);
}
.specialist-info { flex: 1; }
.specialist-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.specialist-info .location { color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.specialist-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.specialist-tags .tag { background: #e8edf5; color: #444; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; }
.specialist-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; flex-shrink: 0; }
.specialist-actions a { font-size: .85rem; font-weight: 600; }

/* ── AFFILIATE STRIP ─────────────────────────────────────── */
.affiliate-strip { background: #f0f4ff; border: 1px solid #c5d4f5; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.affiliate-strip h4 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; color: var(--ford-blue); }
.affiliate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.affiliate-item {
  background: #fff; border-radius: 8px; padding: 1rem; border: 1px solid var(--border);
  text-align: center; transition: box-shadow .15s;
}
.affiliate-item:hover { box-shadow: var(--shadow); }
.affiliate-item .af-icon { font-size: 2rem; margin-bottom: .5rem; }
.affiliate-item .af-title { font-weight: 600; font-size: .85rem; margin-bottom: .25rem; }
.affiliate-item .af-price { color: var(--danger); font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.affiliate-item a { display: block; background: #ff9900; color: #fff; border-radius: 6px; padding: .4rem .8rem; font-size: .8rem; font-weight: 700; }
.affiliate-item a:hover { background: #e68900; text-decoration: none; }
.affiliate-note { font-size: .75rem; color: var(--muted); margin-top: .75rem; }

/* ── STAT BOXES ──────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-box { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--danger); }
.stat-box .lbl { font-size: .82rem; color: var(--muted); margin-top: .25rem; }

/* ── STEPS ───────────────────────────────────────────────── */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.25rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  counter-increment: step;
  min-width: 36px; height: 36px; border-radius: 50%;
  background: var(--ford-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; flex-shrink: 0;
}
.step-body h4 { font-weight: 700; margin-bottom: .25rem; }
.step-body p { font-size: .9rem; color: var(--muted); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #0a1628; color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  font-size: .875rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
footer h4 { color: #fff; font-weight: 700; margin-bottom: .75rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .5rem; }
footer ul li a { color: rgba(255,255,255,.65); }
footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-disclaimer { font-size: .75rem; color: rgba(255,255,255,.45); max-width: 600px; }
.donate-btn { background: var(--warning); color: #fff; padding: .55rem 1.2rem; border-radius: 8px; font-weight: 700; font-size: .9rem; }
.donate-btn:hover { background: #d35400; text-decoration: none; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0a1628, #003499);
  color: #fff; padding: 3rem 1.25rem 2.5rem; text-align: center;
}
.page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }
.page-hero p { opacity: .85; max-width: 580px; margin: 0 auto; }

/* ── COOKIE CONSENT BANNER ───────────────────────────────── */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: #0a1628; color: rgba(255,255,255,.9);
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
#cookieBanner.cb-show { transform: translateY(0); }
.cb-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.cb-text { flex: 1; min-width: 260px; font-size: .875rem; line-height: 1.6; }
.cb-text strong { display: block; margin-bottom: .25rem; font-size: .95rem; }
.cb-text p { margin: 0; opacity: .85; }
.cb-text a { color: #ffcc00; }
.cb-actions { display: flex; gap: .75rem; flex-shrink: 0; flex-wrap: wrap; }
.cb-btn {
  padding: .6rem 1.25rem; border-radius: 8px; border: none;
  font-size: .875rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: opacity .15s;
}
.cb-btn:hover { opacity: .85; }
.cb-accept { background: var(--ford-blue); color: #fff; }
.cb-reject  { background: transparent; color: rgba(255,255,255,.75); border: 1.5px solid rgba(255,255,255,.3); }
.cb-reject:hover { color: #fff; border-color: rgba(255,255,255,.6); opacity: 1; }
@media (max-width: 520px) {
  .cb-actions { width: 100%; }
  .cb-btn { flex: 1; text-align: center; }
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--success); color: #fff;
  padding: 1rem 1.5rem; border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  font-weight: 600; z-index: 9999;
  transform: translateY(100px); opacity: 0;
  transition: transform .3s, opacity .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .specialist-card { flex-direction: column; }
  .specialist-actions { flex-direction: row; align-items: center; }
  nav ul { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--ford-blue); padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
  nav ul.open { display: flex; }
  .burger { display: block; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2.5rem; }
}
