/*
 * SH+ Strategic Horizon - main stylesheet
 *
 * 1.  Design tokens
 * 2.  Reset and base
 * 3.  Typography
 * 4.  Layout primitives
 * 5.  Buttons and links
 * 6.  Header and navigation
 * 7.  Hero
 * 8.  Section headers
 * 9.  Split sections (who we are, approach, quality)
 * 10. Services
 * 11. Values, stats and dark sections
 * 12. Team
 * 13. Partners and certifications
 * 14. Call to action band
 * 15. Footer
 * 16. Inner page headers
 * 17. Prose and block styles
 * 18. Contact page
 * 19. Blog, comments and pagination
 * 20. Utilities, motion and accessibility
 * 21. Responsive
 */

/* ------------------------------------------------------------------ *
 * 1. Design tokens
 * ------------------------------------------------------------------ */

:root {
  --teal: #00a79d;
  --teal-600: #009087;
  --teal-700: #00776f;
  --teal-050: #eaf7f6;
  --teal-100: #cdeeeb;

  --ink: #231f20;
  --charcoal: #14171a;
  --charcoal-2: #1d2124;
  --charcoal-3: #272c30;

  --slate: #55595f;
  --muted: #7c828a;
  --line: #e3e7ea;
  --line-dark: rgba(255, 255, 255, 0.14);
  --mist: #f4f7f8;
  --white: #fff;

  --font-head: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 84px;

  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 2px 10px rgba(20, 23, 26, 0.06);
  --shadow-md: 0 14px 40px rgba(20, 23, 26, 0.1);
  --shadow-lg: 0 30px 70px rgba(20, 23, 26, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 0.35s;
}

/* ------------------------------------------------------------------ *
 * 2. Reset and base
 * ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

figure {
  margin: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

::selection {
  background: var(--teal);
  color: var(--white);
}

/* ------------------------------------------------------------------ *
 * 3. Typography
 * ------------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.875rem, 3.6vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

h4 {
  font-size: 1.1875rem;
}

h5,
h6 {
  font-size: 1.0625rem;
}

p {
  margin: 0 0 1.25rem;
}

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

a {
  color: var(--teal-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--speed) var(--ease);
}

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

strong,
b {
  font-weight: 600;
  color: var(--ink);
}

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--teal);
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9375em;
}

pre {
  padding: 1.25rem;
  background: var(--charcoal);
  color: #e6e9ec;
  border-radius: var(--radius);
  overflow-x: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.eyebrow::before {
  content: '';
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  background: var(--teal);
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--light .eyebrow {
  color: var(--teal);
}

/* ------------------------------------------------------------------ *
 * 4. Layout primitives
 * ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 880px;
}

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

.section--mist {
  background: var(--mist);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin-bottom: 0;
}

.section-lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.section-head--light .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.section-actions {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  text-align: center;
}

/* ------------------------------------------------------------------ *
 * 5. Buttons and links
 * ------------------------------------------------------------------ */

.btn {
  --btn-bg: var(--teal);
  --btn-fg: var(--white);
  --btn-bd: var(--teal);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.75rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  --btn-bg: var(--teal-700);
  --btn-bd: var(--teal-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 167, 157, 0.28);
}

.btn .icon {
  transition: transform var(--speed) var(--ease);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.32);
}

.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  --btn-bg: var(--white);
  --btn-bd: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.btn--lg {
  padding: 1.0625rem 2.125rem;
  font-size: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform var(--speed) var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------ *
 * 6. Header and navigation
 * ------------------------------------------------------------------ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--speed) var(--ease), height var(--speed) var(--ease),
    border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.site-header.is-stuck {
  height: 70px;
  background: rgba(20, 23, 26, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  /* Wider than the content container: seven menu items need the room. */
  max-width: 1480px;
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand__mark {
  width: auto;
  height: 34px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.brand__tag {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.brand--dark .brand__name {
  color: var(--ink);
}

.brand--dark .brand__tag {
  color: var(--muted);
}

/* Primary navigation */
.nav-primary {
  margin-left: auto;
}

.nav-primary ul {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-primary li {
  position: relative;
}

.nav-primary a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--speed) var(--ease);
}

.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--speed) var(--ease);
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a {
  color: var(--white);
}

.nav-primary a:hover::after,
.nav-primary .current-menu-item > a::after,
.nav-primary .current_page_item > a::after {
  width: 100%;
}

/* Sub menus */
.nav-primary .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.5rem 0;
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease),
    visibility var(--speed) var(--ease);
}

.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-primary .sub-menu a {
  padding: 0.5rem 1.125rem;
}

