/* ============================================================
   TruLife Insurance Group — Main Stylesheet
   1. Tokens          6. Header / Nav
   2. Base            7. Hero
   3. Layout          8. Home sections
   4. Typography      9. Footer
   5. Components     10. Responsive + Accessibility
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand palette */
  --navy:        #081F4D;
  --blue:        #164780;
  --red:         #D7192D;
  --red-dark:    #B01123;
  --white:       #FFFFFF;
  --neutral:     #F4F6F9;
  --warm:        #E9E4DB;
  --charcoal:    #202936;
  --muted:       #667085;
  --muted-warm:  #5A6172;   /* passes AA on the warm neutral band */
  --border:      #DCE1E8;

  /* Type */
  --font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-body:    'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --size-h1: clamp(2.3rem, 1.55rem + 2.9vw, 3.85rem);
  --size-h2: clamp(1.85rem, 1.4rem + 1.7vw, 2.7rem);
  --size-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --size-lede: clamp(1.1rem, 1.03rem + 0.35vw, 1.28rem);
  --size-body: 1.0625rem;
  --size-small: 0.95rem;
  --size-mono: 0.78rem;

  /* Spacing */
  --gap-xs: .5rem;
  --gap-sm: .875rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --section-y: clamp(3.5rem, 2.2rem + 4.5vw, 6.5rem);
  --wrap: 1180px;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(8,31,77,.06), 0 2px 8px rgba(8,31,77,.05);
  --shadow-md: 0 4px 12px rgba(8,31,77,.08), 0 12px 32px rgba(8,31,77,.07);
  --header-h: 74px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

ul, ol { margin: 0; padding: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--gap-lg) 0; }

/* ---------- 3. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--tint  { background: var(--neutral); }
.section--warm  { background: var(--warm); }
.section--warm .eyebrow { color: var(--red-dark); }
.section--warm .lede,
.section--warm .fine,
.section--warm p { color: var(--muted-warm); }
.section--warm .card p { color: var(--muted); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy a:not(.btn) { color: #BFD3EE; }
.section--navy a:not(.btn):hover { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: var(--gap-lg); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--gap-md); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0,1fr)); }

/* ---------- 4. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 var(--gap-sm);
  text-wrap: balance;
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }

h1 { font-size: var(--size-h1); font-weight: 700; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); font-weight: 700; letter-spacing: -0.005em; }

p { margin: 0 0 1.05rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lede { font-size: var(--size-lede); color: var(--muted); line-height: 1.65; }
.section--navy .lede { color: #C5D3E8; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .85rem;
}
.section--navy .eyebrow { color: #FF8A96; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.fine {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 80ch;
}
.section--navy .fine { color: #9FB3D1; }

/* Signature device: the brand swoosh, redrawn as a rule under key headlines */
.arc-rule { width: 132px; height: 15px; margin: 0 0 1.15rem; overflow: visible; }
.arc-rule path { fill: var(--red); }
.section-head--center .arc-rule { margin-inline: auto; }

/* ---------- 5. COMPONENTS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--warm); border-color: var(--warm); color: var(--navy); }

.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.btn--sm { padding: .74rem 1.2rem; font-size: .92rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: var(--gap-md); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue);
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #C6D0DE; }
.card > h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(215,25,45,.08);
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Bulleted feature list with red ticks */
.list-check { list-style: none; }
.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .55rem;
  color: var(--charcoal);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg) translateY(-2px);
}

/* Pills (states, carriers) */
.pill-grid { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }
.pill {
  font-size: .95rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1rem;
  color: var(--charcoal);
}
.pill .abbr { font-family: var(--font-mono); font-size: .74rem; color: var(--red); margin-left: .4rem; letter-spacing: .06em; }

.carrier-card { transition: border-left-color .2s ease, transform .2s ease; }
.carrier-card:hover { border-left-color: var(--red); transform: translateX(2px); }
.carrier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 1.05rem 1.15rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  min-height: 68px;
}

/* Agent cards */
.agent-lead {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--gap-lg);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-md);
}
.agent-photo {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  background: var(--neutral);
}
.agent-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.1rem 0 1.25rem; }
.agent-meta div { font-size: .88rem; color: var(--muted); }
.agent-meta dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.agent-meta dd { margin: .15rem 0 0; font-weight: 600; color: var(--navy); font-family: var(--font-mono); font-size: .92rem; }
.agent-role { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: -.35rem 0 .9rem; }

