/* ============================================================
   Homewood Microtheme — base-v2.css
   Cleaned & deduplicated from base.css (755 → ~420 lines)
   ============================================================ */

/* ----- Design tokens ----- */
:root {
  --max: 1200px;
  --color-text: #1b2d45;
  --color-heading: #425b76;
  --color-body-light: #40546b;
  --color-border: #e6ecf1;
  --color-green: #7A8450;
  --color-footer-bg: #31455b;
  --color-footer-text: #d7dee8;
  --color-footer-heading: #e3e3ad;
  --color-accent: #d97706;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { font-size: 18px; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: var(--color-text);
  background: #fff;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: none; }
a:hover { text-decoration: underline; }


/* ----- Layout helpers ----- */
.container { max-width: var(--max); margin: 0 auto; padding: 16px; }
.grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* ----- Headings ----- */
h2, h3 { color: var(--color-heading); }
h2 { font-weight: 400; line-height: 1.2; margin: 40px 0 25px; font-size: clamp(28px, 4vw, 50px); }
h3 { font-weight: 400; line-height: 1.25; margin: 25px 0 25px; font-size: clamp(25px, 2.2vw, 32px); }


/* ===== HEADER + MEGA MENU ===== */
.site-header { border-bottom: 1px solid var(--color-border); }
.site-header .logo { display: inline-flex; align-items: center; line-height: 0; }
.site-header .logo img { display: block; height: auto; max-height: 48px; width: auto; }

.header-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
@media (min-width: 900px) {
  .header-row { justify-content: flex-start; gap: 100px; padding: 16px 0; }
  .site-header .logo img { height: 64px; max-height: none; }
}

.main-nav { position: relative; }
.top-level { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; align-items: center; }
.top-level > li > a { padding: 8px 0; }

.nav-toggle,
.mega-toggle { background: transparent; border: 0; font: inherit; color: var(--color-text); cursor: pointer; }
.nav-toggle { display: none; font-size: 22px; }

/* Mega panels */
.has-mega { position: relative; }
.has-mega > .mega-toggle { padding: 8px 0; }
.top-level .has-mega > .mega-toggle::after { content: "▾"; margin-left: 6px; font-size: 12px; line-height: 1; }

.mega {
  position: absolute; top: 100%; z-index: 50;
  left: 50%; transform: translateX(-50%);
  display: none;
  width: clamp(640px, 70vw, 920px);
  background: #fff; border: 1px solid var(--color-border);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  padding: 16px; margin-top: 0;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
}

/* Open states */
.has-mega[aria-expanded="true"] .mega { display: grid; }
@media (hover: hover) and (min-width: 900px) {
  .has-mega:hover .mega { display: grid; }
}

/* Mega headings & links */
.mega h3 { font-size: 22px; font-weight: 500; color: var(--color-green); margin: 0 0 14px; line-height: 1.2; }
.mega a { font-size: 15px; line-height: 1.55; }
.mega h3 + ul { margin-bottom: 22px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 2px 0; }

/* Two-column mega (About Us) */
.has-mega.two .mega { grid-template-columns: 1fr 1fr; }

/* Four-column mega (Our Specialty) */
@media (min-width: 900px) {
  .has-mega.wide .mega {
    width: clamp(900px, 92vw, 1200px);
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

/* Anchor mega to right edge */
.has-mega.right .mega { left: auto; right: 0; }

/* Featured link cards inside mega */
.mega .featured-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mega .featured-links a { display: block; text-decoration: none; }
.mega .featured-links img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.mega .featured-links span { display: block; margin-top: 8px; color: var(--color-text); }


/* ----- Mobile nav / mega ----- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed; inset: 0; background: #fff; z-index: 1000;
    padding: 24px; height: 100vh; overflow-y: auto;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  .main-nav[aria-expanded="true"] { opacity: 1; pointer-events: auto; }

  .nav-toggle {
    position: fixed; top: 14px; right: 16px;
    width: 44px; height: 44px; border-radius: var(--radius-sm); z-index: 1001;
  }
  .nav-toggle::before { content: "☰"; font-size: 24px; line-height: 44px; display: block; text-align: center; }
  .nav-toggle[aria-expanded="true"]::before { content: "×"; font-size: 32px; }

  .top-level {
    flex-direction: column; gap: 28px;
    margin: 64px 0 0; font-size: clamp(22px, 6vw, 32px);
    transform: translateX(16px); transition: transform .25s ease;
  }
  .main-nav[aria-expanded="true"] .top-level { transform: translateX(0); }

  /* Focus-within disabled on mobile (click-only) */
  .has-mega:focus-within .mega { display: none; }
  .has-mega[aria-expanded="true"] > .mega { display: grid; }

  /* Stack all mega panels */
  .mega {
    position: static; transform: none; width: 100%; max-width: 100%;
    box-shadow: none; border: 0; margin: 8px 0 0; padding: 0;
    grid-template-columns: 1fr; gap: 16px;
  }
  .has-mega.two .mega,
  .has-mega.wide .mega { grid-template-columns: 1fr; }

  .mega-col { padding-bottom: 14px; }
  .mega-col ul { columns: 1; }
  .mega .featured-links { grid-template-columns: 1fr; }

  .mega h3 { font-size: 22px; font-weight: 600; color: var(--color-green); margin: 6px 0 8px; }
  .mega h3 + ul { margin-bottom: 16px; }
  .mega a { font-size: 16px; }
}


/* ===== SECTIONS / CONTENT ===== */
.section { padding: 22px 0; }
@media (max-width: 900px) { .section { padding: 14px 0; } }
@media (min-width: 900px) { .section.section-tight { padding-top: 10px; padding-bottom: 20px; } }

.hero h1 {
  color: var(--color-heading);
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.1; font-weight: 700; margin: 0 0 40px;
}
.hero-media img { padding-top: 20px; }

.lede { font-size: 18px; color: var(--color-body-light); max-width: 65ch; }

.stack > * + * { margin-top: 12px; }
@media (min-width: 900px) { .stack > * + * { margin-top: 14px; } }

.list { padding-left: 18px; }
.list li { margin: 6px 0; }

/* Check lists */
.list.checks { list-style: none; padding-left: 0; padding-inline: 20px; }
.list.checks li { position: relative; padding-left: 28px; }
.list.checks li::before { content: "✔"; position: absolute; left: 0; top: 0.1em; font-weight: 700; }
.list.checks.big li { font-size: 18px; }
.list.checks.big li::before { font-size: 20px; }
.list.checks.big { padding-inline: 24px; }

/* Sidebar + card */
.sidebar { border-left: 1px solid var(--color-border); padding-left: 16px; }
.card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; background: #fff; }
.card h2, .card h3 { margin: 0 0 6px; }
@media (max-width: 900px) { .sidebar { border: 0; padding: 0; } .grid.two { grid-template-columns: 1fr; } }

/* Narrower max-width for select sections */
#inclusions .container.stack,
#free-quote .container.stack,
#cost .container.stack,
#high-risk .container.stack { max-width: 1000px; }

/* Background helpers */
.bg-blue-40  { background: rgba(179, 218, 255, 0.40); }
.bg-blue2-40 { background: rgba(179, 219, 255, 0.40); }
.bg-salmon-40 { background: rgba(255, 183, 179, 0.40); }
.bg-fafafa { background: #FAFAFA; }
.shadow { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.muted { color: #637991; }


/* ===== FLIP / LINK CARDS ===== */
.grid.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.cards { grid-template-columns: repeat(3, 1fr); } }

.card-link {
  display: block; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 16px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.card-link:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.10); border-color: var(--color-footer-text); }
.card-link:focus-visible { outline: 2px solid var(--color-heading); outline-offset: 3px; }
.card-link, .card-link:hover, .card-link:focus, .card-link:focus-visible,
.card-link h4, .card-link p { text-decoration: none; }

.card-media { display: block; margin: 0 auto 10px; text-align: center; }
.card-media img { height: 64px; width: auto; display: block; margin: 0 auto; }
@media (max-width: 600px) { .card-media img { height: 56px; } }

.card-body h4 { margin: 6px 0 6px; font-size: 18px; font-weight: 600; color: var(--color-text); text-align: center; }
.card-body p { margin: 0; color: var(--color-body-light); font-size: 16px; text-align: left; }


/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
.clean-table { width: 100%; border-collapse: collapse; }
.clean-table th, .clean-table td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); text-align: left; }
.clean-table thead th { background: #fff; font-weight: 600; }

@media (max-width: 900px) {
  .table-wrap, .risk-table { overflow: visible; }
  .clean-table, .clean-table tbody, .clean-table tr,
  .clean-table th, .clean-table td { display: block; width: 100%; }
  .clean-table thead { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
  .clean-table tr { border-top: 1px solid var(--color-border); margin-bottom: 16px; padding: 12px 0; background: #fff; }
  .clean-table td {
    border: 1px solid #ACACAC; padding: 10px 12px;
    display: flex; flex-direction: column; gap: 4px; background: #fff;
  }
  .clean-table td::before { content: attr(data-label); font-weight: 600; color: var(--color-heading); white-space: normal; }
  .clean-table td:not(:last-child) { margin-bottom: 8px; }
}


/* ===== RALPH PORTRAIT ===== */
.ralph-row { grid-template-columns: 300px 1fr; align-items: center; gap: 16px; }
.portrait-ralph { width: 300px; max-width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }
@media (max-width: 900px) { .ralph-row { grid-template-columns: 200px 1fr; } }
@media (max-width: 600px) { .ralph-row { grid-template-columns: 1fr; } }

.ralph-left { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.ralph-left .portrait-ralph { margin: 0 auto; }
.ralph-left .ralph-name { margin: 8px 0 4px; color: var(--color-heading); font-weight: 600; text-align: center; }
.ralph-left p { max-width: 65ch; }


/* ===== LOGOS MARQUEE (seamless CSS loop) ===== */
.logos-wrap {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0; margin: 24px 0;
  min-height: 64px;
}

.logos-track {
  display: flex; gap: 0;
  width: max-content;
  will-change: transform;
  animation: logos-marquee 28s linear infinite;
}

.logos {
  display: flex; align-items: center; gap: 48px;
  padding-right: 48px;
  margin: 0; padding-left: 0;
  list-style: none; flex: 0 0 auto;
}
.logos li { flex: 0 0 auto; display: flex; align-items: center; }
.logos img { height: 90px; width: auto; opacity: 0.85; }
.logos img:hover { opacity: 1; }
.logos-wrap:hover .logos-track { animation-play-state: paused; }

@keyframes logos-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ===== TESTIMONIALS MARQUEE (JS stepper — seamless) ===== */
.testimonials-wrap {
  overflow: hidden;
  padding: 16px 0; margin: 12px 0;
}

.testimonials-track {
  display: flex;
  gap: 24px; /* matches .testimonials gap — ensures even spacing at the seam */
  width: max-content;
  will-change: transform;
  /* JS toggles transition on for slides, off for instant resets */
  transition: none;
  /* Kill any inherited CSS animation — this is JS-driven only */
  animation: none;
}

.testimonials {
  display: flex; flex-wrap: nowrap;
  gap: 24px;
  list-style: none; margin: 0; padding: 0;
  align-items: stretch;
}

.testimonial {
  flex: 0 0 auto;
  display: flex; align-items: stretch;
  width: clamp(300px, 32vw, 380px);
  box-sizing: border-box;
}
@media (max-width: 900px) { .testimonial { width: 85vw; } }

/* Review card styling */
.testimonials-wrap .hs-review-card {
  background: #fff; color: var(--color-text);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  box-shadow: 0 1px 0 #e5e7eb, 0 8px 24px rgba(17,24,39,.08);
  width: 100%; display: flex; flex-direction: column;
}
.testimonials-wrap .hs-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.testimonials-wrap .hs-review-name { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: .2px; color: var(--color-text); }
.testimonials-wrap .hs-review-stars img { height: 20px; width: auto; max-width: none; display: block; }
.testimonials-wrap .hs-review-body { font-size: 18px; line-height: 1.6; color: var(--color-text); }
.testimonials-wrap .hs-review-accent { color: var(--color-accent); font-weight: 700; }
.testimonials-wrap .hs-review-foot { margin-top: 10px; font-size: 14px; color: #6b7280; }
.testimonials-wrap .hs-review-body,
.testimonials-wrap .hs-review-foot { word-break: break-word; }

/* Testimonials CTA */
.testimonials-cta { text-align: center; margin: 14px 0 0; font-size: 16px; }
.testimonials-cta a { color: var(--color-heading); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(66,91,118,.35); padding-bottom: 2px; }
.testimonials-cta a:hover { color: var(--color-text); border-bottom-color: var(--color-text); text-decoration: none; }
@media (min-width: 900px) { .testimonials-cta { margin-top: 10px; } }


/* ===== HERO BANNER (from addons) ===== */
.hero-banner {
  position: relative;
  background: center bottom / cover no-repeat;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  color: #fff;
  --hero-pad-top: 6rem;
  --hero-pad-bottom: 6rem;
  --hero-maxw: 1200px;
  --hero-overlay: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45));
}

/* Wide banner images — show people (left side) on mobile */
.hero-banner.hero--img-left  { background-position: left center; }
.hero-banner.hero--img-right { background-position: right center; }

/* Taller banner for panoramic images */
.hero-banner.hero--tall { min-height: 380px; }
@media (min-width: 900px) { .hero-banner.hero--tall { min-height: 440px; } }

.hero-banner::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-banner .hero-inner {
  position: relative; margin-inline: auto; max-width: var(--hero-maxw);
  padding: var(--hero-pad-top) 1rem var(--hero-pad-bottom);
  display: grid; align-content: center; min-height: 0;
}
.hero-banner h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.1; color: #fff; }
.hero-banner h2, .hero-banner h3 { color: #fff; }
.hero-banner .hero-subtitle { margin: 0 0 1.25rem; font-size: clamp(1.125rem, 2.2vw, 1.5rem); color: #fff; opacity: .95; }
.hero-banner .hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero--left   .hero-inner { text-align: left;   justify-items: start; }
.hero--center .hero-inner { text-align: center; justify-items: center; }
.hero--right  .hero-inner { text-align: right;  justify-items: end; }
@media (max-width: 640px) { .hero-banner { --hero-pad-top: 4rem; --hero-pad-bottom: 4rem; } }


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 6px; border: 0;
  text-decoration: none; font-weight: 600; line-height: 1; cursor: pointer;
}
.btn-primary { background: #f59d0e; color: #fff; }
.btn-primary:hover { filter: brightness(.95); }
.btn-outline { background: transparent; color: #fff; outline: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }


/* ===== ICON CHOICE GRID ===== */
.choice-grid {
  --choice-gap: 12px; --choice-min: 180px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--choice-min), 1fr));
  gap: var(--choice-gap); margin: 1.5rem 0;
}
.choice-card {
  background: #f5f7fb; border-radius: var(--radius-md); padding: 20px;
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 16px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.choice-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.choice-icon { width: 56px; height: 56px; border-radius: var(--radius-lg); display: grid; place-items: center; background: #e9eef9; }
.choice-label { font-weight: 600; color: #244060; margin: 0; }
.choice-desc { margin: .35rem 0 0; color: #415a77; font-size: .95rem; }
a.choice-card { color: inherit; text-decoration: none; }


/* ===== FAQ ACCORDION (no JS) ===== */
.faq { display: grid; gap: 10px; margin: 1.5rem 0; }
.faq details { background: #e7eff8; border-radius: var(--radius-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  font-weight: 700; color: #0e2a47;
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "▾"; transition: transform .15s ease; margin-left: 12px; }
.faq details[open] summary::after { transform: rotate(-180deg); }
.faq .answer { background: #fff; color: #243b53; padding: 18px; border-top: 1px solid rgba(0,0,0,.06); }
.faq .answer p { margin: .75rem 0; }
.faq .answer ol, .faq .answer ul { margin: .75rem 0 .75rem 1.25rem; }


/* ===== TWO-COLUMN SPLIT ===== */
.split-2 { display: grid; gap: 28px; }
@media (min-width: 960px) { .split-2 { grid-template-columns: 1fr 1fr; align-items: start; } }


/* ===== MINI ACCORDION ===== */
.mini-accordion { display: grid; gap: 12px; }
.mini-accordion details { background: #eef2f7; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid #dde5f0; }
.mini-accordion summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: #213a5a;
}
.mini-accordion summary::-webkit-details-marker { display: none; }
.mini-accordion summary::after {
  content: "+"; width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; background: #e0e7f1;
  color: #213a5a; font-weight: 800; line-height: 1; margin-left: 12px; flex: 0 0 28px;
}
.mini-accordion details[open] summary::after { content: "–"; }
.mini-accordion .mini-answer { background: #fff; padding: 14px 16px 16px; color: #2a3f5f; border-top: 1px solid #dde5f0; font-size: 0.98rem; }
.mini-accordion .mini-answer p { margin: .6rem 0; }
.mini-accordion .mini-answer ul, .mini-accordion .mini-answer ol { margin: .6rem 0 .6rem 1.25rem; }


/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-footer-bg); color: var(--color-footer-text);
  padding: 24px 0; font-size: 16px; line-height: 1.5;
}
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-col h3 { margin: 0 0 8px; font-size: 25px; font-weight: 300; color: var(--color-footer-heading); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 4px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--color-footer-text); text-decoration: underline; }

.nolink,
.site-footer .footer-col p,
.site-footer .footer-col li:not(:has(a)) { color: var(--color-footer-text); }

.footer-legal { border-top: 1px solid rgba(255,255,255,.2); margin-top: 24px; padding-top: 16px; color: var(--color-footer-text); text-align: center; }


/* ===== RESPONSIVE IMAGE HELPER ===== */
@media (max-width: 500px) {
  img.stack-img {
    float: none; display: block; width: 100%; max-width: 100%;
    height: auto; margin: 0 20px 16px 20px;
  }
}


/* ===== PAGE DESIGN ELEVATION ===== */

/* Lifted content sections — use on alternating sections for depth */
.section-elevated {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.06);
  margin: -1rem 0;
  position: relative;
  z-index: 1;
}

/* Subtle section divider line (add between sections without bg color) */
.section-divided { border-top: 1px solid var(--color-border); }

/* Content width constraint for readability */
.content-narrow { max-width: 820px; }
.content-mid    { max-width: 1000px; }

/* Better section spacing for long-form pages */
.section-lg { padding: 3rem 0; }
@media (min-width: 900px) { .section-lg { padding: 4rem 0; } }

/* Text alignment helpers */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mx-auto     { margin-left: auto; margin-right: auto; }

/* Lifted card variant — more prominent shadow for key content */
.card-lifted {
  background: #fff;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.04);
}

/* Color accent strip at top of card */
.card-accent { overflow: hidden; position: relative; }
.card-accent::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--accent-from, var(--color-heading)), var(--accent-to, #a8dadc));
}

/* Stat/price callout inside cards */
.stat-value {
  font-size: 1.25rem; font-weight: 800;
  color: var(--color-text); line-height: 1;
  margin: 1rem 0 0.5rem;
}

/* Pill badge (pricing update, tags, etc.) */
.badge {
  display: inline-block;
  background: var(--color-heading);
  color: #fff;
  font-size: 0.85rem; font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

/* Subtle background variants for sections */
.bg-warm    { background: linear-gradient(135deg, #f9f3f0 0%, #fff8f5 100%); }
.bg-cool    { background: linear-gradient(135deg, #f0f4f9 0%, #f5f8ff 100%); }
.bg-neutral { background: #f8f9fb; }

/* Grid: 3-column */
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* Grid: auto-fit cards */
.grid.auto-fit { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Stack with controllable gap */
.stack-lg > * + * { margin-top: 2rem; }
.stack-xl > * + * { margin-top: 2.5rem; }


/* ===== COST-UPDATE SECTION ===== */
/* Replaces ~60 inline style attributes per page partial */

.cost-update { padding: 4rem 0 3.5rem; }
@media (min-width: 900px) { .cost-update { padding: 5rem 0 4rem; } }

.cost-update .cost-header { margin-bottom: 3rem; }
@media (min-width: 900px) { .cost-update .cost-header { margin-bottom: 3.5rem; } }

.cost-update .cost-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.12; color: #1d3557;
  margin: 0 0 1rem; font-weight: 500;
}

.cost-update .cost-header p {
  font-size: 1.1rem; color: #457b9d;
  max-width: 720px; margin: 0 auto; line-height: 1.65;
}
.cost-update .cost-header .cost-note {
  font-size: 1rem; color: #5d5d7b;
  font-style: italic; margin-top: 1rem;
  max-width: 720px;
}

/* Cost cards */
.cost-card {
  background: #fff; border: none;
  border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.04);
}
.cost-card .cost-card-stripe {
  height: 5px;
  background: linear-gradient(to right, var(--stripe-from, var(--color-heading)), var(--stripe-to, #a8dadc));
}
.cost-card .cost-card-body { padding: 2rem 1.8rem 1.8rem; }
.cost-card .cost-card-body h3 {
  margin: 0 0 1.2rem;
  font-size: 1.5rem; font-weight: 500;
  color: var(--stripe-from, var(--color-heading));
}
.cost-card .cost-card-body p { color: #5d5d7b; font-size: 1.05rem; }

/* Pricing driver cards (up/down) */
.driver-card {
  border-radius: 14px; padding: 1.8rem;
  border: 1px solid var(--driver-border, var(--color-border));
  background: var(--driver-bg, #f8f9fb);
}
.driver-card-header {
  display: flex; align-items: center;
  margin-bottom: 1.2rem;
}
.driver-card-header .driver-icon { font-size: 1.8rem; margin-right: 0.8rem; }
.driver-card-header h4 {
  margin: 0; font-size: 1.3rem;
  color: var(--driver-color, var(--color-heading));
}
.driver-card .list { margin: 0; padding-left: 1.4rem; font-size: 1.05rem; line-height: 1.7; }

/* Driver variants */
.driver-up {
  --driver-bg: rgba(230, 57, 70, 0.06);
  --driver-border: rgba(230, 57, 70, 0.18);
  --driver-color: #804f4d;
}
.driver-down {
  --driver-bg: rgba(69, 123, 157, 0.06);
  --driver-border: rgba(69, 123, 157, 0.18);
  --driver-color: #457b9d;
}

/* Cost section factors card */
.cost-factors h3 { margin-top: 0; font-size: 1.45rem; }
.cost-factors p { font-size: 1.05rem; }
.cost-factors .italic-note { color: #5d5d7b; font-style: italic; margin-top: 1rem; }

/* Section-level heading inside cost-update */
.cost-section-heading {
  text-align: center;
  font-size: 1.8rem; color: #1d3557;
  margin-bottom: 2rem; font-weight: 600;
}

/* Form card in cost section */
.cost-form-card h3 { color: #457b9d; margin-top: 0; font-size: 1.45rem; }
.cost-form-card p { color: #5d5d7b; margin: 1rem 0 1.5rem; }


/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
  .choice-card, .faq summary::after, .mini-accordion summary::after { transition: none; }
}

/* ===== Circle-icon list variants =====
   Shared base for .checks-circle and .arrows-circle.
   Add to addons.css (or base.css alongside existing .list.checks rules).
   Total: ~20 lines — no bloat.
   ===== */
 
.list.checks-circle,
.list.arrows-circle {
  list-style: none;
  padding-left: 0;
}
 
.list.checks-circle li,
.list.arrows-circle li {
  position: relative;
  padding-left: 36px;
  margin: 10px 0;
}
 
.list.checks-circle li::before,
.list.arrows-circle li::before {
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2b2d42;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}
 
/* Checkmark in circle */
.list.checks-circle li::before { content: "✓"; }
 
/* Arrow in circle */
.list.arrows-circle li::before { content: "›"; font-size: 16px; font-weight: 700; }
 
/* Big variant */
.list.checks-circle.big li,
.list.arrows-circle.big li { font-size: 18px; }
 
.list.checks-circle.big li::before,
.list.arrows-circle.big li::before { width: 26px; height: 26px; font-size: 15px; }
 
.list.arrows-circle.big li::before { font-size: 18px; }
 
/* ===== HERO FORM CARD (append to base-v2.css) ===== */
 
/* Desktop: two-column hero — text left, form right, same banner height */
@media (min-width: 900px) {
  .hero-inner--with-form {
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: end;
  }
  .hero--left .hero-inner--with-form { justify-items: stretch; }
  .hero-inner--with-form .hero-text { text-align: left; justify-self: start; }
}
 
/* The card itself */
.hero-form-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  color: var(--color-text, #1b2d45);
  position: relative;
  z-index: 1;
}
 
/* Compact HS form overrides inside hero card */
.hero-form-card .hs-form fieldset { margin-bottom: 0 !important; }
.hero-form-card .hs-form .hs-form-field { margin-bottom: 6px !important; }
.hero-form-card .hs-form label:not(.hs-form-radio-display):not(.hs-form-checkbox-display) {
  font-size: 13px !important; margin-bottom: 2px !important;
}
.hero-form-card .hs-form .hs-input,
.hero-form-card .hs-form select { font-size: 14px !important; padding: 7px 10px !important; }
.hero-form-card .hs-form textarea.hs-input { min-height: 50px !important; }
.hero-form-card .hs-form .hs-submit input[type="submit"],
.hero-form-card .hs-form .hs-button { font-size: 14px !important; padding: 9px 18px !important; width: 100%; }
 
/* Mobile: hide — the full form is further down the page */
@media (max-width: 899px) { .hero-form-card { display: none; } 
  .hero-inner--with-form {
    --hero-pad-top: 10rem;
  }
}
/* Reduce top space inside hero form card */
.hero-form-card { padding: 0.25rem 1.25rem 1.25rem; }
.hero-form-card .hs-form h3,
.hero-form-card .hs-form .form-title { margin-top: 0 !important; margin-bottom: 0.5rem !important; }

/* ===== PRICE UPDATE TICKER (append to base-v2.css) ===== */

.price-ticker {
  background: linear-gradient(135deg, #1d3557 0%, #264966 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.price-ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.03) 0px,
      rgba(255,255,255,.03) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
}

.price-ticker-inner {
  max-width: var(--max, 1200px);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Main text */
.price-ticker-text {
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.price-ticker-text strong {
  color: #fff;
}

.price-ticker-text em {
  font-style: normal;
  color: #a8dadc;
}

/* Price highlight */
.price-ticker-amount {
  color: #f5c542;
  font-size: 20px;
  font-weight: 800;
}

/* CTA link */
.price-ticker-cta {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 6px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
  flex-shrink: 0;
}

.price-ticker-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* Mobile: stack gracefully */
@media (max-width: 640px) {
  .price-ticker-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }
  .price-ticker-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}
/* Slide-in animation for price ticker */
.price-ticker {
  animation: ticker-slide-in 0.8s ease-out both;
  animation-delay: 1s; /* let the page settle first */
}

@keyframes ticker-slide-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-ticker { animation: none; }
}

* ============================================
   MOBILE TABLE FIX — Stack label above content
   Paste at the VERY END of base.css
   or add as a separate stylesheet after base.css
   ============================================ */
@media (max-width: 900px) {
 
  .clean-table td,
  .table-wrap .clean-table td,
  .risk-table .clean-table td,
  section .clean-table td {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    /* Remove any grid that might be competing */
    grid-template-columns: none !important;
  }
 
  .clean-table td::before,
  .table-wrap .clean-table td::before,
  .risk-table .clean-table td::before,
  section .clean-table td::before {
    content: attr(data-label) !important;
    font-weight: 600 !important;
    color: #425b76 !important;
    font-size: 0.8rem !important;
    white-space: normal !important;
    width: auto !important;
    min-width: unset !important;
    max-width: none !important;
  }
 
}