/* ==========================================================================
   Hilbert Group — Design System
   Fonts: Newsreader (headings) + DM Sans (body) via Google Fonts
   Built for WordPress + Elementor (section > container > widgets structure)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Main palette */
  --color-black: #090909;
  --color-white: #ffffff;
  --color-night: #17223a;          /* Main/Night */
  --color-forest: #173a2c;         /* Main/Forest */
  --color-almost-white: #efefec;   /* Main/Almost White */
  --color-surface-1: #141414;      /* Surface/Level-1 */
  --color-dark-2: #1d2023;

  /* Additional */
  --color-light-green: #d9e3de;
  --color-moss: #516e5f;
  --color-light-blue: #d0dceb;
  --color-deep-blue: #192c45;
  --color-purple: #3d4f7c;
  --color-matcha: #deeadc;

  /* Blue tints */
  --color-blue-5: #e4e5e3;
  --color-blue-10: rgba(22, 35, 58, 0.1);
  --color-blue-40: rgba(23, 34, 58, 0.4);
  --color-blue-50: rgba(23, 34, 58, 0.5);

  /* Green tints */
  --color-green-5: rgba(23, 58, 44, 0.05);
  --color-green-10: rgba(23, 58, 44, 0.1);
  --color-green-50: rgba(23, 58, 44, 0.5);

  /* Gray tints */
  --color-gray-10: rgba(239, 239, 236, 0.1);
  --color-gray-20: #c2d1c3;
  --color-gray-40: rgba(239, 239, 236, 0.5);
  --color-gray-50: rgba(121, 125, 125, 0.5);
  --color-gray-60: rgba(222, 234, 220, 0.6);

  /* System */
  --color-error: #952f2f;

  /* Typography */
  --font-heading: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout / grid */
  --container-max: 1440px;
  --container-pad: 32px;   /* content-width side gutter (= Elementor container padding) */
  --section-gap: 120px;    /* legacy alias of --sp-120 */
  --grid-gap: 8px;         /* gap between grid cards (Figma cards use 8px) */
  --grid-gap-lg: 32px;     /* wider gap between feature columns */

  /* Spacing scale (design tokens) */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-28: 28px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-100: 100px;
  --sp-120: 120px;

  /* Card / block inner padding tokens */
  --card-pad: 16px;
  --card-pad-x: 32px;

  /* Hairline / border tokens */
  --hairline: 1px solid var(--color-blue-10);
  --hairline-dark: 1px solid var(--color-night);
}

/* Tablet / mobile token overrides */
@media (max-width: 1024px) { :root { --container-pad: 40px; --sp-120: 80px; --sp-100: 64px; --sp-80: 56px; } }
@media (max-width: 768px)  { :root { --container-pad: 16px; --sp-120: 56px; --sp-100: 48px; --sp-80: 40px; --sp-64: 40px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.375;
  color: var(--color-night);
  background-color: var(--color-almost-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

/* ---------- Typography scale ---------- */
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-night);
}

.h1 { font-size: 84px; line-height: 0.9; letter-spacing: -1.5px; }
.h2 { font-size: 62px; line-height: 0.9; letter-spacing: -1.5px; }
.h3 { font-size: 40px; line-height: 1;   letter-spacing: -1px; }
.h4 { font-size: 28px; line-height: 1;   letter-spacing: -1px; }
.h5 { font-size: 24px; line-height: 1;   letter-spacing: -1px; }
.h6 { font-size: 20px; line-height: 1.1; letter-spacing: -1px; }

.p1 { font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.375; }
.p2 { font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.571; }
.p3 { font-family: var(--font-body); font-weight: 500; font-size: 13px; line-height: 1.23; }
.p4 { font-family: var(--font-body); font-weight: 400; font-size: 12px; line-height: 1.333; }

.tag  { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 16px; line-height: 1.25; }
.tag2 { font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 14px; line-height: 1.43; }

.link-text { font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.43; }

/* ==========================================================================
   Grid system  (Elementor-style: container → 12-col grid → columns)
   One container width + one 12-col grid shared by every block, so vertical
   column lines line up across all sections and pages.
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* 12-column grid. Gutterless by default so column lines are identical
   everywhere; opt into gaps with .grid--gap / .grid--gap-lg. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 0;
  row-gap: 0;
}
.grid--gap    { column-gap: var(--grid-gap); }
.grid--gap-lg { column-gap: var(--grid-gap-lg); }

/* Column spans */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }
/* Start position helpers (for right-aligned content blocks) */
.start-5 { grid-column-start: 5; }
.start-4 { grid-column-start: 4; }

