/* ==========================================================================
   SurfProtect

   Colours follow the visual identity proposal in
   `_resources/Obecné info/logo Surfprotect/surfprotect-loga-koncepty.docx`:

     blue       #1E6FA8  — Fortes, trust; the general UI accent
     dusty rose #D98BA3  — treated textiles / bed linen
     anthracite #37424C  — stainless steel; also the heading colour
     grey       #8E9AA3  — films

   The three colours appear together in the logo ring and in the thin rule
   under every section heading ("three materials under one protection").
   ========================================================================== */

:root {
  /* Brand palette */
  --blue: #25bcbd;
  --blue-deep: #0f3c6c;
  --blue-tint: #e3f6f6;
  --rose: #d98ba3;
  --rose-deep: #c2718b;
  --rose-tint: #fbeef2;
  --anthracite: #37424c;
  --anthracite-deep: #262e36;
  --grey: #8e9aa3;
  --grey-deep: #6e7c87;
  --grey-tint: #eef1f3;

  /* The three logo arcs (overridable, see `.ring--mono`) */
  --ring-a: var(--blue);
  --ring-b: var(--rose);
  --ring-c: var(--anthracite);

  /* Text and surfaces */
  --ink: #4b5661;
  --ink-soft: #7a858f;
  --page: #ffffff;
  --page-soft: #f6f8f9;
  --line: #e1e6ea;
  --line-soft: #eef1f3;

  /* Default card accent (overridden per technology via [data-accent]) */
  --accent: var(--blue);
  --accent-tint: var(--blue-tint);

  /* Type */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1320px;
  --gutter: 30px;
  --radius: 14px;
  --header-h: 92px;
  --card-h: 560px;
}

/* Per-technology accents — see the colour map in the identity proposal. */
[data-accent="steel"] {
  --accent: var(--grey-deep);
  --accent-tint: #edeff1;
}

[data-accent="textile"] {
  --accent: var(--rose-deep);
  --accent-tint: var(--rose-tint);
}

[data-accent="foil"] {
  --accent: var(--blue);
  --accent-tint: var(--grey-tint);
}

/* --------------------------------------------------------------- base ---- */

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--anthracite);
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

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

abbr[title] {
  color: var(--rose-deep);
  text-decoration: none;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: block;
}

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

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

/* Anchor targets must clear the sticky header when a nav link jumps to them. */
section[id],
.card-panel[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--anthracite);
  color: #fff;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------- logo / the wordmark ---- */

/* The mark: a ring made of three arcs (blue / rose / anthracite). */
.ring__a {
  stroke: var(--ring-a);
}

.ring__b {
  stroke: var(--ring-b);
}

.ring__c {
  stroke: var(--ring-c);
}

/* One-colour version, for embossing, dark backgrounds, single-colour print. */
.ring--mono .ring__a,
.ring--mono .ring__b,
.ring--mono .ring__c {
  stroke: currentColor;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--anthracite);
  white-space: nowrap;
}

.wordmark__o {
  display: inline-flex;
  align-items: center;
  padding: 0 0.012em;
}

.wordmark__ring {
  width: 0.8em;
  height: 0.8em;
  transform: translateY(0.015em);
}

.wordmark--brand {
  font-size: 29px;
}

.wordmark--hero {
  font-size: clamp(42px, 6.2vw, 86px);
}

/* The raster logo supplied by the client replaces the SVG ring + wordmark
   above. It already includes the ring mark and the tagline, so it stands on
   its own wherever it appears. */
.brand__logo {
  display: block;
  height: 52px;
  width: auto;
}

.hero__logo {
  display: block;
  height: clamp(66px, 9.75vw, 126px);
  width: auto;
}

/* ------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
}

.brand__text {
  display: block;
}

.brand__tagline {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

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

/*
 * The links live in components/nav-links.njk and are rendered twice: once as
 * `.main-nav--bar` (the header bar) and once as `.main-nav--menu` (inside the
 * ☰ drawer). Exactly one of the two is displayed at any width, so only one ever
 * reaches the accessibility tree.
 */
