/*
 * AMSTEL Luxury Web System
 * Version: 1.3.0 (restored baseline)
 *
 * Consolidated production stylesheet based on the Aboss V5 component model.
 * Includes global foundations, reusable components, header, footer and responsive rules.
 *
 * Recommended HTML:
 *   <html lang="nl" class="no-js">
 *   <link rel="stylesheet" href="css/amstel.css">
 *   <script src="js/amstel.js" defer></script>
 */

/* Self-hosted IBM Plex Sans Condensed (SIL Open Font License 1.1, see fonts/OFL.txt).
 * Latin subset, weights 400-700. Replaces the Google Fonts link (2026-10-09). */
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Warm architectural palette */
  --bg: #eee5d6;
  --bg-soft: #f5eee3;
  --bg-elev: #fffaf1;
  --bg-deep: #2c1b14;
  --surface: rgba(255, 250, 241, .66);
  --surface-strong: rgba(255, 252, 246, .88);
  --surface-brown: rgba(78, 47, 34, .075);
  --surface-gold: rgba(183, 137, 55, .11);
  --surface-emerald: rgba(25, 82, 62, .075);

  --text: #2c211a;
  --text-soft: rgba(44, 33, 26, .76);
  --muted: rgba(44, 33, 26, .62);
  --muted-2: rgba(44, 33, 26, .47);
  --text-inverse: #fff8ed;
  --text-inverse-soft: rgba(255, 248, 237, .73);

  --brown: #563828;
  --brown-deep: #2c1b14;
  --brown-light: #855f47;
  --cream: #fff8ed;
  --beige: #e7d8c1;
  --gold: #b78937;
  --gold-light: #d7b873;
  --gold-dark: #76501f;
  --bronze: #9a6744;
  --emerald: #19523e;
  --emerald-light: #32745d;
  --emerald-dark: #10392c;

  --gold-rgb: 183, 137, 55;
  --bronze-rgb: 154, 103, 68;
  --emerald-rgb: 25, 82, 62;
  --cream-rgb: 255, 248, 237;

  --gold-soft: rgba(var(--gold-rgb), .16);
  --gold-line: rgba(var(--gold-rgb), .31);
  --emerald-line: rgba(var(--emerald-rgb), .25);
  --line: rgba(79, 54, 39, .17);
  --line-soft: rgba(79, 54, 39, .105);
  --line-inverse: rgba(255, 248, 237, .13);

  --success: #28664f;
  --danger: #a74238;
  --warning: #96641f;

  --font-heading: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --font-ui: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;

  --container: 1240px;
  --container-wide: 1440px;
  --header-height: 3.375rem;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;
  --space-9: 6rem;
  --space-10: 7rem;
  --section-y: clamp(4rem, 7vw, 7.25rem);

  --r-1: .75rem;
  --r-2: 1.125rem;
  --r-3: 1.75rem;
  --r-4: 2.5rem;
  --r-pill: 999px;

  --shadow-1: 0 12px 30px rgba(64, 42, 29, .11);
  --shadow-2: 0 22px 60px rgba(64, 42, 29, .16);
  --shadow-3: 0 32px 90px rgba(64, 42, 29, .22);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .7);
  --focus: 0 0 0 3px rgba(255, 248, 237, .96), 0 0 0 6px rgba(var(--emerald-rgb), .82);

  --pointer-x: 74vw;
  --pointer-y: 12vh;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(var(--gold-rgb), .14), transparent 27rem),
    radial-gradient(circle at 8% 18%, rgba(var(--emerald-rgb), .075), transparent 31rem),
    linear-gradient(135deg, #eee5d6 0%, #f7f0e5 47%, #eadbc5 100%);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -2;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  content: "";
  filter: blur(24px);
  opacity: .62;
  pointer-events: none;
  will-change: transform;
}

