/*
 * TPA Landing Page Stylesheet — v2 (2026-05)
 * Nate's editorial design adapted for WordPress/ACF.
 * All classes use lp- prefix. No inline styles in the template.
 * Colors adapt via --lp-* vars; child themes override the 5 brand vars.
 */

/* ============================================================
   COLOR SYSTEM
   Child themes override these 5 brand vars in .landing-page {}.
   Neutral vars (ink, paper, mute, line) are fixed — don't touch.
   ============================================================ */
:root {
  /* Brand — 5 vars set per client */
  --lp-primary:    #3F6FA7;   /* main accent: borders, eyebrows, bullets, CTA bg */
  --lp-secondary:  #2d5080;   /* darker: h2 em, hover states, section-primary-dark bg */
  --lp-accent:     #F7BE1C;   /* lighter: dark-bg text, badges */
  --lp-charcoal:   #25303A;   /* very dark: footer bg, dark sections */
  --lp-wash:       #EEF3F8;   /* very light: tinted bg sections */

  /* Neutral — fixed across all LP builds */
  --lp-ink:          #1d2031;
  --lp-ink-soft:     #2b2f44;
  --lp-paper:        #f8f6f1;
  --lp-paper-warm:   #eee8e0;
  --lp-paper-warmer: #e6ddcf;
  --lp-mute:         #5f6b73;
  --lp-line:         #d8d1c3;

  /* Typography */
  --lp-serif:  'Philosopher', Georgia, serif;
  --lp-sans:   'Lato', 'Helvetica Neue', sans-serif;
  --lp-radius: 2px;
  --lp-ease:   cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
body.landing-page {
  font-family: var(--lp-sans);
  font-weight: 400;
  color: var(--lp-ink);
  background: var(--lp-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-wrap: pretty;
  padding-top: 0;
  margin: 0;
}
body.landing-page h1,
body.landing-page h2,
body.landing-page h3,
body.landing-page h4,
body.landing-page h5 {
  text-wrap: balance;
}
body.landing-page p { text-wrap: pretty; }
body.landing-page img { display: block; max-width: 100%; height: auto; }
body.landing-page a { color: inherit; text-decoration: none; cursor: pointer; }
body.landing-page button { cursor: pointer; }
body.landing-page summary { cursor: pointer; }
body.landing-page * { box-sizing: border-box; }

/* ============================================================
   LAYOUT
   ============================================================ */
.lp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
}
.lp-narrow { max-width: 780px; }
.lp-rule { display: none; }

/* ============================================================
   EYEBROW
   ============================================================ */
.lp-eyebrow {
  font-family: var(--lp-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lp-secondary);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.lp-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lp-primary);
}

/* ============================================================
   BILATERAL DOT (EMDR optional — show with .lp-bilateral-active)
   ============================================================ */
.lp-bilateral {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 14px 0 28px;
}
.lp-bilateral-active .lp-bilateral {
  display: flex;
}
.lp-bilateral-track {
  position: relative;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lp-primary) 20%, var(--lp-primary) 80%, transparent);
}
.lp-bilateral-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-primary);
  transform: translate(0, -50%);
  animation: lp-bilateral 3.2s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(78,117,96,.12);
}
@keyframes lp-bilateral {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 6px); }
}
.lp-bilateral-tag {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lp-mute);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  font-family: var(--lp-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--lp-radius);
  border: 0;
  cursor: pointer;
  transition: all .35s var(--lp-ease);
  text-decoration: none;
}
/* High-specificity rule so WPForms and any cascade cannot override white text */
body.landing-page .lp-btn-primary,
body.landing-page .lp-form-card .wpforms-submit,
body.landing-page .lp-form-card button[type="submit"] {
  color: #fff !important;
}
.lp-btn-primary {
  background: var(--lp-charcoal);
  color: #fff;
}
.lp-btn-primary:hover {
  background: var(--lp-secondary);
  transform: translateY(-1px);
}
.lp-btn-primary::after {
  content: "→";
  font-family: var(--lp-serif);
  font-size: 16px;
  transition: transform .3s var(--lp-ease);
}
.lp-btn-primary:hover::after { transform: translateX(4px); }

.lp-btn-ghost {
  background: transparent;
  color: var(--lp-ink);
  border: 1px solid var(--lp-line);
}
.lp-btn-ghost:hover {
  border-color: var(--lp-primary);
  color: var(--lp-secondary);
}

/* ============================================================
   PAGE-LOAD REVEALS
   ============================================================ */
.lp-reveal { opacity: 0; animation: lp-reveal .8s var(--lp-ease) forwards; }
.lp-reveal.d1 { animation-delay: .05s; }
.lp-reveal.d2 { animation-delay: .18s; }
.lp-reveal.d3 { animation-delay: .32s; }
.lp-reveal.d4 { animation-delay: .46s; }
.lp-reveal.d5 { animation-delay: .58s; }
.lp-reveal.d6 { animation-delay: .72s; }
@keyframes lp-reveal { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; animation: none; }
}
/* Scroll animation (below fold) */
.lp-fade-up { opacity: 1; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248,246,241,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216,209,195,.5);
  transition: box-shadow .3s var(--lp-ease);
}
.lp-header--scrolled {
  box-shadow: 0 2px 20px rgba(29,32,49,.08);
}
.lp-header-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  height: 72px !important;
  padding: 0 !important;
}
/* Phone and hamburger share the right column — only one visible at a time */
.lp-header-phone,
.lp-menu-toggle {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.lp-logo-img { width: auto !important; height: 50px !important; display: block !important; }
.lp-logo-mark { width: 44px; height: 44px; display: block; }
.lp-logo {
  font-family: var(--lp-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--lp-ink);
}
.lp-logo-tag {
  font-family: var(--lp-sans);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lp-mute);
  display: block;
  margin-top: 2px;
}
.lp-nav { display: flex; align-items: center; }
.lp-nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.lp-nav-links a {
  font-size: 14.5px;
  color: var(--lp-ink-soft);
  letter-spacing: .02em;
  transition: color .2s var(--lp-ease);
}
.lp-nav-links a:hover { color: var(--lp-secondary); }