.main-nav--bar {
  display: flex;
  /*
   * Safety net. `min-width: 0` lets the bar shrink below its content width
   * instead of pushing `.container` wider than the viewport, and the scroll
   * container keeps the overflow inside the header. main.js normally collapses
   * the bar long before this matters — but a header must never be able to give
   * the whole document a horizontal scrollbar.
   */
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav--bar::-webkit-scrollbar {
  display: none;
}

.main-nav--menu {
  display: none;
}

.main-nav__list {
  display: flex;
  align-items: stretch;
}

.main-nav__list > li + li .main-nav__link {
  border-left: 1px solid var(--line);
}

.main-nav__link {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* One comfortable value at every width — main.js collapses the bar rather
     than squeezing it per breakpoint. Measured with Montserrat: at 15px the
     five-item Czech bar is 593px wide and survives down to ~1240px viewport,
     which clears a maximized 1280px laptop with room to spare. */
  padding: 14px 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--anthracite);
  white-space: nowrap;
  transition: color 0.18s, box-shadow 0.18s;
}

.main-nav__icon {
  width: 26px;
  height: 26px;
  color: var(--grey);
  transition: color 0.18s;
}

.main-nav__link:hover,
.main-nav__link:hover .main-nav__icon {
  color: var(--blue);
}

.main-nav__link:hover {
  box-shadow: inset 0 -3px 0 var(--blue);
}

/* Actions ----------------------------------------------------------------- */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  padding-left: 16px;
}

.lang-switcher {
  display: flex;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-switcher a {
  color: var(--grey);
}

.lang-switcher a:hover {
  color: var(--blue);
}

.lang-switcher__current {
  color: var(--anthracite);
}

/* The ☰ button and the drawer it opens ------------------------------------ */

.nav-toggle {
  display: none; /* phones only — see the media query at the bottom */
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: 4px;
  align-self: center;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--anthracite);
  cursor: pointer;
}

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

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

/* Swap ☰ for ✕ while the drawer is open. */
.nav-toggle__bars,
.nav-toggle__cross {
  display: grid;
  place-items: center;
}

.nav-toggle__cross,
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__cross {
  display: grid;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--blue);
  color: var(--blue);
}

/* Hidden outright while the bar is showing, so its copy of the links is not exposed. */
.site-menu {
  display: none;
}

.header-cta--menu {
  display: none;
}

/* Page behind the open drawer must not scroll. */
body.is-menu-open {
  overflow: hidden;
}

/*
 * ---------------------------------------------------------------------------
 * The collapsed header.
 *
 * `nav-collapsed` on <html> is a STATE, not a screen size: main.js measures
 * whether the bar still fits next to the logo and the actions, and sets it
 * accordingly (see base.njk for the first-paint guess). That is why these rules
 * are not inside a media query — the switch happens at whatever width this
 * particular language's labels stop fitting, rather than at a number somebody
 * typed in.
 * ---------------------------------------------------------------------------
 */

/* An exact height, not a min-height: it guarantees the drawer below starts
   precisely where the header ends (`top: var(--header-h)`). The brand is
   comfortably shorter than this at every width. */
.nav-collapsed .site-header__inner {
  height: var(--header-h);
  min-height: 0;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  gap: 12px;
}

.nav-collapsed .brand {
  padding-right: 0;
  border-right: 0;
}

/* The header keeps the logo and the language switcher; the links and the
   "Získat nabídku" button move into the drawer behind ☰. */
.nav-collapsed .main-nav--bar,
.nav-collapsed .header-cta--bar {
  display: none;
}

.nav-collapsed .nav-toggle {
  display: grid;
}

/* The drawer covers everything below the sticky header. Tapping the dimmed
   area closes it (see main.js).

   `z-index: 45` keeps it under the header (50) but over the page. It must stay
   a sibling of <header>, not a child: the header's `backdrop-filter` would
   otherwise become its containing block and squash it to zero height. */