.agent-card { display: flex; flex-direction: column; }
.agent-card .agent-photo { margin-bottom: 1.1rem; }
.agent-card h3 { margin-bottom: .25rem; }

/* Image placeholder shown until a real photo file is added */
.photo-slot {
  aspect-ratio: 4/5;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--neutral);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1rem;
  gap: .3rem;
}
.photo-slot .ps-name { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1rem; }
.photo-slot .ps-path { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); word-break: break-all; }

/* Testimonials */
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--navy);
}
.quote-card blockquote::before { content: "“"; color: var(--red); font-size: 1.6em; line-height: 0; vertical-align: -.28em; margin-right: .06em; }
.quote-attrib { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote-attrib img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-name { font-weight: 700; color: var(--navy); font-size: .96rem; line-height: 1.3; }
.quote-detail { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.tab-label {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--red);
  padding-bottom: .4rem;
  margin-bottom: var(--gap-md);
  display: inline-block;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: .8rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- 6. HEADER / NAV ---------- */
.utility-bar {
  background: var(--navy);
  color: #C5D3E8;
  font-size: .82rem;
}
.utility-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.utility-bar a { color: #C5D3E8; text-decoration: none; }
.utility-bar a:hover { color: var(--white); text-decoration: underline; }
.utility-note { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8FA6C7; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(8,31,77,.09); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand:hover { opacity: .88; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .95rem;
  min-height: 46px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: var(--navy); stroke-width: 2; fill: none; stroke-linecap: round; }

.nav { display: flex; align-items: center; gap: 1.55rem; }
.nav-list { display: flex; align-items: center; gap: 1.55rem; list-style: none; }
.nav-list a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  font-size: .97rem;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--navy); border-bottom-color: var(--red); }
.nav-list a[aria-current="page"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-portal {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav-portal:hover { color: var(--navy); text-decoration: underline; }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(2.75rem, 1.8rem + 3.6vw, 5.25rem);
}
.hero h1, .hero h2 { color: var(--white); }
.hero .lede { color: #C9D8EC; }
.hero .eyebrow { color: #FF8A96; }


.hero-swoosh {
  position: absolute;
  top: -6%;
  right: -14%;
  width: min(880px, 78vw);
  opacity: .08;
  pointer-events: none;
}
.hero-swoosh path { fill: var(--red); }

.hero .wrap { position: relative; z-index: 2; }
.hero-copy p { max-width: 40ch; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .line2 { display: block; color: #8FB4E4; }


/* Trust bar */
.trust-bar { background: var(--white); color: var(--charcoal); border-bottom: 1px solid var(--border); }
.trust-bar ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.trust-bar li {
  background: var(--white);
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .96rem;
  line-height: 1.4;
  color: var(--muted);
}
.trust-bar li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px;
  margin-top: .45em;
  background: var(--red);
  transform: rotate(45deg);
}
.trust-bar strong { color: var(--navy); font-weight: 700; }

/* ---------- 8. HOME SECTIONS ---------- */
/* Pathways */
.pathway {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  border: 1px solid var(--border);
}
.pathway--client { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pathway--client h3 { color: var(--white); }
.pathway--client p { color: #C5D3E8; }
.pathway--agent { background: var(--white); }
.pathway--agent p { color: var(--muted); }
.pathway h3 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.85rem); margin-bottom: .6rem; }
.pathway .btn { align-self: flex-start; margin-top: 1.35rem; }
.pathway-tag {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.pathway--client .pathway-tag { color: #FF8A96; }
.pathway--agent .pathway-tag { color: var(--red); }

/* Solutions columns */
.solution-col { display: flex; flex-direction: column; }
.solution-col h3 { margin: 0; }
.solution-col .link-arrow { margin-top: 1.25rem; }
.solution-col ul { margin-bottom: auto; }

/* Funeral preview */
.cost-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.cost-figures { display: grid; gap: 1rem; }
.cost-figure {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  background: rgba(255,255,255,.04);
}
.cost-figure .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9FB3D1; }
.cost-figure .row { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-top: .5rem; }
.cost-figure .today { font-family: var(--font-mono); font-size: 1rem; color: #C5D3E8; }
.cost-figure .arrow { color: #FF8A96; font-size: 1.1rem; }

/* Resource links */
.resource-list { list-style: none; display: grid; gap: .75rem; }
.resource-list a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue);
  text-decoration: none;
}
.resource-list a:hover { color: var(--red); text-decoration: underline; }
.resource-list svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Final CTA */
.cta-panel { text-align: center; max-width: 700px; margin-inline: auto; }
.cta-panel .btn-row { justify-content: center; }

/* ---------- 9. FOOTER ---------- */
.site-footer { background: var(--navy); color: #C5D3E8; padding-block: var(--gap-xl) var(--gap-lg); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--gap-lg); }
.footer-logo {
  background: var(--white);
  border-radius: 8px;
  padding: .7rem .9rem;
  display: inline-block;
  margin-bottom: 1.1rem;
}
.footer-logo img { height: 38px; width: auto; }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: grid; gap: .6rem; }
.footer-links a { color: #C5D3E8; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.site-footer p { color: #9FB3D1; }
.footer-contact { list-style: none; display: grid; gap: .6rem; }
.footer-contact a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--gap-lg); padding-top: var(--gap-md); }
.footer-bottom .fine { color: #8FA6C7; max-width: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.1rem; font-size: .84rem; }
.footer-legal a { color: #8FA6C7; text-decoration: none; }
.footer-legal a:hover { color: var(--white); text-decoration: underline; }

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .trust-bar ul { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: .5rem 1.25rem 1.25rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .site-header .wrap { position: relative; flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--border); }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; gap: 1rem; padding-top: 1.1rem; }
  .nav-actions .btn { width: 100%; }
  .nav-portal { text-align: center; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .cost-preview { grid-template-columns: 1fr; }
  .agent-lead { grid-template-columns: 1fr; padding: 1.35rem; }
  .agent-lead .agent-photo, .agent-lead .photo-slot { max-width: 300px; }
}

@media (max-width: 620px) {
  :root { --size-body: 1.05rem; }
  .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .trust-bar ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .pathway .btn { align-self: stretch; }
  .brand img { height: 36px; }
  .utility-bar .wrap { justify-content: center; text-align: center; }
}

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}
.section--navy :focus-visible, .site-footer :focus-visible, .utility-bar :focus-visible {
  outline-color: #FF8A96;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Subtle scroll reveal — disabled entirely for reduced-motion users */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .utility-bar, .site-footer, .btn { display: none; }
  body { color: #000; font-size: 12pt; }
}

/* ============================================================
   11. INNER PAGE COMPONENTS
   ============================================================ */

/* Page hero band (all non-home pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}
.page-hero h1 { color: var(--white); margin-bottom: .9rem; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); }
.page-hero .lede { color: #C5D3E8; max-width: 62ch; }
.page-hero .eyebrow { color: #FF8A96; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .hero-swoosh { opacity: .13; top: -18%; right: -10%; width: min(720px, 70vw); }

/* Breadcrumb */
.crumbs { font-size: .84rem; margin-bottom: 1.1rem; color: #8FA6C7; }
.crumbs a { color: #C5D3E8; text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs span { margin: 0 .45rem; }

/* Long-form prose (legal pages) */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.7rem); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.05rem 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose .updated { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Detail blocks used on product pages */
.detail { border-top: 1px solid var(--border); padding-top: 1.6rem; margin-top: 1.6rem; }
.detail:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.detail h3 { margin-bottom: .5rem; }
.detail p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 24px); }

/* Numbered process — the order genuinely matters here */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.steps li { counter-increment: step; background: var(--white); padding: 1.35rem 1.5rem 1.35rem 4.2rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.5rem; top: 1.35rem;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 500;
  color: var(--red); letter-spacing: .06em;
}
.steps strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; }
.steps span { color: var(--muted); font-size: .96rem; }

/* Forms */
.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .93rem; color: var(--navy); }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.req { color: var(--red); margin-left: .15rem; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 12px; padding-right: 2.4rem; }
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,71,128,.13); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.15rem; margin: 0; }
legend { font-weight: 600; font-size: .93rem; color: var(--navy); padding: 0 .4rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .35rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; font-size: .97rem; color: var(--charcoal); cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--red); flex-shrink: 0; margin: 0; cursor: pointer; }

.consent { display: flex; gap: .8rem; align-items: flex-start; background: var(--neutral); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.15rem; }
.consent label { font-size: .92rem; line-height: 1.55; color: var(--charcoal); font-weight: 400; cursor: pointer; }

.form-note { font-size: .84rem; color: var(--muted); margin-top: 1.1rem; }
.form-status { display: none; border-radius: 8px; padding: .9rem 1.1rem; margin-top: 1rem; font-size: .95rem; }
.form-status.is-error { display: block; background: #FDECEE; border: 1px solid #F4B8BF; color: #8C0E1D; }

/* Funeral cost planner */
.planner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.planner-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.5rem; }
.planner-controls .ctl-label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.rate-group { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--neutral); gap: 2px; }
.rate-btn {
  font-family: var(--font-mono); font-size: .9rem; font-weight: 500;
  border: 0; background: transparent; color: var(--charcoal);
  min-height: 44px; min-width: 66px;
  padding: .5rem 1.25rem; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.rate-btn:hover { background: rgba(8,31,77,.07); }
.rate-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.chart-wrap { position: relative; height: clamp(280px, 46vw, 420px); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.1rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--charcoal); }
.chart-legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }

.summary-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.summary-card { border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 8px; padding: 1.15rem 1.3rem; background: var(--neutral); }
.summary-card .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; }
.summary-card .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); color: var(--navy); line-height: 1.15; margin-top: .35rem; }
.summary-card .sub { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data caption { text-align: left; padding: .9rem 1rem; font-weight: 600; color: var(--navy); background: var(--neutral); border-bottom: 1px solid var(--border); }
table.data th, table.data td { padding: .6rem 1rem; text-align: right; border-bottom: 1px solid var(--border); }
table.data th:first-child, table.data td:first-child { text-align: left; font-family: var(--font-mono); font-size: .85rem; }
table.data thead th { background: var(--white); color: var(--navy); font-weight: 700; position: sticky; top: 0; }
table.data tbody tr:nth-child(even) { background: #FAFBFD; }
table.data td { font-family: var(--font-mono); }

details.table-toggle > summary {
  cursor: pointer; font-weight: 600; color: var(--blue); padding: .6rem 0; list-style: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
details.table-toggle > summary::-webkit-details-marker { display: none; }
details.table-toggle > summary::before { content: "+"; font-family: var(--font-mono); color: var(--red); }
details.table-toggle[open] > summary::before { content: "−"; }
details.table-toggle > summary:hover { color: var(--red); }

/* Agent portal / thank-you / 404 centered panels */
.panel-center { max-width: 640px; margin-inline: auto; text-align: center; }
.panel-center .btn-row { justify-content: center; }
.panel-mark { width: 64px; height: 64px; margin: 0 auto 1.5rem; display: grid; place-items: center; border-radius: 50%; background: rgba(215,25,45,.09); }
.panel-mark svg { width: 30px; height: 30px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Branded photo panel shown until a real headshot is added */
.photo-slot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0C2A66 0%, var(--navy) 62%);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: .25rem;
}
.photo-slot .ps-arc { position: absolute; inset: auto -18% -12% -18%; opacity: .22; }
.photo-slot .ps-arc path { fill: var(--red); }
.photo-slot .ps-mono {
  position: relative;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); line-height: 1;
  color: var(--white); letter-spacing: .02em; margin-bottom: .65rem;
}
.photo-slot .ps-name { position: relative; font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 1.05rem; line-height: 1.25; }
.photo-slot .ps-title { position: relative; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9FB3D1; margin-top: .3rem; }

/* States list on licensing page */
.state-table td:first-child { font-family: var(--font-body); font-size: .95rem; }

@media (max-width: 900px) {
  .split, .split--sticky { grid-template-columns: 1fr; }
  .split--sticky > :first-child { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: 1fr; }
}

/* ============================================================
   12. VISUAL REFINEMENTS
   ============================================================ */

/* --- Hero: give the portrait depth with an offset navy frame --- */
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  opacity: .22;
  pointer-events: none;
  z-index: -1;
}
.hero-figure img, .hero-figure .photo-slot { position: relative; z-index: 1; }
.hero-namecard { z-index: 2; }