.lp-header-phone {
  font-family: var(--lp-serif);
  font-size: 16px;
  color: var(--lp-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  cursor: pointer;
  min-height: 44px;
  justify-content: center;
}
.lp-header-phone .lp-phone-call {
  font-family: var(--lp-sans);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lp-primary);
  line-height: 1;
}
.lp-menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.lp-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lp-ink);
  transition: all .3s var(--lp-ease);
}
.lp-menu-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-menu-toggle--open span:nth-child(2) { opacity: 0; }
.lp-menu-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lp-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lp-paper);
  z-index: 39;
  padding: 80px 36px 36px;
  flex-direction: column;
  gap: 8px;
}
.lp-mobile-menu--open { display: flex; }
.lp-mobile-menu li { list-style: none; }
.lp-mobile-menu a {
  display: block;
  font-family: var(--lp-serif);
  font-size: 28px;
  color: var(--lp-ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--lp-line);
}
.lp-mobile-phone {
  font-family: var(--lp-serif);
  font-size: 22px;
  color: var(--lp-secondary);
  font-weight: 700;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
  position: relative;
  padding: 65px 0 0;
  overflow: hidden;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.lp-hero-text .lp-eyebrow { margin-bottom: 34px; }
.lp-hero-text h1 {
  font-family: var(--lp-serif);
  font-weight: 400;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--lp-ink);
  margin: 0 0 14px;
}
.lp-hero-text h1 em {
  font-style: italic;
  color: var(--lp-secondary);
  font-weight: 400;
}
/* Tagline: solution-signal line below the H1 — sans, uppercase, brand color */
.lp-hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--lp-sans);
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lp-primary);
  margin-top: 0;
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.55;
}
.lp-hero-tagline::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lp-primary);
  flex-shrink: 0;
}

.lp-hero-sub {
  font-family: var(--lp-sans);
  font-size: 32px;
  line-height: 1.5;
  color: var(--lp-ink-soft);
  max-width: 560px;
  margin-bottom: 28px;
  font-weight: 400;
}
.lp-hero-ctas {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.lp-btn-phone {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.lp-btn-phone .lp-tag {
  font-family: var(--lp-sans);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lp-primary);
  font-weight: 700;
}
.lp-btn-phone .lp-num {
  font-family: var(--lp-serif);
  font-size: 22px;
  color: var(--lp-ink);
  font-weight: 700;
  letter-spacing: .01em;
}
.lp-hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
  padding-top: 28px;
  border-top: 1px solid var(--lp-line);
  max-width: 560px;
}
.lp-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--lp-ink-soft);
  letter-spacing: .01em;
}
.lp-hero-meta-item .lp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-primary);
  flex-shrink: 0;
}
.lp-hero-visual {
  position: relative;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
.lp-hero-frame {
  position: relative;
  width: 100%;
  background: var(--lp-paper);
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(78,117,96,.2),
    0 40px 80px -32px rgba(29,32,49,.25),
    0 12px 30px -18px rgba(29,32,49,.18);
  border-radius: 3px;
}
.lp-hero-frame-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--lp-paper-warm);
  border-radius: 1px;
}
.lp-hero-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(.82) contrast(1.02);
}
.lp-hero-credit {
  margin-top: 22px;
  font-family: var(--lp-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--lp-secondary);
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-hero-credit::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lp-primary);
  flex-shrink: 0;
}
.lp-hero-leaf {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 200px;
  height: 200px;
  background: var(--lp-wash);
  border-radius: 52% 48% 56% 44% / 58% 62% 38% 42%;
  z-index: -1;
  opacity: .85;
}

/* ============================================================
   RESPONSIVE — above-fold only (header + hero)
   Below-fold responsive rules live in landing.css (deferred).
   ============================================================ */
@media (max-width: 960px) {
  .lp-container { padding: 0 24px; }
  .lp-nav-links { display: none; }
  .lp-menu-toggle { display: flex; }
  .lp-header-phone { display: none !important; }
  .lp-hero { padding: 60px 0 0; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-visual { justify-self: stretch; max-width: none; }
  .lp-hero-text h1 { font-size: clamp(36px, 8vw, 54px); }
}
@media (max-width: 540px) {
  .lp-hero-credit { display: none; }
}

/* Touch-device accessibility (CLAUDE.md rule — 14px floor + 44px tap targets) */
@media (hover: none) and (pointer: coarse) {
  /* Font floor: 14px on LP small text */
  .lp-bilateral-tag,
  .lp-btn-phone .lp-tag,
  .lp-section-label,
  .lp-nav-links a,
  .lp-hero-cta-secondary,
  .lp-hero-secondary { font-size: 14px !important; }

  /* Hero meta trust signals (13px → 14px) */
  .lp-hero-meta-item { font-size: 14px !important; }

  /* LP buttons: font-size + tap target */
  .lp-btn,
  .lp-btn-primary,
  .lp-btn-ghost { font-size: 14px !important; min-height: 44px !important; }

  .lp-btn-phone { min-height: 44px; display: flex !important; align-items: center; flex-direction: row !important; gap: 12px; }

  .lp-menu-toggle { min-width: 44px; min-height: 44px; }

  /* WPForms submit on LP */
  body.landing-page .wpforms-submit,
  body.landing-page button[type="submit"] { min-height: 44px !important; }

  /* LP brand link */
  .lp-brand { min-height: 44px; }
}
