/* ============================================
   Varsity Heating and Cooling — Global CSS
   Design: "Varsity Athletic — Bold & Confident"

   Aesthetic: Collegiate energy meets Pacific NW craft.
   The otter in a letterman jacket tells you everything —
   approachable, confident, team-oriented. We lean hard
   into the varsity sports feel: bold condensed type,
   diagonal energy, stripe accents, and a navy-red-gold
   palette that hits like a school fight song.
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Varsity Blue — from logo badge */
  --blue: #1B3C72;
  --blue-mid: #244B8A;
  --blue-light: #2E5BA6;
  --blue-pale: #3A6FC2;
  --navy: #0D1B33;
  --navy-deep: #080F1F;

  /* Varsity Red — from logo ribbon */
  --red: #C8102E;
  --red-dark: #A10D25;
  --red-glow: #E8243F;

  /* Gold accent — warmth & prestige */
  --gold: #D4A843;
  --gold-light: #EDCB7A;
  --gold-muted: #B89545;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F6F7F9;
  --cream: #F0EDE8;
  --gray-100: #E5E7EB;
  --gray-200: #D1D5DB;
  --gray-300: #9CA3AF;
  --text: #1A1F2E;
  --text-mid: #3B4255;
  --text-light: #5E6578;
  --text-muted: #8B91A0;

  /* Spacing */
  --section-pad: 130px;
  --section-pad-m: 80px;

  /* Shadows — deep blue tint */
  --sh-sm: 0 2px 8px rgba(13, 27, 51, 0.07);
  --sh-md: 0 12px 40px rgba(13, 27, 51, 0.09);
  --sh-lg: 0 24px 64px rgba(13, 27, 51, 0.13);
  --sh-xl: 0 32px 80px rgba(13, 27, 51, 0.18);
  --sh-red: 0 8px 30px rgba(200, 16, 46, 0.25);
  --sh-blue: 0 8px 30px rgba(27, 60, 114, 0.2);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 50px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Noise texture — inline SVG for grain overlay */
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease-smooth); }
ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Big Shoulders Display', 'Impact', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  color: var(--blue);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Section Label — varsity stripe accent ---- */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  width: 36px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 36px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Diagonal stripe hover effect on primary buttons */
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--sh-red);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transition: left 0.5s var(--ease);
}

.btn-primary:hover::after { left: 100%; }

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(200, 16, 46, 0.35);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--sh-blue);
}

.btn-secondary:hover {
  background: var(--blue-mid);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.btn-outline-dark:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 21px 48px;
  font-size: 0.92rem;
}

/* ---- Header — frosted glass ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.4s var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(13, 27, 51, 0.06);
  border-bottom-color: rgba(13, 27, 51, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  transition: height 0.4s var(--ease-smooth);
}

.header.scrolled .header-inner { height: 68px; }

/* Logo: banner badge */
.logo-banner {
  height: 52px;
  width: auto;
  transition: all 0.4s var(--ease-smooth);
  filter: drop-shadow(0 2px 8px rgba(13, 27, 51, 0.1));
}

.header.scrolled .logo-banner { height: 42px; }

.logo:hover .logo-banner {
  filter: drop-shadow(0 4px 14px rgba(13, 27, 51, 0.18));
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  position: relative;
  padding: 4px 0;
}

/* Red underline slide-in on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.35s var(--ease-spring);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue);
  letter-spacing: 0.03em;
}

.header-phone svg { width: 18px; height: 18px; fill: var(--red); }
.header-phone:hover { color: var(--red); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s var(--ease-spring);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100dvh; /* dynamic viewport height — accounts for browser chrome */
  background: var(--navy-deep);
  z-index: 999;
  padding: 90px 32px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s var(--ease-smooth);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.active { opacity: 1; visibility: visible; }

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 0;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
}

.mobile-nav .mobile-nav-cta {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-nav .mobile-nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 48px;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 90px 0 0;
  position: relative;
}

/* Subtle diagonal stripe at top of footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px,
    var(--red) 40px,
    var(--blue) 40px,
    var(--blue) 80px,
    var(--gold) 80px,
    var(--gold) 120px
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
  height: 55px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 22px;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer-contact a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s var(--ease-spring);
}

.social-links a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px) scale(1.05);
}

.social-links svg { width: 17px; height: 17px; fill: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.45); transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--white); }

/* ---- Page Hero (Interior Pages) ---- */
.page-hero {
  position: relative;
  padding: 140px 0 72px;
  background: var(--navy-deep);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}