body::before {
  top: -18rem;
  right: -13rem;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .22), rgba(var(--bronze-rgb), .08) 42%, transparent 70%);
  animation: amstel-ambient-one 18s ease-in-out infinite alternate;
}

body::after {
  bottom: -23rem;
  left: -15rem;
  background: radial-gradient(circle, rgba(var(--emerald-rgb), .17), rgba(var(--gold-rgb), .055) 48%, transparent 70%);
  animation: amstel-ambient-two 22s ease-in-out infinite alternate;
}

body.nav-open {
  overflow: hidden;
}

@keyframes amstel-ambient-one {
  from { transform: translate3d(-2rem, 0, 0) scale(.96); }
  to { transform: translate3d(3rem, 4rem, 0) scale(1.08); }
}

@keyframes amstel-ambient-two {
  from { transform: translate3d(0, 2rem, 0) scale(1); }
  to { transform: translate3d(5rem, -3rem, 0) scale(1.12); }
}

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

img,
video {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-color: rgba(var(--emerald-rgb), .48);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

a:hover {
  text-decoration-color: var(--gold-dark);
}

button {
  color: inherit;
}

:focus-visible {
  border-radius: .25rem;
  outline: none;
  box-shadow: var(--focus);
}

::selection {
  background: var(--emerald);
  color: var(--cream);
}

[hidden] {
  display: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--brown-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -.025em;
  text-wrap: balance;
  /* Long Dutch compounds (Constructieberekeningen) must not overflow on phones. */
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 4.55vw, 4.45rem);
  font-weight: 500;
  letter-spacing: -.038em;
  line-height: 1.03;
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -.032em;
  line-height: 1.08;
}

h3 {
  margin-bottom: .7rem;
  font-size: clamp(1.22rem, 1.75vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.2;
}

h4 {
  margin-bottom: .55rem;
  font-size: 1.06rem;
  line-height: 1.35;
}

p {
  margin-bottom: 1rem;
}

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

li + li {
  margin-top: .45rem;
}

hr {
  height: 1px;
  margin-block: 2rem;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--emerald-line), var(--gold-line), transparent);
}

/* Accessibility */
.skip-link {
  position: fixed;
  z-index: 9999;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  border: 1px solid var(--emerald-dark);
  border-radius: var(--r-1);
  background: var(--cream);
  box-shadow: var(--shadow-2);
  color: var(--emerald-dark);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Layout */
.container,
.container-wide {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.container-wide {
  max-width: var(--container-wide);
}

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

.section-compact {
  padding-block: clamp(3rem, 5vw, 4.75rem);
}

.section-soft {
  border-block: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, transparent, rgba(var(--emerald-rgb), .025), transparent),
    rgba(255, 250, 241, .48);
}

.section-elevated {
  border-block: 1px solid rgba(var(--gold-rgb), .15);
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--gold-rgb), .11), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, .26), transparent 14rem),
    #e8dbc8;
}

.section-dark {
  color: var(--text-inverse);
  background:
    radial-gradient(circle at 84% 15%, rgba(var(--gold-rgb), .15), transparent 24rem),
    radial-gradient(circle at 8% 88%, rgba(var(--emerald-rgb), .24), transparent 26rem),
    var(--brown-deep);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--cream);
}

.section-dark p,
.section-dark .lead {
  color: var(--text-inverse-soft);
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 810px;
  margin-bottom: clamp(2rem, 4vw, 3.75rem);
}

.section-heading > * {
  margin-bottom: 0;
}

.section-heading p,
.lead {
  max-width: 69ch;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

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

.centered .lead,
.centered p {
  margin-inline: auto;
}

/* Labels and utility text */
.eyebrow,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: var(--emerald-dark);
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.badge {
  padding: .58rem .86rem;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(var(--cream-rgb), .72), rgba(var(--emerald-rgb), .055));
  box-shadow: var(--shadow-inset);
}

.eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  content: "";
}