/* --- Trust bar: quieter dividers, clearer hierarchy --- */
.trust-bar li { padding: 1.5rem 1.35rem; }
.trust-bar li::before {
  width: 7px; height: 7px;
  border-radius: 1px;
  margin-top: .5em;
}

/* --- Credibility stats band --- */
.stat-band { background: var(--warm); border-block: 1px solid rgba(8,31,77,.09); }
.stat-band ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: clamp(2rem, 1.5rem + 1.6vw, 3rem);
}
.stat-band li { text-align: center; }
.stat-band .figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: block;
}
.stat-band .figure sup { font-size: .42em; vertical-align: super; color: var(--red-dark); margin-left: .08em; }
.stat-band .caption {
  display: block;
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  /* --muted (#667085) only reaches 3.93:1 on the warm background; this is 5.24:1 */
  color: #545D6E;
}
.stat-band li + li { border-left: 1px solid rgba(8,31,77,.1); }

/* --- Cards: lift on hover, red rule appears at the top --- */
.card {
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 3px; width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #C9D3E2; }
.card:hover::after { transform: scaleX(1); }
.card-icon { transition: background-color .2s ease; }
.card:hover .card-icon { background: rgba(215,25,45,.14); }

/* --- Carrier cards: serif monogram instead of a bare text row --- */
.carrier-card { transition: border-left-color .2s ease, transform .2s ease; }
.carrier-card:hover { border-left-color: var(--red); transform: translateX(2px); }
.carrier-card {
  gap: .85rem;
  border-left-width: 1px;
  border-left-color: var(--border);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.carrier-card:hover { border-color: #C9D3E2; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.carrier-mark {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--neutral);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  color: var(--blue);
  text-transform: uppercase;
}
.carrier-name { line-height: 1.3; }

/* --- Pathway cards: subtle swoosh in the client card --- */
.pathway { position: relative; overflow: hidden; }
.pathway--client::after {
  content: "";
  position: absolute;
  right: -30%; top: -40%;
  width: 320px; height: 320px;
  border: 34px solid var(--red);
  border-radius: 50%;
  opacity: .1;
  pointer-events: none;
}

/* --- Agent cards: red rule under the name --- */
.agent-card h3, .agent-lead h3 { position: relative; padding-bottom: .55rem; }
.agent-card h3::after, .agent-lead h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.agent-card .agent-photo, .agent-lead .agent-photo { box-shadow: var(--shadow-sm); }

/* --- Solution columns: numbered rhythm and a clearer end cap --- */
.solution-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.solution-col h3 { border-bottom-color: var(--warm); }

/* --- Section heads on tinted backgrounds get a touch more air --- */
.section-head { margin-bottom: var(--gap-lg); }

/* --- Footer: faint swoosh, warmer link spacing --- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute;
  left: -8%; bottom: -55%;
  width: 520px; height: 520px;
  border: 46px solid var(--red);
  border-radius: 50%;
  opacity: .07;
  pointer-events: none;
}
.site-footer .wrap { position: relative; z-index: 1; }

/* --- Quote cards: lighter, warmer --- */
.quote-card { transition: box-shadow .2s ease, transform .2s ease; }
.quote-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* --- Buttons: slightly more presence --- */
.btn { letter-spacing: .005em; }
.btn--primary { box-shadow: 0 1px 2px rgba(215,25,45,.25), 0 6px 16px rgba(215,25,45,.16); }
.btn--primary:hover { box-shadow: 0 2px 4px rgba(176,17,35,.28), 0 10px 22px rgba(176,17,35,.2); }

/* --- Links inside prose get the brand underline --- */
.prose a, .fine a { text-decoration-color: rgba(22,71,128,.4); }
.prose a:hover, .fine a:hover { text-decoration-color: var(--red); }

@media (max-width: 760px) {
  .stat-band ul { grid-template-columns: 1fr; gap: 1.75rem; }
  .stat-band li + li { border-left: 0; border-top: 1px solid rgba(8,31,77,.1); padding-top: 1.75rem; }
  .hero-figure::before { inset: 12px -12px -12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, .carrier-card:hover, .quote-card:hover { transform: none; }
  .card::after { transition: none; }
}


/* Chart requires JavaScript. Without it, hide the empty canvas and its controls
   so the data table below stands on its own. */
.no-js .planner-controls,
.no-js .chart-wrap,
.no-js .chart-legend { display: none; }
.no-js details.table-toggle > summary { display: none; }

/* ============================================================
   12. HERO DEPTH + MOBILE ACTION BAR
   ============================================================ */

/* A navy plate sits behind the portrait, offset slightly, giving the hero
   depth without adding noise. Desktop only — on narrow screens the figure
   already fills the column and an offset would crowd the edges. */

/* Solution column icons — a little visual anchor per category */
.solution-head {
  display: flex; align-items: center; gap: .75rem;
  padding-bottom: .85rem; margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--warm);
}
.solution-head svg {
  width: 26px; height: 26px; flex: 0 0 auto;
  stroke: var(--red); fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}


/* Persistent action bar on phones. The single highest-value control on a
   lead-generation site should never be more than a thumb away. */
.mobile-cta { display: none; }

@media (max-width: 760px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: .6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    padding: .7rem 1rem;
    padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    backdrop-filter: saturate(160%) blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 18px rgba(8, 31, 77, .1);
  }
  .mobile-cta .btn {
    width: 100%;
    padding: .85rem .6rem;
    font-size: .95rem;
    min-height: 48px;
  }
  /* keep the footer clear of the fixed bar */
  body { padding-bottom: 82px; }
}

@media print {
  .mobile-cta { display: none; }
}


/* ============================================================
   13. LIFESTYLE IMAGERY
   ============================================================ */

/* Full-bleed hero photo with a navy scrim. The scrim holds high opacity
   across the whole text column, so the headline sits on near-solid colour
   rather than on the picture — readable regardless of the photo behind it. */
.hero--image {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  min-height: clamp(440px, 46vw, 600px);
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 38%;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(94deg,
    rgba(8,31,77,.97) 0%,
    rgba(8,31,77,.95) 46%,
    rgba(8,31,77,.74) 60%,
    rgba(8,31,77,.30) 82%,
    rgba(8,31,77,.14) 100%);
}
.hero--image .hero-swoosh { z-index: 1; opacity: .10; }
.hero--image .wrap { position: relative; z-index: 2; }
.hero--image .hero-copy { max-width: 34rem; }
.hero--image .hero-copy p { max-width: 40ch; }

/* Photo paired with copy in a two-column story block */
.story {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 1rem + 3.4vw, 4.5rem);
  align-items: center;
}
.story--flip .story-figure { order: 2; }
.story-figure { margin: 0; position: relative; }
.story-figure img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.story-figure::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 92px;
  height: 6px;
  background: var(--red);
  border-radius: 3px;
}

