/*
Theme Name: HVAC Marketing Solutions
Theme URI: https://hvacmarketing.solutions
Author: HVAC Marketing Solutions
Author URI: https://hvacmarketing.solutions
Description: A high-converting, SEO-optimized multipage theme for HVAC digital marketing agencies. Auto-builds all pages, menus, and homepage on activation. Trust-blue + urgent-orange design system, image-rich, schema-ready.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hvac-marketing-solutions
Tags: business, marketing, agency, seo, multipage, custom-menu, custom-logo, featured-images
*/

/* ============================================================
   DESIGN TOKENS  (UI/UX Pro Max: Home Services / contractor lead-gen)
   ============================================================ */
:root {
  --color-primary: #1E40AF;
  --color-primary-600: #1D4ED8;
  --color-primary-700: #1E3A8A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #3B82F6;
  --color-accent: #EA580C;       /* urgent orange CTA */
  --color-accent-600: #C2410C;
  --color-on-accent: #FFFFFF;
  --color-background: #EFF6FF;
  --color-foreground: #1E3A8A;
  --color-ink: #0F172A;
  --color-card: #FFFFFF;
  --color-muted: #E9EEF6;
  --color-muted-foreground: #475569;
  --color-border: #BFDBFE;
  --color-success: #16A34A;
  --color-destructive: #DC2626;
  --color-ring: #1E40AF;

  --font-heading: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow: 0 10px 30px -12px rgba(30,64,175,.28);
  --shadow-lg: 0 30px 60px -20px rgba(30,64,175,.35);

  --container: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-card);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-primary-600); }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); line-height: 1.15; color: var(--color-ink); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--color-muted-foreground); }
ul { padding-left: 0; }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--color-background); }
.section--ink { background: var(--color-ink); color: #fff; }
.section--ink h1,.section--ink h2,.section--ink h3 { color:#fff; }
.section--ink p { color: #CBD5E1; }
.grid { display: grid; gap: var(--gap); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary);
  background: var(--color-muted); padding: .4rem .9rem; border-radius: 999px;
}
.section--ink .eyebrow { background: rgba(255,255,255,.1); color: #93C5FD; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-muted-foreground); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-bg: var(--color-primary); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  min-height: 48px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: var(--shadow-sm); text-align: center; line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn svg { width: 20px; height: 20px; }
.btn--accent { --btn-bg: var(--color-accent); --btn-fg: #fff; box-shadow: 0 10px 24px -10px rgba(234,88,12,.6); }
.btn--accent:hover { background: var(--color-accent-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-primary); border-color: var(--color-border); }
.btn--ghost:hover { background: var(--color-muted); }
.btn--white { --btn-bg:#fff; --btn-fg: var(--color-primary-700); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; min-height: 56px; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .75rem 1rem; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 700; color: var(--color-ink); }
.brand:hover { color: var(--color-ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-size: 1.12rem; letter-spacing: -.02em; }
.brand-name span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; }
.primary-menu { display: flex; align-items: center; gap: .25rem; list-style: none; }
.primary-menu a { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-heading); font-weight: 500; font-size: .95rem; color: var(--color-ink); padding: .55rem .8rem; border-radius: 999px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { background: var(--color-muted); color: var(--color-primary); }
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; list-style: none;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s var(--ease); z-index: 10;
}
.primary-menu .menu-item-has-children:hover .sub-menu,
.primary-menu .menu-item-has-children:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { display: block; padding: .6rem .8rem; border-radius: 8px; font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; border-radius: 8px; }
.nav-toggle svg { width: 28px; height: 28px; color: var(--color-ink); }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .primary-menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; border-bottom: 1px solid var(--color-border); padding: 1rem; box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); z-index: 90;
  }
  .primary-menu.open { max-height: calc(100vh - 76px); overflow-y: auto; }
  .primary-menu a { padding: .8rem 1rem; }
  .primary-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 1rem; }
  .nav-actions .btn { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #EFF6FF 0%, #DBEAFE 45%, #EFF6FF 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(60% 60% at 85% 15%, rgba(59,130,246,.22), transparent 70%),
              radial-gradient(50% 50% at 10% 90%, rgba(234,88,12,.14), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 span { color: var(--color-primary); }
.hero .lead { margin-top: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.25rem; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: var(--font-heading); font-size: 1.7rem; color: var(--color-ink); }
.hero-trust small { color: var(--color-muted-foreground); font-size: .85rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px; background: #fff; border-radius: var(--radius);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem; max-width: 260px;
}
.hero-badge .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--color-muted); display: grid; place-items: center; color: var(--color-primary); flex: none; }
.hero-badge b { font-family: var(--font-heading); display: block; font-size: 1.05rem; color: var(--color-ink); }
.hero-badge small { color: var(--color-muted-foreground); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: left; } .hero-media { order: -1; max-width: 460px; } }

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.logos span { font-family: var(--font-heading); font-weight: 700; color: #94A3B8; font-size: clamp(1.05rem,2vw,1.4rem); letter-spacing: -.02em; }

/* ============================================================
   CARDS / SERVICES
   ============================================================ */
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--color-secondary); }
.card .ico { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 1.1rem; }
.card .card-link { margin-top: auto; font-family: var(--font-heading); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; color: var(--color-primary); }
.card .card-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }
.card--media { padding: 0; overflow: hidden; }
.card--media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card--media .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }


/* ============================================================
   FEATURE / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.check-list { list-style: none; display: grid; gap: .9rem; margin-top: 1.5rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--color-ink); }
.check-list svg { width: 24px; height: 24px; color: var(--color-success); flex: none; margin-top: 2px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stat b { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; display: block; }
.stat span { color: #93C5FD; font-weight: 500; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 1.75rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-heading); font-weight: 700; font-size: 2.4rem; color: var(--color-border); display: block; margin-bottom: .5rem; }
.step h3 { margin-bottom: .4rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.quote { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote .stars { color: #F59E0B; display: flex; gap: 2px; margin-bottom: .9rem; }
.quote .stars svg { width: 20px; height: 20px; }
.quote blockquote { font-size: 1.05rem; color: var(--color-ink); margin-bottom: 1.25rem; flex: 1; }
.quote .who { display: flex; align-items: center; gap: .8rem; }
.quote .who img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.quote .who b { font-family: var(--font-heading); color: var(--color-ink); display: block; font-size: .95rem; }
.quote .who small { color: var(--color-muted-foreground); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary)); border-radius: var(--radius-xl); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; color: #fff; }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 80% 0%, rgba(234,88,12,.35), transparent 60%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #DBEAFE; max-width: 55ch; margin-inline: auto; margin-top: .75rem; }
.cta-banner .hero-cta { justify-content: center; }

/* ============================================================
   PAGE HERO (inner pages) + BREADCRUMBS
   ============================================================ */
.page-hero { position: relative; background: linear-gradient(160deg, var(--color-primary-700), var(--color-primary)); color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 60% at 90% 10%, rgba(59,130,246,.4), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: #DBEAFE; max-width: 60ch; margin-top: 1rem; font-size: 1.1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: #93C5FD; margin-bottom: 1.25rem; }
.breadcrumbs a { color: #BFDBFE; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current] { color: #fff; }


/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: .85rem; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.15rem 1.35rem; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--color-ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q svg { width: 22px; height: 22px; color: var(--color-primary); transition: transform .25s var(--ease); flex: none; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { padding: 0 1.35rem 1.25rem; }
.faq-item.open .faq-a { max-height: 500px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.contact-info .row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--color-muted); color: var(--color-primary); display: grid; place-items: center; flex: none; }
.contact-info b { font-family: var(--font-heading); color: var(--color-ink); display:block; }
.form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--color-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--color-ink); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30,64,175,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--color-muted-foreground); margin-top: .75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px){ .form-row { grid-template-columns: 1fr; } }


/* ============================================================
   BLOG
   ============================================================ */
.post-card { background:#fff; border:1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display:flex; flex-direction:column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width:100%; }
.post-card .post-body { padding: 1.5rem; display:flex; flex-direction:column; flex:1; }
.post-card .post-meta { font-size:.8rem; color: var(--color-muted-foreground); margin-bottom:.5rem; text-transform: uppercase; letter-spacing:.06em; font-weight:600; }
.post-card h3 { margin-bottom:.6rem; }
.post-card .card-link { margin-top:auto; font-family: var(--font-heading); font-weight:600; color: var(--color-primary); display:inline-flex; gap:.4rem; align-items:center; }
.entry-content { max-width: 760px; margin-inline: auto; }
.entry-content p, .entry-content li { font-size: 1.075rem; color: #334155; margin-bottom: 1.25rem; }
.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.pagination { display:flex; gap:.5rem; justify-content:center; margin-top:2.5rem; flex-wrap:wrap; }
.pagination .page-numbers { padding:.6rem 1rem; border-radius:8px; border:1px solid var(--color-border); font-family:var(--font-heading); font-weight:600; }
.pagination .current { background: var(--color-primary); color:#fff; border-color: var(--color-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-ink); color: #CBD5E1; padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: 3rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand b, .site-footer .brand-name b { color: #fff; }
.site-footer p { color: #94A3B8; max-width: 40ch; }
.footer-col h4 { font-family: var(--font-heading); color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: #94A3B8; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; color:#94A3B8; }
.footer-contact svg { width: 18px; height: 18px; color: var(--color-secondary); flex:none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; color: #94A3B8; }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FLOATING MOBILE CTA + REVEAL
   ============================================================ */
.floating-cta { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 95; display: none; }
@media (max-width: 1024px) { .floating-cta { display: block; } .floating-cta .btn { box-shadow: var(--shadow-lg); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.center { text-align: center; } .mx-auto { margin-inline: auto; } .mt-2 { margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   SMALL-PHONE REFINEMENTS (<= 480px) — tested at 375px
   ============================================================ */
@media (max-width: 480px) {
  /* Full-width, stacked CTAs so buttons never overflow */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .cta-banner .hero-cta { align-items: stretch; }

  /* Hero image + floating badge: keep badge on-screen, no negative overflow */
  .hero-media { max-width: 100%; }
  .hero-badge { position: static; margin-top: 1rem; left: 0; bottom: 0; max-width: 100%; }

  /* Hero trust stats: even 3-up row that wraps cleanly */
  .hero-trust { gap: 1rem 1.25rem; }
  .hero-trust b { font-size: 1.4rem; }

  /* Give sections breathing room; reserve space for the floating CTA bar */
  .site-footer { padding-bottom: 5.5rem; }

  /* Tighter card + section padding on tiny screens */
  .card { padding: 1.35rem; }
  .cta-banner { padding: 2rem 1.25rem; }

  /* Prevent long emails/URLs from causing horizontal scroll */
  .footer-contact a, .contact-info a { word-break: break-word; }

  /* Slightly smaller sticky header height for more content room */
  .nav { min-height: 66px; }
  .primary-menu { inset-block-start: 66px; }
}

/* Extra-small phones (<= 360px): rein in the largest fluid headings */
@media (max-width: 360px) {
  h1 { font-size: 1.85rem; }
  .stat b { font-size: 2rem; }
}

