/* ==========================================================================
   LyftLaw.com — Design tokens, reset, and shared components
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-variable-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-variable-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
}

:root {
  --dark: #080808;
  --surface: #0e0e0e;
  --card: #161616;
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.25);
  --orange: #f97316;
  --yellow: #eab308;
  --gold: #C4A882;
  --white: #ffffff;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.09);
  --danger: #f87171;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --text-hero: clamp(2.25rem, 9vw, 8rem);
  --text-section: clamp(2.25rem, 6vw, 4.5rem);

  --max-content: 1400px;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
body h1, body h2, body h3, body h4 { font-family: var(--font-display); margin: 0; line-height: 1.05; letter-spacing: -0.03em; color: var(--white); }
body .section-light h1, body .section-light h2, body .section-light h3, body .section-light h4 { color: #111; }
p { margin: 0 0 1rem; }

/* On light-background sections (Problem, Who-Are-You, Insurance, Blog, FAQ backgrounds are dark-on-white per demo) */
.section-light { background: #fff; color: #111; }
.section-light .muted { color: #6b7280; }
.section-dark { background: var(--dark); color: var(--white); }

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.italic-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.section-heading {
  font-size: var(--text-section);
  font-weight: 600;
}

.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #06210f; }
.btn-primary:hover { box-shadow: 0 0 32px var(--green-glow); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: rgba(34, 197, 94, 0.08); }
.btn-block { width: 100%; }

/* Glass / surfaces */
.glass {
  background: rgba(22, 22, 22, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}
.glass-dark {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
}

/* Noise texture overlay (used on hero) */
.noise { position: relative; }
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient floating blur blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.blob-green { background: rgba(34, 197, 94, 0.25); }
.blob-orange { background: rgba(249, 115, 22, 0.2); }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -20px); }
}
.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-slow { animation: float 12s ease-in-out infinite; }

/* Marquee ticker */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.ticker__track {
  display: inline-flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.ticker__item strong { color: var(--white); margin-right: 0.4em; }
.ticker__dot { color: var(--green); margin: 0 0.5rem; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll-reveal (JS toggles .is-visible) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible, .reveal-right.is-visible { opacity: 1; transform: none; }

/* Outline / ghost text */
.outline-text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  color: transparent;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  margin-top: 2rem;
}
.trust-strip__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-strip__item svg { color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}
@media (min-width: 1024px) { .site-header__inner { padding: 1.1rem 2rem; } }
.site-logo { display: inline-flex; align-items: center; }
.site-logo svg, .site-logo img { height: 2.25rem; width: auto; display: block; }

.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav { display: flex; align-items: center; gap: 2rem; }
  .site-nav a { font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--white); opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
  .site-nav a:hover { opacity: 1; color: var(--green); }
}
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.site-header__actions .btn-primary { display: none; }
@media (min-width: 1024px) { .site-header__actions .btn-primary { display: inline-flex; } }
.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--white);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Blog posts (single-post) load a light section right under the header,
   so the transparent/white-text header is unreadable until scroll. Force
   the solid dark header state from the top on blog posts only. */
body.single-post .site-header {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--dark);
  padding: 6rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 1rem 0; font-size: 1.5rem; font-family: var(--font-display); border-bottom: 1px solid var(--border); text-decoration: none; color: var(--white); }

