/* Investigations Plus — dark professional theme */

:root {
  --bg: #070b12;
  --bg-elevated: #0e1520;
  --surface: #141c28;
  --surface-2: #1a2433;
  --border: rgba(214, 224, 240, 0.12);
  --text: #f4f7fb;
  --muted: #b6c0cf;
  --accent: #4e9f63;
  --accent-soft: rgba(78, 159, 99, 0.16);
  --accent-hover: #63b77a;
  --glow: rgba(78, 159, 99, 0.24);
  --danger: #c45c5c;
  --font-sans: "Outfit", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --container: 1160px;
  --header-offset: 6.5rem;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(78, 159, 99, 0.10), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(56, 96, 160, 0.12), transparent 50%),
    var(--bg);
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

@media (min-width: 961px) {
  body {
    background-attachment: fixed;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

/* Compact card titles stay slightly smaller than section H2s. */
.service-card h3,
.area-card h3,
.value-item h3,
.map-location-card h3,
.svc-hub-card__title,
.blog-card__title,
.blog-list-card__title,
.post-card h2,
.blog-sidebar__widget h3,
.sidebar-cta h3,
.faq-item__q {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

p { margin: 0 0 1rem; color: var(--muted); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #111;
}

/* Buttons — shared geometry (hero, CTAs, forms) */
.btn,
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
.ipl-modal__body input[type="submit"],
.contact-cf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn--accent,
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
.ipl-modal__body input[type="submit"],
.contact-cf7 input[type="submit"] {
  background: linear-gradient(135deg, var(--accent) 0%, #2f5e3b 100%);
  color: #08110b;
  border-color: transparent;
  box-shadow: 0 8px 24px var(--glow);
}

.btn--accent:hover,
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover,
.ipl-modal__body input[type="submit"]:hover,
.contact-cf7 input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: #08110b;
  transform: translateY(-2px);
}

.site-header__cta,
.primary-nav__cta {
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px var(--glow);
}

.primary-nav__cta {
  display: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__actions,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__actions .btn,
.btn-row .btn {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
}

.faq-aside__cta,
.sidebar-cta .btn,
.blog-sidebar__widget--cta .btn,
.cta-band .btn {
  width: 100%;
  max-width: 22rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 14, 19, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 14, 19, 0.92);
}

.site-header__top {
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.site-header__top-inner {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  padding: 0.45rem 0;
}

.site-header__contact {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-header__contact--phone {
  color: #fff;
}

.site-header__contact--phone:hover,
.site-header__contact--phone:focus-visible {
  color: var(--accent);
}

.site-header__contact--email {
  color: var(--accent);
}

.site-header__contact--email:hover,
.site-header__contact--email:focus-visible {
  color: #fff;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.25rem;
  position: relative;
}

.site-branding {
  margin-right: auto;
}

.site-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.site-title__mark {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.site-title__text {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.custom-logo-link img {
  max-height: 48px;
  width: auto;
}

.primary-nav {
  position: relative;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list > .menu-item {
  position: relative;
}

.primary-nav__list a {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 0;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a {
  color: var(--accent);
}

.primary-nav__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  min-width: 14.5rem;
  background: rgba(14, 18, 24, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  z-index: 1200;
  display: none;
}

.primary-nav__list .sub-menu a {
  padding: 0.65rem 1rem;
  padding-right: 1.75rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav__list .sub-menu a:hover {
  background: rgba(78, 159, 99, 0.10);
  color: var(--accent);
}

.primary-nav__list .menu-item-has-children > a {
  padding-right: 1rem;
  position: relative;
}

.primary-nav__list > .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(-35%);
  opacity: 0.7;
}

.primary-nav__list .sub-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  border-right: 0;
  transform: translateY(-50%);
  opacity: 0.7;
}

.primary-nav__list .sub-menu .menu-item {
  position: relative;
}

.primary-nav__list .sub-menu .sub-menu {
  top: -0.45rem;
  left: calc(100% - 0.35rem);
  z-index: 1300;
}

.primary-nav__list .sub-menu .sub-menu .sub-menu {
  z-index: 1400;
}

.primary-nav__list .sub-menu .sub-menu .sub-menu .sub-menu {
  z-index: 1500;
}

.primary-nav__list > .menu-item:hover > .sub-menu,
.primary-nav__list > .menu-item:focus-within > .sub-menu,
.primary-nav__list .menu-item:hover > .sub-menu,
.primary-nav__list .menu-item:focus-within > .sub-menu {
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.nav-toggle__icon {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 18% 25%, rgba(78, 159, 99, 0.22), transparent 42%),
    radial-gradient(ellipse at 85% 70%, rgba(40, 70, 120, 0.35), transparent 50%),
    linear-gradient(165deg, #101826 0%, #070b12 52%, #0a101c 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 2s var(--ease);
}

.hero__media .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero.is-ready .hero__media {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 14, 19, 0.18) 0%, rgba(11, 14, 19, 0.48) 55%, rgba(11, 14, 19, 0.72) 100%),
    linear-gradient(90deg, rgba(11, 14, 19, 0.45) 0%, rgba(11, 14, 19, 0.12) 70%);
}

.hero__content {
  max-width: 42rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.hero.is-ready .hero__content {
  opacity: 1;
  transform: none;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__brand {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1rem;
  color: var(--text);
}

.hero__sub {
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-hero {
  position: relative;
  min-height: clamp(22rem, 42vh, 32rem);
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(78, 159, 99, 0.10), transparent 40%),
    var(--bg-elevated);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media .hero__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.page-hero--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 14, 19, 0.58) 0%, rgba(11, 14, 19, 0.28) 55%, rgba(11, 14, 19, 0.42) 100%),
    linear-gradient(180deg, rgba(11, 14, 19, 0.18), rgba(11, 14, 19, 0.62));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(14, 21, 32, 0.92), rgba(14, 21, 32, 0.98)),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section__header {
  max-width: none;
  width: 100%;
  margin-bottom: 2.75rem;
}

.section__header p {
  max-width: none;
}

.section__header h2 {
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split__media {
  min-height: 320px;
  background:
    linear-gradient(145deg, var(--surface-2), var(--surface)),
    var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.split__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(11, 14, 19, 0.55));
  pointer-events: none;
}

.split__copy h2,
.split__content h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
}

.content-block--full {
  max-width: none;
}

.content-block--full h2,
.content-flow__heading {
  margin: 0 0 1rem;
  color: var(--text);
}

.content-block--full .prose,
.content-flow__text.prose {
  max-width: none;
}

/* Float layout: text sits beside image, then wraps full-width underneath */
.content-flow {
  display: flow-root; /* clear floats without trapping wrap incorrectly - wait flow-root creates BFC and prevents wrap under float children from outside. Floats INSIDE flow-root still wrap text siblings inside. Good. */
}

.content-flow__media {
  width: min(48%, 34rem);
  margin: 0 2rem 1.25rem 0;
  float: left;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.content-flow--image_right .content-flow__media {
  float: right;
  margin: 0 0 1.25rem 2rem;
}

.content-flow__media img {
  display: block;
  width: 100%;
  height: auto;
}

.content-flow__heading {
  margin-top: 0;
}

.content-flow__text p:first-child {
  margin-top: 0;
}

.content-flow::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .content-flow__media,
  .content-flow--image_right .content-flow__media {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
  }
}

.split--image_right .split__media {
  order: 2;
}

.split--image_right .split__copy {
  order: 1;
}

.split--image_left .split__media,
.split--image_right .split__media {
  min-height: 380px;
  border-radius: var(--radius);
}

/* Service cards — interactive containers */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  border-color: rgba(78, 159, 99, 0.45);
  transform: translateY(-4px);
  color: inherit;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.service-card__media {
  aspect-ratio: 16 / 10;
  margin: -1.35rem -1.35rem 1.1rem;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.service-card__media::after {
  display: none;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.service-card__cat {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.service-card h3 {
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.service-card__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Why / values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.value-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--accent);
}

.value-item h3 {
  color: var(--text);
  font-size: 1.2rem;
}

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 160px;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.partner-card:hover {
  border-color: rgba(78, 159, 99, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.partner-card img {
  max-height: 88px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.partner-card__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

/* Multi-location map */
.map-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map-canvas {
  width: 100%;
  min-height: 480px;
  height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  z-index: 0;
}

.map-locations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.map-location-card {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.map-location-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--text);
}

.map-location-card p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-location-card a {
  color: var(--accent);
}

.map-location-card__link {
  margin-top: 0.65rem !important;
}

.ipl-map-marker {
  background: transparent;
  border: 0;
}

.ipl-map-marker--pin {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ipl-map-marker__hit {
  display: block;
  line-height: 0;
}

.ipl-map-marker__pin {
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.leaflet-container {
  font-family: inherit;
  background: #e8ecf0;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #fff;
  color: #1a2433;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
  margin: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.leaflet-popup-content strong {
  color: #1a2433;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  color: #555;
  font-size: 10px;
}

.leaflet-control-attribution a {
  color: #3366aa;
}

.partner-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.partner-carousel__track-wrap {
  overflow: hidden;
}

.partner-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.35rem 0.15rem 0.75rem;
}

.partner-carousel__track::-webkit-scrollbar {
  display: none;
}

.partner-carousel .partner-card {
  flex: 0 0 min(240px, 70vw);
  scroll-snap-align: start;
}

.partner-carousel__nav {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.partner-carousel__nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Reviews embed (plugin shortcode) */
.reviews-embed {
  min-height: 120px;
}

.reviews-embed iframe,
.reviews-embed img {
  max-width: 100%;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem;
  align-items: start;
}

.faq-layout .section__header {
  margin-bottom: 1.75rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq-item__q {
  display: block;
  width: 100%;
  margin: 0;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  padding-right: 2.75rem;
  font-size: 1.05rem;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  position: relative;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
}

.faq-item.is-open .faq-item__q::after {
  content: "–";
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel > .faq-item__a {
  overflow: hidden;
  min-height: 0;
}

.faq-item__a {
  padding: 0 1.25rem;
  color: var(--muted);
  border-top: 1px solid transparent;
  opacity: 0;
  transition: padding 0.4s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-item.is-open .faq-item__a {
  padding: 1rem 1.25rem 1.2rem;
  border-top-color: var(--border);
  opacity: 1;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
}

.faq-aside__card {
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(78, 159, 99, 0.16), transparent 55%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(78, 159, 99, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.faq-aside__card h3 {
  color: var(--text);
  margin-bottom: 0.65rem;
  font-size: 1.65rem;
}

.faq-aside__card > p {
  margin-bottom: 1.25rem;
}

.faq-aside__points {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.faq-aside__points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 0.95rem;
}

.faq-aside__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.faq-aside__phones {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.faq-aside__phones a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.faq-aside__phones a span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.faq-aside__phones a:hover {
  color: var(--accent);
}

.faq-aside__cta {
  width: 100%;
  max-width: none;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-aside {
    position: static;
  }
}

/* Legacy partner-row kept for safety */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

.partner-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  min-height: 3rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}

.partner-item:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.partner-item img {
  max-height: 36px;
  width: auto;
  filter: grayscale(1) brightness(1.2);
  opacity: 0.8;
}

/* Reviews cards (unused when shortcode used) */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  padding: 1.5rem;
  background: var(--surface);
  border-left: 2px solid var(--accent);
}

.review-card blockquote {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.4;
}

.review-card cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

/* CTA band */
.cta-band {
  position: relative;
  padding: 5rem 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(78, 159, 99, 0.18), transparent 50%),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
}

/* Content / blog */
.prose {
  max-width: 42rem;
  color: var(--muted);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--accent);
}

.prose h2, .prose h3, .prose h4 {
  color: var(--text);
  margin-top: 2rem;
}

.prose ul, .prose ol {
  color: var(--muted);
}

.content-wrap {
  padding: 4rem 0 5rem;
}

.post-card {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-card h2 {
  font-size: 1.85rem;
}

.post-card h2 a {
  color: var(--text);
}

.post-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.author-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 46rem;
}

.author-profile__media {
  flex: 0 0 auto;
}

.author-profile__avatar {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(78, 159, 99, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.author-profile__content {
  min-width: 0;
  flex: 1 1 auto;
}

.author-profile__content h1 {
  margin-bottom: 0.75rem;
}

.author-profile__bio {
  margin: 0;
}

.author-profile__bio p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.author-profile__bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .author-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .author-profile__avatar {
    width: 5.5rem;
    height: 5.5rem;
  }
}

/* Blog layout: posts + sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2.5rem;
  align-items: start;
}

.blog-layout__main {
  min-width: 0;
}

.blog-layout__main.prose {
  max-width: none;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.blog-list-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.blog-list-card:hover {
  border-color: rgba(78, 159, 99, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.blog-list-card__hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-list-card__hit:hover {
  color: inherit;
}

.blog-list-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.blog-list-card__media::after {
  display: none;
}

.blog-list-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transition: transform 0.35s var(--ease);
}

.blog-list-card:hover .blog-list-card__media img {
  transform: scale(1.04);
}

.blog-list-card__media--placeholder {
  background:
    linear-gradient(145deg, rgba(78, 159, 99, 0.12), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}

.blog-list-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.blog-list-card__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.blog-list-card__hit:hover .blog-list-card__title {
  color: var(--accent);
}

.blog-list-card__excerpt {
  margin: 0;
  color: var(--muted);
  flex: 1;
  font-size: 0.95rem;
}

.blog-list-card__link {
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.35rem;
}

.blog-featured {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-tags a {
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.blog-tags a:hover {
  border-color: var(--accent);
}

.blog-sidebar {
  display: grid;
  gap: 1.15rem;
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
}

.blog-sidebar__widget {
  padding: 1.35rem 1.4rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.blog-sidebar__widget h3 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  color: var(--text);
}

.blog-sidebar__widget p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-sidebar__widget--cta .btn {
  width: 100%;
  justify-content: center;
}

.blog-sidebar__phones a {
  color: var(--accent);
  font-weight: 500;
}

.blog-sidebar__phones span {
  color: var(--muted);
  font-weight: 400;
}

.blog-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.blog-sidebar__list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.blog-sidebar__list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-sidebar__list a {
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
}

.blog-sidebar__list a:hover {
  color: var(--accent);
}

.blog-sidebar__list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.blog-sidebar__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-sidebar__tags a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.blog-sidebar__tags a:hover {
  color: var(--accent);
  border-color: rgba(78, 159, 99, 0.45);
}

.blog-sidebar__tags span {
  color: var(--accent);
  opacity: 0.85;
}

.blog-sidebar__more {
  margin: 0.85rem 0 0 !important;
}

.blog-sidebar__more a {
  color: var(--accent);
  font-weight: 500;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.blog-card:hover {
  border-color: rgba(78, 159, 99, 0.4);
  transform: translateY(-3px);
}

.blog-card__hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-card__hit:hover {
  color: inherit;
}

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.blog-card__media::after {
  display: none;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.blog-card__body {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem 1.35rem 1.5rem;
}

.blog-card__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.blog-card__hit:hover .blog-card__title {
  color: var(--accent);
}

.blog-card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card__link {
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  border-radius: var(--radius);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.form-notice--success {
  border-color: rgba(78, 159, 99, 0.5);
  background: var(--accent-soft);
  color: var(--text);
}

.form-notice--error {
  border-color: rgba(196, 92, 92, 0.5);
  color: #f0c7c7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-details dt {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-details dd {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.map-embed {
  margin-top: 2rem;
  border: 1px solid var(--border);
  min-height: 280px;
  background: var(--surface);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  padding-top: 4.5rem;
  background: #07090d;
  border-top: 1px solid var(--border);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: 2.25rem 2rem;
  padding-bottom: 2.75rem;
}

.site-footer__logo {
  margin-bottom: 0.85rem;
}

.site-footer__logo .custom-logo-link img,
.site-footer__logo img {
  max-height: 64px;
  width: auto;
  border-radius: 50%;
}

.site-footer__name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--text);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.site-footer__tagline {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 22rem;
}

.site-footer__contacts {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.site-footer__contacts a {
  color: var(--accent);
  font-weight: 500;
}

.site-footer__contacts a:hover {
  color: var(--accent-hover);
}

.site-footer__heading {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list a {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-footer__list a:hover {
  color: var(--accent);
}

.site-footer__list li + li {
  margin-top: 0.45rem;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(78, 159, 99, 0.45);
  border-radius: 4px;
  color: var(--accent) !important;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.site-footer__social-link svg {
  display: block;
}

.site-footer__social-link:hover {
  background: rgba(78, 159, 99, 0.12);
  border-color: var(--accent);
  color: var(--accent-hover) !important;
}

.site-footer__office {
  margin-bottom: 1.35rem;
}

.site-footer__office:last-child {
  margin-bottom: 0;
}

.site-footer__office-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__office-city {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.site-footer__office-address {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer__office-links {
  display: grid;
  gap: 0.25rem;
}

.site-footer__office-links a {
  color: var(--accent);
  font-size: 0.92rem;
}

.site-footer__office-links a:hover {
  color: var(--accent-hover);
}

.site-footer__coverage {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.site-footer__coverage p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer__coverage strong {
  color: var(--text);
  font-weight: 600;
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0 1.25rem;
  font-size: 0.85rem;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__bottom p {
  margin: 0;
  color: var(--muted);
}

.site-footer__license {
  color: var(--muted);
}

.site-footer__legal {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__legal a {
  color: var(--muted);
}

.site-footer__legal a:hover {
  color: var(--accent);
}

/* Archive / single extras */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.area-card {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.area-card:hover {
  border-color: rgba(78, 159, 99, 0.45);
  transform: translateY(-2px);
  color: inherit;
}

.area-card h3 {
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.single-service__layout {
  display: grid;
  grid-template-columns: 1fr 18rem;
  gap: 2.5rem;
  align-items: start;
}

.sidebar-cta {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
}

.sidebar-cta h3 {
  color: var(--text);
}

.pagination {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.pagination .current {
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .contact-layout,
  .single-service__layout,
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-locations {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-canvas {
    min-height: 360px;
    height: 360px;
  }
  .sidebar-cta,
  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 960px) {
  .site-header__top { display: none; }
  .site-header__cta { display: none; }
  .primary-nav__cta {
    display: inline-flex;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(11, 14, 19, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.35rem;
    max-height: min(80vh, 36rem);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav__list > .menu-item {
    border-bottom: 1px solid var(--border);
  }
  .primary-nav__list a {
    padding: 0.9rem 0;
  }
  .primary-nav__list .sub-menu,
  .primary-nav__list .sub-menu .sub-menu,
  .primary-nav__list .sub-menu .sub-menu .sub-menu,
  .primary-nav__list .sub-menu .sub-menu .sub-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0.5rem 0.85rem;
  }
  /* Mobile: only .is-open opens submenus (ignore hover/focus-within). */
  .primary-nav__list > .menu-item:hover > .sub-menu,
  .primary-nav__list > .menu-item:focus-within > .sub-menu,
  .primary-nav__list .menu-item:hover > .sub-menu,
  .primary-nav__list .menu-item:focus-within > .sub-menu {
    display: none;
  }
  .primary-nav__list .menu-item.is-open > .sub-menu {
    display: block;
  }
  .primary-nav__list .sub-menu a {
    white-space: normal;
    padding: 0.65rem 0;
    font-size: 0.88rem;
  }
  .primary-nav__list > .menu-item-has-children > a::after,
  .primary-nav__list .sub-menu .menu-item-has-children > a::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    border-bottom: 0;
    right: 0.15rem;
  }
  .primary-nav__list .menu-item-has-children.is-open > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
  .hero { min-height: 78vh; align-items: center; padding: 4.5rem 0; }
  .card-grid,
  .value-grid,
  .review-grid,
  .area-grid,
  .partner-grid,
  .map-locations,
  .blog-grid,
  .blog-list-grid {
    grid-template-columns: 1fr;
  }
  .map-canvas {
    min-height: 300px;
    height: 300px;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero { min-height: 78vh; align-items: center; padding: 4.5rem 0; }
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.page-hero .breadcrumbs {
  position: relative;
  z-index: 1;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem 0.7rem 0.75rem;
  background: #25d366;
  color: #053b1a;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.whatsapp-float:hover {
  background: #2fe574;
  color: #053b1a;
  transform: translateY(-2px);
}

.whatsapp-float__icon {
  display: inline-flex;
  color: #053b1a;
}

@media (max-width: 640px) {
  .whatsapp-float__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .whatsapp-float {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Contact Form 7 modal — lock scroll without shifting layout */
html.ipl-modal-open,
html.ipl-nav-open {
  overflow: hidden;
}

body.ipl-modal-open,
body.ipl-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.ipl-modal[hidden] {
  display: none !important;
}

.ipl-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ipl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, 0.72);
  cursor: pointer;
}

.ipl-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.ipl-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.ipl-modal__close:hover,
.ipl-modal__close:focus-visible {
  color: var(--accent);
}

.ipl-modal__title {
  margin: 0 2rem 1rem 0;
  font-size: 1.65rem;
  color: var(--text);
}

.ipl-modal__body .wpcf7-form p {
  margin-bottom: 0.85rem;
}

.ipl-modal__body input[type="text"],
.ipl-modal__body input[type="email"],
.ipl-modal__body input[type="tel"],
.ipl-modal__body input[type="url"],
.ipl-modal__body textarea,
.contact-cf7 input[type="text"],
.contact-cf7 input[type="email"],
.contact-cf7 input[type="tel"],
.contact-cf7 input[type="url"],
.contact-cf7 textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.ipl-modal__body input[type="submit"],
.contact-cf7 input[type="submit"] {
  width: 100%;
  max-width: 22rem;
}

/* Contact Form 7 — two-column rows */
.cf7-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.cf7-col {
  flex: 1;
  min-width: 0;
}

.cf7-col label {
  display: block;
}

.cf7-col input,
.cf7-col textarea,
.cf7-col select {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .cf7-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Responsive polish */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose iframe,
.content-flow iframe,
.wpcf7 iframe {
  max-width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 78vh;
    align-items: center;
    padding: 4.5rem 0;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .page-hero {
    padding: 3.5rem 0 2.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .card-grid,
  .value-grid,
  .blog-list-grid,
  .blog-grid,
  .map-locations {
    grid-template-columns: 1fr;
  }

  .cta-band h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .ipl-modal__dialog {
    padding: 1.35rem 1.1rem 1.25rem;
  }

  .whatsapp-float {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

.card-grid--related {
  grid-template-columns: repeat(4, 1fr);
}

/* Services hub categories */
.svc-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.svc-hub-card {
  padding: 1.4rem 1.45rem 1.2rem;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.svc-hub-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.svc-hub-card__blurb {
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.svc-hub-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-hub-card__list li + li {
  margin-top: 0.45rem;
}

.svc-hub-card__list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.svc-hub-card__list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-footer__col--services {
  min-width: 0;
}

@media (min-width: 961px) {
  .primary-nav__list > .ipl-services-parent > .sub-menu {
    min-width: 18rem;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
  }

  .primary-nav__list > .ipl-services-parent > .sub-menu a {
    white-space: normal;
  }
}

@media (max-width: 960px) {
  .svc-hub__grid,
  .card-grid--related {
    grid-template-columns: 1fr;
  }
}