.nav-primary .sub-menu a::after {
  display: none;
}

.nav-primary .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--teal);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone .icon {
  color: var(--teal);
}

.header-phone:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Mobile panel */
.nav-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 200;
  width: min(400px, 86vw);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--charcoal);
  border-left: 1px solid var(--line-dark);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-panel.is-open {
  transform: translateX(0);
}

.nav-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nav-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-panel > ul > li {
  border-bottom: 1px solid var(--line-dark);
}

.nav-panel a {
  display: block;
  padding: 0.9375rem 0;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.nav-panel a:hover {
  color: var(--teal);
}

.nav-panel .sub-menu {
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.nav-panel .sub-menu a {
  padding: 0.5rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.62);
}

.nav-panel__footer {
  margin-top: auto;
  padding-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.nav-panel__footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}

.nav-panel__footer .icon {
  color: var(--teal);
  flex: 0 0 auto;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 12, 14, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed) var(--ease), visibility var(--speed) var(--ease);
}

.nav-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* ------------------------------------------------------------------ *
 * 7. Hero
 * ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  background: var(--charcoal);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(15, 18, 20, 0.94) 0%, rgba(15, 18, 20, 0.78) 45%, rgba(15, 18, 20, 0.45) 100%),
    linear-gradient(to top, rgba(15, 18, 20, 0.85) 0%, transparent 55%);
}

.hero__inner {
  position: relative;
  max-width: 860px;
}

.hero .eyebrow {
  color: var(--teal);
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
}

.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero__title em {
  font-style: normal;
  color: var(--teal);
}

.hero__text {
  max-width: 620px;
  margin-bottom: 2.25rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Service strip below the hero */
.hero-strip {
  position: relative;
  z-index: 2;
  margin-top: calc(clamp(3.5rem, 8vw, 7rem) * -1 + 0px);
}

.hero-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(50%);
}

.hero-strip__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.5rem 1.5rem;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-strip__item:last-child {
  border-right: 0;
}

.hero-strip__item .icon {
  flex: 0 0 auto;
  opacity: 0.9;
}

.hero-strip__item span {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero-strip + .section {
  padding-top: calc(var(--section-y) + 3rem);
}

/* ------------------------------------------------------------------ *
 * 9. Split sections
 * ------------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Decorative offset frame */
.split__media::before {
  content: '';
  position: absolute;
  inset: auto -18px -18px auto;
  width: 62%;
  height: 62%;
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.split__body > .section-head {
  margin-bottom: 1.75rem;
}

/* Vision / quote callout */
.callout {
  position: relative;
  margin-top: 2rem;
  padding: 1.75rem 1.75rem 1.75rem 3.75rem;
  background: var(--teal-050);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout__icon {
  position: absolute;
  top: 1.75rem;
  left: 1.5rem;
  color: var(--teal);
  opacity: 0.55;
}

.callout__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.callout p {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

/* Floating experience badge on imagery */
.exp-badge {
  position: absolute;
  right: -14px;
  bottom: 28px;
  display: grid;
  gap: 2px;
  padding: 1.25rem 1.5rem;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.exp-badge__num {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--teal);
}

.exp-badge__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  max-width: 96px;
}

/* ------------------------------------------------------------------ *
 * 10. Services
 * ------------------------------------------------------------------ */

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.06);
}

.service-card__num {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 0.5rem 0.875rem;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.75rem;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.125rem;
  border-radius: var(--radius);
  background: var(--teal-050);
  color: var(--teal-700);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.service-card:hover .service-card__icon {
  background: var(--teal);
  color: var(--white);
}

.service-card__title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.service-card__title a {
  color: inherit;
  text-decoration: none;
}

.service-card__title a:hover {
  color: var(--teal-700);
}

.service-card__text {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.service-card__body .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* Detailed service rows on the services page */
.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row:nth-child(even) .service-row__media {
  order: 2;
}

.service-row__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.service-row__num {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.service-row__num::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--teal);
}

.service-row h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
}

/* ------------------------------------------------------------------ *
 * 11. Values, stats and dark sections
 * ------------------------------------------------------------------ */

.section--image {
  position: relative;
  isolation: isolate;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.74);
}

.section--image > .bg-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.section--image > .bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(16, 19, 21, 0.97) 0%, rgba(16, 19, 21, 0.92) 55%, rgba(16, 19, 21, 0.84) 100%);
}

.section--image h1,
.section--image h2,
.section--image h3 {
  color: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark);
}

.stat__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.stat__label {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
}

.section--mist .stats {
  border-top-color: var(--line);
}