.nav-collapsed .site-menu {
  display: block;
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  background: rgba(38, 46, 54, 0.42);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nav-collapsed .site-menu > .container {
  max-height: 100%;
  padding: 0;
  overflow-y: auto;
}

.nav-collapsed .site-menu__panel {
  padding: 10px var(--gutter) 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 44px -26px rgba(38, 46, 54, 0.6);
  transform: translateY(-12px);
  transition: transform 0.22s ease;
}

.nav-collapsed .site-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.nav-collapsed .site-menu.is-open .site-menu__panel {
  transform: none;
}

/* The links, stacked, as full-width rows. */
.nav-collapsed .main-nav--menu {
  display: block;
}

.nav-collapsed .main-nav--menu .main-nav__list {
  display: block;
}

.nav-collapsed .main-nav--menu .main-nav__list > li + li .main-nav__link {
  border-left: 0;
  border-top: 1px solid var(--line-soft);
}

.nav-collapsed .main-nav--menu .main-nav__link {
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  padding: 15px 2px;
  font-size: 13px;
  box-shadow: none;
}

.nav-collapsed .main-nav--menu .main-nav__icon {
  width: 23px;
  height: 23px;
}

.nav-collapsed .header-cta--menu {
  display: flex;
  width: 100%;
  margin-top: 18px;
}

/* While main.js is measuring it flips `nav-collapsed` off and on within a
   single task. The browser never paints that, but suppress transitions anyway
   so nothing can flicker. */
.nav-measuring .site-menu,
.nav-measuring .site-menu__panel {
  transition: none !important;
}

/* Buttons ----------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 24px;
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.button .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.button:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--blue);
}

.button--ghost:hover {
  background: var(--blue-tint);
  border-color: var(--blue);
  color: var(--blue-deep);
}

/* A quieter, text-style action (used on the back of the cards). */
.link-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--blue);
}

.link-action .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.link-action:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------- section basics ---- */

.section {
  padding: 74px 0;
}

.section--tint {
  background: var(--page-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section__head {
  max-width: 62ch;
  margin-bottom: 44px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--blue-deep);
}

/* The three brand colours as one rule — blue, grey, rose. */
.section__rule {
  display: block;
  width: 96px;
  height: 3px;
  margin: 18px 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--blue) 33%,
    var(--grey) 33%,
    var(--grey) 66%,
    var(--rose) 66%
  );
}

.section__head--center .section__rule {
  margin-left: auto;
  margin-right: auto;
}

.section__lead {
  font-size: 17px;
  color: var(--ink);
}

/* A visible marker for content that still has to be supplied. */
.todo {
  display: block;
  margin: 18px 0;
  padding: 11px 15px;
  border: 1px dashed var(--rose);
  border-radius: 8px;
  background: var(--rose-tint);
  font-size: 13.5px;
  color: #8a4a60;
}

.todo::before {
  content: "TODO — ";
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, var(--blue-tint) 100%);
  border-bottom: 1px solid var(--line-soft);
}

/* The photo only covers the right-hand part of the hero, so the shield and the
   pointing hand end up beside the headline rather than behind it. It is faded
   out towards the left with a mask, so the hero's own gradient — not a flat
   white block — shows through behind the text. */
.hero__media {
  position: absolute;
  inset: 0 0 0 24%;
  background-repeat: no-repeat;
  background-position: 62% center;
  background-size: cover;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 14%,
    rgba(0, 0, 0, 0.65) 34%,
    #000 56%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 14%,
    rgba(0, 0, 0, 0.65) 34%,
    #000 56%
  );
}

.hero__inner {
  position: relative;
  padding: 86px var(--gutter) 96px;
}

.hero__title {
  margin: 0;
}

.hero__subtitle {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero__rule {
  display: block;
  width: 96px;
  height: 3px;
  margin: 28px 0 30px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--blue) 33%,
    var(--grey) 33%,
    var(--grey) 66%,
    var(--rose) 66%
  );
}

.hero__text {
  max-width: 38ch;
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink);
}

.hero__claim {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--anthracite);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ----------------------------------------------------------- surfaces ---- */