@media (max-width: 900px) {
  /* Photo becomes a banner above the copy — no text over imagery on small screens */
  .hero--image { display: block; min-height: 0; padding-top: 0; }
  .hero-photo {
    position: static;
    height: auto;
    aspect-ratio: 16/9;
    margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  }
  .hero-scrim { display: none; }
  .hero--image .hero-copy,
  .hero--image .hero-copy p { max-width: none; }
  .story { grid-template-columns: 1fr; }
  .story--flip .story-figure { order: 0; }
  .story-figure img { aspect-ratio: 3/2; }
  .story-figure::after { bottom: -10px; }
}

/* ============================================================
   14. THIRD-PARTY CHAT WIDGET
   ------------------------------------------------------------
   The LeadConnector (GoHighLevel) widget mounts as a <chat-widget>
   element pinned to the bottom-right of the viewport. On phones that
   is exactly where the TruLife action bar sits, so the bubble lands on
   top of the "Get a Free Quote" button. This lifts it clear.
   Harmless when the widget is not present. Desktop is unaffected.
   ============================================================ */
@media (max-width: 760px) {
  chat-widget { bottom: 96px !important; }
}

/* ============================================================
   14. CHAT WIDGET POSITIONING
   ============================================================ */
/* The LeadConnector widget mounts as a <chat-widget> element pinned to the
   bottom-right of the viewport. On phones the TruLife action bar is fixed
   along the bottom edge, so the bubble would land on top of the
   "Get a Free Quote" button. Lift it clear. Desktop is unaffected. */
@media (max-width: 760px) {
  chat-widget { bottom: 96px !important; }
}

/* ============================================================
   15. EMBEDDED CRM FORM (GoHighLevel)
   ============================================================ */
.form-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(.75rem, .5rem + .8vw, 1.25rem);
  overflow: hidden;
}
.form-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* The quote page IS the quote destination, so the fixed "Get a Free Quote"
   bar is redundant here — and on a tall embedded form it can sit over the
   submit button. Hide it on this page and drop the reserved space. */
.page-quote .mobile-cta { display: none; }
@media (max-width: 760px) {
  .page-quote { padding-bottom: 0; }
}