.muted { color: var(--muted); }
.tiny { font-size: .875rem; line-height: 1.55; }
.text-gold { color: var(--gold-dark); }
.text-emerald { color: var(--emerald); }

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  overflow: hidden;
  padding: .78rem 1.18rem;
  border: 1px solid var(--brown-deep);
  border-radius: var(--r-pill);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 42%),
    var(--brown-deep);
  box-shadow: 0 12px 30px rgba(58, 36, 24, .18);
  color: var(--cream);
  font-size: .93rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: border-color .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.btn::before {
  position: absolute;
  top: -130%;
  left: -35%;
  width: 25%;
  height: 360%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  content: "";
  transition: left .55s ease;
}

.btn:hover {
  border-color: var(--gold-dark);
  background-color: var(--brown);
  box-shadow: 0 16px 38px rgba(58, 36, 24, .23);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:hover::before {
  left: 125%;
}

.btn-secondary {
  border-color: var(--emerald-line);
  background: rgba(255, 250, 241, .42);
  box-shadow: none;
  color: var(--emerald-dark);
}

.btn-secondary:hover {
  border-color: var(--emerald);
  background: rgba(var(--emerald-rgb), .09);
  color: var(--emerald-dark);
}

.btn-gold {
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--brown-deep);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e1c783, #b78631);
  color: var(--brown-deep);
}

.btn-small {
  min-height: 2.65rem;
  padding: .62rem .96rem;
  font-size: .86rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--emerald-dark);
  font-weight: 760;
  text-decoration: none;
}

.text-link::after {
  color: var(--gold-dark);
  content: "→";
  transition: transform .2s ease;
}

.text-link:hover::after {
  transform: translateX(.22rem);
}

/* Cards */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .5), transparent 45%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-2), var(--shadow-inset);
  backdrop-filter: blur(14px) saturate(112%);
}

.card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--gold), transparent);
  content: "";
  opacity: .72;
}

.card::after {
  position: absolute;
  top: -8rem;
  right: -9rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .13), transparent 67%);
  content: "";
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(215, 184, 115, .32);
  background: rgba(15, 59, 47, .97);
  box-shadow: 0 8px 24px rgba(7, 28, 22, .16);
  backdrop-filter: blur(18px) saturate(125%);
  transition: background-color .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(215, 184, 115, .68), rgba(50, 116, 93, .92), rgba(215, 184, 115, .68), transparent 96%);
  content: "";
  opacity: .72;
  pointer-events: none;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(215, 184, 115, .48);
  background: rgba(12, 49, 39, .985);
  box-shadow: 0 10px 30px rgba(7, 28, 22, .24);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
}

.brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .68rem;
  color: var(--cream);
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.38rem;
  height: 2.38rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(215, 184, 115, .42);
  border-radius: .38rem;
  background:
    linear-gradient(145deg, rgba(215, 184, 115, .16), rgba(255, 248, 237, .025)),
    rgba(10, 44, 35, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  object-fit: contain;
}

.brand-text,
.brand-title,
.brand-sub {
  display: block;
  min-width: 0;
}

