/* ==========================================================================
   Green Glove Heroes — site styles
   Design tokens carried over from the Elementor global kit.
   ========================================================================== */

/* --------------------------------------------------------------- Fonts -- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-500.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/roboto-600.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-700.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/roboto-800.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/roboto-900.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-500.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-700.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-800.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/noto-sans-jp-900.woff2") format("woff2");
}

/* -------------------------------------------------------------- Tokens -- */
:root {
  --green: #00a800;
  --green-dark: #007b00;
  --navy: #08485e;
  --ink: #1d1d1d;
  --gray: #54595f;
  --gray-muted: #777777;
  --gray-bg: #eeeeee;
  --white: #ffffff;
  --star: #f5a623;

  --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans JP", "Roboto", system-ui, -apple-system, sans-serif;

  /* Content column is 1200px; the gutter sits outside it, matching Elementor. */
  --wrap: 1248px;
  --gutter: 24px;
  --radius: 0px;
  --section-y: 48px;
  --shadow: 0 2px 12px rgb(0 0 0 / 8%);
  --transition: 0.2s ease;
}

/* --------------------------------------------------------------- Reset -- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green);
}

/* Section headings: Roboto 800 at 35px with a 1em line-height, per the kit. */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 {
  font-size: 35px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 1.25em;
}

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

ul,
ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- Helpers -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  max-width: 1400px;
}

.section {
  padding-block: var(--section-y);
}

/* This band runs taller than the default rhythm. */
.guarantees {
  padding-block: 80px 47px;
}

.section--gray {
  background: var(--gray-bg);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 20px;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------- Eyebrow -- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: capitalize;
  color: var(--navy);
  margin: 0 0 0.5em;
}

.eyebrow .arrow {
  color: var(--green);
  font-weight: 600;
}

/* Green underline rule used under a number of headings */
.rule {
  border: 0;
  border-top: 1px solid #d8dde0;
  margin: 1.25em 0 1.5em;
  position: relative;
}

.rule::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  border-top: 4px solid var(--green);
}

/* ------------------------------------------------------------ Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.btn--primary {
  background: var(--green-dark);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green);
  color: var(--white);
}

/* Outlined button carries a 2px border, so the padding is 1px tighter. */
.btn--outline {
  border: 2px solid var(--navy);
  padding: 14px 29px;
  color: var(--navy);
  background: var(--white);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: var(--gray-bg);
  color: var(--navy);
}

/* -------------------------------------------------------------- Topbar -- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gray-bg);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  line-height: 15px;
  text-transform: uppercase;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 35px;
}

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

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.topbar__links a {
  letter-spacing: 0.5px;
  line-height: 18px;
}

.topbar a:hover {
  color: var(--green-dark);
}

/* The guarantee badge is a raster image and runs larger than the line icons. */
.topbar__badge {
  width: 35px;
  height: 35px;
  flex: none;
}

/*
 * The two topbar glyphs are the brand's own artwork (lifted verbatim from the
 * WordPress build). Masking them lets the colour follow `currentColor`.
 */
.topbar__icon {
  flex: none;
  width: 19px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.topbar__icon--quote {
  height: 17px;
  --icon: url("../img/icons/free-quote.svg");
}

.topbar__icon--contact {
  height: 13px;
  --icon: url("../img/icons/contact.svg");
}

/* -------------------------------------------------------------- Header -- */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 rgb(0 0 0 / 6%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 61px;
}

.site-header__logo img {
  width: 210px;
  height: 40px;
}

/* ----------------------------------------------------------------- Nav -- */
.nav {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--navy);
  font-size: 15px;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--green-dark);
}

/* Mobile burger — three bars that fold into an X when the menu is open. */
.nav__burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
  transition: color var(--transition);
}

.nav__burger:hover,
.nav__burger:focus-visible {
  color: var(--green);
}

.nav__burger:active {
  color: var(--green-dark);
}

.nav__burger-box {
  position: relative;
  display: block;
  width: 28px;
  height: 20px;
}

.nav__burger-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: top var(--transition), transform var(--transition),
    opacity 0.15s ease;
}

.nav__burger-bar:nth-child(1) {
  top: 0;
}

.nav__burger-bar:nth-child(2) {
  top: 8.5px;
}

.nav__burger-bar:nth-child(3) {
  top: 17px;
}

/* Open: outer bars meet in the middle and cross, middle bar fades out. */
.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(1) {
  top: 8.5px;
  transform: rotate(45deg);
}

.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(2) {
  opacity: 0;
}

.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(3) {
  top: 8.5px;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav__burger-bar {
    transition: none;
  }
}