/* Canonical label(4) / content(8) split used by most sections */
.split { display: grid; grid-template-columns: 4fr 8fr; column-gap: 0; }

/* Grid/flex items must be allowed to shrink below their content's intrinsic
   size, otherwise a fixed-width child forces the track wider than the
   viewport and the layout breaks on tablet/mobile. */
.grid > *,
.split > *,
.capabilities__inner > *, .standards__head > *, .sol-grid-head > *,
.syntetika__inner > *, .company-band__inner > *, .ri__head > *,
.publib__inner > *,
.scomplex__head > *, .scomplex__grid > *,
.careers__head > *, .careers__roles > *, .audience__head > *,
.enquiry__inner > *, .offices__inner > *,
.strat__head > *, .strat__subnav > *, .strat__body > *,
.reqdoc__inner > *, .lblsec__inner > *, .statsrow > *,
.onchain__cols > *, .onchain-prow > *, .media__grid > *,
.principles__grid > *, .ri__cols > *, .risk-cols > *,
.site-footer__grid > *, .research__news-form > *,
.ir-contact__form > * { min-width: 0; }

/* Section vertical rhythm */
.section-y    { padding-top: var(--sp-120); padding-bottom: var(--sp-120); }
.section-y-sm { padding-top: var(--sp-80);  padding-bottom: var(--sp-80); }

/* Vertical stacks (replace ad-hoc gaps) */
.stack   { display: flex; flex-direction: column; }
.stack-4  { gap: var(--sp-4); }
.stack-8  { gap: var(--sp-8); }
.stack-16 { gap: var(--sp-16); }
.stack-20 { gap: var(--sp-20); }
.stack-24 { gap: var(--sp-24); }
.stack-40 { gap: var(--sp-40); }
.stack-64 { gap: var(--sp-64); }
.stack-80 { gap: var(--sp-80); }

.section { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }

/* Collapse grid to a single column on tablet & below */
@media (max-width: 992px) {
  .grid, .split { grid-template-columns: 1fr; }
  .grid > [class*="col-"] { grid-column: auto; }
  .split { row-gap: var(--sp-32); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn--light {
  background-color: var(--color-almost-white);
  color: var(--color-night);
}
.btn--light:hover { color: var(--color-blue-50); }

.btn--dark {
  background-color: var(--color-night);
  color: var(--color-almost-white);
}
.btn--dark:hover { background-color: var(--color-deep-blue); }

.btn--ghost {
  background-color: transparent;
  border-color: var(--color-gray-50);
  color: var(--color-matcha);
}
.btn--ghost:hover {
  border-color: var(--color-gray-40);
  color: var(--color-almost-white);
}

.btn--ghost-dark {
  background-color: transparent;
  border-color: var(--color-blue-40);
  color: var(--color-night);
}
.btn--ghost-dark:hover {
  border-color: var(--color-night);
}

.btn--full { width: 100%; }

/* ---------- Text link ---------- */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-night);
  transition: opacity 0.2s ease;
}
.link:hover { text-decoration: underline; text-underline-position: from-font; }
.link--light { color: var(--color-almost-white); }

/* ---------- Utility ---------- */
.u-italic { font-style: italic; }
.text-center { text-align: center; }
.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;
}