.section--mist .stat__label {
  color: var(--slate);
}

/* ------------------------------------------------------------------ *
 * 12. Team
 * ------------------------------------------------------------------ */

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  text-align: center;
}

.team-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(170deg, var(--teal-050) 0%, #dfeeed 100%);
  transition: transform var(--speed) var(--ease);
}

.team-card:hover .team-card__photo {
  transform: translateY(-5px);
}

.team-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.team-card__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(0, 119, 111, 0.16), transparent);
  pointer-events: none;
}

.team-card__name {
  margin-bottom: 0.125rem;
  font-size: 1.0625rem;
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--muted);
}

.team-note {
  max-width: 620px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * 13. Partners and certifications
 * ------------------------------------------------------------------ */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/*
 * Cell dividers are drawn with inset shadows rather than a gap, so an
 * incomplete final row leaves plain white space instead of a grey block.
 */
.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 1.25rem;
  box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
  transition: background var(--speed) var(--ease);
}

.logo-grid__item:hover {
  background: var(--mist);
}

.logo-grid__item img {
  max-width: 100%;
  max-height: 66px;
  width: auto;
  object-fit: contain;
  transition: transform var(--speed) var(--ease);
}

.logo-grid__item:hover img {
  transform: scale(1.05);
}

.certs {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.cert-chip .icon {
  color: var(--teal);
  flex: 0 0 auto;
}

.cert-chip img {
  max-height: 22px;
  width: auto;
}

.section--image .cert-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  color: var(--white);
}

/* ------------------------------------------------------------------ *
 * 14. Call to action band
 * ------------------------------------------------------------------ */

.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--charcoal);
  overflow: hidden;
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(0, 87, 81, 0.95) 0%, rgba(16, 19, 21, 0.9) 60%);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.cta-band .eyebrow::before {
  background: var(--white);
}

.cta-band__title {
  max-width: 660px;
  margin: 0;
  font-size: clamp(1.625rem, 3.4vw, 2.5rem);
  color: var(--white);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 500;
}

.cta-band__phone .icon {
  color: var(--teal);
}

.cta-band__phone:hover {
  color: var(--teal);
}

/* ------------------------------------------------------------------ *
 * 15. Footer
 * ------------------------------------------------------------------ */

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-col__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-about .brand {
  margin-bottom: 1.25rem;
}

.footer-about p {
  max-width: 34ch;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6875rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact .icon {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--teal);
}

.social-links {
  display: flex;
  gap: 0.625rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease);
}

.social-links a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--teal);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease),
    visibility var(--speed) var(--ease), background var(--speed) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--teal-700);
}

/* ------------------------------------------------------------------ *
 * 16. Inner page headers
 * ------------------------------------------------------------------ */

.page-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(58vh, 520px);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--charcoal);
  overflow: hidden;
}

.page-header__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(15, 18, 20, 0.93) 0%, rgba(15, 18, 20, 0.74) 55%, rgba(15, 18, 20, 0.5) 100%);
}

.page-header__title {
  max-width: 900px;
  margin: 0;
  color: var(--white);
}

.page-header__lead {
  max-width: 640px;
  margin: 1.125rem 0 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ------------------------------------------------------------------ *
 * 17. Prose and block styles
 * ------------------------------------------------------------------ */

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose h3 {
  margin-top: 2rem;
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
}

.prose ul,
.prose ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  top: 0.65em;
  left: 0.25rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.prose ol {
  counter-reset: prose-ol;
  list-style: none;
  padding-left: 0;
}

.prose ol > li {
  position: relative;
  padding-left: 2.25rem;
  counter-increment: prose-ol;
}

.prose ol > li::before {
  content: counter(prose-ol) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal);
}

.prose img,
.prose .wp-block-image {
  border-radius: var(--radius-lg);
}

.prose figcaption {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

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

.prose th {
  background: var(--mist);
  font-family: var(--font-head);
  color: var(--ink);
}

/* Prose on dark backgrounds */
.section--image .prose {
  color: rgba(255, 255, 255, 0.74);
}

.section--image .prose strong {
  color: var(--white);
}

.section--image .prose blockquote {
  color: var(--white);
}

/* Wide two-column bullet list, used by the added value section */
.prose--wide-list {
  max-width: 980px;
}

.prose--wide-list > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem 2rem;
  margin-bottom: 0;
}

.prose--wide-list > ul li {
  margin-bottom: 0;
  padding-left: 2rem;
}

.prose--wide-list > ul li::before {
  top: 0.55em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 167, 157, 0.22);
  border: 1px solid rgba(0, 167, 157, 0.55);
}