/* --------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 600px;
}

/* The Elementor column carries a 14px inset inside the 1200px container. */
.hero__body {
  max-width: 582px;
  padding-left: 14px;
}

.hero__body .eyebrow {
  margin-bottom: 0;
}

/* The visual headline. Body face, not the heading face. */
.hero__title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 26px;
}

/*
 * Two columns sized to their content, filled top-down then across.
 * Scoped past `.checklist`, which zeroes the padding later in this file.
 */
.hero .hero__benefits {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 1px 132px;
  list-style: none;
  margin: 0 0 9px;
  padding: 0 0 0 20px;
}

/* Declared after `.checklist li` below would lose on source order, so scope it. */
.hero .hero__benefits li {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  text-transform: capitalize;
  margin: 0;
  padding-bottom: 1px;
}

.hero__kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/*
 * Right-hand photo. Elementor masks this with its `parallelogram-right`
 * shape (assets/mask-shapes/parallelogram-right.svg):
 *   viewBox 0 0 100 100 — path M25,0 L100,0 L75,100 L0,100
 * which is the polygon below.
 */
.hero__media {
  width: 600px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  justify-self: end;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------- Check list -- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 20px;
  height: 20px;
  background: var(--green);
  -webkit-mask: var(--check-icon) 0 50% / 20px 20px no-repeat;
  mask: var(--check-icon) 0 50% / 20px 20px no-repeat;
}

.checklist--bold li {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: capitalize;
  color: var(--ink);
  margin-bottom: 1px;
}

/*
 * Font Awesome `fa-check` — the exact glyph the WordPress build renders
 * (svg.e-font-icon-svg.e-fas-check, viewBox 0 0 512 512).
 */
:root {
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------- Client logos --- */
/* Band is 120px tall: an 80px carousel with 40px of air beneath it. */
.logos {
  max-width: 1140px;
  margin-inline: auto;
  overflow: hidden;
  padding-bottom: 40px;
}

.logos__track {
  display: flex;
  align-items: center;
  gap: 17px;
  height: 80px;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}

.logos__track img {
  width: 173px;
  height: 75px;
  object-fit: contain;
  flex: none;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* ---------------------------------------------------------- Guarantees -- */
.guarantees__grid {
  display: grid;
  grid-template-columns: 260px 622px;
  column-gap: 60px;
  justify-content: center;
  align-items: start;
}

.guarantees__title {
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
  color: var(--green);
  margin: 0;
}

.guarantees__only {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
  color: var(--navy);
  margin: 0 0 0.75em;
}

/* --------------------------------------------------------------- Stats -- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 80px;
  font-weight: 900;
  line-height: 120px;
  letter-spacing: -4px;
  color: var(--green-dark);
  margin: 0;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.7px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.6em 0 0;
}

/* --------------------------------------------------------- Testimonial -- */
.testimonial {
  background: var(--green-dark);
  color: var(--white);
  padding-block: 48px;
}

.testimonial__inner {
  max-width: 666px;
  margin-inline: auto;
}

.testimonial blockquote {
  margin: 0;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
}

.testimonial blockquote p {
  margin-bottom: 14px;
}

.testimonial blockquote p:last-child {
  margin-bottom: 0;
}

.testimonial__cite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-style: normal;
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------- Split media -- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  height: 100%;
  min-height: 420px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body {
  padding: clamp(32px, 5vw, 72px);
  max-width: 700px;
}

.split__title {
  color: var(--green);
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

/* ---------------------------------------------------------- Case study -- */
/*
 * Navy fills the left half of the viewport, white the right — matching the
 * WordPress build, where the navy panel measures exactly 0..50%.
 */
.case {
  background: linear-gradient(
    90deg,
    var(--navy) 0 50%,
    var(--white) 50% 100%
  );
}

.case__intro {
  color: var(--white);
}



.case__grid {
  display: grid;
  /* Equal halves so the columns meet the navy/white seam at 50%. */
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  align-items: start;
  padding-block: 80px;
}

/* 16px of breathing room either side of the seam, as per the WP build. */
.case__intro {
  padding-inline: 16px 40px;
}

.case .accordion {
  margin-left: 16px;
}

.case__label {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
  color: var(--white);
  margin: 0 0 0.75em;
}

.case__title {
  color: var(--white);
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
  margin: 0 0 2rem;
}

.case__logo {
  width: 300px;
  margin-top: 8px;
}

/* Accordion */
.accordion {
  border-top: 1px solid #d5d8dc;
}

.accordion__item {
  border-bottom: 1px solid #d5d8dc;
}

/* The heading only exists for semantics; the button owns the spacing. */
.accordion__item h3 {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 11px 4px;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 33px;
  color: var(--green);
  text-align: left;
  cursor: pointer;
}

.accordion__trigger:hover {
  color: var(--green);
}

.accordion__icon {
  flex: none;
  width: 16px;
  height: 16px;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  border-top: 2px solid var(--green);
  transition: transform var(--transition);
}

.accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(0deg);
}

.accordion__panel {
  display: none;
  padding: 0 4px 20px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}

.accordion__panel[data-open] {
  display: block;
}

/* The FAQs page uses navy triggers rather than green. */
.accordion--light .accordion__trigger {
  color: var(--navy);
}

.accordion--light .accordion__trigger:hover {
  color: var(--green-dark);
}

/* ----------------------------------------------------------- Guarantee -- */
.guarantee__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.guarantee__title {
  color: var(--green);
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

/* --------------------------------------------------------------- Forms -- */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #c9d0d4;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

/* Placeholder note that stands in for the live form */
.form-placeholder {
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  background: #f4faf4;
  padding: clamp(20px, 3vw, 32px);
  color: var(--ink);
}

.form-placeholder h3 {
  margin-top: 0;
  color: var(--green-dark);
  font-size: 1.15rem;
}

.form-placeholder p:last-child {
  margin-bottom: 0;
}

.form-placeholder--onnavy {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 8%);
  color: var(--white);
}

.form-placeholder--onnavy h3 {
  color: var(--white);
}

/* -------------------------------------------------------------- Footer -- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--section-y) 0;
}

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

.site-footer a:hover {
  color: var(--green);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.footer__logo {
  width: 270px;
  margin-bottom: 12px;
}

.footer__tagline {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin: 0 0 1.75em;
}

.footer__pitch {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.5em;
  max-width: 26em;
}

.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.9em;
}

.footer__contact svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

/*
 * Service-area map. On the WordPress build this is a nested accordion that
 * ships open: the title turns green and the marker flips to a minus.
 */
.map {
  margin-top: var(--section-y);
}

.map__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  line-height: 22px;
  color: var(--white);
  cursor: pointer;
}

.map__trigger[aria-expanded="true"] {
  color: var(--green);
}

/* Plus when collapsed, minus when open. */
.map__trigger .accordion__icon::before,
.map__trigger .accordion__icon::after {
  border-top-color: currentColor;
}

.map__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(0deg);
  opacity: 0;
}

.map__panel {
  display: none;
}

.map__panel[data-open] {
  display: block;
}

.map img {
  margin-inline: auto;
  width: 100%;
}

.footer__bottom {
  margin-top: var(--section-y);
  border-top: 1px solid rgb(255 255 255 / 20%);
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer__nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 500;
}

.footer__nav li {
  margin: 0;
}

/* ---------------------------------------------------------- Page hero --- */
.page-hero {
  padding-block: clamp(48px, 6vw, 88px) 0;
}

.page-hero__title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--green);
  margin: 0;
}

/* Navy banner used on the form pages (free quote, employment, contact). */
.page-hero--navy {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 110px);
}

.page-hero--navy .page-hero__title {
  color: var(--white);
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
}

.page-hero--navy .eyebrow {
  color: var(--white);
  font-size: 1rem;
}

/* Centred display title, used for the blog index. */
.page-hero--center {
  text-align: center;
  padding-block: clamp(48px, 6vw, 96px);
}

.page-hero__display {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin: 0;
}

/* --------------------------------------------------------- FAQs page ---- */
.faq__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.faq__toc {
  position: sticky;
  top: 55px;
}

.faq__toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75em;
}

.faq__toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

.faq__toc li {
  margin-bottom: 0.5em;
}

.faq__toc a {
  color: var(--navy);
}

.faq__group {
  margin-bottom: 56px;
}

.faq__group h2 {
  color: var(--green);
  font-size: 1.5rem;
  scroll-margin-top: 55px;
}

/* -------------------------------------------------------- Blog listing -- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e7ea;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.post-card__title a {
  color: var(--green);
}

.post-card__title a:hover {
  color: var(--green-dark);
}

.post-card__excerpt {
  font-size: 0.95rem;
  color: var(--gray);
  flex: 1;
}

.post-card__more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1.25em;
}

/* ------------------------------------------------------- Single post ---- */

/* Full-bleed featured image with the title laid over it. */
.post-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding-block: 64px;
  background: var(--navy) center / cover no-repeat;
  color: var(--white);
  isolation: isolate;
}

.post-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(4 24 32 / 72%) 0%,
    rgb(4 24 32 / 45%) 55%,
    rgb(4 24 32 / 25%) 100%
  );
}

.post-header__title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  max-width: 14em;
}

.post-meta {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: rgb(255 255 255 / 80%);
  margin-top: 1em;
}

/* Body + sticky table of contents. */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: var(--section-y);
}

.post-toc {
  position: sticky;
  top: 55px;
  border-left: 1px solid #dfe3e6;
  padding-left: 24px;
}

.post-toc h2 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75em;
}

.post-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  line-height: 1.4;
}

.post-toc li {
  margin-bottom: 0.75em;
}

.post-toc a {
  color: var(--ink);
}

.post-toc a:hover {
  color: var(--green);
}

.prose {
  max-width: 780px;
}

.prose > h2:first-child,
.prose > p:first-child {
  margin-top: 0;
}

.prose h2 {
  color: var(--green);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-top: 1.75em;
  scroll-margin-top: 55px;
}

.prose h3 {
  color: var(--navy);
  margin-top: 1.5em;
}

.prose ul {
  padding-left: 1.2em;
}

.prose figure {
  margin: 2.5em 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--radius);
}

.prose figcaption {
  font-size: 0.85rem;
  color: var(--gray-muted);
  text-align: center;
  margin-top: 0.75em;
}

.prose .callout {
  background: var(--gray-bg);
  border-left: 4px solid var(--green);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2em 0;
}

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 2.5em 0;
}

.flyer-grid img {
  width: 100%;
  border-radius: var(--radius);
}

/* ------------------------------------------------------------ Contact --- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact__methods {
  list-style: none;
  margin: 2em 0 0;
  padding: 0;
}

.contact__methods li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
}

.contact__methods svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: var(--green);
}

/* --------------------------------------------------------- Responsive -- */

/*
 * The angled mask only reads well beside the text, so from 1024px down the
 * photo becomes a straight-edged, full-bleed banner above the copy.
 * (The WordPress build simply hides it here.)
 */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 0 40px;
  }

  /* Reset the desktop-only fixed measurements. */
  .hero__body {
    max-width: none;
    padding-left: 0;
  }

  .hero__media {
    order: -1;
    width: auto;
    /* Bleed past the container gutter to the viewport edge. */
    max-width: none;
    margin-inline: calc(var(--gutter) * -1);
    margin-bottom: 32px;
    aspect-ratio: auto;
    height: clamp(280px, 56vw, 420px);
    justify-self: stretch;
    clip-path: none;
  }

  /* Keeps both faces in frame from 4:3 through to a ~2.4:1 crop. */
  .hero__media img {
    object-position: center 20%;
  }

  .split,
  .case__grid,
  .guarantees__grid,
  .guarantee__grid,
  .footer__grid,
  .contact__grid,
  .faq__layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .guarantees__grid {
    row-gap: 32px;
  }

  .post-toc {
    position: static;
    order: -1;
    border-left: 0;
    border-bottom: 1px solid #dfe3e6;
    padding: 0 0 24px;
  }

  .split--reverse .split__media {
    order: 0;
  }

  /* Stacked: the navy becomes a block around the intro. */
  .case {
    background: var(--white);
  }

  .case__intro {
    background: var(--navy);
    padding: 32px;
  }

  .case .accordion {
    margin-left: 0;
    margin-top: 32px;
  }

  .split__media {
    min-height: 280px;
  }

  .faq__toc {
    position: static;
  }
}

@media (max-width: 767px) {
  /* Section headings drop to 22px on phones, matching the Elementor kit. */
  h2,
  .guarantees__title,
  .split__title,
  .case__title {
    font-size: 22px;
  }

  .guarantee__title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .nav__burger {
    display: inline-flex;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 20;
  }

  .nav__list[data-open] {
    display: flex;
  }

  .nav__list > li > a {
    display: flex;
    width: 100%;
    padding: 14px var(--gutter);
  }

  .site-header__inner {
    position: relative;
    gap: 16px;
    justify-content: space-between;
  }

  .site-header__logo img {
    width: 170px;
    height: auto;
  }

  .topbar__inner {
    flex-direction: column;
    gap: 6px;
    height: auto;
    padding-block: 8px;
  }

  .topbar__links {
    gap: 20px;
  }

  /* Beats `.hero .hero__benefits`, which sets two content-sized columns. */
  .hero .hero__benefits {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 4px;
    padding-left: 10px;
  }

  .stats,
  .field-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 40px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media print {
  .site-header,
  .topbar,
  .site-footer,
  .logos {
    display: none;
  }
}
