/* ═══════════════════════════════════════════
   Help Is Here Injury Lawyers — Design System
   Brand: navy #212E47 · orange #DF643A · Poppins
   ═══════════════════════════════════════════ */

:root {
  --black:   #0C1119;
  --navy:    #121922;
  --navy-2:  #161F2E;
  --navy-3:  #1B2639;
  --panel:   #212E47;
  --line:    #2D3B57;
  --paper:   #F5F4F0;
  --muted:   #8B9AB5;
  --gold:    #DF643A;
  --gold-lt: #F07E52;
  --gold-dk: #A34526;
  --r:       8px;
  --w:       1200px;
  --ease:    cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--paper); font-family: 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html { overflow-x: clip; }
h1,h2,h3,h4 { font-family: 'Poppins', system-ui, sans-serif; line-height: 1.06; letter-spacing: -.025em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--navy); }

/* ── Layout ── */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 48px; }
.section { padding: 100px 0; }
.section-alt { background: var(--navy-2); }
.eyebrow { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--gold); display: block; }
.section-title { font-size: clamp(30px, 3.8vw, 50px); margin-top: 12px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 32px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; font-family: inherit; transition: all .2s var(--ease); white-space: nowrap; letter-spacing: .02em; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(223,100,58,.28); }
.btn-ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(255,255,255,.18); }
.btn-ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid var(--gold-dk); }
.btn-outline-gold:hover { background: rgba(223,100,58,.08); border-color: var(--gold); }
.btn-lg { padding: 18px 40px; font-size: 15px; border-radius: 8px; }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.left { transform: translateX(-36px); }
.reveal.right { transform: translateX(36px); }
.reveal.visible { opacity: 1 !important; transform: none !important; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }
[data-delay="6"] { transition-delay: .6s; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 72px; display: flex; align-items: center; padding: 0 48px;
  justify-content: space-between; gap: 24px;
  transition: background .35s, border-color .35s;
}
.nav.scrolled { background: rgba(4,8,16,.93); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-logo { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { height: 34px; width: auto; flex-shrink: 0; }
.logo-word { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.logo-word small {
  font-size: 8px; font-weight: 600; letter-spacing: .34em;
  text-transform: uppercase; color: rgba(245,244,240,.62);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; color: rgba(234,230,220,.6); transition: color .15s; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 20px;
  padding: 6px 12px; transition: color .2s, border-color .2s; flex-shrink: 0;
}
.lang-pill:hover { color: var(--gold-lt); border-color: var(--gold); }
.nav-phone { font-family: 'Poppins', monospace; font-size: 13px; color: var(--muted); transition: color .15s; }
.nav-phone:hover { color: var(--gold); }
.hamburger { display: none; background: none; border: none; color: var(--paper); font-size: 22px; cursor: pointer; padding: 4px; }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 490; background: var(--black); padding: 96px 40px 40px; flex-direction: column; gap: 0; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 300; color: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 0; transition: color .15s; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--muted); font-size: 28px; cursor: pointer; }
.mobile-nav-phone { font-family: 'Poppins', monospace; font-size: 20px; color: var(--gold); margin-top: 28px; }

/* ── Ticker ── */
.ticker-bar { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 13px 0; }
.ticker-track { display: flex; gap: 60px; animation: tickerScroll 28s linear infinite; width: max-content; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ti { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .07em; white-space: nowrap; }
.ti-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── Page Hero (interior pages) ── */
.page-hero { padding: 140px 0 72px; background: linear-gradient(170deg, var(--navy-3) 0%, var(--black) 100%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 100%; background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(223,100,58,.06) 0%, transparent 60%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(40px, 5vw, 68px); margin-top: 14px; max-width: 16ch; }
.page-hero p { font-size: 17px; color: var(--muted); max-width: 50ch; line-height: 1.7; margin-top: 18px; }

/* ── Footer ── */
.footer { background: var(--navy-2); border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand { font-family: 'Poppins', sans-serif; font-size: 19px; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 28ch; margin-bottom: 22px; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contacts a { font-size: 13px; color: var(--muted); display: flex; align-items: flex-start; gap: 9px; transition: color .15s; line-height: 1.4; }
.footer-contacts a:hover { color: var(--gold); }
.footer-col h4 { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-col ul a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 24px; gap: 32px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-disclaimer { font-size: 11px; color: var(--muted); opacity: .5; max-width: 58ch; line-height: 1.6; }

/* ── Mobile sticky ── */
.mobile-sticky { display: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .nav-links, .nav-phone, .nav-right .btn { display: none; }
  .hamburger { display: block; margin-left: 0; }
  /* keep the language pill tucked beside the hamburger, not floating mid-bar */
  .nav { justify-content: flex-start; gap: 10px; }
  .nav-right { margin-left: auto; gap: 10px; }
  .lang-pill { padding: 5px 11px; font-size: 10px; letter-spacing: .1em; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid > div:first-child { margin-bottom: 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  /* footer link columns collapse into tap-to-open dropdowns */
  .footer-col h4 {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; margin-bottom: 0; padding: 15px 0;
    border-top: 1px solid var(--line); font-size: 11px;
  }
  .footer-col h4::after {
    content: '+'; font-size: 17px; font-weight: 400; color: var(--gold);
    transition: transform .3s var(--ease); line-height: 1;
  }
  .footer-col.open h4::after { transform: rotate(45deg); }
  .footer-col ul { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); gap: 0; }
  .footer-col.open ul { max-height: 420px; }
  .footer-col ul li { padding: 7px 0; }
  .footer-col.open ul { padding: 6px 0 16px; }
  /* Page hero — interior pages */
  .page-hero { padding: 104px 0 48px; }
  .page-hero h1 { font-size: clamp(32px, 8vw, 68px); }
  .page-hero p { font-size: 15px; }
  /* Mobile sticky — accounts for iPhone home indicator */
  .mobile-sticky {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
    background: var(--navy-2); border-top: 1px solid var(--line);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .mobile-sticky a { flex: 1; text-align: center; font-size: 13px; justify-content: center; }
  /* Add bottom clearance so sticky bar doesn't overlap footer */
  .footer { padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 72px)); }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .btn-lg { padding: 16px 28px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
