/*
Theme Name: Annual Pest Management
Theme URI: https://example.com
Author: Your Name
Description: Custom theme for Annual Pest Management
Version: 1.0.153
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: annual-pest-management
*/

/*
 * Custom block styles & component overrides
 *
 * Most design tokens (colors, typography, spacing, default buttons)
 * live in theme.json. Use this file only for things theme.json
 * can't handle: custom block style classes, hover states, shadows,
 * hero decorations, card overlaps, etc.
 */
/* ==========================================================================
   Button block styles
   Apply in the editor: Button block → Styles panel → pick a style
   ========================================================================== */
/**
 * Phone button
 * Hero contact button — clear fill, thin white border, red phone icon.
 * Default red button styling comes from theme.json.
 */
.wp-block-button.is-style-phone .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background-color: transparent;
  color: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--base);
  border-radius: 8px;
  box-shadow: none;
}
.wp-block-button.is-style-phone .wp-block-button__link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-phone .wp-block-button__link::before {
  --apm-phone-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  content: "";
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  background-color: var(--wp--preset--color--primary);
  -webkit-mask: var(--apm-phone-icon) center / contain no-repeat;
  mask: var(--apm-phone-icon) center / contain no-repeat;
}
/* ==========================================================================
   Eyebrow label above section headings
   ========================================================================== */