/* ==========================================================================
   Logo
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-night);
}
.logo__mark { display: inline-flex; width: 24px; height: 24px; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__word {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 1.2px;
  color: var(--color-night);
  text-transform: uppercase;
}
.logo--light { color: var(--color-almost-white); }
.logo--light .logo__word { color: var(--color-almost-white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-almost-white);
  border-bottom: 1px solid var(--color-green-10);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-nav__list > li > a,
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: var(--color-green-50);
  transition: color 0.2s ease;
}
.site-nav__list > li > a:hover,
.site-nav__toggle:hover { color: var(--color-forest); }
.site-nav__caret { width: 7px; height: 4px; transition: transform 0.2s ease; }
.site-nav__list > li { position: relative; }
.has-dropdown:hover .site-nav__caret,
.has-dropdown:focus-within .site-nav__caret { transform: rotate(180deg); }

/* Desktop dropdown menu */
/* Dropdown is a panel: a section label, a two-up grid of titled items with
   a grey hover and a trailing arrow, then a footer link (Figma 421:6456). */
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 6px);
  width: 640px; background: var(--color-almost-white);
  box-shadow: 0 16px 40px rgba(23, 34, 58, 0.1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 130;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.dropdown__label {
  border-top: 1px solid var(--color-green-10); padding: 12px 16px;
  font-family: var(--font-heading); font-size: 13px; line-height: 16px;
  color: var(--color-green-50); opacity: 0.6;
}
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding-right: 16px; }
.dropdown__item { display: flex; flex-direction: column; gap: 4px; padding: 16px; transition: background-color 0.2s ease; }
.dropdown__item:hover { background: var(--color-green-5); }
.dropdown__item-title { font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-forest); white-space: nowrap; }
.dropdown__item-title span { opacity: 0; transition: opacity 0.2s ease; }
.dropdown__item:hover .dropdown__item-title span { opacity: 1; }
.dropdown__item-desc { max-width: 269px; font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--color-forest); opacity: 0.5; }
.dropdown__more {
  position: relative; display: flex; align-items: center; height: 52px;
  border-top: 1px solid var(--color-green-10); border-bottom: 1px solid var(--color-green-10);
  padding: 4px 32px 4px 16px;
  font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-forest);
}
.dropdown__more::after { content: ""; position: absolute; right: -10px; top: -1px; width: 1px; height: 30px; background: var(--color-forest); }
.dropdown li a:hover { color: var(--color-forest); background-color: var(--color-green-5); }

.site-header__actions {
  display: flex;
  align-items: center;
}
.header-login,
.header-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: var(--color-green-50);
  padding: 10px 0;
  transition: color 0.2s ease;
}
.header-login { padding-right: 16px; border-right: 1px solid var(--color-green-50); }
.header-cta { padding-left: 16px; }
.header-login:hover,
.header-cta:hover { color: var(--color-forest); }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--color-night);
  position: relative;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background-color: var(--color-night);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ==========================================================================
   Mobile menu (slide-in panel)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--color-almost-white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-blue-10);
}
.mobile-menu__close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu__list { flex: 1; padding: 0 20px; }
.mobile-menu__list > li {
  border-bottom: 1px solid var(--color-blue-10);
}
/* Mobile rows: 52px, Newsreader 28, arrow for leaf pages, plus/minus for
   sections that expand (Figma 272:1210 / 272:1350) */
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 52px;
  padding: 0 var(--container-pad);
  border-bottom: 1px solid var(--color-green-10);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.28px;
  color: var(--color-forest);
}
.mobile-menu__link > span { flex-shrink: 0; font-size: 28px; line-height: 1; }
.mobile-menu__bottom {
  display: flex;
  margin-top: 16px;
  border-bottom: 1px solid var(--color-forest);
}
.mobile-menu__bottom a {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  color: var(--color-forest);
}
.mobile-menu__bottom a + a { border-left: 1px solid var(--color-forest); }
body.menu-open { overflow: hidden; }