.prose--wide-list > ul li::after {
  content: '';
  position: absolute;
  top: 0.78em;
  left: 4px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .prose--wide-list > ul {
    grid-template-columns: 1fr;
  }
}

.alignwide {
  max-width: min(1120px, 100%);
  margin-inline: auto;
}

.alignfull {
  max-width: none;
}

.aligncenter {
  margin-inline: auto;
  text-align: center;
}

.alignleft {
  float: left;
  margin: 0 1.75rem 1.25rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1.25rem 1.75rem;
}

.wp-caption,
.wp-block-image {
  margin-bottom: 1.75rem;
}

/* ------------------------------------------------------------------ *
 * 18. Contact page
 * ------------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.contact-card:hover {
  border-color: var(--teal-100);
  box-shadow: var(--shadow-sm);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--teal-050);
  color: var(--teal-700);
}

.contact-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card p,
.contact-card a {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
}

.contact-card a:hover {
  color: var(--teal-700);
}

.form-panel {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form-panel h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

/* Shared form control styling, also applied to Contact Form 7 output */
.form-panel label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-panel input[type='text'],
.form-panel input[type='email'],
.form-panel input[type='tel'],
.form-panel input[type='url'],
.form-panel select,
.form-panel textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 167, 157, 0.16);
}

.form-panel textarea {
  min-height: 150px;
  resize: vertical;
}

.form-panel .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1.125rem;
}

.form-panel input[type='submit'],
.form-panel button[type='submit'] {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 2rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.form-panel input[type='submit']:hover,
.form-panel button[type='submit']:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 167, 157, 0.28);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}

.wpcf7 form .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1.125rem;
  border-width: 1px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.wpcf7-not-valid-tip {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #c0392b;
}

.map-embed {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mist);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(18%);
}

/* ------------------------------------------------------------------ *
 * 19. Blog, comments and pagination
 * ------------------------------------------------------------------ */

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.5rem;
}

.post-card__meta {
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.post-card__title {
  margin-bottom: 0.75rem;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--teal-700);
}

.post-card__body .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-meta .icon {
  color: var(--teal);
}

.pagination {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Covers both the_posts_pagination (nav > .nav-links) and wp_link_pages. */
.pagination,
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.comments-area {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.comment-list {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.comment-list ol {
  list-style: none;
  padding-left: clamp(1rem, 3vw, 2.5rem);
}

.comment-body {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
}

.comment-author img {
  border-radius: 50%;
}

.comment-metadata {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.comment-respond {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--mist);
  border-radius: var(--radius-lg);
}

.comment-respond label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.comment-respond input[type='text'],
.comment-respond input[type='email'],
.comment-respond input[type='url'],
.comment-respond textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.comment-respond .submit {
  padding: 0.9375rem 2rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

.comment-respond .submit:hover {
  background: var(--teal-700);
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type='search'] {
  flex: 1 1 auto;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
}

.search-form button {
  padding: 0.8125rem 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
}

/* Empty states */
.notice-empty {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--mist);
  border-radius: var(--radius-lg);
  text-align: center;
}

.error-404 {
  text-align: center;
}

.error-404__code {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--teal-100);
}

.error-404__search {
  max-width: 440px;
  margin: 2rem auto 0;
}

/* Editor placeholder note for missing content */
.admin-hint {
  padding: 1.25rem 1.5rem;
  background: #fff8e5;
  border: 1px solid #f0d69a;
  border-radius: var(--radius);
  color: #7a5b12;
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------------ *
 * 20. Utilities, motion and accessibility
 * ------------------------------------------------------------------ */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  clip-path: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ *
 * 21. Responsive
 * ------------------------------------------------------------------ */

/* The phone number is the first thing to go when the menu runs out of room. */
@media (max-width: 1400px) {
  .header-phone {
    display: none;
  }
}

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

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-strip__item:nth-child(2) {
    border-right: 0;
  }

  .hero-strip__item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .nav-primary,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .services-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .split,
  .service-row {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media,
  .service-row:nth-child(even) .service-row__media {
    order: 0;
  }

  .split__media::before {
    display: none;
  }

  .exp-badge {
    right: 12px;
    bottom: 12px;
    padding: 1rem 1.125rem;
  }

  .exp-badge__num {
    font-size: 1.75rem;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  .services-grid,
  .post-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-strip__inner {
    grid-template-columns: 1fr;
    transform: translateY(40px);
  }

  .hero-strip__item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-strip__item:last-child {
    border-bottom: 0;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 0 0 1.5rem;
  }

  .to-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 460px) {
  .brand__text {
    display: none;
  }

  .team-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }
}