.brand-title {
  overflow: hidden;
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-sub {
  overflow: hidden;
  margin-top: .12rem;
  color: rgba(255, 248, 237, .66);
  font-size: .59rem;
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav {
  min-width: 0;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: .12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-list a,
.header-contact,
.lang-button,
.menu-button {
  position: relative;
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 248, 237, .78);
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a {
  padding: .68rem .62rem .42rem;
}

.nav-list a::before,
.header-contact::before,
.lang-button::before,
.menu-button::after {
  position: absolute;
  top: .14rem;
  right: .55rem;
  left: .55rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--emerald-light), var(--gold-light), transparent);
  box-shadow: 0 0 .55rem rgba(var(--gold-rgb), .38);
  content: "";
  opacity: 0;
  transform: scaleX(.28);
  transform-origin: center;
  transition: opacity .22s ease, transform .25s ease, box-shadow .22s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"],
.header-contact:hover,
.header-contact:focus-visible,
.lang-button:hover,
.lang-button:focus-visible,
.lang-button[aria-expanded="true"],
.menu-button:hover,
.menu-button:focus-visible,
.menu-button[aria-expanded="true"] {
  color: var(--gold-light);
  text-decoration: none;
}

.nav-list a:hover::before,
.nav-list a:focus-visible::before,
.nav-list a[aria-current="page"]::before,
.header-contact:hover::before,
.header-contact:focus-visible::before,
.lang-button:hover::before,
.lang-button:focus-visible::before,
.lang-button[aria-expanded="true"]::before,
.menu-button:hover::after,
.menu-button:focus-visible::after,
.menu-button[aria-expanded="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--cream);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: .16rem;
}

.header-contact {
  padding: .68rem .54rem .42rem;
}

.lang {
  position: relative;
}

.lang-button {
  gap: .34rem;
  padding: .68rem .54rem .42rem;
  cursor: pointer;
}

.lang-code {
  color: var(--gold-light);
  letter-spacing: .08em;
}

.lang-caret {
  color: rgba(255, 248, 237, .58);
  transition: transform .2s ease;
}

.lang-button[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  z-index: 1100;
  top: calc(100% + .55rem);
  right: 0;
  width: 12.5rem;
  padding: .36rem;
  border: 1px solid rgba(215, 184, 115, .36);
  border-radius: .55rem;
  background: rgba(12, 49, 39, .985);
  box-shadow: 0 18px 48px rgba(7, 28, 22, .28);
  backdrop-filter: blur(18px);
}

.lang-menu a {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .54rem .62rem;
  border-radius: .32rem;
  color: rgba(255, 248, 237, .76);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
}

.lang-menu a:hover,
.lang-menu a:focus-visible,
.lang-menu a[aria-current="page"] {
  background: rgba(215, 184, 115, .09);
  color: var(--gold-light);
}

.lang-menu a[aria-current="page"]::after {
  color: var(--gold-light);
  content: "✓";
  font-weight: 700;
}

.menu-button {
  display: none;
  gap: .5rem;
  padding: .68rem .54rem .42rem;
  cursor: pointer;
}

.menu-button::before {
  width: .92rem;
  height: .62rem;
  border-block: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  content: "";
}

.menu-button[aria-expanded="true"]::before {
  border-color: transparent;
  background:
    linear-gradient(45deg, transparent 46%, currentColor 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}

.mobile-panel {
  border-top: 1px solid rgba(215, 184, 115, .26);
  background:
    radial-gradient(circle at 86% 5%, rgba(var(--gold-rgb), .1), transparent 16rem),
    rgba(12, 49, 39, .99);
  box-shadow: 0 22px 44px rgba(7, 28, 22, .26);
}

.mobile-nav {
  display: grid;
  gap: 0;
  padding-block: .55rem .8rem;
}

.mobile-nav > a {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: space-between;
  padding: .66rem .12rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 248, 237, .1);
  border-radius: 0;
  color: rgba(255, 248, 237, .76);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav > a::after {
  color: var(--gold-light);
  content: "→";
}

.mobile-nav > a:hover,
.mobile-nav > a[aria-current="page"] {
  background: transparent;
  color: var(--gold-light);
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .75rem;
  padding-top: .8rem;
  border-top: 0;
}

.no-js .menu-button {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.35rem, 4vw, 4.2rem);
  border-bottom: 1px solid var(--emerald-line);
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: -18rem;
  right: -11rem;
  width: 43rem;
  height: 43rem;
  border: 1px solid rgba(var(--emerald-rgb), .13);
  background: radial-gradient(circle, rgba(var(--gold-rgb), .16), rgba(var(--bronze-rgb), .055) 46%, transparent 68%);
}

.hero::after {
  bottom: -16rem;
  left: -12rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(var(--gold-rgb), .14);
  background: radial-gradient(circle, rgba(var(--emerald-rgb), .11), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* Let hero columns shrink below their longest word on phones. */
.hero-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 770px;
}

.hero-copy .lead {
  margin-bottom: 1.75rem;
}

.hero-points {
  display: grid;
  gap: .68rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: grid;
  grid-template-columns: 1.28rem minmax(0, 1fr);
  gap: .72rem;
  align-items: start;
  margin: 0;
  color: var(--text-soft);
}

.hero-points li::before {
  color: var(--emerald);
  content: "✓";
  font-weight: 900;
}

.hero-note {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: .88rem;
}

.hero-media {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-4);
  background: var(--bg-elev);
  box-shadow: var(--shadow-3);
}

.hero-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(44, 27, 20, .52));
  content: "";
  pointer-events: none;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
}

.hero-media-caption {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  color: var(--cream);
  font-size: .85rem;
}

/* Technical panel */
.technical-panel {
  min-height: 30rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.technical-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--emerald-line);
}

.technical-panel-head span:first-child {
  font-weight: 820;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--success);
  font-size: .82rem;
  font-weight: 760;
}

.status-dot::before {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 .3rem rgba(var(--emerald-rgb), .085);
  content: "";
}

.technical-drawing {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 16rem;
  color: var(--emerald);
}

.technical-legend {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
}

.technical-stat {
  padding: .88rem;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-1);
  background: rgba(255, 250, 241, .55);
}

.technical-stat strong,
.technical-stat span {
  display: block;
}

.technical-stat strong {
  color: var(--brown);
  font-family: var(--font-heading);
  font-size: 1.27rem;
}

.technical-stat span {
  color: var(--muted);
  font-size: .74rem;
}

/* Trust band */
.trust-band {
  border-bottom: 1px solid var(--emerald-line);
  background: rgba(255, 250, 241, .52);
}

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

.trust-item {
  min-width: 0;
  padding: 1.38rem 1.25rem;
  border-left: 1px solid var(--emerald-line);
}

.trust-item:last-child {
  border-right: 1px solid var(--emerald-line);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: .15rem;
  color: var(--brown-deep);
  font-size: .9rem;
}

.trust-item span {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.service-card {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.3rem);
}

.service-card-number {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  color: var(--emerald);
  font-family: var(--font-heading);
  font-size: .95rem;
}

/* Card content starts at the top so headings line up across a row;
   a closing link or button row sits at the bottom of the card instead. */
.service-card > .text-link:last-child,
.service-card > .button-row:last-child {
  margin-top: auto;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
}

.service-card p {
  position: relative;
  z-index: 1;
  max-width: 54ch;
  color: var(--text-soft);
}

.service-card .text-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: .75rem;
}

/* Split content */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.check-list {
  display: grid;
  gap: .85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0;
  padding: .96rem 1rem .96rem 2.9rem;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-1);
  background: rgba(255, 250, 241, .48);
  color: var(--text-soft);
}

.check-list li::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--gold-dark);
  content: "◆";
  font-size: .72rem;
}

/* Process */
.process-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.1rem;
  margin: 0;
  padding: 1.38rem;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-2);
  background: rgba(255, 250, 241, .47);
  box-shadow: var(--shadow-inset);
  counter-increment: process;
}

.process-item::before {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(var(--gold-rgb), .18), rgba(var(--emerald-rgb), .07));
  color: var(--brown-deep);
  content: counter(process, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 700;
}

.process-item h3 {
  margin-bottom: .35rem;
}

.process-item p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* Callout */
.callout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(1.8rem, 4vw, 3.1rem);
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-3);
  background:
    radial-gradient(circle at 92% 18%, rgba(var(--gold-rgb), .19), transparent 18rem),
    linear-gradient(135deg, rgba(var(--emerald-rgb), .085), rgba(255, 250, 241, .62));
  box-shadow: var(--shadow-2), var(--shadow-inset);
}

.callout::before {
  position: absolute;
  top: -12rem;
  left: 28%;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(var(--gold-rgb), .2);
  border-radius: 50%;
  content: "";
}

.callout > * {
  position: relative;
  z-index: 1;
}

.callout h2 {
  max-width: 19ch;
  margin-bottom: .65rem;
}

.callout p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--text-soft);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: .85rem;
  max-width: 960px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-2);
  background: rgba(255, 250, 241, .48);
  box-shadow: var(--shadow-inset);
}

.faq-item[open] {
  border-color: rgba(var(--gold-rgb), .45);
  background: linear-gradient(135deg, rgba(var(--gold-rgb), .1), rgba(var(--emerald-rgb), .045));
}

.faq-item summary {
  position: relative;
  padding: 1.2rem 3.25rem 1.2rem 1.3rem;
  cursor: pointer;
  color: var(--brown-deep);
  font-weight: 810;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--emerald);
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 75ch;
  padding: 0 1.3rem 1.3rem;
  color: var(--text-soft);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Related services */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-link {
  display: grid;
  min-height: 9rem;
  align-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-2);
  background: rgba(255, 250, 241, .44);
  color: var(--brown-deep);
  text-decoration: none;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.related-link:hover {
  border-color: var(--gold-line);
  background: rgba(var(--gold-rgb), .09);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transform: translateY(-3px);
}

.related-link strong {
  font-family: var(--font-heading);
  font-size: 1.27rem;
}

.related-link span {
  color: var(--emerald);
}

/* Contact panel */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 1.25rem;
  padding: clamp(1.65rem, 4vw, 3.1rem);
}

.contact-panel-copy {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.contact-panel-copy p {
  color: var(--text-soft);
}

.contact-options {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .75rem;
}

.contact-option {
  display: grid;
  grid-template-columns: 2.78rem minmax(0, 1fr);
  gap: .82rem;
  align-items: center;
  padding: .92rem;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-1);
  background: rgba(255, 250, 241, .56);
  text-decoration: none;
}

.contact-option:hover {
  border-color: var(--gold-line);
  background: rgba(var(--gold-rgb), .09);
  text-decoration: none;
}

.contact-option-icon {
  display: grid;
  width: 2.78rem;
  height: 2.78rem;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: rgba(var(--gold-rgb), .085);
  color: var(--brown-deep);
  font-weight: 850;
}

.contact-option strong,
.contact-option span {
  display: block;
}

.contact-option span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .82rem;
}

/* The icon is a span too: keep it a centred circle instead of the block text above. */
.contact-option .contact-option-icon {
  display: grid;
  place-items: center;
  overflow-wrap: normal;
  color: var(--brown-deep);
}

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

.form-field {
  display: grid;
  gap: .42rem;
}

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

.form-field label {
  color: var(--brown-deep);
  font-size: .84rem;
  font-weight: 770;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 3rem;
  padding: .72rem .82rem;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: rgba(255, 250, 241, .78);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--emerald);
  outline: none;
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(var(--emerald-rgb), .12);
}

.form-help {
  color: var(--muted);
  font-size: .78rem;
}

/* Media */
.media-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
  padding: .625rem;
}

.media-figure {
  min-width: 0;
  margin: 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin-inline: auto;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--emerald-line);
  border-radius: calc(var(--r-3) - .75rem);
  background: var(--bg-elev);
  box-shadow: var(--shadow-3);
}

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

.media-frame.media-contain img {
  object-fit: contain;
  filter: none;
}

/* Breadcrumbs (generated from the page's BreadcrumbList by i18n/i18n.py). */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--muted);
  font-size: .8rem;
  list-style: none;
}

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

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible,
.breadcrumbs a[aria-current="page"] {
  color: var(--brown-deep);
}

/* Detail pages: principle sketch (inline SVG) with a numbered legend. */
.detail-sketch {
  margin: 0;
  padding: clamp(.75rem, 2.5vw, 1.5rem);
  border: 1px solid var(--emerald-line);
  border-radius: calc(var(--r-3) - .75rem);
  background: #fffdf8;
  box-shadow: var(--shadow-3);
}

.detail-sketch svg {
  display: block;
  width: 100%;
  height: auto;
}

.detail-sketch figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .83rem;
}

.detail-legend {
  display: grid;
  gap: .45rem;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.detail-legend li::marker {
  color: var(--gold);
  font-weight: 700;
}

/* Wide banner images (1200x630, same ratio as the share image). */
.media-frame.media-wide {
  aspect-ratio: 40 / 21;
}

.media-caption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .83rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--emerald-line);
  border-radius: var(--r-2);
  background: rgba(255, 250, 241, .52);
  box-shadow: var(--shadow-inset);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

th,
td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(var(--emerald-rgb), .07);
  color: var(--brown-deep);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: .6rem;
  color: var(--gold-dark);
  content: "/";
}

/* Quotes */
.quote-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
  color: var(--brown-deep);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.45;
}

.quote-card figcaption {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .84rem;
}

/* Footer */
.site-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(var(--gold-rgb), .38);
  background:
    radial-gradient(circle at 88% 8%, rgba(var(--gold-rgb), .17), transparent 27rem),
    radial-gradient(circle at 8% 86%, rgba(var(--emerald-rgb), .3), transparent 29rem),
    linear-gradient(145deg, #2d1b14, #251710 70%);
  color: var(--text-inverse);
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-light), var(--gold-light), transparent);
  content: "";
}

.footer-main {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 7vw, 6.25rem) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.footer-column {
  min-width: 0;
}

.footer-brand {
  max-width: 32rem;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.25;
}

.footer-brand .footer-title {
  color: var(--gold-light);
  font-size: 1.48rem;
}

.footer-text {
  color: var(--text-inverse-soft);
  font-size: .9rem;
  line-height: 1.68;
}

.footer-links {
  display: grid;
  gap: .5rem;
}

.footer-links a {
  width: fit-content;
  color: var(--text-inverse-soft);
  font-size: .87rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact-list {
  display: grid;
  gap: .67rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  margin: 0;
}

.footer-contact-list a,
.footer-contact-list span {
  color: var(--text-inverse-soft);
  font-size: .87rem;
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--gold-light);
}