.apm-eyebrow {
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Services dropdown
   Same panel as the previous mega menu: one column, title plus description.
   ========================================================================== */
@media (min-width: 782px) {
  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-mega
    .wp-block-navigation__submenu-container {
    display: flex;
    flex-direction: column;
    width: 26rem;
    min-width: 22rem;
    padding: 0.65rem;
    background-color: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 12px;
    box-shadow: var(--wp--preset--shadow--card);
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-mega
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-mega
    .wp-block-navigation-item__label {
    display: inline-flex;
    align-items: center;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-mega
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item:not(.apm-menu-all)
    .wp-block-navigation-item__label::after {
    content: "→";
    margin-left: 0.35rem;
    color: var(--wp--preset--color--primary);
    opacity: 0;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-mega
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item:not(.apm-menu-all):hover
    .wp-block-navigation-item__label::after,
  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-mega
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item:not(.apm-menu-all):focus-within
    .wp-block-navigation-item__label::after {
    opacity: 1;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-mega
    .wp-block-navigation-item__description {
    display: block;
    color: var(--wp--preset--color--muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
  }
}

/* Space between a page hero and the first section under it.
   Matches the special offers page.
   Space under the last section, before the footer, is shared by every page. */
:root {
  --apm-after-hero: 5.5rem;
  --apm-before-footer: 10rem;
}

@media (max-width: 860px) {
  :root {
    --apm-after-hero: 3.5rem;
    --apm-before-footer: 6.5rem;
  }
}

.wp-site-blocks > main {
  padding-bottom: var(--apm-before-footer);
}

/* ==========================================================================
   Homepage hero
   Header floats over the full-viewport cover, and over the full-bleed
   page heroes, the same way.
   ========================================================================== */
body:is(
    .home,
    :has(.apm-contact-hero, .apm-about-hero, .apm-locations-hero, .apm-faqs-hero, .apm-privacy-hero, .apm-pest-hero, .apm-service-hero)
  )
  .wp-site-blocks
  > header {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 20;
}

body.home,
body.home .wp-site-blocks {
  background-color: var(--wp--preset--color--base);
}

body:is(
    .home,
    :has(.apm-contact-hero, .apm-about-hero, .apm-locations-hero, .apm-faqs-hero, .apm-privacy-hero, .apm-pest-hero, .apm-service-hero)
  )
  .wp-site-blocks
  > main,
body.home .wp-site-blocks > main > .wp-block-cover {
  margin-block-start: 0;
}

body.home .wp-site-blocks > main.is-layout-flow > * + * {
  margin-block-start: 0;
}

.apm-hero-title {
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(2.6rem, 2.6rem + ((1vw - 0.2rem) * 3.636), 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.apm-hero-title .has-primary-color {
  color: var(--wp--preset--color--primary);
}

.apm-hero {
  max-width: 100%;
}

.apm-hero .wp-block-cover__inner-container {
  position: static;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.apm-hero .wp-block-cover__inner-container > :not(.apm-hero-badge) {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 100%);
}

.apm-hero .apm-hero-badge {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  left: auto;
  width: clamp(7.5rem, 18vw, 13.5rem);
  max-width: none;
  margin: 0 !important;
  pointer-events: none;
}

.apm-hero .apm-hero-badge img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Header burger
   Shown as soon as the logo, links, and quote button no longer fit one row.
   ========================================================================== */
.apm-header .apm-menu-cta {
  display: none;
}

.apm-header .wp-block-navigation__responsive-container-open {
  color: var(--wp--preset--color--primary);
  width: 1.65rem;
  height: 1.15rem;
  min-width: 1.65rem;
  min-height: 1.15rem;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position:
    center top,
    center center,
    center bottom;
}

.apm-header .wp-block-navigation__responsive-container-open svg {
  display: none;
}

.apm-header .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--primary);
}

.apm-menu-meta,
.apm-drill-back {
  display: none;
}

.apm-header.is-collapsed > .wp-block-navigation {
  margin-left: auto;
  flex: 0 0 auto;
  width: auto;
}

.apm-header.is-collapsed > .wp-block-buttons {
  display: none;
}

.apm-header .wp-block-site-logo img {
  width: 221px;
  height: auto;
}

.apm-header.is-collapsed .wp-block-site-logo {
  min-width: 0;
  max-width: calc(100% - 2.75rem);
}

.apm-header.is-collapsed .wp-block-site-logo img {
  max-width: 100%;
  height: auto;
}

.apm-header.is-collapsed .wp-block-navigation__responsive-container-open {
  display: flex;
}

.apm-header.is-collapsed
  .wp-block-navigation__responsive-container:not(.is-menu-open) {
  display: none;
  position: absolute;
  width: max-content;
  height: auto;
}

.apm-header .wp-block-navigation__responsive-container.is-menu-open {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  background-color: var(--wp--preset--color--base) !important;
  color: var(--wp--preset--color--contrast);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-close,
.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-dialog {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.apm-menu-bar {
  display: none;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-menu-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.85rem;
  background: var(--wp--preset--color--base);
}

.apm-menu-logo {
  display: block;
  min-width: 0;
}

.apm-menu-logo img {
  display: block;
  width: 12.71rem;
  max-width: 100%;
  height: auto;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-close {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--wp--preset--color--primary);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-close
  svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  position: relative;
  display: block;
  padding: 0.35rem 1.25rem 2.25rem !important;
  overflow: auto;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container
  > .wp-block-navigation-item {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__submenu-icon {
  display: none !important;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content:focus,
.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-back-button:focus {
  outline: none;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container
  > .wp-block-navigation-item
  > .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.95rem 0.35rem;
  border-radius: 8px;
  color: var(--wp--preset--color--contrast);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container
  > .has-child
  > .wp-block-navigation-item__content::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: auto;
  border-top: 2px solid #9ca3af;
  border-right: 2px solid #9ca3af;
  transform: rotate(45deg);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container
  > .wp-block-navigation-item
  > .wp-block-navigation-item__content:hover {
  background-color: #fdecef;
  color: var(--wp--preset--color--primary);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container
  > .has-child
  > .wp-block-navigation-item__content:hover::after {
  border-color: var(--wp--preset--color--primary);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container
  > .has-child
  > .wp-block-navigation__submenu-container {
  display: none !important;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-menu-cta {
  display: flex;
  width: 100%;
  margin-top: 1.15rem;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-menu-cta
  .wp-block-button,
.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-menu-cta
  .wp-block-button__link {
  width: 100%;
  border-radius: 8px;
  justify-content: center;
  text-align: center;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-menu-cta
  .wp-block-button__link {
  padding: 0.95rem 1rem;
  font-size: 0.8rem;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-menu-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.apm-menu-phone,
.apm-menu-area {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--wp--preset--color--contrast);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.apm-menu-phone svg,
.apm-menu-area svg {
  flex: 0 0 auto;
}

.apm-menu-social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.apm-menu-social a {
  display: flex;
  color: var(--wp--preset--color--contrast);
}

.apm-drill-slot:not([hidden]) {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: block;
  padding: 0.15rem 1.25rem 2.25rem;
  overflow: auto;
  background: var(--wp--preset--color--base);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-slot
  > .wp-block-navigation__submenu-container {
  display: flex !important;
  position: static !important;
  flex-direction: column;
  gap: 0;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  column-count: 1 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-slot
  > .wp-block-navigation__submenu-container::before {
  content: none;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-back {
  display: block;
}

.apm-drill-back-button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.95rem 0.35rem;
  border: 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  background: transparent;
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.apm-drill-back-icon {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.15rem;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-slot
  .wp-block-navigation-link
  > .wp-block-navigation-item__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0.9rem 0.55rem;
  border-radius: 8px;
  color: var(--wp--preset--color--contrast);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-slot
  .wp-block-navigation-item__label {
  display: flex;
  align-items: center;
  width: 100%;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-slot
  .wp-block-navigation-link:not(.apm-menu-all)
  > .wp-block-navigation-item__content
  .wp-block-navigation-item__label::after {
  content: "→";
  margin-left: auto;
  color: var(--wp--preset--color--primary);
  opacity: 0;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-slot
  .wp-block-navigation-item__description {
  display: block;
  margin-top: 0.2rem;
  padding-right: 1.5rem;
  color: var(--wp--preset--color--muted);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-slot
  .wp-block-navigation-link
  > .wp-block-navigation-item__content:hover {
  background: #fdecef;
  color: var(--wp--preset--color--primary);
}

.apm-header
  .wp-block-navigation__responsive-container.is-menu-open
  .apm-drill-slot
  .wp-block-navigation-link:not(.apm-menu-all)
  > .wp-block-navigation-item__content:hover
  .wp-block-navigation-item__label::after {
  opacity: 1;
}

.apm-header.apm-measuring .wp-block-navigation__submenu-container {
  display: none !important;
}

/* ==========================================================================
   Homepage services
   Cards are one published Service post each.
   ========================================================================== */
.apm-services {
  background-color: var(--wp--preset--color--base);
  padding: 5.25rem 1.5rem 5.5rem;
}

.apm-services__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.apm-services .apm-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--wp--preset--color--primary);
  text-align: center;
}

.apm-services__heading {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: center;
}

.apm-services__rule {
  display: block;
  width: 2.6rem;
  height: 3px;
  margin: 0.95rem auto 2.75rem;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 16px;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.apm-service-card:hover {
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
  transform: translateY(-2px);
}

.apm-service-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.apm-service-card__link:hover,
.apm-service-card__link:focus {
  color: inherit;
  text-decoration: none;
}

.apm-service-card:focus-within {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

.apm-service-card__link:focus-visible {
  outline: none;
}

.apm-service-card__media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  background-color: var(--wp--preset--color--surface);
}

.apm-service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.apm-service-card__icon {
  position: absolute;
  left: 1.15rem;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  box-shadow: 0 6px 14px rgba(200, 16, 46, 0.28);
  transform: translateY(50%);
}

.apm-service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.35rem 1.25rem 1.35rem;
}

.apm-service-card__title {
  margin: 0 0 0.55rem;
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: uppercase;
}

.apm-service-card__text {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
}

.apm-service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.05rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.92rem;
  font-weight: 600;
}

.apm-service-card__link:hover .apm-service-card__more {
  color: var(--wp--preset--color--primary-dark);
}

@media (max-width: 1100px) {
  .apm-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.apm-services__intro {
  max-width: 36rem;
  margin: 0.85rem auto 0;
  color: var(--wp--preset--color--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.apm-services-archive .apm-services--archive {
  padding-top: var(--apm-after-hero);
}

.apm-services--archive .apm-services__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.apm-services-archive {
  background-color: var(--wp--preset--color--surface);
}

/* Pest finder is the last section, so it should meet the help band. */
.wp-site-blocks > main.apm-services-archive {
  padding-bottom: 0;
}

.apm-services-archive.is-layout-flow > * + * {
  margin-block-start: 0;
}

.apm-services-archive.is-layout-flow > .apm-services--archive {
  margin-block-start: 0;
}

.apm-services-archive .apm-contact-hero__photo img {
  object-position: 72% center;
}

@media (max-width: 1100px) {
  .apm-services--archive .apm-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apm-services {
    padding: 3.5rem 1.15rem 3.75rem;
  }

  .apm-services__grid,
  .apm-services--archive .apm-services__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact page hero
   Split banner: copy on the page background, photo flush on the right.
   ========================================================================== */
.apm-contact {
  --apm-page-pad: var(--wp--preset--spacing--40);
  background-color: var(--wp--preset--color--surface);
  padding: 0 var(--apm-page-pad) 3rem;
}

.apm-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: stretch;
  box-sizing: border-box;
  width: calc(100% + var(--apm-page-pad, 0px) * 2);
  max-width: none;
  margin-right: calc(var(--apm-page-pad, 0px) * -1);
  margin-left: calc(var(--apm-page-pad, 0px) * -1);
  min-height: clamp(30rem, 58vh, 38rem);
  background-color: var(--wp--preset--color--surface);
}

.apm-contact-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: calc(var(--wp--preset--spacing--30) + 7.5rem) 2rem 3rem
    max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-contact-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  color: #8b919a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-contact-hero__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-contact-hero__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2.6rem, 1.2rem + 3.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.apm-contact-hero__title span {
  color: var(--wp--preset--color--primary);
}

.apm-contact-hero__text {
  max-width: 26rem;
  margin: 1.1rem 0 0;
  color: #6d737c;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
}

.apm-contact-hero__photo {
  position: relative;
  min-height: 100%;
  margin: 0 0 0 -12%;
  overflow: hidden;
}

.apm-contact-hero__photo img {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

.apm-contact-hero__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

@media (max-width: 800px) {
  .apm-contact-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .apm-contact-hero__copy {
    padding: calc(var(--wp--preset--spacing--30) + 7rem) 1.35rem 1.5rem;
  }

  .apm-contact-hero__title {
    font-size: clamp(2.4rem, 1.6rem + 4vw, 3.4rem);
  }

  .apm-contact-hero__photo {
    aspect-ratio: 16 / 10;
    margin-left: 0;
  }

  .apm-contact-hero__photo img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
  }
}

/* ==========================================================================
   Contact enquiry
   Form card plus the other ways to get in touch.
   ========================================================================== */
.apm-contact .apm-enquiry {
  max-width: 1200px;
  margin-block-start: var(--apm-after-hero);
  margin-block-end: 0.5rem;
  margin-inline: auto;
}

.apm-enquiry__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16.5rem, 0.72fr);
  gap: 1.75rem 2.4rem;
  align-items: start;
}

.apm-enquiry__panel,
.apm-enquiry__card {
  background-color: var(--wp--preset--color--base);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(26, 26, 26, 0.06);
}

.apm-enquiry__panel {
  padding: 1.85rem 1.9rem 1.6rem;
}

.apm-enquiry h2 {
  margin: 0 0 1.2rem;
  color: var(--wp--preset--color--contrast);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ==========================================================================
   Shared enquiry form
   One form for Contact Us and Get a Free Quote. Conditional panels swap
   without a reload. Loaded from style.css.
   ========================================================================== */
.apm-form {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.apm-form [hidden] {
  display: none !important;
}

.apm-form__banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background-color: #e8f6ec;
  color: #146c36;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.apm-form__banner.is-error {
  background-color: #fdecef;
  color: var(--wp--preset--color--primary-dark);
}

.apm-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apm-form__fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.apm-form__fieldset legend {
  display: block;
  float: left;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0;
}

.apm-form__fieldset::after {
  content: "";
  display: block;
  clear: both;
}

.apm-form__field label,
.apm-form__fieldset legend {
  color: var(--wp--preset--color--contrast);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.apm-form__req {
  color: var(--wp--preset--color--primary);
}

.apm-form__optional {
  color: #8b919a;
  font-weight: 600;
}

.apm-form__types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  clear: both;
}

.apm-form__type {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-sizing: border-box;
  height: 100%;
  min-height: 4.6rem;
  margin: 0;
  padding: 0.75rem 0.7rem;
  border: 2px solid #e4e7eb;
  border-radius: 12px;
  background-color: var(--wp--preset--color--base);
  cursor: pointer;
}

.apm-form__type:hover {
  border-color: #c5cad1;
}

.apm-form__type:has(input:checked),
.apm-form__type:has(input:checked):hover {
  border-color: var(--wp--preset--color--primary);
}

.apm-form__type-text {
  min-width: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.apm-form__type-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #8b919a;
}

.apm-form__type-icon svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.apm-form__type:has(input:checked) .apm-form__type-icon {
  color: var(--wp--preset--color--primary);
}

.apm-form__type input,
.apm-form__radio input {
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border: 1.5px solid #c5cad1;
  border-radius: 50%;
  background-color: var(--wp--preset--color--base);
  cursor: pointer;
}

.apm-form__type input:checked,
.apm-form__radio input:checked {
  border-color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--primary);
}

.apm-form__type input:checked::before,
.apm-form__radio input:checked::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background-color: #fff;
}

.apm-form__type input:focus-visible,
.apm-form__radio input:focus-visible {
  outline: 2px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}

.apm-form__row,
.apm-form__details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  align-items: start;
}

.apm-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.apm-form input[type="text"],
.apm-form input[type="tel"],
.apm-form input[type="email"],
.apm-form textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: none;
}

.apm-form textarea {
  min-height: 6.75rem;
  resize: vertical;
}

.apm-form input::placeholder,
.apm-form textarea::placeholder {
  color: #a0a6ae;
}

.apm-form input:focus,
.apm-form textarea:focus {
  border-color: var(--wp--preset--color--primary);
  outline: 2px solid rgba(200, 16, 46, 0.18);
  outline-offset: 1px;
}

.apm-form__field.is-invalid input,
.apm-form__field.is-invalid textarea {
  border-color: var(--wp--preset--color--primary);
}

.apm-form__error {
  margin: 0.35rem 0 0;
  color: var(--wp--preset--color--primary);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.apm-form__fieldset > .apm-form__error,
.apm-form__chips + .apm-form__error {
  clear: both;
}

.apm-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.45rem;
  clear: both;
}

.apm-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #2c3138;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.apm-form__conditional {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.apm-form__conditional[hidden] {
  display: none !important;
}

.apm-form__details {
  padding: 1.05rem 1.05rem 1.15rem;
  border-radius: 14px;
  background-color: #f4f5f7;
}

.apm-form__details-title {
  margin: 0 0 0.95rem;
  color: var(--wp--preset--color--contrast);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.apm-form__pests {
  margin: 0;
}

.apm-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  clear: both;
}

.apm-form__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.42rem 0.85rem 0.42rem 0.6rem;
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  background-color: var(--wp--preset--color--base);
  color: #2c3138;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.apm-form__chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.apm-form__chip-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: #3a4048;
  pointer-events: none;
}

.apm-form__chip-icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.apm-form__chip:hover {
  border-color: #c5cad1;
}

.apm-form__chip:has(input:checked) {
  border-color: var(--wp--preset--color--primary);
  background-color: #fdecef;
  color: var(--wp--preset--color--primary);
}

.apm-form__chip:has(input:checked) .apm-form__chip-icon {
  color: var(--wp--preset--color--primary);
}

.apm-form__chip:has(input:focus-visible) {
  outline: 2px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}

.apm-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
}

.apm-form__submit:hover {
  background-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--base);
}

@container (max-width: 620px) {
  .apm-form__details-grid {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 460px) {
  .apm-form__types-grid,
  .apm-form__row,
  .apm-form__details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .apm-form__types-grid,
  .apm-form__row,
  .apm-form__details-grid {
    grid-template-columns: 1fr;
  }
}

.apm-enquiry__aside h2 {
  padding-top: 1.85rem;
}

.apm-enquiry__cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.apm-enquiry__card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  color: inherit;
  text-decoration: none;
}

.apm-enquiry__card:hover {
  color: inherit;
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.1);
}

.apm-enquiry__card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background-color: #fdecef;
  color: var(--wp--preset--color--primary);
}

.apm-enquiry__card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding-top: 0.15rem;
}

.apm-enquiry__card-title {
  color: var(--wp--preset--color--contrast);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.apm-enquiry__card-strong {
  color: var(--wp--preset--color--primary);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.apm-enquiry__card-line {
  color: #6d737c;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.apm-enquiry .apm-enquiry__note {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.15rem;
  margin: 1.15rem 0 0;
  color: var(--wp--preset--color--contrast);
  font-family: Caveat, cursive;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 0.95;
  text-align: left;
}

.apm-enquiry__note-arrow {
  display: block;
  flex: 0 0 auto;
  width: 3.4rem;
  height: auto;
  margin-bottom: 0.85rem;
}

@media (max-width: 900px) {
  .apm-enquiry__layout {
    grid-template-columns: 1fr;
  }

  .apm-enquiry__aside h2 {
    padding-top: 0.35rem;
  }
}

@media (max-width: 640px) {
  .apm-enquiry__panel {
    padding: 1.35rem 1.1rem 1.2rem;
  }

  .apm-enquiry .apm-enquiry__note {
    justify-content: flex-start;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Contact location
   Find-us copy beside an inset map.
   ========================================================================== */
.apm-location {
  max-width: 1200px;
  margin: 2.5rem auto 0.5rem;
}

.apm-location__layout {
  display: grid;
  grid-template-columns: minmax(16.5rem, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  min-height: 22.5rem;
  padding: 1.15rem 1.15rem 1.15rem 0.4rem;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.08);
}

.apm-location__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem 1.6rem 1.35rem 1.85rem;
}

.apm-location__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  color: #8b919a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-location__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-location__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.7rem, 1.25rem + 1vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.apm-location__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.apm-location__details li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #3d434b;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.apm-location__icon {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  color: var(--wp--preset--color--primary);
}

.apm-location__address {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.3rem;
}

.apm-location__address-place {
  white-space: nowrap;
}

.apm-location__hours {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.apm-location__hours-line--rest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.apm-location__directions {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  margin-top: 1.35rem;
  padding: 0;
  background: none;
  color: var(--wp--preset--color--primary);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.apm-location__directions:hover {
  background: none;
  color: var(--wp--preset--color--primary-dark);
}

.apm-location__map {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border-radius: 14px;
  background-color: #e6e2db;
}

.apm-location__map iframe {
  position: absolute;
  top: -3.6rem;
  left: 0;
  width: 100%;
  height: calc(100% + 3.6rem);
  border: 0;
}

.apm-location__pin {
  position: absolute;
  z-index: 1;
  top: calc(50% - 1.8rem);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.apm-location__pin-label {
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.72rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 6px 16px rgba(26, 26, 26, 0.16);
  color: #1c1c1c;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.apm-location__pin-marker {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50% 50% 50% 0;
  background-color: var(--wp--preset--color--primary);
  box-shadow: 0 3px 8px rgba(26, 26, 26, 0.25);
  transform: rotate(-45deg);
}

.apm-location__pin-marker::after {
  content: "";
  position: absolute;
  top: 0.36rem;
  left: 0.36rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background-color: #fff;
}

.apm-location__pin-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.28rem;
  border-radius: 50%;
  background-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 0.38rem rgba(200, 16, 46, 0.2);
}

@media (max-width: 800px) {
  .apm-location__layout {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0.4rem 0.85rem 0.85rem;
  }

  .apm-location__card {
    padding: 1.25rem 0.45rem 1.15rem;
  }

  .apm-location__map {
    aspect-ratio: 16 / 11;
    min-height: 16rem;
  }
}

/* ==========================================================================
   Find your pest
   Shared by the homepage and the services page. One link per Pest.
   ========================================================================== */
.apm-pests {
  background-color: var(--wp--preset--color--base);
  padding: 0 1.5rem 5.5rem;
}

/* The family band closes the homepage, flush with the footer. */
body.home .wp-site-blocks > main {
  padding-bottom: 0;
}

.apm-pests__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.apm-pests__panel {
  display: grid;
  grid-template-columns: minmax(14.5rem, 17.5rem) minmax(0, 1fr);
  gap: 2.5rem 2.75rem;
  align-items: center;
  padding: 2.75rem 2.5rem 2.6rem;
  border-radius: 28px;
  background-color: #f7f6f4;
}

.apm-pests__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.apm-pests .apm-eyebrow {
  margin: 0 0 0.7rem;
  text-align: left;
}

.apm-pests__heading {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.9rem, 1.35rem + 1.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.apm-pests__rule {
  display: block;
  width: 2.6rem;
  height: 3px;
  margin: 0.95rem 0 1.15rem;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-pests__text {
  margin: 0;
  color: #5c6370;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
}

.apm-pests__copy .wp-element-button {
  margin-top: 1.45rem;
}

.apm-pests__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.85rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-pest {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--wp--preset--color--contrast);
  text-align: center;
  text-decoration: none;
}

.apm-pest:hover,
.apm-pest:focus {
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
}

.apm-pest:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 4px;
  border-radius: 12px;
}

.apm-pest__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 7.25rem);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background-color: #f3f1ee;
  transition: transform 0.2s ease;
}

.apm-pest:hover .apm-pest__photo {
  transform: translateY(-2px);
}

.apm-pest__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.apm-pest__name {
  margin-top: 0.75rem;
  color: #2a2e35;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.apm-pest:hover .apm-pest__name {
  color: var(--wp--preset--color--primary);
}

@media (max-width: 980px) {
  .apm-pests__panel {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.15rem 1.5rem 1.85rem;
  }

  .apm-pests__text {
    max-width: 28rem;
  }
}

@media (max-width: 720px) {
  .apm-pests {
    padding: 0 1.15rem 3.75rem;
  }

  .apm-pests__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 0.65rem;
  }
}

@media (max-width: 420px) {
  .apm-pests__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Single pest hero
   Title and intro on the left, the pest image large on the right.
   ========================================================================== */
.apm-pest-single {
  background-color: var(--wp--preset--color--base);
  padding-bottom: 3.5rem;
  overflow-x: clip;
}

.apm-pest-single .wp-block-post-content:empty {
  display: none;
}

.apm-pest-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: 1rem 0;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: clamp(28rem, 54vh, 36rem);
  padding: calc(var(--wp--preset--spacing--30) + 7.5rem) 0 2.5rem;
  background-color: var(--wp--preset--color--base);
  overflow: visible;
}

.apm-pest-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 36rem;
  padding-right: 2rem;
  padding-left: max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-pest-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-pest-hero__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-pest-hero__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(3.4rem, 1.6rem + 5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.apm-pest-hero__title span {
  color: var(--wp--preset--color--primary);
}

.apm-pest-hero__text {
  max-width: 28rem;
  margin: 1.15rem 0 0;
  color: #5c6370;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.55;
}

.apm-pest-hero__copy .wp-element-button {
  margin-top: 1.55rem;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.apm-pest-hero__photo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
}

.apm-pest-hero__photo img {
  display: block;
  width: min(100%, 40rem);
  height: auto;
  object-fit: contain;
  animation: apm-pest-slide-in 2.2s cubic-bezier(0.22, 0.7, 0.25, 1) both;
}

@keyframes apm-pest-slide-in {
  from {
    transform: translateX(105%);
  }

  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apm-pest-hero__photo img {
    animation: none;
  }
}

/* ==========================================================================
   Single service hero
   Cutouts sit beside the copy. A covering photo fades in from the right,
   the same way as the about and contact heroes.
   ========================================================================== */
.apm-service-single {
  background-color: var(--wp--preset--color--base);
  padding-bottom: 3.5rem;
  overflow-x: clip;
}

.apm-service-single .apm-service-about {
  margin-top: var(--apm-after-hero);
}

.apm-service-single .apm-service-about.is-text-only .apm-pest-section__copy {
  max-width: 46rem;
}

.apm-service-about .apm-pest-section__media img {
  object-position: 72% center;
}

.apm-service-topic .apm-pest-section__media img {
  object-position: center;
}

.apm-service-steps {
  max-width: 1200px;
  margin: 1.15rem auto 0;
  padding: 0 1.5rem;
}

.apm-service-steps__card {
  border-radius: 16px;
  background-color: #f6f4f2;
  padding: 2rem 2.25rem 2.15rem;
}

.apm-service-steps__heading {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.apm-service-steps__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2.5rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.apm-service-steps__list li {
  position: relative;
  padding-left: 1.35rem;
  color: #5c6370;
  font-size: 0.98rem;
  line-height: 1.5;
}

.apm-service-steps__list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--wp--preset--color--primary);
}

@media (max-width: 700px) {
  .apm-service-steps {
    padding: 0 1.25rem;
  }

  .apm-service-steps__card {
    padding: 1.4rem 1.25rem 1.5rem;
  }

  .apm-service-steps__list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   General pest control body
   Open photo bands, numbered points, then the same pest panel as the homepage.
   ========================================================================== */
.apm-service-single:has(.apm-gpc-treat) {
  padding-bottom: 0;
}

.apm-gpc-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.25rem 3.25rem;
  align-items: stretch;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 1.5rem;
}

.apm-gpc-band + .apm-gpc-band {
  margin-top: 5.5rem;
}

.apm-gpc-band.is-flip .apm-gpc-band__media {
  order: -1;
}

.apm-gpc-band.is-text-only {
  grid-template-columns: minmax(0, 42rem);
}

.apm-gpc-band__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apm-gpc-band .apm-pest-section__heading {
  font-size: clamp(1.9rem, 1.3rem + 1.5vw, 2.5rem);
  letter-spacing: -0.035em;
}

.apm-gpc-band__media {
  position: relative;
  min-height: 18.5rem;
  overflow: hidden;
  border-radius: 18px;
  background-color: #e6e2dc;
}

.apm-gpc-band__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.apm-gpc-points {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.apm-gpc-points__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.apm-gpc-points__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.apm-gpc-points__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.apm-gpc-points__text {
  margin: 0.2rem 0 0;
  color: #5c6370;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.5;
}

.apm-gpc-band__note {
  margin: 1.35rem 0 0;
  color: #5c6370;
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Same panel as the homepage pest finder. Spacing only; the look lives on .apm-pests. */
main.apm-service-single .apm-gpc-treat {
  margin-block-start: 5.5rem;
  margin-block-end: 0;
}

.apm-gpc-treat .apm-pests__copy .wp-element-button {
  margin-top: 0.25rem;
}

.apm-gpc-treat .apm-pest__photo.is-empty {
  border: 1.5px dashed #c4bfb8;
  color: #8d939c;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.apm-pest-hero.is-text-only {
  grid-template-columns: minmax(0, 42rem);
}

@media (max-width: 800px) {
  .apm-gpc-band,
  .apm-gpc-band.is-flip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1.25rem;
  }

  .apm-gpc-band.is-flip .apm-gpc-band__media {
    order: 0;
  }

  .apm-gpc-band + .apm-gpc-band {
    margin-top: 3.5rem;
  }

  .apm-gpc-band__media {
    min-height: 14rem;
    aspect-ratio: 16 / 10;
  }

  main.apm-service-single .apm-gpc-treat {
    margin-block-start: 3.5rem;
  }
}

.apm-service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: 1.5rem 2rem;
  align-items: center;
  width: 100%;
  margin: 0;
  min-height: clamp(28rem, 54vh, 36rem);
  padding: calc(var(--wp--preset--spacing--30) + 7.5rem) 0 2.5rem;
  background-color: var(--wp--preset--color--base);
}

.apm-service-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 36rem;
  padding-right: 1rem;
  padding-left: max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-service-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-service-hero__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-service-hero__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2.8rem, 1.4rem + 3.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.apm-service-hero__title span {
  color: var(--wp--preset--color--primary);
}

.apm-service-hero__text {
  max-width: 32rem;
  margin: 1.15rem 0 0;
  color: #5c6370;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.55;
}

.apm-service-hero__copy .wp-element-button {
  margin-top: 1.55rem;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.apm-service-hero__photo {
  margin: 0;
  padding-right: max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-service-hero__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.apm-service-hero.is-cutout .apm-service-hero__photo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.apm-service-hero.is-cutout .apm-service-hero__photo img {
  width: min(100%, 36rem);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  animation: apm-pest-slide-in 2.2s cubic-bezier(0.22, 0.7, 0.25, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .apm-service-hero.is-cutout .apm-service-hero__photo img {
    animation: none;
  }
}

.apm-service-hero.is-cover {
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: clamp(30rem, 58vh, 38rem);
  padding: 0;
  overflow: hidden;
}

.apm-service-hero.is-cover .apm-service-hero__copy {
  position: relative;
  z-index: 1;
  justify-content: center;
  max-width: none;
  padding: calc(var(--wp--preset--spacing--30) + 9.5rem) 2.5rem 3.5rem
    max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-service-hero.is-cover .apm-service-hero__copy .wp-element-button {
  flex: none;
  align-self: flex-start;
  height: auto;
}

.apm-service-hero.is-cover .apm-service-hero__photo {
  position: relative;
  min-height: 100%;
  margin: 0 0 0 -12%;
  padding: 0;
  overflow: hidden;
}

.apm-service-hero.is-cover .apm-service-hero__photo img {
  position: absolute;
  top: 5.25rem;
  right: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 1.25rem);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 42% 8%;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

.apm-service-hero.is-cover.is-skyline .apm-service-hero__photo img {
  top: 0;
  height: 100%;
  object-position: center 46%;
}

@media (max-width: 800px) {
  .apm-service-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    min-height: 0;
    padding: calc(var(--wp--preset--spacing--30) + 7rem) 0 0.5rem;
  }

  .apm-service-hero__copy {
    max-width: none;
    padding-right: 1.35rem;
    padding-left: 1.35rem;
  }

  .apm-service-hero__title {
    font-size: clamp(2.5rem, 1.6rem + 4vw, 3.6rem);
  }

  .apm-service-hero__photo {
    padding-right: 1.35rem;
    padding-left: 1.35rem;
  }

  .apm-service-hero.is-cutout .apm-service-hero__photo {
    justify-content: center;
  }

  .apm-service-hero.is-cutout .apm-service-hero__photo img {
    width: min(100%, 22rem);
  }

  .apm-service-hero.is-cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .apm-service-hero.is-cover .apm-service-hero__copy {
    align-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: calc(var(--wp--preset--spacing--30) + 7rem) 1.35rem 1.5rem;
  }

  .apm-service-hero.is-cover .apm-service-hero__title,
  .apm-service-hero.is-cover .apm-service-hero__text {
    max-width: 100%;
  }

  .apm-service-hero.is-cover .apm-service-hero__copy .wp-element-button {
    align-self: flex-start;
  }

  .apm-service-hero.is-cover .apm-service-hero__photo {
    aspect-ratio: 16 / 10;
    margin-left: 0;
    padding: 0;
  }

  .apm-service-hero.is-cover .apm-service-hero__photo img {
    object-position: center 42%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
  }

  .apm-service-hero.is-cover.is-skyline .apm-service-hero__photo img {
    top: 0;
    height: 100%;
    object-position: center 42%;
  }
}

@media (max-width: 800px) {
  .apm-pest-hero {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-height: 0;
    padding: calc(var(--wp--preset--spacing--30) + 7rem) 0 0.5rem;
  }

  .apm-pest-hero__copy {
    max-width: none;
    padding-right: 1.35rem;
    padding-left: 1.35rem;
  }

  .apm-pest-hero__title {
    font-size: clamp(3rem, 2rem + 6vw, 4.2rem);
  }

  .apm-pest-hero__photo {
    justify-content: center;
    padding-right: 1.35rem;
    padding-left: 1.35rem;
  }

  .apm-pest-hero__photo img {
    width: min(100%, 22rem);
  }
}

/* ==========================================================================
   Pest section
   One block per band. The photo sits on the right, then the left, and so on.
   ========================================================================== */
.apm-pest-single .wp-block-post-content {
  margin-block-start: var(--apm-after-hero);
  padding-top: 0;
}

.apm-pest-section {
  max-width: 1200px;
  margin: 0 auto 1.15rem;
  padding: 0 1.5rem;
}

.apm-pest-section__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  background-color: #f6f4f2;
}

.apm-pest-section:nth-child(even of .apm-pest-section)
  .apm-pest-section__media {
  order: -1;
}

.apm-pest-section.is-text-only .apm-pest-section__card {
  grid-template-columns: 1fr;
}

.apm-pest-section.is-text-only .apm-pest-section__copy {
  max-width: 40rem;
}

.apm-pest-section__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 2.15rem 2rem 2.25rem;
}

.apm-pest-section__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-pest-section__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-pest-section__heading {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.apm-pest-section__body {
  margin-top: 0.9rem;
}

.apm-pest-section__body p {
  margin: 0 0 0.85rem;
  color: #5c6370;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
}

.apm-pest-section__body p:last-child {
  margin-bottom: 0;
}

.apm-pest-section__button {
  margin-top: 1.35rem;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.apm-pest-section__media {
  position: relative;
  min-height: 18rem;
  background-color: #e8e4df;
}

.apm-pest-section__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apm-pest-section__media .apm-pest-section__add,
.apm-pest-section__media .apm-pest-section__replace {
  position: absolute;
  z-index: 1;
}

.apm-pest-section__media .apm-pest-section__add {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.apm-pest-section__media .apm-pest-section__replace {
  left: 0.75rem;
  bottom: 0.75rem;
}

@media (max-width: 800px) {
  .apm-pest-section {
    padding: 0 1.25rem;
  }

  .apm-pest-section__card,
  .apm-pest-section:nth-child(even of .apm-pest-section)
    .apm-pest-section__card {
    grid-template-columns: 1fr;
  }

  .apm-pest-section:nth-child(even of .apm-pest-section)
    .apm-pest-section__media {
    order: 0;
  }

  .apm-pest-section__copy {
    padding: 1.4rem 1.25rem 1.5rem;
  }

  .apm-pest-section__media {
    min-height: 14rem;
  }
}

/* ==========================================================================
   Pest types
   Species cards under the about bands. Hidden when a pest has no list.
   ========================================================================== */
.apm-pest-single .apm-pest-types,
.apm-service-single .apm-pest-types {
  max-width: 1200px;
  margin-block: 8.5rem 0;
  margin-inline: auto;
  padding: 0 1.5rem 0.5rem;
}

.apm-pest-types__header {
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.apm-pest-types__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-pest-types__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-pest-types__heading {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.apm-pest-types__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.85rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-pest-types__grid.is-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apm-pest-types__grid.is-count-2 {
  grid-template-columns: repeat(2, minmax(0, 22rem));
  justify-content: center;
}

.apm-pest-types__photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background-color: #e8e4df;
}

.apm-pest-types__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apm-pest-types__name {
  margin: 0.9rem 0 0.4rem;
  color: var(--wp--preset--color--primary);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.apm-pest-types__text {
  margin: 0;
  color: #5c6370;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .apm-pest-types__grid,
  .apm-pest-types__grid.is-count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apm-pest-single .apm-pest-types,
  .apm-service-single .apm-pest-types {
    margin-block-start: 5.5rem;
    padding: 0 1.25rem 0.25rem;
  }

  .apm-pest-types__grid,
  .apm-pest-types__grid.is-count-3,
  .apm-pest-types__grid.is-count-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Why choose us
   Homepage trust section: heading, full-width team photo, reasons.
   ========================================================================== */
.apm-why {
  position: relative;
  background-color: #faf9f7;
  padding: 6rem 2rem 6rem;
}

.apm-why__inner {
  max-width: 1180px;
  margin-inline: auto;
}

.apm-why__top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: end;
}

.apm-why .apm-eyebrow {
  margin: 0 0 1.125rem;
  color: #5d6068;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
}

.apm-why__heading {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.apm-why__heading em {
  font-style: normal;
  color: var(--wp--preset--color--primary);
}

.apm-why__intro {
  max-width: 46ch;
  margin: 0 0 1.5rem;
  color: #5d6068;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

.apm-why__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.apm-why__actions .wp-block-button {
  display: inline-flex;
  margin: 0;
}

.apm-why__actions .wp-element-button {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.375rem;
  border: 1.5px solid var(--wp--preset--color--primary);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.2s, color 0.2s;
}

.apm-why__actions .wp-element-button:focus-visible {
  outline: 3px solid var(--wp--preset--color--contrast);
  outline-offset: 3px;
}

.apm-why__actions .is-style-outline .wp-element-button {
  background-color: transparent;
  color: var(--wp--preset--color--primary);
  box-shadow: none;
}

.apm-why__actions .is-style-outline .wp-element-button:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

.apm-why__photo {
  position: relative;
  margin: 4rem 0 0;
}

.apm-why__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.15 / 1;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 20px;
}

.apm-why__card {
  position: absolute;
  z-index: 2;
  bottom: -2.5rem;
  left: 2rem;
  max-width: 22.5rem;
  padding: 1.25rem 1.625rem;
  border-radius: 12px;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
}

.apm-why__card-label,
.apm-why__card-title,
.apm-why__card-text {
  margin: 0;
}

.apm-why .apm-why__card-label {
  color: var(--wp--preset--color--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.apm-why .apm-why__card-title {
  margin: 0.125rem 0 0.375rem;
  color: var(--wp--preset--color--contrast);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.apm-why__card-text {
  color: #5d6068;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
}

.apm-why p.apm-why__note {
  position: absolute;
  z-index: 2;
  right: 0.5rem;
  bottom: -3.875rem;
  margin: 0;
  color: var(--wp--preset--color--primary);
  font-family: Caveat, cursive;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.apm-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem 3rem;
  margin: 8rem 0 0;
  padding: 0;
  list-style: none;
}

.apm-why__item {
  position: relative;
  padding-top: 1.375rem;
  border-top: 1px solid #e2dfda;
}

.apm-why__item::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 2.25rem;
  height: 3px;
  background-color: var(--wp--preset--color--primary);
}

.apm-why__title {
  margin: 0 0 0.5rem;
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.apm-why__text {
  max-width: 34ch;
  margin: 0;
  color: #5d6068;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .apm-why {
    padding: 4rem 1.25rem;
  }

  .apm-why__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .apm-why__photo img {
    border-radius: 18px;
  }

  .apm-why__card {
    right: 0.75rem;
    bottom: -3.5rem;
    left: 0.75rem;
    max-width: none;
    padding: 1rem 1.125rem;
  }

  .apm-why p.apm-why__note {
    display: none;
  }

  .apm-why__grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 7rem;
  }
}

@media (max-width: 520px) {
  .apm-why__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-top: 7.5rem;
  }
}

/* ==========================================================================
   Family band
   Homepage closer: copy on the dark side, Alfie on the right.
   ========================================================================== */
.apm-family {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 38vw, 36rem);
  overflow: hidden;
  background-color: #071c12;
  color: #fff;
}

.apm-family__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.apm-family__photo img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 92%;
  max-width: none;
  height: 115%;
  object-fit: cover;
  object-position: 72% 42%;
  transform: translateY(-4%);
}

.apm-family__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #071c12 0%,
    #071c12 22%,
    rgba(7, 28, 18, 0.82) 34%,
    rgba(7, 28, 18, 0.28) 46%,
    transparent 58%
  );
}

.apm-family__copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  padding: 4.25rem 2rem 4.25rem max(1.5rem, calc((100vw - 1200px) / 2));
}

.apm-family__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-family__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-family__heading {
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 1rem + 1.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.apm-family__heading span {
  color: var(--wp--preset--color--primary);
  white-space: nowrap;
}

.apm-family .apm-family__text {
  max-width: 26rem;
  margin: 1.2rem 0 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.6;
}

.apm-family__copy .wp-element-button {
  margin-top: 1.7rem;
  border-radius: 999px;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
}

.apm-family__copy .wp-element-button:hover {
  color: #fff;
}

@media (max-width: 780px) {
  .apm-family {
    display: block;
    min-height: 0;
  }

  .apm-family__copy {
    max-width: none;
    padding: 3rem 1.25rem 1.75rem;
  }

  .apm-family__heading br {
    display: none;
  }

  .apm-family__photo {
    position: relative;
    display: block;
    height: 22rem;
  }

  .apm-family__photo img {
    position: static;
    width: 100%;
    height: 100%;
    object-position: 72% 78%;
    transform: none;
  }

  .apm-family__photo::after {
    background: linear-gradient(
      to bottom,
      #071c12 0%,
      rgba(7, 28, 18, 0.35) 22%,
      transparent 42%
    );
  }
}

/* ==========================================================================
   Testimonials
   Homepage reviews under the family band. Cards come from the Testimonial
   post type and slide one at a time.
   ========================================================================== */
.apm-reviews {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--sans);
}

.apm-reviews,
.apm-reviews *,
.apm-reviews *::before,
.apm-reviews *::after {
  box-sizing: border-box;
}

.apm-reviews__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
  padding: 4.75rem 1.5rem 4.5rem;
}

.apm-reviews__head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(14rem, 0.7fr);
  gap: 1.5rem 2.75rem;
  align-items: end;
}

.apm-reviews .apm-reviews__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: var(--wp--preset--color--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-reviews__eyebrow span {
  width: 2.35rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-reviews .apm-reviews__heading {
  margin: 0.85rem 0 0;
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--sans);
  font-size: clamp(2.15rem, 1.15rem + 2.1vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.apm-reviews .apm-reviews__lede {
  max-width: 22rem;
  margin: 0 0 0.35rem;
  padding-left: 1.45rem;
  border-left: 1px solid #e6e2dc;
  color: #4b5160;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
}

.apm-reviews__stage {
  position: relative;
  margin-top: 2.35rem;
  padding-inline: 1.75rem;
}

.apm-reviews__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin: 0;
  padding: 0;
  border: 1px solid #eceae6;
  border-radius: 50%;
  background-color: #fff;
  color: #1a1a1a;
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.08);
  transform: translateY(-50%);
  cursor: pointer;
}

.apm-reviews__nav--prev {
  left: 0;
}

.apm-reviews__nav--next {
  right: 0;
}

.apm-reviews__nav:hover,
.apm-reviews__nav:focus-visible {
  background-color: #fff;
  color: #1a1a1a;
}

.apm-reviews__nav:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

.apm-reviews__nav:disabled {
  opacity: 0.38;
  cursor: default;
}

.apm-reviews__viewport {
  container-type: inline-size;
  min-width: 0;
}

.apm-reviews__track {
  display: flex;
  gap: 1.15rem;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.apm-reviews__track::-webkit-scrollbar {
  display: none;
}

.apm-reviews__track:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 4px;
  border-radius: 18px;
}

.apm-reviews__card {
  display: flex;
  flex: 0 0 100cqw;
  flex-direction: column;
  width: 100cqw;
  min-width: 0;
  min-height: 16.5rem;
  margin: 0;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 18px;
  background-color: #f6f4f1;
  scroll-snap-align: start;
}

.apm-reviews__mark {
  display: block;
  color: var(--wp--preset--color--primary);
  font-size: 3.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.7;
}

.apm-reviews .apm-reviews__quote {
  margin: 0.7rem 0 0;
}

.apm-reviews .apm-reviews__quote p {
  margin: 0;
  color: #3a404c;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
}

.apm-reviews__meta {
  margin-top: auto;
  padding-top: 1.15rem;
}

.apm-reviews__stars {
  display: flex;
  gap: 0.12rem;
  color: var(--wp--preset--color--primary);
}

.apm-reviews__stars svg {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
}

.apm-reviews .apm-reviews__name {
  margin: 0.8rem 0 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.apm-reviews .apm-reviews__place {
  margin: 0.28rem 0 0;
  color: #8b919c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.apm-reviews__empty {
  margin: 0;
  color: #5c6370;
}

.apm-reviews__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
  text-align: center;
}

.apm-reviews .apm-reviews__score {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.apm-reviews__google-mark {
  display: block;
  width: 2rem;
  height: 2rem;
}

.apm-reviews__rating {
  color: var(--wp--preset--color--contrast);
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.apm-reviews__score .apm-reviews__stars svg {
  width: 1.15rem;
  height: 1.15rem;
}

.apm-reviews__rule {
  width: 1px;
  height: 1.65rem;
  margin-inline: 0.35rem;
  background-color: #e3dfd8;
}

.apm-reviews__count {
  color: #4b5160;
  font-size: 1.02rem;
  font-weight: 500;
}

.apm-reviews__more {
  margin-top: 0.95rem;
  color: var(--wp--preset--color--primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.apm-reviews__more:hover {
  color: var(--wp--preset--color--primary-dark);
}

@container (min-width: 680px) {
  .apm-reviews__card {
    flex-basis: calc((100cqw - 2.3rem) / 3);
    width: calc((100cqw - 2.3rem) / 3);
  }
}

@media (max-width: 860px) {
  .apm-reviews__head {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .apm-reviews .apm-reviews__lede {
    max-width: 36rem;
    margin: 0;
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid #e6e2dc;
    border-left: 0;
  }

  .apm-reviews .apm-reviews__heading br {
    display: none;
  }
}

@media (max-width: 720px) {
  .apm-reviews__inner {
    padding: 3.25rem 1.15rem 3.25rem;
  }

  .apm-reviews__stage {
    padding-inline: 0.2rem;
  }

  .apm-reviews__nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .apm-reviews__nav--prev {
    left: -0.15rem;
  }

  .apm-reviews__nav--next {
    right: -0.15rem;
  }
}

/* ==========================================================================
   Here to help
   Pre-footer band on every page. The team photo runs the full width and
   fades to nothing behind the contact line, so the people stay visible
   on either side of the text.
   ========================================================================== */
.apm-help {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  color: var(--wp--preset--color--contrast);
}

.apm-help__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0,
    #000 calc(50% - 34rem),
    transparent calc(50% - 20rem),
    transparent calc(50% + 20rem),
    #000 calc(50% + 34rem),
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0,
    #000 calc(50% - 34rem),
    transparent calc(50% - 20rem),
    transparent calc(50% + 20rem),
    #000 calc(50% + 34rem),
    #000 100%
  );
}

.apm-help__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}

.apm-help__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.75rem 1.5rem 3.35rem;
  text-align: center;
}

.apm-help p {
  margin: 0;
}

.apm-help__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #1c1c1c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-help__mark {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-help__heading {
  margin: 0.9rem 0 0;
  color: #161616;
  font-size: clamp(2.15rem, 1.15rem + 2.1vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.apm-help__heading span {
  color: var(--wp--preset--color--primary);
}

.apm-help .apm-help__text {
  max-width: 32rem;
  margin: 1.85rem auto 0;
  color: #4b5160;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.apm-help .apm-help__via {
  display: inline-block;
  margin-top: 2.35rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
}

.apm-help__methods {
  display: flex;
  justify-content: center;
  margin: 2.6rem auto 0;
  padding: 0;
  list-style: none;
}

.apm-help__methods li + li {
  border-left: 1px solid #e6e6e6;
}

.apm-help__methods a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 7.6rem;
  padding: 0.2rem 1.35rem 0.1rem;
  color: #1a1a1a;
  text-decoration: none;
}

.apm-help__icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background-color: #fde8ec;
  color: #d31236;
}

.apm-help__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-help__methods a:hover .apm-help__icon {
  background-color: #f8d0d8;
}

.apm-help__methods a:hover .apm-help__label {
  color: var(--wp--preset--color--primary);
}

.apm-help__methods a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 4px;
  border-radius: 12px;
}

@media (max-width: 860px) {
  .apm-help__photo {
    position: relative;
    width: 100%;
    height: clamp(12.5rem, 46vw, 16rem);
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }

  .apm-help__photo img {
    object-position: center 42%;
  }

  .apm-help__inner {
    padding: 0.35rem 1.25rem 2.75rem;
  }

  .apm-help__methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 22rem;
    row-gap: 1.35rem;
  }

  .apm-help__methods a {
    min-width: 0;
    padding-inline: 0.75rem;
  }
}

/* ==========================================================================
   Footer
   Dark brand footer. Columns on desktop, accordions on small screens.
   ========================================================================== */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

.apm-footer {
  position: relative;
  overflow: hidden;
  background-color: #161616;
  color: #fff;
}

.apm-footer::before,
.apm-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.apm-footer::before {
  top: -9rem;
  right: -7rem;
  width: 22rem;
  height: 22rem;
}

.apm-footer::after {
  bottom: 4rem;
  left: -8rem;
  width: 16rem;
  height: 16rem;
}

.apm-footer p {
  margin: 0;
  color: inherit;
}

.apm-footer a {
  color: inherit;
  text-decoration: none;
}

.apm-footer a:hover {
  color: #fff;
}

.apm-footer__main,
.apm-footer__bar {
  position: relative;
  z-index: 1;
}

.apm-footer__main {
  display: grid;
  grid-template-columns: minmax(16rem, 20.5rem) minmax(0, 1fr) minmax(
      13.5rem,
      16rem
    );
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin-inline: auto;
  padding: 3.25rem 1.5rem 2.75rem;
}

.apm-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
}

.apm-footer__logo {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: #fff;
}

.apm-footer__logo:hover {
  color: #fff;
}

.apm-footer__mark-wrap {
  --apm-mark: 4.9rem;
  flex: 0 0 auto;
  width: var(--apm-mark);
  height: var(--apm-mark);
  overflow: hidden;
  border-radius: 50%;
}

.apm-footer__mark {
  display: block;
  width: calc(var(--apm-mark) * 4.705);
  max-width: none;
  height: calc(var(--apm-mark) * 1.257);
  margin-top: calc(var(--apm-mark) * -0.026);
  margin-left: calc(var(--apm-mark) * -0.028);
}

.apm-footer__wordmark {
  color: var(--wp--preset--color--primary);
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-transform: uppercase;
}

.apm-footer__est {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.apm-footer__est span {
  margin-left: 0.35rem;
}

.apm-footer__blurb {
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

.apm-footer__line {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.apm-footer__line svg {
  flex: 0 0 auto;
  color: var(--wp--preset--color--primary);
}

.apm-footer__line:hover {
  color: #fff;
}

.apm-footer__quote,
.apm-footer__contact {
  display: inline-flex;
  margin-top: 2rem;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.apm-footer__quote {
  padding: 0.95rem 1.7rem;
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  font-size: 1.02rem;
}

.apm-footer__quote:hover {
  background-color: var(--wp--preset--color--primary-dark);
  color: #fff;
}

.apm-footer__social {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  margin-top: 0.35rem;
}

.apm-footer__social a {
  display: flex;
  color: #fff;
}

.apm-footer__social a:hover {
  color: var(--wp--preset--color--primary);
}

.apm-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.35rem;
  min-width: 0;
  padding-inline: 1.75rem;
  border-inline: 1px solid rgba(255, 255, 255, 0.14);
}

.apm-footer__heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: left;
  cursor: default;
}

@media (min-width: 1101px) {
  .apm-footer__heading {
    pointer-events: none;
  }
}

.apm-footer__chevron {
  display: none;
  flex: 0 0 auto;
}

.apm-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-footer__links a,
.apm-footer__fine a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.apm-footer__links a:hover,
.apm-footer__fine a:hover {
  color: var(--wp--preset--color--primary);
}

.apm-footer__fine {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.apm-footer__book {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.15rem;
}

.apm-footer__book-icon {
  display: flex;
  margin-bottom: 1rem;
  color: #fff;
}

.apm-footer__book-icon svg {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
}

.apm-footer__book-title {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.apm-footer__book-text {
  max-width: 16rem;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.apm-footer__contact {
  padding: 0.8rem 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background-color: transparent;
  color: #fff;
  font-size: 0.95rem;
}

.apm-footer a.apm-footer__contact:hover {
  background-color: #fff;
  color: #161616;
}

.apm-footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.95rem 1.5rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.apm-footer__bar > * + *::before {
  content: "|";
  margin-right: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

.apm-footer__copy span + span::before {
  content: " ";
}

.apm-footer__meta span + span::before {
  content: "|";
  margin: 0 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.apm-footer a:focus-visible,
.apm-footer__heading:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .apm-footer::before {
    top: -6rem;
    right: -5rem;
    width: 14rem;
    height: 14rem;
  }

  .apm-footer::after {
    top: 18rem;
    bottom: auto;
    left: -6rem;
    width: 11rem;
    height: 11rem;
  }

  .apm-footer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2.6rem 1.35rem 0.5rem;
    text-align: center;
  }

  .apm-footer__brand {
    align-items: center;
    gap: 0.85rem;
  }

  .apm-footer__blurb {
    max-width: 22rem;
  }

  .apm-footer__quote {
    min-width: 16.5rem;
    margin-top: 0.2rem;
  }

  .apm-footer__social {
    margin: 0.35rem 0 1.6rem;
  }

  .apm-footer__nav {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
  }

  .apm-footer__group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .apm-footer__heading {
    margin: 0;
    padding: 1rem 0.15rem;
    cursor: pointer;
  }

  .apm-footer__chevron {
    display: block;
    transition: transform 0.2s ease;
  }

  .apm-footer__group.is-open .apm-footer__chevron {
    transform: rotate(180deg);
  }

  .apm-footer__panel {
    display: none;
    padding: 0 0.15rem 1rem;
  }

  .apm-footer__group.is-open .apm-footer__panel {
    display: block;
  }

  .apm-footer__book {
    display: none;
  }

  .apm-footer__bar {
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    padding: 1.5rem 1.35rem 1.75rem;
    text-align: center;
  }

  .apm-footer__bar > * + *::before {
    content: none;
  }

  .apm-footer__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .apm-footer__copy span + span::before {
    content: none;
  }
}

/* ==========================================================================
   Package pricing
   One card per published Package. Draft a package to hide it.
   ========================================================================== */
.apm-pricing {
  --apm-page-pad: var(--wp--preset--spacing--40);
  background-color: var(--wp--preset--color--surface);
  padding: 0 var(--apm-page-pad) 4.5rem;
}

.apm-pricing .apm-packages {
  margin-block-start: var(--apm-after-hero);
  padding: 0;
}

.apm-packages__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.apm-packages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-package {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 16px;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.apm-package__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 6.75rem;
  padding: 1.35rem 1rem 1.2rem;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  text-align: center;
}

.apm-package__name,
.apm-package__price {
  margin: 0;
  color: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.apm-package__name {
  font-size: 1.35rem;
}

.apm-package__price {
  margin-top: 0.2rem;
  font-size: 1.55rem;
}

.apm-package__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.2rem 1.2rem;
}

.apm-package__intro {
  margin: 0 0 0.95rem;
  color: #5c6370;
  font-size: 0.92rem;
  line-height: 1.45;
}

.apm-package__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-package__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--wp--preset--color--contrast);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.apm-package__check {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  color: var(--wp--preset--color--primary);
}

.apm-package__plus {
  margin: 1.15rem 0 0.75rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.apm-package__foot {
  margin-top: auto;
  padding-top: 1.35rem;
}

.apm-package__note {
  margin: 0 0 0.95rem;
  color: var(--wp--preset--color--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.apm-package__button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.apm-package__button:hover,
.apm-package__button:focus {
  background-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--base);
  text-decoration: none;
}

@media (max-width: 720px) {
  .apm-pricing {
    --apm-page-pad: 1.15rem;
  }

  .apm-packages__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pricing dropdown
   Compact list: Package Pricing and Special Offers.
   ========================================================================== */
@media (min-width: 782px) {
  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-pricing-menu
    > .wp-block-navigation__submenu-container {
    width: max-content;
    min-width: 11.75rem;
    padding: 0.4rem;
    background-color: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-pricing-menu
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    color: #3a3f46;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-pricing-menu
    .wp-block-navigation__submenu-container
    > .current-menu-item
    > .wp-block-navigation-item__content,
  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-pricing-menu
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item:hover
    > .wp-block-navigation-item__content,
  .wp-block-navigation__responsive-container:not(.is-menu-open)
    .apm-pricing-menu
    .wp-block-navigation__submenu-container
    > .wp-block-navigation-item:focus-within
    > .wp-block-navigation-item__content {
    background-color: transparent;
    color: var(--wp--preset--color--primary);
  }
}

/* ==========================================================================
   Special offers
   One article per published Offer. Draft an offer to hide it.
   ========================================================================== */
.apm-offers-page {
  --apm-page-pad: var(--wp--preset--spacing--40);
  background-color: var(--wp--preset--color--surface);
  padding: 0 var(--apm-page-pad) 4.5rem;
}

.apm-offers-page .apm-contact-hero__photo img {
  object-position: 34% 48%;
}

.apm-offers-page .apm-offers {
  max-width: 1200px;
  margin-block-start: var(--apm-after-hero);
  margin-block-end: 0;
  margin-inline: auto;
}

.apm-offers__empty {
  margin: 0;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background-color: var(--wp--preset--color--base);
  color: #5c6370;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

.apm-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.78fr);
  gap: 2.25rem 3rem;
  align-items: start;
  padding: 2.2rem 2.2rem 2.35rem;
  border-radius: 18px;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.apm-offer + .apm-offer {
  margin-top: 1.25rem;
}

.apm-offer__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.85rem, 1.2rem + 1.8vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.apm-offer__lead {
  margin: 0.85rem 0 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
}

.apm-offer__prose p {
  margin: 0.8rem 0 0;
  color: #5c6370;
  font-size: 1rem;
  line-height: 1.6;
}

.apm-offer__prose strong {
  color: var(--wp--preset--color--contrast);
  font-weight: 700;
}

.apm-offer__deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem 0 1.15rem;
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  background-color: #fdecef;
}

.apm-offer__deal-name {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.apm-offer__price {
  margin: 0;
  color: var(--wp--preset--color--primary);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.apm-offer__includes {
  margin: 0 0 0.8rem;
  color: var(--wp--preset--color--contrast);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.apm-offer__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-offer__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--wp--preset--color--contrast);
  font-size: 0.98rem;
  line-height: 1.45;
}

.apm-offer__check {
  flex: 0 0 auto;
  margin-top: 0.18rem;
  color: var(--wp--preset--color--primary);
}

.apm-offer__item-name {
  font-weight: 700;
}

.apm-offer__item-detail {
  display: block;
  margin-top: 0.12rem;
  color: #5c6370;
  font-weight: 400;
}

.apm-offer__section {
  margin-top: 1.45rem;
}

.apm-offer__section h3 {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.apm-offer__button {
  display: inline-flex;
  margin-top: 1.15rem;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.apm-offer__button:hover,
.apm-offer__button:focus {
  background-color: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--base);
  text-decoration: none;
}

.apm-offer__poster {
  margin: 0;
  position: sticky;
  top: 1.25rem;
}

.apm-offer__poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

@media (max-width: 860px) {
  .apm-offers-page {
    --apm-page-pad: 1.15rem;
  }

  .apm-offer {
    grid-template-columns: 1fr;
    padding: 1.4rem 1.2rem 1.5rem;
  }

  .apm-offer__poster {
    position: static;
    order: -1;
  }

  .apm-offer__deal {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   Free quote
   Hero photo crop, then the request form beside the next steps.
   ========================================================================== */
.apm-quote {
  --apm-page-pad: var(--wp--preset--spacing--40);
  background-color: var(--wp--preset--color--surface);
  padding: 0 var(--apm-page-pad) 4.5rem;
}

.apm-quote.is-layout-flow > * + * {
  margin-block-start: 0;
}

.apm-quote-hero__photo img {
  object-position: 32% 18%;
}

.apm-quote .apm-quote-request {
  max-width: 1200px;
  margin-block-start: var(--apm-after-hero);
  margin-inline: auto;
}

.apm-quote__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(16.5rem, 0.78fr);
  gap: 1.25rem;
  align-items: start;
}

.apm-quote__panel,
.apm-quote__aside {
  background-color: var(--wp--preset--color--base);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(26, 26, 26, 0.06);
}

.apm-quote__panel {
  padding: 1.85rem 1.9rem 1.6rem;
}

.apm-quote__aside {
  padding: 1.7rem 1.45rem 1.75rem 1.55rem;
}

.apm-quote h2 {
  margin: 0 0 1.15rem;
  color: var(--wp--preset--color--contrast);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.apm-quote__steps {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-quote__steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.apm-quote__step-num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.apm-quote__steps h3 {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.apm-quote__steps p {
  margin: 0.25rem 0 0;
  color: #6d737c;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .apm-quote__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .apm-quote {
    --apm-page-pad: 1.15rem;
  }
}

@media (max-width: 640px) {
  .apm-quote__panel,
  .apm-quote__aside {
    padding: 1.35rem 1.1rem 1.25rem;
  }
}

/* ==========================================================================
   About page
   Split hero like the other pages: copy on the background, photo fading
   in from the right. Story band sits underneath.
   ========================================================================== */
.apm-about {
  background-color: var(--wp--preset--color--surface);
}

.apm-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(30rem, 58vh, 38rem);
  background-color: var(--wp--preset--color--surface);
}

.apm-about-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: calc(var(--wp--preset--spacing--30) + 7.5rem) 2rem 3rem
    max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-about-hero__photo {
  position: relative;
  min-height: 100%;
  margin: 0 0 0 -12%;
  overflow: hidden;
}

.apm-about-hero__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

.apm-about-hero__eyebrow,
.apm-about-story__eyebrow,
.apm-about-approach__eyebrow,
.apm-about-team__eyebrow,
.apm-about-why__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-about-hero__eyebrow {
  color: #8b919a;
}

.apm-about-hero__mark,
.apm-about-story__mark,
.apm-about-approach__mark,
.apm-about-team__mark,
.apm-about-why__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-about-hero__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2.55rem, 1.3rem + 3vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.apm-about-hero__title span {
  color: var(--wp--preset--color--primary);
}

.apm-about-hero__text {
  max-width: 28rem;
  margin: 1.15rem 0 0;
  color: #5c6370;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
}

.apm-about .apm-about-story {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 3rem));
  margin: var(--apm-after-hero) auto 0;
}

.apm-about-story__card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 1.35rem 2rem;
  align-items: center;
  padding: 1rem;
  border-radius: 22px;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 10px 32px rgba(26, 26, 26, 0.06);
}

.apm-about-story__photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  background-color: #e8e4df;
}

.apm-about-story__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.apm-about-story__copy {
  padding: 0.85rem 1.35rem 0.85rem 0.35rem;
}

.apm-about-story__eyebrow,
.apm-about-team__eyebrow,
.apm-about-why__eyebrow {
  margin-bottom: 0.85rem;
  color: var(--wp--preset--color--primary);
}

.apm-about-story__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.65rem, 1.2rem + 1.1vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.apm-about-story__text {
  max-width: 34rem;
  margin: 0.95rem 0 0;
  color: #5c6370;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .apm-about-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .apm-about-hero__copy {
    padding: calc(var(--wp--preset--spacing--30) + 7rem) 1.35rem 1.5rem;
  }

  .apm-about-hero__title {
    font-size: clamp(2.4rem, 1.6rem + 4vw, 3.4rem);
  }

  .apm-about-hero__photo {
    aspect-ratio: 16 / 10;
    margin-left: 0;
  }

  .apm-about-hero__photo img {
    object-position: center center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
  }

  .apm-about .apm-about-story,
  .apm-about .apm-about-approach {
    width: min(1200px, calc(100% - 2.3rem));
  }

  .apm-about-story__card {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .apm-about-story__photo {
    aspect-ratio: 3 / 2;
  }

  .apm-about-story__copy {
    padding: 0.85rem 0.55rem 0.7rem;
  }
}

.apm-about .apm-about-approach {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 3rem));
  margin: var(--apm-after-hero) auto 0;
}

.apm-about-approach__card {
  display: grid;
  grid-template-columns: minmax(17rem, 23.75rem) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 24px;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 10px 32px rgba(26, 26, 26, 0.06);
}

.apm-about-approach__photo {
  margin: 0;
  min-height: 26rem;
  overflow: hidden;
  border-radius: 16px;
  background-color: #e8e4df;
}

.apm-about-approach__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.apm-about-approach__copy {
  padding: 1.6rem 1.75rem 1.35rem 0;
}

.apm-about-approach__eyebrow {
  margin-bottom: 1.15rem;
  color: #8b919a;
}

.apm-about-approach__title {
  margin: 0 0 1.35rem;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2rem, 1.15rem + 2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.apm-about-approach__title span {
  color: var(--wp--preset--color--primary);
}

.apm-about-approach__lead {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: var(--wp--preset--color--contrast);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.apm-about-approach__copy > p:not(.apm-about-approach__lead) {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: #5c6370;
  font-size: 1rem;
  line-height: 1.7;
}

.apm-about-approach__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  margin: 2.15rem 0 0;
  padding: 0;
  list-style: none;
}

.apm-about-approach__points li {
  position: relative;
  padding-top: 1.1rem;
  border-top: 1px solid #e4e1dc;
}

.apm-about-approach__points li::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 1.9rem;
  height: 3px;
  background-color: var(--wp--preset--color--primary);
}

.apm-about-approach__points h3 {
  margin: 0 0 0.35rem;
  color: var(--wp--preset--color--contrast);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.apm-about-approach__points p {
  margin: 0;
  color: #5c6370;
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .apm-about-approach__points {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

@media (max-width: 800px) {
  .apm-about-approach__card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .apm-about-approach__photo {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .apm-about-approach__photo img {
    object-position: center 35%;
  }

  .apm-about-approach__copy {
    padding: 1.15rem 0.7rem 0.85rem;
  }

  .apm-about-approach__points {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.apm-about .apm-about-team {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 3rem));
  margin: var(--apm-after-hero) auto 0;
}

.apm-about-team__card {
  padding: 4rem 3.25rem 3rem;
  border-radius: 24px;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 10px 32px rgba(26, 26, 26, 0.06);
}

.apm-about-team__copy {
  margin: 0 auto 4.5rem;
  text-align: center;
}

.apm-about-team__eyebrow {
  justify-content: center;
}

.apm-about-team__title,
.apm-about-why__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.apm-about-team__title span,
.apm-about-why__title span {
  color: var(--wp--preset--color--primary);
}

.apm-about-team__title {
  font-size: clamp(2rem, 1.35rem + 1.7vw, 2.7rem);
}

.apm-about-team__text {
  max-width: 34rem;
  margin: 0.85rem auto 0;
  color: #5c6370;
  font-size: 1rem;
  line-height: 1.55;
}

.apm-about-team__group {
  display: grid;
  grid-template-columns: 16.25rem minmax(0, 1fr);
  gap: 3rem;
  border-top: 1px solid #e4e1dc;
  padding: 3rem 0;
}

.apm-about-team__group:last-child {
  padding-bottom: 0;
}

.apm-about-team__label h3 {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.apm-about-team__label h3::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-about-team__label p {
  max-width: 26ch;
  margin: 0.9rem 0 0;
  color: #5c6370;
  font-size: 0.94rem;
  line-height: 1.6;
}

.apm-about-team__people,
.apm-about-team__names {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-about-team__people {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.apm-about-team__people--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 38.75rem;
}

.apm-about-team__people--four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apm-about-team__people li,
.apm-about-team__names li {
  min-width: 0;
}

.apm-about-team__people img,
.apm-about-team__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  margin: 0 0 0.85rem;
  border-radius: 0.875rem;
  object-fit: cover;
  object-position: center 18%;
  background: linear-gradient(180deg, #ebe8e3, #dcd8d1);
}

.apm-about-team__photo {
  margin: 0;
}

.apm-about-team__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 0.875rem;
  object-fit: cover;
  object-position: center center;
}

.apm-about-team__names {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.apm-about-team__names li {
  border-top: 1px solid #e4e1dc;
  padding-top: 0.85rem;
}

.apm-about-team__name,
.apm-about-team__role {
  margin: 0;
}

.apm-about-team__name {
  color: var(--wp--preset--color--contrast);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.apm-about-team__role {
  margin-top: 0.2rem;
  color: #8b919a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .apm-about-team__card {
    padding: 3rem 1.5rem 2.25rem;
  }

  .apm-about-team__copy {
    margin-bottom: 3rem;
  }

  .apm-about-team__group {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.25rem 0;
  }

  .apm-about-team__label p {
    max-width: none;
  }

  .apm-about-team__people--four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .apm-about-team__people,
  .apm-about-team__names {
    gap: 1rem;
  }

  .apm-about-team__names {
    grid-template-columns: 1fr;
  }
}

.apm-about .apm-about-why {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(13.5rem, 0.68fr) minmax(0, 1.45fr);
  gap: 1.75rem 2.25rem;
  align-items: center;
  width: min(1200px, calc(100% - 3rem));
  margin: var(--apm-after-hero) auto 0;
  padding: 0 0.4rem;
}

.apm-about-why__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-about-why__icon {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.75rem;
  color: var(--wp--preset--color--primary);
}

.apm-about-why__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.apm-about-why__list h3 {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.apm-about-why__list p {
  margin: 0.4rem 0 0;
  color: #5c6370;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .apm-about .apm-about-why {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .apm-about .apm-about-team,
  .apm-about .apm-about-why {
    width: min(1200px, calc(100% - 2.3rem));
  }

  .apm-about-team__card {
    padding: 1.6rem 0.9rem 1.25rem;
  }

  .apm-about-team__copy {
    margin-bottom: 1.4rem;
  }

  .apm-about-why__list {
    grid-template-columns: 1fr 1fr;
  }

  .apm-about .apm-about-why {
    padding: 0;
  }
}

/* ==========================================================================
   Locations page
   Split hero: copy on the background, Brisbane skyline fading in from
   the right. The eyebrow is red, matching the mockup.
   ========================================================================== */
.apm-locations {
  background-color: var(--wp--preset--color--surface);
}

.apm-locations-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(30rem, 58vh, 38rem);
  background-color: var(--wp--preset--color--surface);
}

.apm-locations-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: calc(var(--wp--preset--spacing--30) + 7.5rem) 2rem 3rem
    max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-locations-hero__photo {
  position: relative;
  min-height: 100%;
  margin: 0 0 0 -12%;
  overflow: hidden;
}

.apm-locations-hero__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

.apm-locations-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-locations-hero__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-locations-hero__title {
  margin: 0;
  max-width: 11.2em;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2.45rem, 1.15rem + 2.35vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.apm-locations-hero__title span {
  color: var(--wp--preset--color--primary);
}

.apm-locations-hero__text {
  max-width: 32rem;
  margin: 1.15rem 0 0;
  color: #5c6370;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .apm-locations-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .apm-locations-hero__copy {
    padding: calc(var(--wp--preset--spacing--30) + 7rem) 1.35rem 1.5rem;
  }

  .apm-locations-hero__title {
    max-width: none;
    font-size: clamp(2.35rem, 1.5rem + 3.4vw, 3.15rem);
  }

  .apm-locations-hero__photo {
    aspect-ratio: 16 / 10;
    margin-left: 0;
  }

  .apm-locations-hero__photo img {
    object-position: 62% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
  }
}

/* ==========================================================================
   Locations regions
   Dropdowns under the hero. One region opens to its suburb list.
   ========================================================================== */
.apm-locations .apm-regions {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 3rem));
  margin: var(--apm-after-hero) auto 0;
}

/* Suburb search. Sits above the region dropdowns. */
.apm-suburb-search {
  margin: 0 0 2.75rem;
  padding: 2.4rem 1.5rem 1.7rem;
  border: 1px solid #eceff3;
  border-radius: 22px;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
  text-align: center;
}

.apm-suburb-search__title {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.apm-suburb-search__lead {
  margin: 0.45rem 0 0;
  color: #6d737c;
  font-size: 0.98rem;
  line-height: 1.45;
}

.apm-suburb-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.apm-suburb-search__form {
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  max-width: 52rem;
  margin: 1.35rem auto 0;
  text-align: left;
}

.apm-suburb-search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.apm-suburb-search__glass {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  display: grid;
  color: #9aa1ab;
  transform: translateY(-50%);
  pointer-events: none;
}

.apm-suburb-search__input {
  box-sizing: border-box;
  width: 100%;
  height: 3.15rem;
  margin: 0;
  padding: 0 2.6rem 0 2.7rem;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background-color: #fff;
  color: var(--wp--preset--color--contrast);
  font: inherit;
  font-size: 0.98rem;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.03);
}

.apm-suburb-search__input::placeholder {
  color: #9aa1ab;
}

.apm-suburb-search__input:focus {
  border-color: #c5cad3;
  outline: 2px solid rgba(200, 16, 46, 0.18);
  outline-offset: 1px;
}

.apm-suburb-search__clear {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b919a;
  cursor: pointer;
  transform: translateY(-50%);
}

.apm-suburb-search__clear:hover {
  color: var(--wp--preset--color--contrast);
}

.apm-suburb-search__clear[hidden] {
  display: none;
}

.apm-suburb-search__submit,
.apm-suburb-search__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-height: 3.15rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 10px;
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.apm-suburb-search__submit:hover,
.apm-suburb-search__action:hover {
  background-color: var(--wp--preset--color--primary-dark);
  color: #fff;
}

.apm-suburb-search__result {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 52rem;
  margin: 0.85rem auto 0;
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  border-radius: 14px;
  text-align: left;
}

.apm-suburb-search__result[hidden] {
  display: none;
}

.apm-suburb-search__result.is-found {
  background-color: #e8f7ee;
}

.apm-suburb-search__result.is-missing {
  background-color: #fdecec;
}

.apm-suburb-search__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  align-self: stretch;
  padding-right: 0.85rem;
  border-right: 1px solid rgba(26, 26, 26, 0.12);
}

.apm-suburb-search__icon--yes {
  color: #1f9d55;
}

.apm-suburb-search__icon--no {
  color: var(--wp--preset--color--primary);
}

.apm-suburb-search__result.is-found .apm-suburb-search__icon--no,
.apm-suburb-search__result.is-missing .apm-suburb-search__icon--yes {
  display: none;
}

.apm-suburb-search__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.apm-suburb-search__heading {
  margin: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.apm-suburb-search__text {
  margin: 0.15rem 0 0;
  color: #5c6370;
  font-size: 0.88rem;
  line-height: 1.4;
}

.apm-suburb-search__action {
  min-height: 2.7rem;
  padding: 0 1rem;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .apm-suburb-search {
    padding: 1.7rem 1rem 1.15rem;
  }

  .apm-suburb-search__form {
    flex-direction: column;
    align-items: stretch;
  }

  .apm-suburb-search__result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0.7rem 0.75rem;
    padding: 1rem;
  }

  .apm-suburb-search__action {
    grid-column: 1 / -1;
  }

  .apm-suburb-search__action,
  .apm-suburb-search__submit {
    width: 100%;
  }
}

.apm-regions__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1.6rem;
  color: #9aa1ab;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-regions__heading::before,
.apm-regions__heading::after {
  content: "";
  flex: 0 0 2.6rem;
  height: 1px;
  background-color: #d5d8de;
}

.apm-regions__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.apm-regions__item {
  border: 1px solid #eceff3;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}

.apm-regions__item[open] {
  border-color: transparent;
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.16);
}

.apm-regions__item summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  list-style: none;
  cursor: pointer;
}

.apm-regions__item summary::-webkit-details-marker {
  display: none;
}

.apm-regions__item summary:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
  border-radius: 16px;
}

.apm-regions__item[open] summary:focus-visible {
  outline-color: #fff;
}

.apm-regions__pin {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background-color: #fde8eb;
  color: var(--wp--preset--color--primary);
}

.apm-regions__item[open] .apm-regions__pin {
  background-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.apm-regions__name {
  min-width: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.apm-regions__item[open] .apm-regions__name {
  color: #fff;
}

.apm-regions__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  color: #8b919a;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.apm-regions__item[open] .apm-regions__toggle {
  color: #fff;
}

.apm-regions__hide,
.apm-regions__item[open] .apm-regions__show {
  display: none;
}

.apm-regions__item[open] .apm-regions__hide {
  display: inline;
}

.apm-regions__chevron {
  display: block;
  flex: 0 0 auto;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.apm-regions__item[open] .apm-regions__chevron {
  transform: rotate(180deg);
}

.apm-regions__panel {
  padding: 0.15rem 1.35rem 1.45rem 4.15rem;
}

.apm-regions__panel p {
  max-width: 46rem;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

.apm-regions__groups--split {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}

.apm-regions__group h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.apm-regions__suburbs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-regions__groups--plain .apm-regions__suburbs {
  column-count: 4;
  column-gap: 1.5rem;
}

.apm-regions__suburbs li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.48rem;
  break-inside: avoid;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.apm-regions__suburbs svg {
  flex: 0 0 auto;
  margin-top: 0.12rem;
}

@media (max-width: 900px) {
  .apm-regions__groups--split,
  .apm-regions__groups--split.is-count-4 {
    grid-template-columns: 1fr 1fr;
  }

  .apm-regions__groups--plain .apm-regions__suburbs {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .apm-locations .apm-regions {
    width: min(1200px, calc(100% - 1.7rem));
  }

  .apm-regions__item summary {
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
  }

  .apm-regions__name {
    font-size: 0.98rem;
  }

  .apm-regions__toggle {
    font-size: 0.78rem;
  }

  .apm-regions__panel {
    padding: 0.1rem 1rem 1.15rem;
  }

  .apm-regions__groups--split,
  .apm-regions__groups--split.is-count-4,
  .apm-regions__groups--plain .apm-regions__suburbs {
    grid-template-columns: 1fr;
    column-count: 1;
  }
}

/* ==========================================================================
   FAQs page
   Same split hero as Locations, then one dropdown per question.
   ========================================================================== */
.apm-faqs-page {
  background-color: var(--wp--preset--color--surface);
}

.apm-faqs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(30rem, 58vh, 38rem);
  background-color: var(--wp--preset--color--surface);
}

.apm-faqs-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: calc(var(--wp--preset--spacing--30) + 7.5rem) 2rem 3rem
    max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-faqs-hero__photo {
  position: relative;
  min-height: 100%;
  margin: 0 0 0 -12%;
  overflow: hidden;
}

.apm-faqs-hero__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

.apm-faqs-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-faqs-hero__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-faqs-hero__title {
  margin: 0;
  max-width: 11.2em;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2.45rem, 1.15rem + 2.35vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.apm-faqs-hero__title span {
  color: var(--wp--preset--color--primary);
}

.apm-faqs-hero__text {
  max-width: 32rem;
  margin: 1.15rem 0 0;
  color: #5c6370;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .apm-faqs-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .apm-faqs-hero__copy {
    padding: calc(var(--wp--preset--spacing--30) + 7rem) 1.35rem 1.5rem;
  }

  .apm-faqs-hero__title {
    max-width: none;
    font-size: clamp(2.35rem, 1.5rem + 3.4vw, 3.15rem);
  }

  .apm-faqs-hero__photo {
    aspect-ratio: 16 / 10;
    margin-left: 0;
  }

  .apm-faqs-hero__photo img {
    object-position: 42% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
  }
}

.apm-faqs-page .apm-faqs {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 3rem));
  margin: var(--apm-after-hero) auto 0;
}

.apm-faqs__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1.6rem;
  color: #9aa1ab;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-faqs__heading::before,
.apm-faqs__heading::after {
  content: "";
  flex: 0 0 2.6rem;
  height: 1px;
  background-color: #d5d8de;
}

.apm-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.apm-faqs__empty {
  margin: 0;
  color: #6d737c;
  text-align: center;
}

.apm-faqs__item {
  border: 1px solid #eceff3;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}

.apm-faqs__item[open] {
  border-color: transparent;
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.16);
}

.apm-faqs__item summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  list-style: none;
  cursor: pointer;
}

.apm-faqs__item summary::-webkit-details-marker {
  display: none;
}

.apm-faqs__item summary:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
  border-radius: 16px;
}

.apm-faqs__item[open] summary:focus-visible {
  outline-color: #fff;
}

.apm-faqs__mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background-color: #fde8eb;
  color: var(--wp--preset--color--primary);
}

.apm-faqs__item[open] .apm-faqs__mark {
  background-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.apm-faqs__question {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--wp--preset--color--contrast);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.apm-faqs__item[open] .apm-faqs__question {
  color: #fff;
}

.apm-faqs__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  color: #8b919a;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.apm-faqs__item[open] .apm-faqs__toggle {
  color: #fff;
}

.apm-faqs__hide,
.apm-faqs__item[open] .apm-faqs__show {
  display: none;
}

.apm-faqs__item[open] .apm-faqs__hide {
  display: inline;
}

.apm-faqs__chevron {
  display: block;
  flex: 0 0 auto;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.apm-faqs__item[open] .apm-faqs__chevron {
  transform: rotate(180deg);
}

.apm-faqs__panel {
  padding: 0.15rem 1.35rem 1.45rem 4.15rem;
}

.apm-faqs__answer {
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

.apm-faqs__answer > :first-child {
  margin-top: 0;
}

.apm-faqs__answer > :last-child {
  margin-bottom: 0;
}

.apm-faqs__answer p {
  margin: 0 0 0.85rem;
}

.apm-faqs__answer strong {
  font-weight: 800;
}

.apm-faqs__answer a {
  color: #fff;
}

.apm-faqs__answer ul {
  margin: 0.15rem 0 1rem;
  padding: 0;
  list-style: none;
}

.apm-faqs__answer ul:has(li:nth-child(8)) {
  columns: 2;
  column-gap: 1.75rem;
}

.apm-faqs__answer li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  break-inside: avoid;
}

.apm-faqs__answer li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.38rem;
  height: 0.68rem;
  margin-top: 0.22rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(40deg);
}

.apm-faqs__more {
  margin: 1.6rem 0 0;
  color: #5c6370;
  font-size: 0.98rem;
  text-align: center;
}

.apm-faqs__more a {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  text-decoration: none;
}

.apm-faqs__more a:hover {
  color: var(--wp--preset--color--primary-dark);
}

@media (max-width: 640px) {
  .apm-faqs-page .apm-faqs {
    width: min(1200px, calc(100% - 1.7rem));
  }

  .apm-faqs__item summary {
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
  }

  .apm-faqs__question {
    font-size: 0.98rem;
  }

  .apm-faqs__show,
  .apm-faqs__hide {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .apm-faqs__panel {
    padding: 0.1rem 1rem 1.15rem;
  }

  .apm-faqs__answer ul:has(li:nth-child(8)) {
    columns: 1;
  }
}

/* ==========================================================================
   Privacy policy
   Same split hero as FAQs, then a contents card and one reading column.
   ========================================================================== */
.apm-privacy {
  background-color: var(--wp--preset--color--surface);
}

.apm-privacy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(30rem, 58vh, 38rem);
  background-color: var(--wp--preset--color--surface);
}

.apm-privacy-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: calc(var(--wp--preset--spacing--30) + 7.5rem) 2rem 3rem
    max(1.75rem, calc((100vw - 1200px) / 2 + 1.25rem));
}

.apm-privacy-hero__photo {
  position: relative;
  min-height: 100%;
  margin: 0 0 0 -12%;
  overflow: hidden;
}

.apm-privacy-hero__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

.apm-privacy-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.05rem;
  color: var(--wp--preset--color--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-privacy-hero__mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--primary);
}

.apm-privacy-hero__title {
  margin: 0;
  max-width: 11.2em;
  color: var(--wp--preset--color--contrast);
  font-size: clamp(2.45rem, 1.15rem + 2.35vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.apm-privacy-hero__title span {
  color: var(--wp--preset--color--primary);
}

.apm-privacy-hero__text {
  max-width: 32rem;
  margin: 1.15rem 0 0;
  color: #5c6370;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
}

.apm-privacy__wrap {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 3rem));
  margin: var(--apm-after-hero) auto 0;
}

.apm-privacy__contents,
.apm-privacy__doc {
  border: 1px solid #eceff3;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}

.apm-privacy__contents {
  padding: 1.35rem 1.5rem 1.2rem;
}

.apm-privacy__contents-label {
  margin: 0 0 0.85rem;
  color: #9aa1ab;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.apm-privacy__contents ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.75rem;
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.apm-privacy__contents a {
  color: var(--wp--preset--color--contrast);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.apm-privacy__contents a:hover {
  color: var(--wp--preset--color--primary);
}

.apm-privacy__contents a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.apm-privacy__doc {
  margin-top: 0.85rem;
  padding: 0.4rem 1.6rem 1.5rem;
}

.apm-privacy__section {
  padding: 1.35rem 0 1.45rem;
  scroll-margin-top: 5.5rem;
}

.apm-privacy__section + .apm-privacy__section {
  border-top: 1px solid #eceff3;
}

.apm-privacy__section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  color: var(--wp--preset--color--contrast);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.apm-privacy__section h2 span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background-color: #fde8eb;
  color: var(--wp--preset--color--primary);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.apm-privacy__section p,
.apm-privacy__section li {
  color: #3d4450;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
}

.apm-privacy__section p {
  margin: 0 0 0.85rem;
}

.apm-privacy__section p:last-child,
.apm-privacy__section ul:last-child {
  margin-bottom: 0;
}

.apm-privacy__section ul {
  margin: 0.15rem 0 1rem;
  padding: 0;
  list-style: none;
}

.apm-privacy__section li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
}

.apm-privacy__section li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.38rem;
  height: 0.68rem;
  margin-top: 0.28rem;
  border-right: 2px solid var(--wp--preset--color--primary);
  border-bottom: 2px solid var(--wp--preset--color--primary);
  transform: rotate(40deg);
}

.apm-privacy__section a {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  text-decoration: none;
}

.apm-privacy__section a:hover {
  color: var(--wp--preset--color--primary-dark);
}

.apm-privacy__contact {
  margin-top: 0.35rem;
}

@media (max-width: 800px) {
  .apm-privacy-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .apm-privacy-hero__copy {
    padding: calc(var(--wp--preset--spacing--30) + 7rem) 1.35rem 1.5rem;
  }

  .apm-privacy-hero__title {
    max-width: none;
    font-size: clamp(2.35rem, 1.5rem + 3.4vw, 3.15rem);
  }

  .apm-privacy-hero__photo {
    aspect-ratio: 16 / 10;
    margin-left: 0;
  }

  .apm-privacy-hero__photo img {
    object-position: 42% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
  }

  .apm-privacy__contents ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .apm-privacy__wrap {
    width: min(1200px, calc(100% - 1.7rem));
  }

  .apm-privacy__contents,
  .apm-privacy__doc {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .apm-privacy__section h2 {
    align-items: flex-start;
    font-size: 1.08rem;
  }
}

/* ==========================================================================
   Motion
   Scroll reveals and the two hero entrances. Hover lifts stay on the
   service card and the pest photo, so these transforms never share
   an element with them. The pest hero slide-in is untouched.
   ========================================================================== */
.apm-hero {
  overflow: hidden;
}

.apm-hero-line {
  display: block;
}

.apm-services-hero .apm-contact-hero__title > .apm-hero-line,
.apm-pricing-hero .apm-contact-hero__title > .apm-hero-line {
  color: var(--wp--preset--color--contrast);
}

.apm-services__grid > .apm-reveal {
  display: flex;
  min-width: 0;
}

.apm-services__grid > .apm-reveal > .apm-service-card {
  width: 100%;
  height: 100%;
}

@keyframes apm-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes apm-hero-zoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .apm-hero .apm-hero-line {
    animation: apm-fade-up 460ms ease-out both;
  }

  .apm-hero .apm-hero-line:nth-child(2) {
    animation-delay: 80ms;
  }

  .apm-hero .apm-hero-fade {
    animation: apm-fade-up 420ms ease-out 180ms both;
  }

  .apm-hero .wp-block-cover__image-background {
    animation: apm-hero-zoom 960ms ease-out both;
  }

  .apm-services-hero .apm-hero-line {
    animation: apm-fade-up 420ms ease-out both;
  }

  .apm-services-hero .apm-hero-line:nth-child(1) {
    animation-delay: 50ms;
  }

  .apm-services-hero .apm-hero-line:nth-child(2) {
    animation-delay: 110ms;
  }

  .apm-services-hero .apm-hero-line:nth-child(3) {
    animation-delay: 180ms;
  }

  .apm-services-hero .apm-contact-hero__eyebrow.apm-hero-fade {
    animation: apm-fade-up 400ms ease-out both;
  }

  .apm-services-hero .apm-contact-hero__text.apm-hero-fade {
    animation: apm-fade-up 420ms ease-out 240ms both;
  }

  .apm-services-hero .apm-contact-hero__photo img {
    animation: apm-hero-zoom 960ms ease-out both;
    transform-origin: center center;
  }

  .apm-pricing-hero .apm-hero-line {
    animation: apm-fade-up 420ms ease-out both;
  }

  .apm-pricing-hero .apm-hero-line:nth-child(1) {
    animation-delay: 50ms;
  }

  .apm-pricing-hero .apm-hero-line:nth-child(2) {
    animation-delay: 110ms;
  }

  .apm-pricing-hero .apm-contact-hero__eyebrow.apm-hero-fade {
    animation: apm-fade-up 400ms ease-out both;
  }

  .apm-pricing-hero .apm-contact-hero__text.apm-hero-fade {
    animation: apm-fade-up 420ms ease-out 240ms both;
  }

  .apm-pricing-hero .apm-contact-hero__photo img {
    animation: apm-hero-zoom 960ms ease-out both;
    transform-origin: center center;
  }
}

html.apm-motion .apm-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(15px);
}

html.apm-motion .apm-reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 480ms ease-out,
    transform 480ms ease-out;
  transition-delay: calc(var(--apm-i, 0) * 70ms);
}

html.apm-motion .apm-reveal.is-in.is-instant {
  transition: none;
}

html.apm-motion .is-line {
  transform-origin: left center;
}

html.apm-motion .apm-services__rule.is-line {
  transform-origin: center center;
}

html.apm-motion .apm-reveal:not(.is-in) .is-line,
html.apm-motion .is-line-solo:not(.is-in) {
  transform: scaleX(0);
}

html.apm-motion .apm-reveal.is-in .is-line,
html.apm-motion .is-line.is-in {
  transform: scaleX(1);
  transition: transform 400ms ease-out;
  transition-delay: calc(var(--apm-i, 0) * 70ms);
}

@media (max-width: 700px) {
  html.apm-motion .apm-reveal.is-in {
    transition-duration: 360ms;
    transition-delay: calc(var(--apm-i, 0) * 50ms);
  }

  html.apm-motion .apm-reveal.is-in .is-line,
  html.apm-motion .is-line.is-in {
    transition-duration: 320ms;
    transition-delay: calc(var(--apm-i, 0) * 50ms);
  }
}

html.apm-motion .apm-reveal.is-instant .is-line,
html.apm-motion .is-line.is-instant {
  transition: none;
}

@media (min-width: 781px) {
  html.apm-motion .apm-family__photo img {
    transform: translateY(calc(-4% + var(--apm-shift, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .apm-hero .apm-hero-line,
  .apm-hero .apm-hero-fade,
  .apm-hero .wp-block-cover__image-background,
  .apm-services-hero .apm-hero-line,
  .apm-services-hero .apm-hero-fade,
  .apm-services-hero .apm-contact-hero__photo img,
  .apm-pricing-hero .apm-hero-line,
  .apm-pricing-hero .apm-hero-fade,
  .apm-pricing-hero .apm-contact-hero__photo img {
    animation: none;
  }

  html.apm-motion .apm-reveal,
  html.apm-motion .apm-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .is-line,
  html.apm-motion .is-line,
  html.apm-motion .apm-reveal .is-line,
  html.apm-motion .apm-reveal.is-in .is-line {
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  .apm-hero .apm-hero-line,
  .apm-hero .apm-hero-fade,
  .apm-services-hero .apm-hero-line,
  .apm-services-hero .apm-contact-hero__eyebrow.apm-hero-fade,
  .apm-services-hero .apm-contact-hero__text.apm-hero-fade,
  .apm-pricing-hero .apm-hero-line,
  .apm-pricing-hero .apm-contact-hero__eyebrow.apm-hero-fade,
  .apm-pricing-hero .apm-contact-hero__text.apm-hero-fade {
    animation-duration: 340ms;
  }

  .apm-hero .wp-block-cover__image-background,
  .apm-services-hero .apm-contact-hero__photo img,
  .apm-pricing-hero .apm-contact-hero__photo img {
    animation-duration: 720ms;
  }
}

/* ==========================================================================
   Special Offers tab
   Fixed ticket on the right edge. Upright label on desktop, a pill on small
   screens. Hidden on the Special Offers page itself.
   ========================================================================== */
.apm-offers-tab {
  --apm-offers-lift: 0px;
  position: fixed;
  z-index: 15;
  top: 55%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  box-sizing: border-box;
  width: 90px;
  margin: 0;
  padding: 2rem 0.7rem 1.7rem;
  border-radius: 16px 0 0 16px;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  box-shadow: -8px 12px 28px rgba(17, 24, 39, 0.32);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transform: translate3d(0, -50%, 0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.apm-offers-tab:hover,
.apm-offers-tab:focus {
  color: var(--wp--preset--color--base);
  text-decoration: none;
}

.apm-offers-tab:hover,
.apm-offers-tab:focus-visible {
  box-shadow: -12px 16px 34px rgba(17, 24, 39, 0.4);
  transform: translate3d(-6px, -50%, 0);
}

.apm-offers-tab:focus-visible {
  outline: 2px solid var(--wp--preset--color--contrast);
  outline-offset: 4px;
  box-shadow:
    0 0 0 2px var(--wp--preset--color--base),
    -12px 16px 34px rgba(17, 24, 39, 0.4);
}

.apm-offers-tab__icon,
.apm-offers-tab__arrow {
  display: flex;
  flex: 0 0 auto;
  color: inherit;
}

.apm-offers-tab__icon svg,
.apm-offers-tab__arrow svg {
  display: block;
}

.apm-offers-tab__ticket {
  width: 28px;
  height: 28px;
}

.apm-offers-tab__icon .apm-offers-tab__percent {
  display: none;
}

.apm-offers-tab__arrow svg {
  width: 16px;
  height: 16px;
}

.apm-offers-tab__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

/* The Termidor badge sits in the bottom-right of the full-height hero.
   Keep the tab above it on short desktop windows. */
@media (min-width: 782px) {
  body.home .apm-offers-tab {
    top: clamp(11rem, 55vh, calc(100vh - 21.5rem));
    top: clamp(11rem, 55dvh, calc(100dvh - 21.5rem));
  }
}

@media (max-width: 781px) {
  .apm-offers-tab {
    --apm-offers-rest: max(1rem, env(safe-area-inset-bottom, 0px));
    top: auto;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(var(--apm-offers-rest) + var(--apm-offers-lift));
    flex-direction: row;
    gap: 0.4rem;
    width: auto;
    max-width: calc(100vw - 2rem);
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    letter-spacing: 0;
    text-transform: none;
    transform: none;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.22);
  }

  .apm-offers-tab,
  .apm-offers-tab:hover,
  .apm-offers-tab:focus-visible {
    transform: none;
  }

  .apm-offers-tab:hover {
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.28);
  }

  .apm-offers-tab:focus-visible {
    outline: 2px solid var(--wp--preset--color--contrast);
    outline-offset: 3px;
    box-shadow:
      0 0 0 2px var(--wp--preset--color--base),
      0 12px 28px rgba(17, 24, 39, 0.28);
  }

  .apm-offers-tab__label {
    flex-direction: row;
    gap: 0.28em;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .apm-offers-tab__icon .apm-offers-tab__ticket {
    display: none;
  }

  .apm-offers-tab__icon .apm-offers-tab__percent {
    display: block;
    width: 16px;
    height: 16px;
  }

  .apm-offers-tab__arrow {
    display: none;
  }

  /* Until the homepage script measures the badge, stay above its corner. */
  body.home .apm-offers-tab {
    --apm-offers-lift: 9.25rem;
  }

  /* The licence line is the last text in the footer. Give it room to
     scroll clear of the pill without changing the rest of the page. */
  .apm-footer__bar {
    padding-bottom: calc(1.75rem + 3rem);
  }
}

body:has(.wp-block-navigation__responsive-container.is-menu-open) .apm-offers-tab {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .apm-offers-tab {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 782px) {
  .apm-offers-tab:hover,
  .apm-offers-tab:focus-visible {
    transform: translate3d(0, -50%, 0);
  }
}
