/* ============================================================
   SHARED HEADER & FOOTER — Southwest Seamless Rain Gutters
   ============================================================ */

/* ===== GLOBAL OVERFLOW PREVENTION ===== */
/* overflow-x:clip clips horizontal overflow WITHOUT creating a scroll container.
   Unlike overflow:hidden, clip does not break position:sticky on the header. */
html, body {
  overflow-x: clip !important;
}

/* ===== CSS Variables ===== */
:root {
  color-scheme: dark;
  --bg-dark: #1c1c1c;
  --bg-dark-2: #141414;
  --bg-navy: #041334;
  --bg-header: #262626;
  --bg-footer: #171719;
  --bg-card: #292929;
  --green-primary: #19440e;
  --green-primary-hover: #1f5511;
  --lime-accent: #a6fb7c;
  --heading-blue: #cdeafc;
  --text-white: #ffffff;
  --text-muted: #8a8a8a;
  --border-dark: #333333;
  --outline: #555555;
}

/* ===== SHARED UTILITIES ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  background: var(--green-primary);
  color: var(--text-white);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 2px solid var(--green-primary);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--green-primary-hover);
  border-color: var(--lime-accent);
  opacity: 1;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--lime-accent);
  color: var(--bg-dark);
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--lime-accent);
  color: var(--bg-dark);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--bg-header);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-dark);
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              box-shadow 0.35s ease,
              border-bottom-color 0.35s ease;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ===== LOGO ===== */
.site-header .logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .logo-link:hover {
  opacity: 0.85;
  transform: scale(1.04);
}

.site-header .logo-link img {
  height: 56px;
  width: auto;
  display: block;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== DESKTOP NAV ===== */
.site-header .main-nav {
  display: none;
  gap: 24px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.site-header .main-nav a {
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 1;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.site-header .main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--lime-accent);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .main-nav a:hover {
  color: var(--lime-accent);
  opacity: 1;
}

.site-header .main-nav a:hover::after {
  width: 100%;
}

/* ===== HEADER CTA (right side) ===== */
.site-header .header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* ===== PHONE BADGE (desktop only) ===== */
.site-header .phone-badge {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Poppins', sans-serif;
  color: var(--text-white);
  font-size: 0.85rem;
  line-height: 1.2;
}

.site-header .phone-badge span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-header .phone-badge a {
  color: var(--lime-accent);
  font-weight: 700;
  font-size: 1.0rem;
  text-decoration: none;
  opacity: 1;
}

.site-header .phone-badge a:hover {
  opacity: 0.85;
}

/* ===== DESKTOP BREAKPOINT ===== */
@media (min-width: 1024px) {
  .site-header .main-nav {
    display: flex;
  }

  .site-header .phone-badge {
    display: flex;
  }

  .site-header .header-cta .btn {
    display: inline-flex;
  }
}

/* CTA button glow ring on hover */
.site-header .header-cta .btn:hover {
  box-shadow: 0 0 0 4px rgba(166, 251, 124, 0.2);
}

/* Hide CTA button on small screens to reduce clutter (hamburger serves as nav trigger) */
@media (max-width: 599px) {
  .site-header .header-cta .btn {
    display: none;
  }
}

/* ===== HEADER SCROLLED STATE ===== */
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(38, 38, 38, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45),
              0 1px 0 rgba(166, 251, 124, 0.15);
  border-bottom-color: rgba(166, 251, 124, 0.18);
}

.site-header.is-scrolled .logo-link img {
  height: 42px;
}

/* ===== ACTIVE NAV LINK ===== */
.site-header .main-nav a.is-active {
  color: var(--lime-accent);
}
.site-header .main-nav a.is-active::after {
  width: 100%;
}
.mobile-nav a.is-active {
  color: var(--lime-accent);
  background: rgba(166, 251, 124, 0.06);
}

/* ===== DESKTOP MEGA-MENU (Service Areas dropdown) ===== */
.nav-has-dropdown {
  position: relative;
}

/* Invisible bridge fills the gap between trigger and panel so hover doesn't break */
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 22px;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 1;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--lime-accent);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-has-dropdown:hover .nav-dropdown-trigger,
.nav-has-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown-trigger.is-active {
  color: var(--lime-accent);
}