/* Sticky mobile CTA bar */
.mobile-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0.75rem; background: var(--dark); border-top: 1px solid var(--border); }
@media (min-width: 1024px) { .mobile-cta-bar { display: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 5fr 7fr; gap: 2rem; } }
.footer-tagline { max-width: 28rem; margin-top: 1.25rem; font-size: 0.95rem; line-height: 1.7; }
.footer-newsletter { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
@media (min-width: 640px) { .footer-newsletter { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-newsletter input { height: 3rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); color: var(--white); padding: 0 1rem; font-size: 0.9rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 3rem 0; }
@media (min-width: 768px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }
.footer-links h4 { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; font-family: var(--font-sans); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { font-size: 0.9rem; text-decoration: none; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; text-align: center; font-size: 0.75rem; color: var(--muted); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-wordmark { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 6vw, 4.5rem); text-align: center; margin: 2rem 0 0; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; max-width: 100%; overflow: hidden; }

/* ==========================================================================
   Utility grid/card helpers reused across sections
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; color: var(--white); }
.stat-card { padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); color: var(--white); }
.stat-card--highlight { background: var(--green); color: #06210f; border-color: var(--green); }
.stat-card__value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; color: inherit; }
.stat-card__label { font-size: 0.85rem; margin-top: 0.5rem; opacity: 0.8; color: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #06210f; padding: 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==========================================================================
   Inner content pages (hub pages, Prop-22, Insurance, About) — long-form
   editorial typography for the block-editor-authored body content.
   ========================================================================== */
.hub-hero, .page-hero { padding: 9rem 0 4rem; }
.hub-content, .page-content { line-height: 1.75; font-size: 1.05rem; }
.hub-content h2, .page-content h2 { font-size: 1.85rem; margin: 2.5rem 0 1rem; }
.hub-content h2:first-child, .page-content h2:first-child { margin-top: 0; }
.hub-content h3, .page-content h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.hub-content p, .page-content p { color: #374151; margin-bottom: 1.25rem; }
.hub-content ul, .hub-content ol, .page-content ul, .page-content ol { margin: 0 0 1.25rem; padding-left: 1.5rem; color: #374151; }
.hub-content li, .page-content li { margin-bottom: 0.5rem; }
.hub-content a, .page-content a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(34,197,94,0.4); }
.hub-intro { font-size: 1.15rem; color: #111; margin-bottom: 1rem; }
.hub-crosslinks {
	margin-top: 2.5rem;
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	background: #f9fafb;
	border: 1px solid #e5e7eb;
}
.hub-crosslinks p { margin: 0; color: #374151; }

/* ==========================================================================
   Contact Form 7 styling
   ========================================================================== */
.wpcf7-form { display: flex; flex-direction: column; gap: 1rem; }
.wpcf7-form .cf7-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .wpcf7-form .cf7-row { grid-template-columns: 1fr 1fr; } }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	padding: 0.9rem 1.1rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--white);
	font-family: var(--font-sans);
	font-size: 0.95rem;
}
.section-light .wpcf7-form input[type="text"],
.section-light .wpcf7-form input[type="email"],
.section-light .wpcf7-form input[type="tel"],
.section-light .wpcf7-form select,
.section-light .wpcf7-form textarea {
	background: #fff;
	color: #111;
	border-color: #e5e7eb;
}
.wpcf7-form textarea { min-height: 110px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
.wpcf7-form .wpcf7-acceptance { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.section-light .wpcf7-form .wpcf7-acceptance { color: #4b5563; }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form .wpcf7-acceptance input { margin-top: 0.2rem; }
.wpcf7-form input.btn.btn-primary,
.wpcf7-form input.wpcf7-submit {
	appearance: none;
	-webkit-appearance: none;
	background: var(--green) !important;
	color: #06210f !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 0.9rem 1.75rem !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	width: 100%;
	margin-top: 0.5rem;
	cursor: pointer;
}
.wpcf7-form input.wpcf7-submit:hover { box-shadow: 0 0 32px var(--green-glow); }
.wpcf7-not-valid-tip { color: var(--danger); font-size: 0.8rem; margin-top: 0.3rem; display: block; }
.wpcf7-response-output { border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem; font-size: 0.9rem; border: 1px solid var(--border); }
.wpcf7-mail-sent-ok { border-color: var(--green) !important; color: var(--green); }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng { border-color: var(--danger) !important; color: var(--danger); }

/* NAP block on the contact page */
.nap-block { padding: 1.75rem; }
.nap-block dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 1.25rem; }
.nap-block dt:first-child { margin-top: 0; }
.nap-block dd { margin: 0.35rem 0 0; font-size: 1rem; }
.nap-block a { color: var(--green); text-decoration: none; }

/* ==========================================================================
   Recovery banner (post-hero)
   ========================================================================== */
.recovery-banner { position: relative; overflow: hidden; padding: 5rem 0; text-align: center; }
.recovery-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; z-index: 0; }
.recovery-banner__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, var(--dark) 0%, rgba(8,8,8,0.7) 45%, var(--dark) 100%); z-index: 1; }
.recovery-banner__inner { position: relative; z-index: 2; }
.recovery-banner__headline { font-size: var(--text-section); font-weight: 700; letter-spacing: -0.02em; }
.recovery-banner__line { display: block; }
.recovery-banner__line--white { color: var(--white); }
.recovery-banner__line--gradient {
  background: linear-gradient(90deg, #22c55e 0%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.recovery-banner__divider { position: relative; width: 100%; max-width: 900px; height: 1px; margin: 2.5rem auto; background: var(--border); }
.recovery-banner__features { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 5rem; }
.recovery-banner__feature { display: flex; align-items: center; gap: 1rem; padding: 0 2.5rem; position: relative; }
.recovery-banner__feature:not(:last-child)::after {
  content: '';
  position: absolute; right: -2.5rem; top: 50%; transform: translateY(-50%);
  width: 1px; height: 40px; background: var(--border);
}
.recovery-banner__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green); flex-shrink: 0; }
.recovery-banner__icon svg { width: 22px; height: 22px; }
.recovery-banner__label { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; text-align: left; color: var(--white); line-height: 1.5; }
@media (max-width: 900px) {
  .recovery-banner__features { gap: 2rem 2.5rem; }
  .recovery-banner__feature { padding: 0 1.25rem; }
  .recovery-banner__feature:not(:last-child)::after { right: -1.25rem; }
}
@media (max-width: 640px) {
  .recovery-banner { padding: 3.5rem 0; }
  .recovery-banner__features { flex-direction: column; gap: 2rem; align-items: center; }
  .recovery-banner__feature { padding: 0; flex-direction: column; gap: 0.75rem; text-align: center; }
  .recovery-banner__feature:not(:last-child)::after { display: none; }
  .recovery-banner__label { text-align: center; }
  .recovery-banner__divider { margin: 2rem auto; }
}

/* Footer trust list */
.footer-trust-list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; max-width: 28rem; }
.footer-trust-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.footer-trust-list svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }
