/*
 * Shell layout: header, primary navigation, footer, 404.
 * Ported from the approved mock (docs/design/site-direction/index.html: .s-head, .s-nav,
 * .s-mega, .s-foot). Header and footer rules are scoped under .site-header /
 * .site-footer .gp-inner so they outrank the Elementor kit (.elementor-kit-N a, button)
 * while Elementor stays active. Square corners, no shadows, tokens only.
 */

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gp-ink);
  color: var(--gp-text-dk);
  border-bottom: 1px solid var(--gp-rule-dk);
  transition: transform .3s var(--gp-ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* The inner row is not positioned, so the services panel anchors to the full-width header. */
.site-header .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gp-space-6);
  height: calc(var(--gp-header-h) - 1px);
}

.site-header .site-header__brand {
  display: block;
  flex: none;
  line-height: 0;
  text-decoration: none;
}
.site-header .site-header__brand img { display: block; width: auto; height: 44px; }

/* ---------- Primary navigation (desktop) ---------- */

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

.site-header .site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gp-text-dk);
  font-family: var(--gp-font);
  font-size: var(--gp-fs-label);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--gp-track-label);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--gp-dur-fast) ease-out, background-color var(--gp-dur-fast) ease-out;
}
.site-header .site-nav__link:hover,
.site-header .site-nav__link[aria-current="page"],
.site-header .site-nav__trigger.is-current,
.site-header .is-open > .site-nav__trigger { color: var(--gp-white); }
.site-header .site-nav__link[aria-current="page"]::after,
.site-header .site-nav__trigger.is-current::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 1px;
  background: var(--gp-accent);
}

/* "+" when closed, minus when open, in orange. */
.site-header .site-nav__caret::before {
  content: '+';
  margin-left: 8px;
  color: var(--gp-accent);
  letter-spacing: 0;
}
.site-header .is-open > .site-nav__trigger .site-nav__caret::before { content: '\2212'; }

.site-header .site-nav__link--cta {
  margin-left: 14px;
  padding: 11px 18px;
  border: 1px solid var(--gp-accent);
  color: var(--gp-white);
}
.site-header .site-nav__link--cta::after { display: none; }
/* White on Orange is under 4.5:1 at this size, so the filled state is White with Dark Blue
   text inside the orange outline; the current page keeps the outline and gains a thicker
   orange foot. */
.site-header .site-nav__link--cta:hover { background: var(--gp-white); color: var(--gp-navy); }
.site-header .site-nav__link--cta[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gp-accent); }
.site-header .site-nav__link--cta[aria-current="page"]:hover { box-shadow: none; }

/*
 * Services panel: full width under the bar, one column per group. Bar and panel are one
 * Dark Blue block: the panel grows down out of the bar in the bar's own colour, the rule
 * between them goes, and the page behind dims (approved option A, 2026-11-30).
 */
.site-header .site-nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 36px 0 40px;
  background: var(--gp-ink);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--gp-dur-fast) ease-out, visibility 0s linear var(--gp-dur-fast);
}
.site-header .is-open > .site-nav__panel,
html:not(.gp-js) .site-header .site-nav__item--has-panel:hover > .site-nav__panel,
html:not(.gp-js) .site-header .site-nav__item--has-panel:focus-within > .site-nav__panel {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
@media (min-width: 961px) {
  /*
   * Bar and menu open as one Dark Blue block, wiping down from the top edge of the bar.
   * The panel sits directly under the bar (so only the Services item and the panel count
   * for hover); a separate non-interactive layer (::before) fills the bar itself with the
   * same Dark Blue first, so the two read as one continuous wipe whatever the bar's own
   * background (see-through on the home hero). On close the panel rolls up, gathering
   * speed, and the bar layer follows at that speed, so it is one motion with no pause at
   * the bar. The ::after layer dims the page below.
   */
  .site-header .site-nav__panel {
    opacity: 1;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .2s cubic-bezier(.4, 0, 1, 1), visibility 0s linear .2s;
  }
  .site-header .is-open > .site-nav__panel,
  html:not(.gp-js) .site-header .site-nav__item--has-panel:hover > .site-nav__panel,
  html:not(.gp-js) .site-header .site-nav__item--has-panel:focus-within > .site-nav__panel {
    clip-path: inset(0 0 0 0);
    transition: clip-path .26s var(--gp-ease) .07s, visibility 0s linear 0s;
  }
  .site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gp-ink);
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transition: clip-path .04s linear .2s;
  }
  .site-header:has(.site-nav__item.is-open)::before,
  html:not(.gp-js) .site-header:has(.site-nav__item--has-panel:hover)::before,
  html:not(.gp-js) .site-header:has(.site-nav__item--has-panel:focus-within)::before {
    clip-path: inset(0 0 0 0);
    transition: clip-path .07s linear 0s;
  }
  .site-header:has(.site-nav__item.is-open) { border-bottom-color: transparent; }
  .site-header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* The window below the header, and no taller: a taller block would let a short page scroll past its footer. */
    height: calc(100vh - 100%);
    z-index: -2;
    background: var(--gp-deep);
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s ease-out;
  }
  .site-header:has(.site-nav__item.is-open)::after { opacity: .55; }
}

.site-header .site-nav__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gp-space-7);
}
.site-header .site-nav__group-label {
  margin: 0 0 14px;
  padding-bottom: var(--gp-space-3);
  border-bottom: 1px solid var(--gp-rule-dk);
  font-family: var(--gp-font);
  font-size: var(--gp-fs-label-sm);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--gp-track-label);
  text-transform: uppercase;
  color: var(--gp-text-dk); /* Stone: Orange is under 4.5:1 at this size on Dark Blue */
}
.site-header .site-nav__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header .site-nav__sublink {
  display: block;
  padding: 9px 0;
  color: var(--gp-head-dk);
  font-family: var(--gp-font);
  font-size: var(--gp-fs-service);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--gp-track-service);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--gp-dur-fast) ease-out, padding-left var(--gp-dur) var(--gp-ease);
}
.site-header .site-nav__sublink:hover,
.site-header .site-nav__sublink[aria-current="page"] { color: var(--gp-white); padding-left: 8px; }

/* Mobile drawer toggle: only shown when scripting is available. */
.site-header .site-nav__toggle { display: none; }

/* ---------- Primary navigation (narrow screens; the full phone pass is a later task) ---------- */

@media (max-width: 1100px) {
  .site-header .site-nav__link { padding-inline: 12px; }
  .site-header .site-nav__link[aria-current="page"]::after,
  .site-header .site-nav__trigger.is-current::after { left: 12px; right: 12px; }
  .site-header .site-nav__link--cta { margin-left: 8px; padding-inline: 16px; }
}

@media (max-width: 960px) {
  .site-header .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: calc(var(--gp-header-h) - 1px);
    padding-block: 13px;
  }
  .site-header .site-header__brand img { height: 40px; }

  .gp-js .site-header .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--gp-space-3);
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--gp-rule-dk);
    border-radius: 0;
    background: transparent;
    color: var(--gp-head-dk);
    font-family: var(--gp-font);
    font-size: var(--gp-fs-label);
    font-weight: 500;
    line-height: 1;
    letter-spacing: var(--gp-track-label);
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color var(--gp-dur-fast) ease-out, color var(--gp-dur-fast) ease-out;
  }
  .gp-js .site-header .site-nav__toggle:hover,
  .gp-js .site-header .site-nav__toggle[aria-expanded="true"] { border-color: var(--gp-accent); color: var(--gp-white); }
  .site-header .site-nav__toggle-bars,
  .site-header .site-nav__toggle-bars::before {
    display: block;
    width: 16px;
    height: 1px;
    background: currentColor;
    transition: transform var(--gp-dur-fast) ease-out;
  }
  .site-header .site-nav__toggle-bars { position: relative; transform: translateY(-3px); }
  .site-header .site-nav__toggle-bars::before { content: ''; position: absolute; top: 6px; left: 0; }
  .site-header .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars { transform: rotate(45deg); }
  .site-header .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

  .site-header .site-nav { flex-basis: 100%; }
  .gp-js .site-header .site-nav { display: none; }
  .gp-js .site-header.is-nav-open .site-nav {
    display: block;
    max-height: calc(100vh - var(--gp-header-h));
    overflow-y: auto;
  }

  .site-header .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: var(--gp-space-4);
    border-top: 1px solid var(--gp-rule-dk);
  }
  .site-header .site-nav__link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--gp-rule-dk);
    text-align: left;
  }
  .site-header .site-nav__link[aria-current="page"]::after,
  .site-header .site-nav__trigger.is-current::after { left: 0; right: auto; width: 24px; bottom: -1px; }
  .site-header .site-nav__link--cta {
    justify-content: center;
    margin: var(--gp-space-5) 0 0;
    padding: 15px 18px;
    border: 1px solid var(--gp-accent);
  }

  .site-header .site-nav__panel,
  .site-header .is-open > .site-nav__panel {
    position: static;
    padding: 0;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border: 0;
    transition: none;
  }
  .gp-js .site-header .site-nav__panel { display: none; }
  .gp-js .site-header .is-open > .site-nav__panel { display: block; }
  .site-header .site-nav__panel-inner { padding: var(--gp-space-2) 0 var(--gp-space-4); }
  .site-header .site-nav__groups { display: block; }
  .site-header .site-nav__group + .site-nav__group { margin-top: var(--gp-space-5); }
  .site-header .site-nav__group-label { margin-bottom: var(--gp-space-2); padding-block: var(--gp-space-3); }
  .site-header .site-nav__sublist { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gp-space-5); }
  .site-header .site-nav__sublink { font-size: 13px; }
}

@media (max-width: 420px) {
  .site-header .site-nav__sublist { grid-template-columns: 1fr; }
}

/* ---------- Main ---------- */

.site-main { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 96px 0 0;
  background: var(--gp-ink);
  color: var(--gp-text-dk);
}
.site-footer .site-footer__top {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) minmax(0, 1.9fr) 150px;
  gap: 44px;
  padding-bottom: 80px;
}

/* 18px: the size this block inherited while the Elementor kit set the body; it fixes the logo's line box. */
.site-footer .site-footer__company { font-size: 18px; }
.site-footer .site-footer__brand { display: inline-block; line-height: 0; margin-bottom: 28px; }
.site-footer .site-footer__brand img { display: block; width: 168px; height: auto; }

.site-footer .site-footer__co {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--gp-text-dk);
}
.site-footer .gp-inner .site-footer__co a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gp-rule-dk);
  transition: color var(--gp-dur-fast) ease-out, border-color var(--gp-dur-fast) ease-out;
}
.site-footer .gp-inner .site-footer__co a:hover { color: var(--gp-white); border-color: var(--gp-accent); }

.site-footer .site-footer__label {
  margin: 0 0 18px;
  font-family: var(--gp-font);
  font-size: var(--gp-fs-label-sm);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--gp-track-label);
  text-transform: uppercase;
  color: var(--gp-text-dk);
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer .gp-inner .site-footer__links a {
  display: inline-block;
  padding: 5px 0;
  color: var(--gp-head-dk);
  font-size: 14.5px;
  line-height: 1.7;
  text-decoration: none;
  transition: color var(--gp-dur-fast) ease-out;
}
.site-footer .gp-inner .site-footer__links a:hover { color: var(--gp-white); }
.site-footer .site-footer__links--services { columns: 2; column-gap: 32px; }
.site-footer .gp-inner .site-footer__links--services a { white-space: nowrap; letter-spacing: .03em; text-transform: uppercase; }

.site-footer .site-footer__base {
  margin: 0;
  padding: 24px 0 28px;
  border-top: 1px solid var(--gp-rule-dk);
  font-family: var(--gp-font);
  font-size: var(--gp-fs-label-xs);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--gp-track-btn);
  text-transform: uppercase;
  color: var(--gp-text-3);
}

@media (max-width: 1100px) {
  .site-footer .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
  .site-footer .site-footer__company { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-footer { padding-top: 64px; }
  .site-footer .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-bottom: 48px; }
  .site-footer .site-footer__col:not(.site-footer__col--social) { grid-column: 1 / -1; }
  .site-footer .site-footer__col--social .site-footer__label { display: none; }
}

/* ---------- Back to top: the round corner button, as on live ---------- */

.gp-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gp-accent);
  color: var(--gp-white);
  cursor: pointer;
  transition: background-color var(--gp-dur-fast) ease-out;
}
.gp-top[hidden] { display: none; }
.gp-top:focus-visible { outline: 2px solid var(--gp-navy); outline-offset: 2px; box-shadow: 0 0 0 2px var(--gp-white); }
.gp-top svg { display: block; }

/* ---------- 404 and fallback listing ---------- */

.gp-404 { padding: 120px 0; background: var(--gp-white); }
.gp-404 .gp-404__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--gp-space-4);
  margin: 0 0 30px;
}
.gp-404 .gp-404__eyebrow span {
  font-size: var(--gp-fs-label);
  font-weight: 500;
  letter-spacing: var(--gp-track-label);
  text-transform: uppercase;
  color: var(--gp-navy);
  white-space: nowrap;
}
.gp-404 .gp-404__eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--gp-rule-lt); }
.gp-404 .gp-404__title {
  margin: 0 0 24px;
  font-family: var(--gp-font);
  font-size: var(--gp-fs-l);
  line-height: var(--gp-lh-l);
  letter-spacing: var(--gp-track-l);
  color: var(--gp-navy);
}
.gp-404 .gp-404__light,
.gp-404 .gp-404__bold { display: block; text-wrap: balance; }
.gp-404 .gp-404__light { font-weight: 400; }
.gp-404 .gp-404__bold { font-weight: 600; }
.gp-404 .gp-404__lead {
  max-width: 62ch;
  margin: 0 0 var(--gp-space-6);
  font-size: var(--gp-fs-stand);
  line-height: var(--gp-lh-stand);
  color: var(--gp-text);
}
.gp-404 .gp-404__actions { display: flex; flex-wrap: wrap; gap: var(--gp-space-5); margin: 0; }
.gp-404 .gp-404__actions a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gp-rule-lt);
  font-size: var(--gp-fs-label-sm);
  font-weight: 500;
  letter-spacing: var(--gp-track-btn);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gp-navy);
  transition: border-color var(--gp-dur-fast) ease-out;
}
.gp-404 .gp-404__actions a:hover { border-color: var(--gp-accent); }

/* ---------- Enquiry thank-you page (shares the 404 block's type) ---------- */

/* Short pages: the footer sits at the bottom of a tall window, the content fills the rest. */
body.gp-short-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.gp-short-page .site-main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.gp-short-page .site-main > .gp-404 { flex: 1 0 auto; display: flex; align-items: center; }
body.gp-short-page .site-main > .gp-404 > .gp-inner { width: 100%; }

.gp-thanks .gp-thanks__head { display: flex; align-items: center; gap: var(--gp-space-5); margin: 0 0 24px; }
.gp-thanks .gp-thanks__head .gp-404__title { margin: 0; }
.gp-thanks .gp-thanks__tick {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gp-pale);
  color: var(--gp-navy);
}
@media (max-width: 720px) {
  .gp-thanks .gp-thanks__head { gap: var(--gp-space-4); }
  .gp-thanks .gp-thanks__tick { width: 48px; height: 48px; }
}
.gp-thanks .gp-thanks__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gp-space-5); margin: 0; }
.gp-thanks .gp-thanks__back {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gp-rule-lt);
  font-size: var(--gp-fs-label-sm);
  font-weight: 500;
  letter-spacing: var(--gp-track-btn);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gp-navy);
}
.gp-thanks .gp-thanks__back:hover { border-color: var(--gp-accent); }
@media (max-width: 720px) {
  .gp-thanks .gp-thanks__actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .gp-thanks .gp-thanks__back { padding-block: 10px 6px; }
}

.gp-index { padding-block: var(--gp-band-y); }
.gp-index .gp-index__list { margin: 0; padding: 0; list-style: none; }
.gp-index .gp-index__list li { padding-block: var(--gp-space-3); border-bottom: 1px solid var(--gp-rule-lt); }

/* ==========================================================================
   Phone and tablet pass. Everything below applies under 1101px only (most of it
   under 961px, where the drawer replaces the bar navigation); desktop is untouched.
   ========================================================================== */

/* ---------- Header bar: logo left, menu button right, always on screen ---------- */

@media (max-width: 960px) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-header .site-header__inner {
    padding-left: max(var(--gp-gutter), env(safe-area-inset-left));
    padding-right: max(var(--gp-gutter), env(safe-area-inset-right));
  }
  /* The one-row bar needs the drawer, so it is for scripted pages only. */
  .gp-js .site-header .site-header__inner {
    flex-wrap: nowrap;
    height: calc(var(--gp-header-h) - 1px);
    min-height: 0;
    padding-block: 0;
  }
  /*
   * Without JavaScript (or while an optimiser holds scripts back) there is no drawer: the
   * whole menu is listed under the logo as an ordinary block at the top of the page. The
   * header is not sticky then, so the open menu scrolls away with the page and never
   * covers the content.
   */
  html:not(.gp-js) .site-header { position: static; }
  html:not(.gp-js) .site-header .site-header__inner { padding-block: 13px 28px; }
  html:not(.gp-js) .site-header .site-nav__list { border-top: 1px solid var(--gp-rule-dk); margin-top: 13px; }
  .site-header .site-header__brand img { height: 38px; }

  /* A 44px target, the label and two lines that turn into a cross. */
  .gp-js .site-header .site-nav__toggle { min-height: 44px; padding: 0 16px; gap: 14px; }

  /* ---------- Drawer: a full-height Dark Blue sheet under the bar ---------- */
  .gp-js .site-header.is-nav-open .site-nav {
    position: fixed;
    top: calc(var(--gp-header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    padding: 8px max(var(--gp-gutter), env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(var(--gp-gutter), env(safe-area-inset-left));
    background: var(--gp-ink);
    border-top: 1px solid var(--gp-rule-dk);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    animation: gp-drawer-in .2s ease-out both;
  }
  .admin-bar .site-header.is-nav-open .site-nav { top: calc(var(--gp-header-h) + 46px); }
  /* Over everything while open, including an add-on's round back-to-top button (z-index 999). */
  .site-header.is-nav-open { z-index: 1000; }

  .site-header .site-nav__list { padding-bottom: 0; border-top: 0; }

  /* The five destinations as large text links. */
  .site-header .site-nav__link {
    min-height: 64px;
    padding: 16px 0;
    color: var(--gp-head-dk);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.01em;
    text-transform: none;
  }
  .site-header .site-nav__link[aria-current="page"]::after,
  .site-header .site-nav__trigger.is-current::after { height: 2px; bottom: -1px; }
  .site-header .site-nav__caret::before { margin-left: 16px; font-size: 26px; font-weight: 400; line-height: 1; }

  /* Contact Us: a clear full-width button after the list. */
  .site-header .site-nav__link--cta {
    min-height: 56px;
    margin: 32px 0 0;
    padding: 16px 18px;
    color: var(--gp-white);
    font-size: var(--gp-fs-label);
    font-weight: 500;
    letter-spacing: var(--gp-track-btn);
    text-transform: uppercase;
  }

  /* Services opens in place: its three groups, set in from the left. */
  .site-header .site-nav__panel-inner {
    margin: 4px 0 12px;
    padding: 0 0 4px 18px;
  }
  .site-header .site-nav__group + .site-nav__group { margin-top: 8px; }
  .site-header .site-nav__group-label { margin: 0; padding: 14px 0 4px; border-bottom: 0; font-size: var(--gp-fs-label-sm); }
  .site-header .site-nav__sublist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .site-header .site-nav__sublink { padding: 11px 0; font-size: 14px; line-height: 1.6; }
}
@media (max-width: 379px) {
  .site-header .site-nav__sublist { grid-template-columns: minmax(0, 1fr); }
}
@keyframes gp-drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
/* While the drawer is open the page behind it stays still. */
@media (max-width: 960px) {
  /* On the root only: hiding overflow on body as well would make body the scroller and
     unstick the header. */
  html.gp-nav-lock { overflow: hidden; }
}

/* Pages still drawn by Elementor keep clear of the notch in landscape. */
@media (max-width: 1100px) {
  .site-main > .elementor { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* ---------- Footer ---------- */

@media (max-width: 1100px) {
  .site-footer .gp-inner {
    padding-left: max(var(--gp-gutter), env(safe-area-inset-left));
    padding-right: max(var(--gp-gutter), env(safe-area-inset-right));
  }
  .site-footer .site-footer__base { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  .site-footer { padding-top: 56px; }
  .site-footer .site-footer__top { gap: 40px 24px; padding-bottom: 40px; }
  .site-footer .site-footer__brand { margin-bottom: 24px; }
  .site-footer .site-footer__brand img { width: 136px; }
  .site-footer .site-footer__co { font-size: 14px; }
  .site-footer .site-footer__label { margin-bottom: 8px; }
  /* Every link a comfortable 44px target. */
  .site-footer .gp-inner .site-footer__links a { padding: 10px 0; font-size: 15px; line-height: 1.6; }
  /* Links and Services each in two tidy columns. */
  .site-footer .site-footer__links { columns: 2; column-gap: 24px; }
  .site-footer .site-footer__links li { break-inside: avoid; }
  .site-footer .gp-inner .site-footer__links--services a { white-space: normal; }
  /* Social links in one row under the lists. */
  .site-footer .site-footer__col--social { grid-column: 1 / -1; margin-top: -16px; }
  .site-footer .site-footer__col--social .site-footer__links { display: flex; flex-wrap: wrap; column-gap: 28px; columns: auto; }
  /* The copyright line keeps clear of the round back-to-top button in the corner. */
  .site-footer .site-footer__base { padding-right: 72px; padding-top: 20px; }
}
@media (max-width: 400px) {
  .site-footer .gp-inner .site-footer__links--services a { font-size: 14px; letter-spacing: .02em; }
  .site-footer .site-footer__links { column-gap: 16px; }
}

/* ---------- 404 ---------- */

@media (max-width: 720px) {
  .gp-404 { padding: 64px 0 72px; }
  .gp-404 .gp-404__lead { font-size: 18px; }
  /* The two links stacked with room to tap each. */
  .gp-404 .gp-404__actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .gp-404 .gp-404__actions a { padding-block: 10px 6px; overflow-wrap: anywhere; }
}

/* ---------- Plain pages (page.php without Elementor: the legal pages) ---------- */

/* Page ground and reading size these pages have always had (they came from the Elementor
   kit, which is no longer loaded on pages the theme draws): Pebble, 18px. */
body.page-template-default:not(.elementor-page) { background: var(--gp-surface-lt); font-size: 18px; }

/* The page title: the section-heading size in SemiBold Dark Blue, as other page headings. */
.gp-page__title { margin: 0 0 40px; font-weight: 600; text-wrap: balance; }
@media (max-width: 720px) {
  .gp-page__title { margin-bottom: 28px; }
}

@media (max-width: 1100px) {
  /* page.php prints the content straight into the page, so give it the page gutters and a
     little air above and below; long words and addresses wrap rather than widen it. */
  .page-template-default:not(.elementor-page) .site-main {
    padding: 40px max(var(--gp-gutter), env(safe-area-inset-right)) 56px max(var(--gp-gutter), env(safe-area-inset-left));
    overflow-wrap: break-word;
  }
  .page-template-default:not(.elementor-page) .site-main > :first-child { margin-top: 0; }
  .page-template-default:not(.elementor-page) .site-main table { display: block; max-width: 100%; overflow-x: auto; }
}

/* Plain pages at desktop width (the legal pages): a readable column inside the page
   width, with a page heading feel, instead of text running to the window edges. */
@media (min-width: 1101px) {
  .page-template-default:not(.elementor-page) .site-main {
    width: min(var(--gp-inner), 100% - 2 * var(--gp-gutter));
    margin-inline: auto;
    padding-block: 72px 104px;
    overflow-wrap: break-word;
  }
  .page-template-default:not(.elementor-page) .site-main > * { max-width: 76ch; }
  .page-template-default:not(.elementor-page) .site-main > :first-child { margin-top: 0; }
  .page-template-default:not(.elementor-page) .site-main table { max-width: 100%; }
}