.surfaces__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.surfaces__hint {
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-soft);
}

.surfaces__slogan {
  margin: 52px auto 0;
  text-align: center;
}

.surfaces__slogan-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto 22px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--blue) 33%,
    var(--grey) 33%,
    var(--grey) 66%,
    var(--rose) 66%
  );
}

.surfaces__slogan p {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--blue-deep);
}

/* Flip card --------------------------------------------------------------- */

.surface-card {
  perspective: 1800px;
}

.surface-card__inner {
  position: relative;
  height: var(--card-h);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.surface-card.is-flipped .surface-card__inner {
  transform: rotateY(180deg);
}

.surface-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  backface-visibility: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -26px rgba(38, 46, 54, 0.4);
}

/* Front */

.surface-card__front {
  display: flex;
  flex-direction: column;
}

.surface-card__photo {
  position: relative;
  flex: 0 0 64%;
  background-position: center top;
  background-size: cover;
}

.surface-card__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 90%);
}

.surface-card__front-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 28px;
}

.surface-card__icon {
  position: absolute;
  top: -29px;
  left: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(38, 46, 54, 0.7);
}

.surface-card__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.surface-card__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--anthracite);
}

.surface-card__product {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

/* The whole front is clickable; the little cursor glyph is only a hint. */
.surface-card__flip {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.surface-card__hint {
  position: absolute;
  right: 22px;
  bottom: 22px;
  color: var(--grey);
  transition: transform 0.25s, color 0.25s;
}

.surface-card__flip:hover .surface-card__hint {
  color: var(--accent);
  transform: translateY(-3px);
}

/* Back */

.surface-card__back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border-top: 4px solid var(--accent);
}

.surface-card__back-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.surface-card__label {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.surface-card__label--areas {
  margin-top: auto;
  padding-top: 20px;
}

.benefits {
  margin-top: 13px;
  display: grid;
  gap: 10px;
}

.benefits li {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}

.benefits__check {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--accent);
}

.areas {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.areas__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 8px;
  border-radius: 20px;
  background: var(--accent-tint);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--anthracite);
}

.areas__item .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.surface-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.surface-card__return {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.surface-card__return .icon {
  width: 19px;
  height: 19px;
  transition: transform 0.3s;
}

.surface-card__return:hover {
  color: var(--anthracite);
}

.surface-card__return:hover .icon {
  transform: rotate(-90deg);
}

/* ---------------------------------------------------------- assurance ---- */

.assurance {
  position: relative;
  overflow: hidden;
  padding: 54px 0 58px;
  background: #fff;
}

/* Decorative dot grid in the bottom-left corner, as in the reference design. */
.assurance__dots {
  position: absolute;
  left: -14px;
  bottom: -18px;
  width: 240px;
  height: 150px;
  background-image: radial-gradient(circle, #d5dde3 1.3px, transparent 1.4px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(120% 120% at 0% 100%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 120% at 0% 100%, #000 0%, transparent 70%);
}

.assurance__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.assurance__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 24px;
}

.assurance__item:first-child {
  padding-left: 0;
}

.assurance__item + .assurance__item {
  border-left: 1px solid var(--line);
}

.assurance__icon {
  width: 60px;
  height: 60px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
}

.assurance__icon .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.5;
}

.assurance__body {
  display: block;
}

.assurance__title {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--anthracite);
}

.assurance__text {
  display: block;
  max-width: 26ch;
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* ------------------------------------------------------------- project ---- */

.project__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 54px;
}

.project__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--anthracite);
}