.footer-cta {
  padding: 1.25rem;
  border: 1px solid rgba(var(--emerald-rgb), .58);
  border-radius: var(--r-2);
  background:
    radial-gradient(circle at 92% 8%, rgba(var(--gold-rgb), .16), transparent 12rem),
    rgba(255, 248, 237, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}

.footer-cta p {
  color: var(--text-inverse-soft);
  font-size: .86rem;
}

.footer-cta .btn-secondary {
  border-color: rgba(255, 248, 237, .22);
  background: rgba(255, 248, 237, .07);
  color: var(--cream);
}

.footer-cta .btn-secondary:hover {
  border-color: var(--gold-light);
  background: rgba(var(--gold-rgb), .13);
  color: var(--cream);
}

.footer-divider {
  height: 1px;
  margin-block: clamp(2rem, 5vw, 4rem) 1.5rem;
  background: linear-gradient(90deg, transparent, rgba(var(--emerald-rgb), .7), rgba(var(--gold-rgb), .5), transparent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-copy,
.footer-legal {
  color: rgba(255, 248, 237, .52);
  font-size: .76rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--cream);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .55rem;
  width: 100%;
  margin-top: clamp(1.8rem, 3vw, 2.5rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(215, 184, 115, .22);
}

.social-link {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 1.9rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: .35rem .7rem;
  border: 1px solid rgba(215, 184, 115, .48);
  border-radius: .2rem;
  background: rgba(255, 248, 237, .075);
  color: #fff8ed;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .035em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
  transition: border-color .22s ease, background-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.social-link::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -65%;
  width: 42%;
  background: linear-gradient(105deg, transparent, rgba(255, 248, 237, .38), rgba(215, 184, 115, .52), transparent);
  content: "";
  opacity: 0;
  transform: skewX(-18deg);
  pointer-events: none;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(215, 184, 115, .9);
  background: rgba(215, 184, 115, .13);
  box-shadow: 0 0 1.1rem rgba(215, 184, 115, .16);
  color: #f2d89b;
  text-decoration: none;
  transform: translateY(-1px);
}

.social-link:hover::before,
.social-link:focus-visible::before {
  opacity: 1;
  animation: social-glimmer .72s ease forwards;
}

@keyframes social-glimmer {
  from { left: -65%; }
  to { left: 125%; }
}

/* Progressive reveal */
.js [data-reveal],
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}

.js [data-reveal].is-visible,
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive: under desktop */
@media (max-width: 1120px) {
  .primary-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-panel {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

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

  /* An odd last card spans the full row instead of standing alone. */
  .service-grid-3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

@media (max-width: 1023px) {
  :root {
    --header-height: 3.375rem;
  }

  .hero-grid,
  .split-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-media {
    min-height: 25rem;
  }

  .hero-media img,
  .hero-media video {
    min-height: 25rem;
  }

  .sticky-copy {
    position: static;
  }

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

  .trust-item:nth-child(2) {
    border-right: 1px solid var(--emerald-line);
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--emerald-line);
  }

  .callout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 759px) {
  :root {
    --section-y: clamp(3.5rem, 12vw, 5rem);
  }

  .container,
  .container-wide {
    width: min(calc(100% - 2rem), var(--container));
  }

  h1 {
    max-width: 18ch;
    font-size: clamp(2.35rem, 12.4vw, 3.65rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .header-inner {
    gap: .65rem;
  }

  .brand-sub {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .lang-button {
    min-width: 2.78rem;
    justify-content: center;
    padding-inline: .65rem;
  }

  .lang-button .lang-label {
    display: none;
  }

  .mobile-nav-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 3.9rem 4.5rem;
  }

  .hero-media,
  .hero-media img,
  .hero-media video {
    min-height: 21rem;
  }

  .service-grid,
  .service-grid-3,
  .related-grid,
  .media-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .technical-legend {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2),
  .trust-item:last-child {
    border-right: 1px solid var(--emerald-line);
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--emerald-line);
  }

  .process-item {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: .85rem;
    padding: 1.1rem;
  }

  .process-item::before {
    width: 2.8rem;
    height: 2.8rem;
  }

  .callout {
    padding: 1.5rem;
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .btn {
    width: 100%;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .container,
  .container-wide {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .brand-title {
    max-width: 9rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .lang-caret {
    display: none;
  }

  .menu-button {
    padding-inline: .7rem;
  }

  .menu-button .menu-label {
    display: none;
  }

  .hero-media,
  .hero-media img,
  .hero-media video {
    min-height: 18rem;
  }
}

@media (min-width: 1440px) {
  .container,
  .container-wide {
    width: min(calc(100% - 4rem), var(--container));
  }
}

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

@media (max-width: 759px) {
  .social-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .btn:hover,
  .related-link:hover,
  .social-link:hover,
  .header-contact:hover {
    transform: none;
  }
}

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

  body::before,
  body::after {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(44, 33, 26, .38);
    --line-soft: rgba(44, 33, 26, .28);
    --emerald-line: rgba(var(--emerald-rgb), .55);
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  body::after,
  .site-header,
  .site-footer,
  .button-row,
  .skip-link {
    display: none;
  }

  .section,
  .section-compact {
    padding-block: 1.5rem;
  }

  .card,
  .faq-item,
  .table-wrap {
    border: 1px solid #aaa;
    box-shadow: none;
  }
}