.nav-has-dropdown:hover .nav-dropdown-trigger::after,
.nav-has-dropdown:focus-within .nav-dropdown-trigger::after,
.nav-dropdown-trigger.is-active::after {
  width: 100%;
}

.nav-dropdown-trigger svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-has-dropdown:hover .nav-dropdown-trigger svg,
.nav-has-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Panel */
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 760px;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  background: var(--bg-header);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 26px 28px;
  z-index: 1001;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(166, 251, 124, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateX(-50%) translateY(-6px);
}

.nav-has-dropdown:hover .nav-dropdown-panel,
.nav-has-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Prevent the main-nav ::after underline from appearing on dropdown links */
.nav-dropdown-panel a::after {
  content: none !important;
}

.nav-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.nav-dropdown-col-head {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--lime-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dark);
}

.nav-dropdown-col > a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  padding: 6px 0;
  transition: color 0.15s;
  text-decoration: none;
  line-height: 1.3;
}

.nav-dropdown-col > a:hover {
  color: var(--lime-accent);
}

.nav-dropdown-group {
  margin-top: 8px;
}

.nav-dropdown-group-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin: 14px 0 6px;
}

.nav-dropdown-group > a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  padding: 6px 0;
  transition: color 0.15s;
  text-decoration: none;
  line-height: 1.3;
}

.nav-dropdown-group > a:hover {
  color: var(--lime-accent);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}

.nav-dropdown-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  padding: 5px 0;
  transition: color 0.15s;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.nav-dropdown-grid a:hover {
  color: var(--lime-accent);
}

.nav-dropdown-view-all {
  display: inline-block;
  margin-top: 16px !important;
  color: var(--lime-accent) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
}

/* ===== MOBILE NAV ACCORDION (Service Areas) ===== */
.mobile-nav-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 24px;
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.mobile-nav-accordion-trigger:hover {
  color: var(--lime-accent);
}

.mobile-nav-accordion-trigger svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-nav-accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav-accordion-body {
  display: none;
  padding-bottom: 8px;
}

.mobile-nav-accordion-body.is-open {
  display: block;
}

.mobile-nav-sub-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 24px 10px 28px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  margin-top: 4px;
}

.mobile-nav-sub-trigger:hover {
  color: var(--lime-accent);
}

.mobile-nav-sub-trigger svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-nav-sub-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav-sub-body {
  display: none;
}

.mobile-nav-sub-body.is-open {
  display: block;
}

.mobile-sub-link {
  display: block;
  padding: 7px 24px 7px 36px;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: none;
  opacity: 1;
}

.mobile-sub-link:hover {
  color: var(--lime-accent);
  opacity: 1;
}

.mobile-sub-link--cta {
  color: var(--lime-accent) !important;
  font-weight: 600;
  padding-left: 28px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* ===== HAMBURGER TOGGLE BUTTON ===== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1100;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background 0.2s ease;
  transform-origin: center;
}

.nav-toggle:hover .hamburger-bar,
.nav-toggle:focus-visible .hamburger-bar {
  background: var(--lime-accent);
}

/* X state when open */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* ===== MOBILE NAV BACKDROP ===== */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1049;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.mobile-nav-backdrop.is-open {
  display: block;
  opacity: 1;
}

/* ===== MOBILE NAV PANEL ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg-header);
  border-left: 1px solid var(--border-dark);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dark);
  flex-shrink: 0;
}

.mobile-nav-top img {
  height: 44px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lime-accent);
}

.mobile-nav a {
  display: block;
  padding: 16px 24px;
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s;
  opacity: 1;
}

.mobile-nav a:hover {
  color: var(--lime-accent);
  background: rgba(166, 251, 124, 0.06);
  opacity: 1;
}

.mobile-nav-phones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  margin-top: auto;
  border-top: 1px solid var(--border-dark);
  flex-shrink: 0;
}

.mobile-nav-phones .btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.92rem;
  justify-content: center;
}

.mobile-nav-phones .btn-outline {
  width: 100%;
}

/* Prevent body scroll when mobile nav is open */
/* Scroll lock is handled via JS position:fixed trick — works on iOS Safari */

@media (min-width: 1024px) {
  .mobile-nav,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--bg-footer);
  padding: 64px 0 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer .footer-col h5 {
  color: var(--lime-accent);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-col ul li {
  margin-bottom: 8px;
}

.site-footer .footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  text-decoration: none;
  opacity: 1;
}