.project__id {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 12px 0 24px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.project__id strong {
  font-family: var(--font-display);
  color: var(--blue);
  letter-spacing: 0.01em;
}

.project__side-title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.project__side-title + * + .project__side-title,
.project__side .partners + .project__side-title {
  margin-top: 36px;
}

.partners {
  display: grid;
  gap: 18px;
}

.partners__item {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 16px;
}

.partners__logo {
  width: 92px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.partners__name {
  font-size: 14px;
  line-height: 1.35;
  color: var(--anthracite);
}

.partners__role {
  color: var(--ink-soft);
}

.funding {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
  padding: 20px 22px;
  background: var(--page-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.funding__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.funding__logo {
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  object-position: left center;
}

.funding__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------------------------------------------------------------- news ---- */

.news__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.news__inner > div {
  max-width: 62ch;
}

.news__text {
  margin-top: 4px;
  font-size: 17px;
}

/* ---------------------------------------------------------- references ---- */

.references__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reference-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* Placeholder look — obvious that the content is still missing. */
.reference-card.is-placeholder {
  border-style: dashed;
  border-color: #cbd3d9;
  background: var(--page-soft);
}

.reference-card__logo {
  display: grid;
  place-items: center;
  height: 72px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed #cbd3d9;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.reference-card__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  overflow: hidden;
}

.reference-card__logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
}

.reference-card__quote {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.reference-card__person {
  margin-top: -8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--anthracite);
}

.references__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--anthracite);
}

/* ------------------------------------------------------------- contact ---- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 44px;
}

.person__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.person {
  display: flex;
  align-items: stretch;
  gap: 22px;
  min-width: 0;
  align-self: start;
}

.person__info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.person__photo {
  width: 104px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.person__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--anthracite);
}

.person__role {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.person__links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.person__links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
}

.person__links .icon {
  width: 21px;
  height: 21px;
  color: var(--grey);
}

.person__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A white panel used for the quote form. */
.card-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.card-panel__title {
  font-size: 21px;
  font-weight: 700;
}

.card-panel__lead {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink);
}

/* --------------------------------------------------------------- forms ---- */

.form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: block;
}

.field__label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--anthracite);
}

.field__input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field__input::placeholder {
  color: #a9b2ba;
}

.field__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
  outline: none;
}

.field__input:focus-visible {
  outline: none;
}

textarea.field__input {
  resize: vertical;
  min-height: 96px;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.form__privacy {
  flex: 1 1 240px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Shown by main.js instead of submitting — the backend is not wired up yet. */
.form__alert {
  padding: 13px 16px;
  border: 1px solid var(--rose);
  border-radius: 9px;
  background: var(--rose-tint);
  font-size: 14px;
  line-height: 1.5;
  color: #8a4a60;
}

.form__alert[hidden] {
  display: none;
}

/* -------------------------------------------------------------- dialog ---- */

.dialog {
  width: min(880px, calc(100% - 40px));
  max-height: calc(100vh - 60px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.dialog--narrow {
  width: min(560px, calc(100% - 40px));
}

.dialog[open] {
  display: flex;
}

.dialog::backdrop {
  background: rgba(38, 46, 54, 0.6);
}

/* No-JavaScript fallback: `#detail-foil` in the address bar still opens it. */
.dialog:target:not([open]) {
  display: flex;
  position: fixed;
  inset: 30px;
  z-index: 200;
  width: auto;
  max-height: none;
  margin: auto;
  max-width: 880px;
}

.dialog__box {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(38, 46, 54, 0.55);
  overflow: hidden;
}

.dialog__head {
  display: grid;
  grid-template-columns: 54px 1fr 40px;
  align-items: start;
  gap: 18px;
  padding: 26px 28px;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.dialog__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.dialog__icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}

.dialog__title {
  font-size: 22px;
  font-weight: 700;
}

.dialog__subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.dialog__subtitle:empty {
  display: none;
}

.dialog__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-soft);
}

.dialog__close:hover {
  background: var(--page-soft);
  color: var(--anthracite);
}

.dialog__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 28px 30px;
}

.dialog__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  background: var(--page-soft);
}

