/* Reusable UI components: buttons, cards, forms, badges */

/* Typography: headings and body — match hero */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  color: var(--text);
}

h2 {
  font-size: var(--h2);
}

p,
.section-header__body,
.quote-card__body,
.split-layout__bullets,
.testimonial-card__quote {
  line-height: 1.6;
  color: var(--muted);
}

.faq-aside-card {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: grid;
  gap: 1rem;
}

.faq-aside-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.faq-aside-card__body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.faq-aside-card__meta {
  display: grid;
  gap: 0.75rem;
}

.faq-aside-card__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.faq-aside-card__contact:hover {
  color: var(--color-light-blue);
  text-decoration: none;
}

.faq-aside-card__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.faq-aside-card .btn--primary {
  width: fit-content;
  background: var(--color-light-blue);
}

/* ---- 3-tier header (Aptive-style) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.promo-strip {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--lightBlue);
  color: var(--surface);
}

.promo-strip__text {
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.utility-bar {
  min-height: 80px;
  padding: 18px 0;
  background: var(--navy);
  color: var(--surface);
  display: flex;
  align-items: center;
}

.utility-bar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.utility-bar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
}

.utility-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.utility-bar__phone {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--surface);
  text-decoration: none;
}

.utility-bar__phone:hover {
  color: var(--lightBlue);
  text-decoration: none;
}

.utility-bar__center {
  justify-self: center;
}

.utility-bar__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--surface);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.171875rem;
  letter-spacing: 0.02em;
}

.utility-bar__logo:hover {
  color: var(--lightBlue);
  text-decoration: none;
}

.utility-bar__logo-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Brand lockup: shield icon + text in utility bar center */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-lockup__icon {
  width: 37.5px;
  height: 37.5px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.brand-lockup__text {
  line-height: 1;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Header-specific: white monochrome icon on navy for strong contrast */
.utility-bar .brand-lockup__icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 680px) {
  .brand-lockup {
    gap: 10px;
  }

  .brand-lockup__icon {
    width: 30px;
    height: 30px;
  }
}

.utility-bar__right {
  justify-self: end;
}

.utility-bar__service-areas {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.utility-bar__service-areas:hover {
  color: var(--lightBlue);
  text-decoration: none;
}

.nav-bar {
  width: 100%;
  min-height: 80px;
  padding: 18px 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-bar__brand {
  display: none;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.nav-bar__brand:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-bar__links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
}

.nav-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-bar__cta {
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--lightBlue);
  color: var(--surface);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.nav-bar__cta:hover {
  filter: brightness(1.06);
}

.nav-bar__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-bar__menu-toggle:hover {
  background: rgba(11, 31, 59, 0.06);
}

.nav-bar__menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--lightBlue);
}

/* Nav link typography and colors in nav bar */
.nav-bar .site-nav__link,
.nav-bar .site-nav__trigger {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.nav-bar .site-nav__link:hover,
.nav-bar .site-nav__trigger:hover {
  color: var(--lightBlue);
  text-decoration: none;
}

/* No underline in nav bar — hover only highlights menu name in light blue */
.nav-bar .site-nav__link::after,
.nav-bar .site-nav__link:hover::after,
.nav-bar .site-nav__link--active::after {
  display: none;
}

.nav-bar .site-nav__link--active,
.nav-bar .site-nav__item--active .site-nav__trigger {
  color: var(--lightBlue);
  font-weight: 600;
}

.nav-bar .site-nav__dropdown {
  background: var(--surface);
  border-color: var(--border);
}

.nav-bar .site-nav__dropdown-link:hover,
.nav-bar .site-nav__dropdown-link:focus-visible {
  background: rgba(90, 167, 255, 0.12);
  color: var(--lightBlue);
}

@media (min-width: 720px) {
  .nav-bar__links {
    display: flex;
  }

  .nav-bar__menu-toggle {
    display: none;
  }
}

/* Align first nav item ("Services") with hero card label (ROSEN PEST DEFENSE) — desktop only */
@media (min-width: 1024px) {
  .nav-bar__inner {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--hero-label-left);
    padding-right: var(--page-gutter);
  }

  .nav-bar__links,
  .nav-bar .site-nav {
    margin-left: 0;
    padding-left: 0;
  }

  /* Align left edge of "Get a Quote" with "F" in "Find Service Area" above */
  .nav-bar__cta {
    transform: translateX(-48px);
  }
}

/* ---- Services dropdown: Aptive-style hover on desktop, click on mobile ---- */
.nav-item--dropdown {
  position: relative;
}

/* Desktop: hover/focus-within opens dropdown; no click required */
@media (min-width: 901px) {
  .nav-item--dropdown .site-nav__dropdown,
  .nav-item--dropdown .nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 0;
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.7rem;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(11, 31, 59, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
    z-index: 50;
    display: grid;
    gap: 0.2rem;
  }

  .nav-item--dropdown .site-nav__dropdown-link,
  .nav-item--dropdown .nav-dropdown .site-nav__dropdown-link {
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .nav-item--dropdown .site-nav__dropdown-link--active,
  .nav-item--dropdown .nav-dropdown .site-nav__dropdown-link--active {
    background: rgba(90, 167, 255, 0.12);
  }

  .nav-item--dropdown:hover .site-nav__dropdown,
  .nav-item--dropdown:hover .nav-dropdown,
  .nav-item--dropdown:focus-within .site-nav__dropdown,
  .nav-item--dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Hover safe zone so menu doesn't flicker when moving mouse to dropdown */
  .nav-item--dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }
}

/* Mobile/tablet: click toggles .is-open; dropdown uses display none/block */
@media (max-width: 900px) {
  .nav-item--dropdown {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-item--dropdown .site-nav__dropdown,
  .nav-item--dropdown .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: 0;
    padding: 0.6rem 0.5rem;
    margin-top: 0.5rem;
    border-radius: var(--r-md);
    box-shadow: none;
  }

  .nav-item--dropdown.is-open .site-nav__dropdown,
  .nav-item--dropdown.is-open .nav-dropdown,
  .nav-item--dropdown.site-nav__item--open .site-nav__dropdown,
  .nav-item--dropdown.site-nav__item--open .nav-dropdown {
    display: block;
  }

  .nav-item--dropdown::after {
    display: none;
  }
}

.eyebrow {
  margin-bottom: 0.35rem;
}

/* Primary button everywhere: light blue bg, white text, 44px height, pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--r-pill);
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--lightBlue);
  color: var(--surface);
  box-shadow: none;
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px var(--surface),
    0 0 0 3px rgba(90, 167, 255, 0.45);
}

/* Secondary = text link (underlined on hover), not pill button */
.btn--ghost {
  background: transparent;
  border: none;
  color: var(--lightBlue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  height: auto;
  padding: 0;
}

.btn--ghost:hover {
  text-decoration-thickness: 1.5px;
}

.btn--text {
  background: transparent;
  padding-inline: 0;
  border: none;
  border-radius: 0;
  height: auto;
  color: var(--lightBlue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.btn--text:hover {
  text-decoration-thickness: 1.5px;
}

.btn--icon-only {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list__item {
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  border-radius: var(--r-md);
  padding: 1.4rem 1.4rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: rgba(90, 167, 255, 0.12);
}

.feature-card__title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature-card__body {
  font-size: 0.92rem;
  color: var(--muted);
}

.insight-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.insight-card {
  border-radius: var(--r-lg);
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #0b1f3b;
  box-shadow: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.insight-card-link:hover .insight-card,
.insight-card-link:focus-visible .insight-card {
  border-color: #5aa7ff;
  box-shadow: 0 18px 32px rgba(11, 31, 59, 0.08);
  transform: translateY(-2px);
}

.insight-card-link:focus-visible {
  outline: none;
}

.insight-card__media {
  padding: 1.35rem 1.35rem 0;
}

.insight-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  background: #dbe7f4;
}

.insight-card__body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  padding: 1.35rem;
}

.insight-card__header {
  display: flex;
  align-items: center;
}

.insight-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.insight-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(90, 167, 255, 0.18);
  color: #0b1f3b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.insight-card__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #0b1f3b;
}

.insight-card__summary {
  display: grid;
  gap: 0.6rem;
}

.insight-card__line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #0b1f3b;
}

.insight-card__line strong {
  color: #0b1f3b;
  font-weight: 700;
}

.insight-card__link {
  color: #5aa7ff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: auto;
  text-decoration: none;
  text-underline-offset: 0.16em;
  width: fit-content;
}

.insight-card-link:hover .insight-card__link,
.insight-card-link:focus-visible .insight-card__link {
  text-decoration-thickness: 1.5px;
  text-decoration: underline;
}

.insight-card-link:hover .insight-card__title,
.insight-card-link:focus-visible .insight-card__title {
  text-decoration: underline;
  text-decoration-color: rgba(90, 167, 255, 0.85);
  text-underline-offset: 0.18em;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  min-width: 130px;
}

.stat__value {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat__label {
  font-size: 0.86rem;
  color: var(--muted);
}

.list-check {
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.list-check__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.list-check__icon {
  margin-top: 0.15rem;
  color: var(--lightBlue);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.field__control {
  position: relative;
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--lightBlue);
  box-shadow: 0 0 0 1px rgba(90, 167, 255, 0.2);
  background: var(--surface);
}

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

.field__hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.field__error {
  margin: 0;
  font-size: 0.8rem;
  color: #b42318;
}

.field--error label {
  color: #8f1d12;
}

.field--error :is(.input, .select, .textarea) {
  border-color: rgba(180, 35, 24, 0.42);
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.field--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.field--inline label {
  margin: 0;
}

.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.risk-label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.risk-label::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: text-bottom;
}

.risk-high-medical {
  background-color: #fee2e2;
  color: #b91c1c;
}

.risk-sting {
  background-color: #fef3c7;
  color: #92400e;
}

.risk-venomous {
  background-color: #fcdddd;
  color: #7f1d1d;
}

.risk-sanitation {
  background-color: #ede9fe;
  color: #6d28d9;
}

.risk-biting {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.risk-infiltration {
  background-color: #dcfce7;
  color: #166534;
}

.risk-nuisance {
  background-color: #e2e8f0;
  color: #475569;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table thead {
  background: var(--bg);
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

.table tr:last-of-type td {
  border-bottom: 0;
}

/* Split-layout bullet lists */
.split-layout__bullets {
  row-gap: 0.9rem;
  font-size: 1rem;
  line-height: 1.65;
}

.split-layout__bullets li {
  padding-block: 0.15rem;
}

/* Testimonial cards — border only, no fill; equal height; 4.9 + small star icons */
.testimonial-card {
  border-radius: var(--r-md);
  padding: 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
  box-shadow: none;
}

.testimonial-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.testimonial-card__rating-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
}

.testimonial-card__star {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  font-size: 0.7rem;
  color: var(--lightBlue);
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.testimonial-card__quote {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.testimonial-card__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.testimonial-card__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.testimonial-card__meta,
.testimonial-card__name {
  margin: 0;
}

/* Hero — navy overlay + light blue accent + clean grey bg */
.hero {
  padding: var(--section-pad-y) 0;
  background: var(--bg);
  color: var(--text);
}

/* Conversion hero: navy panel (matches top hero theme) */
.hero--conversion {
  padding: 0;
  min-height: 480px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero--conversion .hero__inner--conversion {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hero__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero__title {
  color: var(--text);
}

.hero__subhead {
  font-size: 1rem;
  max-width: var(--content-max-line);
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.hero__card {
  border-radius: var(--r-lg);
  padding: 2.1rem 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero--conversion .hero__card {
  background: var(--navy-2);
  border-radius: var(--r-lg);
  border: 1px solid rgba(226, 232, 240, 0.2);
  box-shadow: var(--shadow-panel);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 4vw, 2.5rem);
  width: 100%;
  max-width: none;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--conversion .hero__kicker {
  color: var(--lightBlue);
}

.hero--conversion .hero__title {
  color: var(--surface);
}

.hero--conversion .hero__subhead {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero--conversion .hero__actions .btn--primary {
  background: var(--lightBlue);
  color: var(--surface);
  border-radius: var(--r-pill);
  height: 44px;
  padding: 0 22px;
}

.hero--conversion .hero__secondary-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hero--conversion .hero__secondary-link:hover {
  text-decoration-thickness: 1.5px;
}

.hero__primary {
  min-width: 11rem;
}

.hero__secondary-link {
  font-size: 0.9rem;
  color: var(--lightBlue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hero__secondary-link:hover {
  text-decoration-thickness: 1.5px;
}

.hero__image {
  width: 100%;
  max-height: 460px;
  border-radius: 0 var(--r-lg) 0 var(--r-lg);
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__inner--conversion .hero__image {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 var(--r-lg) 0 var(--r-lg);
}

@media (max-width: 719px) {
  .hero--conversion .hero__inner--conversion {
    min-height: 0;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .hero__inner--conversion .hero__image {
    height: auto;
    min-height: 0;
    max-height: 380px;
  }

  .hero--conversion .hero__card {
    min-height: 0;
  }
}

/* Hero (Aptive-style homepage): full-bleed image + left overlay card */
.hero:has(.hero-media) {
  padding: 0;
  padding-left: 0;
  padding-right: 0;
  background: none;
}

.hero-media {
  position: relative;
  width: 100%;
  margin: 0;
  height: clamp(520px, 62vh, 640px);
  overflow: hidden;
  border-radius: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 59, 0.18);
  pointer-events: none;
}

.hero-media__img,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center; /* focal point 60–65% so technician stays visible when card shifts left */
  display: block;
}

/* Overlay card: Aptive-like placement — float over image, fixed width, vertically centered */
.hero-card {
  position: absolute;
  top: 50%;
  left: var(--hero-card-left);
  transform: translateY(-50%);
  width: 520px;
  max-width: calc(100% - 56px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(226, 232, 240, 0.35);
  background: rgba(11, 31, 59, 0.88);
  color: var(--surface);
  z-index: 1;
  box-shadow: var(--shadow-panel);
  text-align: left;
}

/* Desktop: narrower card, 5–10px further left so label aligns under "Services" */
@media (min-width: 900px) {
  .hero-media .hero-card {
    width: clamp(360px, 32vw, 440px);
    max-width: calc(100% - 32px);
    left: clamp(6px, 0.8vw, 20px);
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Inner wrapper: left-aligned content column; flex-start + center so label aligns under nav */
.hero-card__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 44px 44px;
  padding-left: var(--hero-card-pad-x);
  padding-right: var(--hero-card-pad-x);
  gap: 22px;
  width: 100%;
  max-width: 360px;
}

.hero-card__label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lightBlue);
  opacity: 0.9;
  margin: 0 0 6px 0;
  padding: 0;
  line-height: 1.2;
  font-weight: 500;
  max-width: 24ch;
}

.hero-card__title,
.hero-card h1 {
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  max-width: 11ch;
  color: var(--surface);
  text-align: left;
}

.hero-card__title .accent {
  color: var(--lightBlue);
}

.hero-card__cta {
  margin-top: 10px;
  width: 100%;
}

.hero-card__cta .btn {
  margin: 0;
  align-self: flex-start;
}

.hero-card__btn,
.hero-card .btn {
  border-color: transparent;
  background: var(--lightBlue);
  color: var(--surface);
}

.hero-card__btn:hover,
.hero-card .btn:hover {
  filter: brightness(1.06);
  color: var(--surface);
}

.hero-card__btn:focus-visible,
.hero-card .btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px var(--surface),
    0 0 0 3px rgba(90, 167, 255, 0.45);
}

/* Mobile: card near-full width, bottom-aligned; inner stays left-aligned */
@media (max-width: 680px) {
  .hero-card {
    left: 16px;
    right: 16px;
    width: auto;
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .hero-card__inner {
    padding: 28px 22px;
    padding-left: 22px;
    padding-right: 22px;
    gap: 18px;
  }

  .hero-card__title,
  .hero-card h1 {
    max-width: 11ch;
  }
}

@media (max-width: 719px) {
  .hero-media {
    height: clamp(520px, 62vh, 640px);
  }
}

/* Quote section — simple panel on off-white background */
.section--quote {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.quote-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: none;
  padding: var(--section-gap);
  width: min(100%, 1680px);
  margin-left: auto;
  margin-right: auto;
}

.quote-block {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 901px) {
  .quote-block {
    grid-template-columns: minmax(320px, 420px) minmax(520px, 1fr);
    gap: 48px;
    align-items: start;
  }
}

.quote-block__intro {
  margin: 0;
  max-width: 420px;
}

.quote-block__title {
  font-size: var(--h2);
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  color: var(--text);
  max-width: 28ch;
  line-height: 0.98;
  text-wrap: balance;
}

.quote-block__body {
  font-size: var(--body);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 22ch;
}

.quote-card__title {
  font-size: var(--h2);
  margin: 0 0 0.5rem;
}

.quote-card__body {
  font-size: var(--body);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--content-max-line);
  margin: 0;
}

.quote-form-wrapper {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.quote-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr);
  gap: 20px 24px;
  align-items: end;
}

.quote-form__row {
  display: contents;
}

.quote-form__row .quote-form__field {
  min-width: 0;
}

.quote-form__field--zip {
  grid-column: 1;
  grid-row: 1;
}

.quote-form__field--property {
  grid-column: 2;
  grid-row: 1;
}

.quote-form__field--submit {
  grid-column: 1 / 2;
  grid-row: 2;
  justify-self: start;
  margin-top: 4px;
}

.quote-form__field--submit .btn {
  min-height: 44px;
}

@media (max-width: 900px) {
  .quote-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .quote-block__intro,
  .quote-block__title {
    max-width: none;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-form__field--zip,
  .quote-form__field--property,
  .quote-form__field--submit {
    grid-column: auto;
    grid-row: auto;
  }

  .quote-form__field--submit .btn {
    width: auto;
  }
}

@media (min-width: 901px) {
  .quote-form__field--zip,
  .quote-form__field--property {
    width: 100%;
  }
}

.quote-form__meta {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: var(--content-max-line);
  margin: 0;
}

/* Split Feature: image + content, alternating layout, no card — matches hero design language */
.split-feature {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: var(--section-gap);
  align-items: center;
}

/* Editorial image treatment: softer, more natural look for section photos (not hero) */
.split-feature__media {
  min-width: 0;
  position: relative;
  border: none;
  box-shadow: none;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.split-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 59, 0.06);
  pointer-events: none;
  border-radius: inherit;
}

.split-feature__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid rgba(11, 31, 59, 0.06);
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  filter: brightness(0.92) contrast(0.96) saturate(0.94);
}

.split-feature__content {
  min-width: 0;
}

.split-feature__accent {
  width: 48px;
  height: 2px;
  background: var(--lightBlue);
  margin-bottom: 0.75rem;
  border-radius: var(--r-pill);
}

.split-feature__title {
  font-size: var(--h2);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.split-feature__intro {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: var(--body-line);
  font-size: var(--body);
}

.split-feature__benefits {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.split-feature__line {
  margin: 0;
  font-size: var(--body);
  line-height: 1.6;
  color: var(--muted);
}

.split-feature__line strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 720px) {
  .split-feature {
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
  }

  .split-feature--reverse .split-feature__media {
    order: 2;
  }

  .split-feature--reverse .split-feature__content {
    order: 1;
  }
}

/* Split layout (FAQ, etc.) — same container and spacing scale */
.split-layout {
  display: grid;
  gap: var(--section-gap);
  align-items: center;
}

.split-layout__image-shell {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 220px;
  box-shadow: none;
}

.split-layout__image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-layout__headline {
  font-size: var(--h2);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.split-layout__intro {
  margin-bottom: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.split-layout__bullets {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
}

.split-layout__bullets li {
  padding-block: 0.15rem;
}

@media (min-width: 720px) {
  .split-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  .split-layout--reverse .split-layout__image-shell {
    order: 2;
  }

  .split-layout--reverse .split-layout__content {
    order: 1;
  }
}

/* Pest preview grid (home page) */
.pest-grid {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scroll-snap-type: x mandatory;
}

.pest-grid--preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  overflow: visible;
}

@media (max-width: 759px) {
  .pest-grid--preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pest-card {
  min-width: min(220px, 80%);
  scroll-snap-align: start;
  border-radius: var(--r-md);
  padding: 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.section--pest-preview .pest-card {
  padding: 1.375rem;
}

@media (min-width: 720px) {
  .section--pest-preview .pest-card {
    padding: 1.5rem;
  }
}

.pest-card:hover {
  border-color: var(--lightBlue);
  transform: translateY(-2px);
}

.pest-card__title {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.pest-card__summary {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.pest-card__link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--lightBlue);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  align-self: flex-start;
  font-weight: 500;
}

.pest-card__link:hover {
  text-decoration-thickness: 1.5px;
}

@media (min-width: 960px) {
  .pest-grid:not(.pest-grid--preview) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    overflow: visible;
  }

  .pest-grid:not(.pest-grid--preview) .pest-card {
    min-width: 0;
  }
}

.pest-grid + .pest-carousel__cta,
.pest-grid + .pest-preview__cta {
  margin-top: var(--section-gap);
  text-align: center;
}

.section--pest-preview .pest-preview__cta .btn--primary {
  background: var(--lightBlue);
  color: var(--surface);
}

/* Testimonials — hero theme; same spacing scale */
.section[aria-labelledby="testimonials-heading"] .section-header {
  margin-bottom: var(--section-gap);
}

.testimonials-grid {
  display: grid;
  gap: var(--section-gap);
  align-items: stretch;
}

@media (min-width: 720px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--section-gap);
    align-items: stretch;
  }
}

/* FAQ accordion — flat style: thin dividers, arrow that rotates on open, collapsed by default */
.accordion {
  border: none;
  background: transparent;
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__item:first-child {
  border-top: 1px solid var(--border);
}

.accordion__button {
  width: 100%;
  padding: 1rem 0;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  color: var(--navy);
}

.accordion__chevron {
  flex-shrink: 0;
  position: relative;
  width: 1rem;
  height: 1rem;
  border: none;
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

/* Right-pointing arrow (caret) */
.accordion__chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform var(--transition-fast);
}

.accordion__item[data-open="true"] .accordion__chevron {
  transform: rotate(90deg);
}

.accordion__chevron::after {
  display: none;
}

.accordion__panel {
  padding: 0.75rem 0 1.25rem 0;
  padding-inline-start: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  display: none;
}

.accordion__item[data-open="true"] .accordion__panel {
  display: block;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta__body {
  max-width: var(--content-max-line);
  margin: 0.5rem auto var(--section-gap);
  color: var(--muted);
  line-height: 1.6;
}

/* Scroll reveal animations */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s var(--transition-med),
    transform 0.5s var(--transition-med);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up-soft"] {
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate].is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

