/* ==========================================================================
   EXTER AV SOLUTIONS — design system
   Palette and type follow the approved brand kit (brand/EXTER-Logo-Guidelines.pdf).
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink: #0b0e14;
  --night: #0a1324;
  --blue: #0a6cf5;
  --blue-700: #0a52bb;
  --blue-200: #9ec4fd;
  --slate: #7c8696;
  --slate-700: #4b5565;
  --cloud: #f4f6f9;
  --line: #e2e7ee;
  --line-dark: rgba(255, 255, 255, 0.14);
  --white: #fff;

  --font-display: "Montserrat", "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, 8.5rem);
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(11, 14, 20, 0.06), 0 8px 24px rgba(11, 14, 20, 0.06);
  --shadow-lg: 0 24px 70px rgba(11, 14, 20, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Components set their own `display`, which would otherwise beat the UA rule. */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- type scale ---------- */
.h-display {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  letter-spacing: -0.035em;
}
.h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}
.h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.62;
  color: var(--slate-700);
  max-width: 62ch;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* --blue is a fill colour; at small text sizes on light grounds it only
     reaches 4.3:1, so blue text uses the deeper step. */
  color: var(--blue-700);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue-700);
  flex: none;
}
.muted {
  color: var(--slate-700);
}
.small {
  font-size: 0.875rem;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section--cloud {
  background: var(--cloud);
}
.section--ink {
  background: var(--ink);
  color: var(--white);
}
.section--ink .lede,
.section--ink .muted {
  color: #aab4c2;
}
/* On dark grounds the brand blue only reaches 4.1:1, so the tint takes over. */
.section--ink .eyebrow,
.hero .eyebrow,
.banner .eyebrow {
  color: var(--blue-200);
}
.section--ink .eyebrow::before,
.hero .eyebrow::before,
.banner .eyebrow::before {
  background: var(--blue-200);
}
.section-head {
  max-width: 58ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: 1fr;
  align-items: end;
}
.grid {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-bd: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  --btn-bg: var(--blue-700);
  --btn-bd: var(--blue-700);
}
.btn svg {
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--ghost:hover {
  --btn-bg: transparent;
  --btn-fg: var(--blue);
  --btn-bd: var(--blue);
}
.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.35);
}
.btn--on-dark:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}
.btn--sm {
  padding: 0.7rem 1.15rem;
  font-size: 0.8rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue-700);
  text-decoration: none;
}
.textlink svg {
  transition: transform 0.25s var(--ease);
}
.textlink:hover svg {
  transform: translateX(4px);
}

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    height 0.3s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header__logo {
  display: block;
  flex: none;
  line-height: 0;
}
.header__logo img {
  width: 158px;
  height: auto;
}
.header__logo .logo--light {
  display: block;
}
.header__logo .logo--dark {
  display: none;
}
/* The bar also goes solid while the mobile drawer is open, so the logo and the
   close control stay legible against the white panel behind them. */