.dialog__note {
  flex: 1 1 300px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- prose ---- */

.prose > * + * {
  margin-top: 14px;
}

.prose section + section {
  margin-top: 26px;
}

.prose h3 {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.prose p {
  font-size: 15px;
  line-height: 1.62;
}

.prose p + p {
  margin-top: 10px;
}

.prose__list-label {
  margin-top: 12px;
  font-weight: 600;
  color: var(--anthracite);
}

.prose__list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.prose__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
}

.prose__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------------------- footer ---- */

.site-footer {
  padding: 34px 0;
  background: var(--anthracite-deep);
  color: #a8b2bb;
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #a8b2bb;
}

.site-footer__shield {
  display: block;
  height: 34px;
  width: auto;
}

.site-footer__meta {
  max-width: 68ch;
  text-align: right;
}

.site-footer__disclaimer {
  margin-top: 6px;
  color: #7f8a93;
}

/* --------------------------------------------------------- responsive ---- */

/*
 * There are deliberately NO rules here that squeeze the navigation bar to buy a
 * few more pixels. The bar keeps one comfortable size and main.js collapses it
 * into ☰ the moment it stops fitting — which is both easier to read and easier
 * to maintain than a ladder of shrinking paddings.
 */
@media (max-width: 1220px) {
  .brand {
    padding-right: 20px;
  }

  .wordmark--brand {
    font-size: 24px;
  }

  .brand__logo {
    height: 42px;
  }
}

@media (max-width: 1024px) {
  .surfaces__grid,
  .references__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .assurance__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 0;
  }

  .assurance__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .project__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 74px;
  }

  .hero__inner {
    padding: 58px var(--gutter) 68px;
  }

  /* Too narrow to keep the photo beside the text — let it span the whole hero
     and fade it back much harder so the headline stays readable on top. */
  .hero__media {
    inset: 0;
    background-position: right center;
    -webkit-mask-image: linear-gradient(
      100deg,
      transparent 0%,
      rgba(0, 0, 0, 0.06) 40%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.65) 100%
    );
    mask-image: linear-gradient(
      100deg,
      transparent 0%,
      rgba(0, 0, 0, 0.06) 40%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.65) 100%
    );
  }

  .site-footer__meta {
    text-align: left;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 20px;
    --card-h: 600px;
  }

  .section {
    padding: 54px 0;
  }

  .site-header__actions {
    padding-left: 0;
    gap: 14px;
  }

  .wordmark--brand {
    font-size: 21px;
  }

  .brand__tagline {
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }

  .brand__logo {
    height: 34px;
  }

  .button {
    padding: 11px 16px;
    gap: 8px;
    font-size: 11px;
  }

  .button .icon {
    width: 18px;
    height: 18px;
  }

  /* The drawer's CTA is full width, so it can keep a comfortable size. */
  .header-cta--menu {
    padding: 15px 18px;
    font-size: 12px;
  }

  .surfaces__grid,
  .references__grid,
  .assurance__grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  .assurance__item {
    border-left: 0 !important;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__text {
    max-width: none;
  }

  .card-panel {
    padding: 24px 20px;
  }

  .dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 24px);
  }

  .dialog__head {
    grid-template-columns: 44px 1fr 36px;
    gap: 14px;
    padding: 20px;
  }

  .dialog__icon {
    width: 44px;
    height: 44px;
  }

  .dialog__body {
    padding: 20px;
  }

  .dialog__foot {
    padding: 16px 20px;
  }

  .partners__item {
    grid-template-columns: 76px 1fr;
    gap: 12px;
  }

  .partners__logo {
    width: 76px;
  }

  .funding {
    padding: 16px 18px;
    gap: 12px;
  }

  .funding__logos {
    gap: 18px;
  }

  .funding__logo {
    height: 32px;
    max-width: 130px;
  }
}

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

  .button:hover {
    transform: none;
  }
}


/* Hero wordmark — text instead of the raster logo, two-tone to match the header logo */
.hero__wordmark { display: block; }
.hero__wordmark .wm-a { color: #1C3E6F; }
.hero__wordmark .wm-b { color: #3E97D2; }


/* Homepage header: bigger logo on the left, links + buttons grouped on the right */
.main-nav--bar { margin-left: auto; }

/* Hero headline (brand lives only in the header, not repeated here) */
.hero__headline {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24.3px, 3.564vw, 43.74px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: #1C3E6F;
  text-wrap: balance;
}