.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255, 255, 255, 0.3); }

.page-hero h1 {
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 620px;
}

.page-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---- Related Services Grid ---- */
.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--sh-sm);
  border: 1px solid rgba(27, 60, 114, 0.06);
  transition: all 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(200, 16, 46, 0.1);
}

.related-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.related-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.related-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Nearby Areas Grid ---- */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.nearby-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--off-white);
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.nearby-link:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateX(4px);
}

.nearby-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---- Quick Facts Sidebar ---- */
.quick-facts {
  background: var(--off-white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border-left: 4px solid var(--red);
}

.quick-facts h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.quick-fact-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.quick-fact-item:last-child { border-bottom: none; }

.quick-fact-item .label {
  color: var(--text-light);
  font-weight: 500;
}

.quick-fact-item .value {
  font-weight: 700;
  color: var(--text);
}

/* ---- Form Styles ---- */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 60, 114, 0.1);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-checkbox:has(input:checked) {
  border-color: var(--blue);
  background: rgba(27, 60, 114, 0.05);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.form-submit {
  width: 100%;
  min-height: 56px;
  font-size: 1.05rem;
}

.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- FAQ Accordion ---- */
.faq-item { border-bottom: 1px solid var(--gray-100); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  transition: color 0.3s ease;
}

.faq-question:hover { color: var(--red); }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--red);
  transition: transform 0.4s var(--ease-spring);
  flex-shrink: 0;
  margin-left: 24px;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-smooth), padding 0.5s var(--ease-smooth);
}

.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 26px; }

.faq-answer p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* ---- Sticky Mobile CTA Bar ---- */
.mobile-cta-bar { display: none; }

/* ---- Touch Device Overrides ---- */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .why-card:hover,
  .review-card:hover,
  .about-stat-card:hover { transform: none; box-shadow: inherit; }
  .btn:hover { transform: none; }
  .service-card:active { transform: scale(0.98); transition: transform 0.1s; }
  .btn:active { transform: scale(0.97); opacity: 0.85; transition: transform 0.1s, opacity 0.1s; }
  .faq-question:active { background: rgba(0, 0, 0, 0.03); }
  .social-links a:hover { transform: none; }
  .social-links a:active { transform: scale(0.95); }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* content-visibility removed — causes layout shift flicker on mobile */

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .container { padding: 0 32px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- 768px: Mobile transition ---- */
@media (max-width: 768px) {
  .page-hero { padding: 100px 0 48px; }
  .page-hero-buttons { flex-direction: column; }
  .page-hero-buttons .btn { width: 100%; text-align: center; }
  .related-services { grid-template-columns: 1fr; gap: 16px; }
  .nearby-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-checkbox-group { grid-template-columns: 1fr; }
  body { font-size: 16px; line-height: 1.6; }
  .container { padding: 0 24px; }
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .header-inner { height: 72px; }
  .header.scrolled .header-inner { height: 62px; }
  .logo-banner { height: 42px; }
  .header.scrolled .logo-banner { height: 36px; }

  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); }

  /* Sticky CTA bar — solid bg, no backdrop-filter (GPU-heavy + flicker) */
  .mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-cta-bar.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
  }

  .mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: var(--red);
    color: var(--white);
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* Buttons full-width in content sections */
  .btn-lg { width: 100%; justify-content: center; min-height: 52px; }

  /* Footer mobile — extra bottom padding for sticky CTA clearance */
  .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-links a { padding: 8px 0; min-height: 44px; display: flex; align-items: center; }

  /* FAQ touch targets */
  .faq-question { font-size: 0.98rem; padding: 18px 0; min-height: 56px; }
}

/* ---- 640px: Phone breakpoint ---- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .btn-lg { padding: 18px 36px; font-size: 0.92rem; }
  .section-label { font-size: 0.75rem; }
}

/* ---- 480px: Small phones ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 16px 28px; font-size: 0.88rem; }
}

/* ---- 375px: Tiny phones ---- */
@media (max-width: 375px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.15rem; }
}