.header.is-solid,
body.nav-open .header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}
.header.is-solid .logo--light,
body.nav-open .logo--light {
  display: none;
}
.header.is-solid .logo--dark,
body.nav-open .logo--dark {
  display: block;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2rem);
}
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  padding-block: 0.4rem;
  transition: color 0.2s var(--ease);
}
.header.is-solid .nav__link {
  color: var(--slate-700);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: #fff;
}
.header.is-solid .nav__link:hover,
.header.is-solid .nav__link[aria-current="page"] {
  color: var(--ink);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.header .btn {
  flex: none;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.header.is-solid .nav-toggle span {
  background: var(--ink);
}
.nav-toggle[aria-expanded="true"] span {
  background: var(--ink);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 860px);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(11, 14, 20, 0.95) 8%,
      rgba(11, 14, 20, 0.72) 46%,
      rgba(11, 14, 20, 0.42) 100%
    ),
    linear-gradient(to top, rgba(11, 14, 20, 0.92), transparent 55%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__title {
  max-width: 17ch;
  margin-bottom: 1.5rem;
}
.hero__lede {
  max-width: 54ch;
  color: #c4ccd8;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin-bottom: 2.25rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
.hero__meta div {
  min-width: 140px;
}
.hero__meta dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e9aab;
  margin-bottom: 0.35rem;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

/* page banner (interior pages) */
.banner {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.banner__media {
  position: absolute;
  inset: 0;
}
.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 14, 20, 0.95) 20%, rgba(11, 14, 20, 0.6));
}
.banner__inner {
  position: relative;
  z-index: 1;
}
.banner .lede {
  color: #c4ccd8;
}
.crumbs {
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: #8e9aab;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #5c6878;
}
.crumbs a {
  color: #aab4c2;
  text-decoration: none;
}
.crumbs a:hover {
  color: #fff;
}

/* ---------- cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: #cfd8e4;
}
.card:hover::before {
  transform: scaleX(1);
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.card--dark {
  background: #121724;
  border-color: var(--line-dark);
  color: #fff;
}
.card--dark p {
  color: #aab4c2;
}
.card--dark:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.icon-tile {
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.card:hover .icon-tile {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.card--dark .icon-tile {
  border-color: var(--line-dark);
  color: var(--blue-200);
}

/* media cards (solutions, projects, industries) */
.mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.mcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}
.mcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.mcard:hover .mcard__media img {
  transform: scale(1.055);
}
.mcard__body {
  padding: clamp(1.4rem, 2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mcard__body h3 {
  margin-bottom: 0.45rem;
}
.mcard__body p {
  color: var(--slate-700);
  font-size: 0.95rem;
}
.mcard__tag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1;
  padding: 0.35rem 0.7rem;
  background: rgba(11, 14, 20, 0.78);
  backdrop-filter: blur(6px);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mcard__foot {
  margin-top: auto;
  padding-top: 1.1rem;
}
.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- feature split ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(11, 14, 20, 0.08);
  border-radius: var(--radius);
  pointer-events: none;
}
.split--reverse .split__media {
  order: 2;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.section--ink .stats {
  background: var(--line-dark);
  border-color: var(--line-dark);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
}
.section--ink .stat {
  background: var(--ink);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.stat__label {
  font-size: 0.9rem;
  color: var(--slate-700);
  margin: 0;
}
.section--ink .stat__label {
  color: #aab4c2;
}

/* ---------- process ---------- */
.process {
  counter-reset: step;
  display: grid;
  gap: 0;
}
.process__item {
  counter-increment: step;
  position: relative;
  display: grid;
  gap: 0.5rem 2rem;
  padding: clamp(1.6rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
}
.section--ink .process__item {
  border-color: var(--line-dark);
}
.process__item:last-child {
  border-bottom: 1px solid var(--line);
}
.section--ink .process__item:last-child {
  border-color: var(--line-dark);
}
.process__item::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.process__item h3 {
  margin-bottom: 0.35rem;
}
.process__item p {
  margin: 0;
  color: var(--slate-700);
  max-width: 62ch;
}
.section--ink .process__item p {
  color: #aab4c2;
}

/* ---------- accordion ---------- */
.acc {
  border-top: 1px solid var(--line);
}
.acc__item {
  border-bottom: 1px solid var(--line);
}
.acc__btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.acc__btn:hover {
  color: var(--blue);
}
.acc__btn .acc__idx {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  flex: none;
}
.acc__btn .acc__sign {
  margin-left: auto;
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.acc__btn .acc__sign::before,
.acc__btn .acc__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.acc__btn .acc__sign::after {
  transform: rotate(90deg);
}
.acc__btn[aria-expanded="true"] .acc__sign::after {
  transform: rotate(0);
}
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.acc__panel[data-open="true"] {
  grid-template-rows: 1fr;
}
.acc__panel > div {
  overflow: hidden;
}
.acc__panel p {
  max-width: 70ch;
  color: var(--slate-700);
}
.acc__panel .tags {
  padding-bottom: 1.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--slate-700);
}

/* ---------- checklist ---------- */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--slate-700);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 11px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.section--ink .checks li {
  color: #aab4c2;
}

/* ---------- logo strip / motif ---------- */
.motif {
  display: block;
  width: 34px;
  height: auto;
  margin-bottom: 1.5rem;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.cta__bg {
  position: absolute;
  inset: 0;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 19, 36, 0.96) 25%, rgba(10, 19, 36, 0.6));
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta h2 {
  margin-bottom: 0.75rem;
}
.cta p {
  color: #b9c2d0;
  margin-bottom: 0;
  max-width: 54ch;
}

/* ---------- forms ---------- */
.form {
  display: grid;
  gap: 1.15rem;
}
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-700);
}
.field .req {
  color: var(--blue);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 108, 245, 0.16);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #d93025;
}
.field .err {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #d93025;
}
.form__row {
  display: grid;
  gap: 1.15rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note {
  font-size: 0.82rem;
  color: var(--slate-700);
  margin: 0;
}
.form-status {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cloud);
  font-size: 0.92rem;
}
.form-status[data-state="ok"] {
  border-color: #b6e0c2;
  background: #eefaf1;
  color: #176b35;
}
.form-status[data-state="error"] {
  border-color: #f0b5b0;
  background: #fdf0ef;
  color: #a3271d;
}
/* The live region stays in the DOM so screen readers announce it when it fills. */
.form-status:empty {
  display: none;
}