.site-footer .footer-col ul a:hover {
  color: var(--lime-accent);
  opacity: 1;
}

.site-footer .footer-col p {
  font-size: 0.92rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .footer-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.site-footer .footer-phones a {
  color: var(--lime-accent);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  opacity: 1;
}

.site-footer .footer-phones a:hover {
  opacity: 0.8;
}

.site-footer .footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .footer-bottom .licenses {
  margin-bottom: 8px;
}

.site-footer .footer-bottom .licenses span {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--lime-accent);
  font-family: 'Poppins', sans-serif;
  margin: 0 4px;
}

.site-footer .footer-bottom p {
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.site-footer .footer-bottom a {
  opacity: 1;
}

.site-footer .footer-bottom a:hover {
  color: var(--lime-accent);
  opacity: 0.85;
}

.site-footer .footer-legal a {
  transition: color 0.2s;
}

.site-footer .footer-legal a:hover {
  color: var(--lime-accent) !important;
}

/* ============================================================
   MOBILE RESPONSIVENESS FIXES
   ============================================================ */

/* ── Fix: double X button — hide hamburger while mobile nav is open ── */
body.nav-open .nav-toggle {
  visibility: hidden;
  pointer-events: none;
}

/* ── Fix: hero eyebrow badge — inline-flex with long text overflows ── */
@media (max-width: 1023px) {
  .hero-eyebrow {
    display: inline-block; /* enables text-overflow: ellipsis */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    padding: 5px 12px;
    vertical-align: middle;
  }
  /* Keep the dot visible as inline element */
  .hero-eyebrow .dot {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
  }
}

/* ── Fix: hero h1 font size on small screens ── */
@media (max-width: 767px) {
  .hero h1,
  h1 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    overflow-wrap: break-word;
  }

  /* Fix: hero content edge padding */
  .hero-content,
  .hero-inner {
    width: 100%;
  }

  /* Fix: hero CTA buttons — wrap to individual lines */
  .hero-cta,
  .hero-cta-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-cta .btn,
  .hero-cta-row .btn {
    justify-content: center;
    text-align: center;
  }

  /* Fix: stats grid — 4 columns overflows on mobile; override to 2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-num {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.3px;
  }

  /* Fix: trust mini row — wrap on small screens */
  .hero-trust-mini {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-trust-mini div {
    font-size: 0.78rem;
  }

  /* Fix: process grid — 1 card per row on mobile */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Fix: lead text max-width shouldn't exceed viewport */
  .hero-lead,
  .lead,
  p.lead {
    max-width: 100%;
    font-size: 0.95rem;
  }

  /* Fix: general overflow-wrap for all text content */
  p, li, td, th, dt, dd, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ── Fix: homepage hero-video strips horizontal padding; restore on mobile ── */
@media (max-width: 1023px) {
  .hero.hero-video .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ── Fix: mobile call bar — responsive on all mobile sizes ── */
@media (max-width: 767px) {
  .mobile-call-bar {
    gap: 6px;
    padding: 10px 12px;
  }
  .mobile-call-bar a {
    font-size: 0.8rem;
    padding: 10px 10px;
    gap: 4px;
    min-width: 0;
  }
  .mobile-call-bar a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
}

/* ── Fix: breadcrumb overflow on narrow screens ── */
@media (max-width: 767px) {
  .breadcrumbs ol {
    flex-wrap: wrap;
    gap: 2px;
  }
}

/* ── Fix: footer bottom license badges — wrap on small screens ── */
@media (max-width: 479px) {
  .site-footer .footer-bottom .licenses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .site-footer .footer-bottom .licenses span {
    margin: 0;
  }
}

/* ── Fix: compare/pricing tables — allow horizontal scroll within container ── */
@media (max-width: 767px) {
  .compare-table-wrap,
  .pricing-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Fix: section headings that may overflow without mobile reduction ── */
@media (max-width: 479px) {
  h2 {
    font-size: clamp(1.4rem, 5.5vw, 2.1rem);
  }
  h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }
  .final-cta h2 {
    font-size: clamp(1.4rem, 5.5vw, 2.1rem);
  }
}