/* Mobile menu expandable sections */
.mm-toggle { text-align: left; background: none; border: none; cursor: pointer; }
.mm-icon { position: relative; flex-shrink: 0; width: 24px; height: 24px; color: var(--color-forest); }
.mm-icon::before, .mm-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: currentColor; transition: opacity 0.2s ease;
}
.mm-icon::before { width: 14px; height: 1.5px; }
.mm-icon::after { width: 1.5px; height: 14px; }
.mm-item.is-open .mm-icon::after { opacity: 0; }
/* the open row grows and drops its rule onto the expanded box instead */
.mm-item.is-open .mm-toggle { height: auto; padding-top: 12px; padding-bottom: 0; border-bottom: none; }
.mm-item.is-open { border-bottom: 1px solid var(--color-green-10); }
.mm-sub { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.mm-item.is-open .mm-sub { max-height: 320px; }
.mm-sub__inner { display: flex; flex-direction: column; gap: 16px; padding: 24px var(--container-pad) 24px; }
.mm-sub a {
  font-family: var(--font-body); font-size: 14px; line-height: 22px;
  color: var(--color-green-50); transition: color 0.2s ease;
}
.mm-sub a:hover { color: var(--color-forest); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-night);
  color: var(--color-almost-white);
  padding: 60px 0 28px;
}
.site-footer--forest { background-color: var(--color-forest); }
.site-footer--deep-blue { background-color: var(--color-deep-blue); }
.site-footer--light { background-color: var(--color-almost-white); color: var(--color-night); }
/* light-green footer (matches the Offices block) — forest logo/text, green muted tones */
.site-footer--light-green { background-color: var(--color-light-green); color: var(--color-forest); border-top: 1px solid var(--color-green-10); }
.site-footer--light-green .logo--light,
.site-footer--light-green .logo--light .logo__word { color: var(--color-forest); }
.site-footer--light-green .footer-brand__tagline { color: var(--color-green-50); }
.site-footer--light-green .footer-col__title { color: var(--color-green-50); }
.site-footer--light-green .footer-col__list a { color: var(--color-forest); }
.site-footer--light-green .footer-social a { color: var(--color-green-50); }
.site-footer--light-green .site-footer__bottom { border-top-color: var(--color-green-10); color: var(--color-green-50); }
/* light-blue footer (matches the Offices block on contact) — the same
   treatment on navy tokens */
.site-footer--light-blue { background-color: var(--color-light-blue); color: var(--color-night); border-top: 1px solid var(--color-blue-10); }
.site-footer--light-blue .logo--light,
.site-footer--light-blue .logo--light .logo__word { color: var(--color-night); }
.site-footer--light-blue .footer-brand__tagline { color: var(--color-blue-50); }
.site-footer--light-blue .footer-col__title { color: var(--color-blue-50); }
.site-footer--light-blue .footer-col__list a { color: var(--color-night); }
.site-footer--light-blue .footer-social a { color: var(--color-blue-50); }
.site-footer--light-blue .site-footer__bottom { border-top-color: var(--color-blue-10); color: var(--color-blue-50); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.footer-brand__tagline {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-gray-40);
  max-width: 220px;
}
.site-footer--light .footer-brand__tagline { color: var(--color-blue-50); }

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-gray-40);
  margin-bottom: 18px;
}
.site-footer--light .footer-col__title { color: var(--color-blue-50); }
.footer-col__list li + li { margin-top: 12px; }
.footer-col__list a {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-almost-white);
  transition: opacity 0.2s ease;
}
.site-footer--light .footer-col__list a { color: var(--color-night); }
.footer-col__list a:hover { opacity: 0.6; }

/* desktop: social lives under the tagline inside .footer-brand.
   mobile: a duplicate (.footer-social--mobile) shows after the columns. */
