/* ============================================================
   PHOENIX INJURY CLAIMS — SHARED STYLESHEET
   ============================================================ */

/* Fonts loaded async via <link> tags in HTML */

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

:root {
  --navy:      #0B1829;
  --navy-mid:  #162338;
  --slate:     #1E3050;
  --gold:      #C8922A;
  --gold-lt:   #E5B04A;
  --gold-pale: #F5E6C8;
  --cream:     #F7F3EC;
  --white:     #FFFFFF;
  --grey:      #64748B;
  --grey-lt:   #94A3B8;
  --border:    #E2E8F0;
  --red:       #DC2626;
  --green:     #16A34A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.20);

  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --max-w:      1120px;
  --section-py: 88px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,146,42,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-lg {
  font-size: 1.05rem;
  padding: 17px 40px;
}

/* ── TOP ALERT BAR ── */
.alert-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.alert-bar a {
  color: var(--gold-lt);
  text-decoration: none;
  font-weight: 700;
  margin-left: 6px;
}
.alert-bar a:hover { text-decoration: underline; }

/* ── NAVIGATION ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.1;
}
.nav-logo-text span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active { font-weight: 600; }
.nav-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-phone:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 28px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── SECTION LABELS ── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--gold-pale);
  border-radius: 100px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-title.light { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 620px;
  line-height: 1.75;
}
.section-subtitle.light { color: rgba(255,255,255,0.72); }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ── TRUST BADGES ── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}
.trust-badge::before {
  content: '✓';
  color: var(--gold-lt);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-gold-top { border-top: 3px solid var(--gold); }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
details summary {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  padding-bottom: 20px;
  font-size: 0.97rem;
  color: #475569;
  line-height: 1.8;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  padding: 24px 0 80px;
  font-size: 0.78rem;
  line-height: 1.7;
}
.footer-bottom p { margin-bottom: 8px; }
.footer-bottom a { color: var(--gold-lt); text-decoration: none; }
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
}
.footer-logo-text span { color: var(--gold-lt); }

/* ── MOBILE STICKY CTA ── */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--gold);
  padding: 14px 24px;
  z-index: 300;
  text-align: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.mobile-sticky a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  display: block;
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,146,42,0.12);
}
.form-textarea { height: 100px; resize: vertical; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-1 { animation: fadeUp 0.55s 0.05s ease both; }
.anim-2 { animation: fadeUp 0.55s 0.15s ease both; }
.anim-3 { animation: fadeUp 0.55s 0.25s ease both; }
.anim-4 { animation: fadeUp 0.55s 0.35s ease both; }

/* ── STEP FLOW (quiz) ── */
.step-hidden { display: none !important; }
.step-active {
  display: block;
  animation: fadeUp 0.3s ease both;
}
.loader {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .nav-links, .nav-phone, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .mobile-sticky { display: block; }
  body { padding-bottom: 64px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}


/* Accessibility: links distinguishable without color */
.content-body a,
.footer a,
.faq-item a,
.intake-success a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nav-links a,
.nav-logo,
.btn,
.area-card,
.sidebar-cta a,
.mobile-sticky a,
.alert-bar a {
  text-decoration: none;
}