/* ---------- contact details ---------- */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.contact-list dt {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}
.contact-list dd {
  margin: 0;
  font-size: 1.02rem;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contact-list a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: #9aa5b4;
  font-size: 0.92rem;
}
.footer a {
  color: #c6cedb;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.footer__top {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3rem);
  padding-block: clamp(3.25rem, 6vw, 4.75rem);
}
.footer__brand img {
  width: 172px;
  margin-bottom: 1.4rem;
}
.footer__brand p {
  max-width: 34ch;
}
.footer h2 {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
/* Navigation links in a list need a 24px pointer target, not just a line box. */
.footer ul a,
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.84rem;
}
.social {
  display: flex;
  gap: 0.6rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.error-page {
  display: grid;
  place-items: center;
  min-height: 70vh;
  text-align: center;
  padding-top: var(--header-h);
}

/* ---------- responsive ---------- */
@media (min-width: 600px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process__item {
    grid-template-columns: 70px 1fr;
  }
  .cta__inner {
    grid-template-columns: 1.4fr auto;
  }
  .section-head--split {
    grid-template-columns: 1.5fr 1fr;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }
  /* An ancestor with backdrop-filter becomes the containing block for fixed
     descendants, which would collapse the drawer into the header bar. */
  .header.is-solid,
  body.nav-open .header {
    backdrop-filter: none;
    background: #fff;
  }
  /* Keep the logo and the close control above the drawer that slides under them. */
  .header__logo,
  .nav-toggle {
    position: relative;
    z-index: 2;
  }
  .header .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    margin: 0;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .header .nav[data-open="true"] {
    transform: none;
  }
  .header .nav__link {
    color: var(--ink);
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .header .nav__link::after {
    display: none;
  }
  .header .nav .btn {
    margin-top: 1.5rem;
    justify-content: center;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 20, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    z-index: 99;
  }
  .nav-backdrop[data-open="true"] {
    opacity: 1;
    visibility: visible;
  }
  body.nav-open {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ---------- WhatsApp prompt ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.4s infinite;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}
.whatsapp-float:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-popup {
  position: fixed;
  right: 22px;
  bottom: 98px;
  z-index: 120;
  width: min(340px, calc(100vw - 32px));
  padding: 22px 22px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(11, 14, 20, 0.22);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.wa-popup.is-open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.wa-popup__title {
  margin: 0 2rem 0.45rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wa-popup p {
  margin: 0 0 1.1rem;
  color: var(--slate-700);
  font-size: 1.02rem;
  line-height: 1.45;
}
.wa-popup__cta {
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
  letter-spacing: 0;
}
.wa-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
}
.wa-close:hover { color: var(--ink); background: var(--cloud); }
.wa-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 720px) {
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .wa-popup { right: 16px; bottom: 84px; }
}

@media print {
  .header,
  .footer,
  .cta,
  .nav-backdrop,
  .whatsapp-float,
  .wa-popup {
    display: none;
  }
  body {
    color: #000;
  }
}