.footer-social { display: flex; gap: 14px; margin-top: 28px; }
.footer-social--mobile { display: none; }
.footer-social a { display: inline-flex; width: 20px; height: 20px; color: var(--color-almost-white); }
.site-footer--light .footer-social a { color: var(--color-night); }
.footer-social a:hover { opacity: 0.6; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-10);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-gray-40);
}
.site-footer--light .site-footer__bottom {
  border-top-color: var(--color-blue-10);
  color: var(--color-blue-50);
}
.site-footer__bottom a { color: inherit; }
.site-footer__bottom a:hover { opacity: 0.7; }
/* Wider legal row for the listed-company footer (name/exchange/adviser on
   the left, policy links on the right), instead of the plain 2-item row. */
.site-footer__bottom--wide { justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
.site-footer__bottom--wide .footer-legal,
.site-footer__bottom--wide .footer-policies { display: flex; flex-wrap: wrap; gap: 24px; }

/* ==========================================================================
   Form elements
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-blue-50);
}
.field__control {
  width: 100%;
  height: 44px;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-night);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-blue-10);
  transition: border-color 0.2s ease;
}
.field__control::placeholder { color: var(--color-blue-40); }
.field__control:focus { outline: none; border-bottom-color: var(--color-night); }
textarea.field__control { height: auto; min-height: 88px; resize: vertical; }
.field__hint { font-family: var(--font-body); font-size: 12px; color: var(--color-blue-40); }

/* Dark form context (Night background) */
.form--dark .field__label { color: var(--color-gray-40); }
.form--dark .field__control {
  color: var(--color-almost-white);
  border-bottom-color: var(--color-gray-10);
}
.form--dark .field__control::placeholder { color: var(--color-gray-40); }
.form--dark .field__control:focus { border-bottom-color: var(--color-almost-white); }

select.field__control { appearance: none; -webkit-appearance: none; cursor: pointer; }

/* ==========================================================================
   Cookies banner
   ========================================================================== */
/* Cookie notice — a 343px light card, not a dark bar (Figma 1051:27838) */
.cookies {
  position: fixed; left: 24px; bottom: 24px; z-index: 300;
  width: 343px; max-width: calc(100% - 32px);
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px; overflow: hidden;
  background-color: var(--color-almost-white); color: var(--color-forest);
  box-shadow: 0 16px 40px rgba(23, 34, 58, 0.12);
}
.cookies__group { display: flex; flex-direction: column; gap: 4px; }
.cookies__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookies__title { font-family: var(--font-heading); font-weight: 400; font-size: 20px; line-height: 22px; letter-spacing: -0.2px; color: var(--color-forest); }
.cookies__close { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--color-forest); }
.cookies__text { max-width: 283px; font-family: var(--font-body); font-size: 12px; line-height: 16px; color: var(--color-green-50); }
.cookies__accept { align-self: flex-start; padding: 0; font-family: var(--font-body); font-size: 14px; line-height: 20px; color: var(--color-forest); text-decoration: underline; text-underline-position: from-font; }
.cookies.is-hidden { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --container-pad: 40px; --section-gap: 80px; }
  .h1 { font-size: 64px; }
  .h2 { font-size: 48px; }
  .h3 { font-size: 34px; }
  /* footer: brand full width, menu 2x2, social row below the columns */
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .footer-social { display: none; }        /* hide desktop copy */
  .footer-social--mobile { display: flex; grid-column: 1 / -1; margin-top: 0; }
}

/* Switch to the burger menu once the centered nav no longer fits (tablet). */
@media (max-width: 992px) {
  .site-nav,
  .site-header__actions { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 768px) {
  :root { --container-pad: 16px; --section-gap: 56px; }
  .h1 { font-size: 44px; letter-spacing: -1px; }
  .h2 { font-size: 36px; letter-spacing: -1px; }
  .h3 { font-size: 28px; }
  .h4 { font-size: 24px; }
  .site-footer__grid { gap: 32px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer__bottom--wide .footer-legal,
  .site-footer__bottom--wide .footer-policies { flex-direction: column; gap: 8px; }
  .cookies { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
