/* ==========================================================================
   Abelmann Feinkost — Stylesheet
   Rebuilt from the original TYPO3 theme (Wayback snapshot 2025-04-16).
   All corporate colours are declared once in :root — change them there.
   No external requests: fonts are self-hosted, all icons are inline SVG.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Roboto Condensed';
  src: url('../fonts/roboto-condensed-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('../fonts/roboto-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Corporate identity tokens -------------------------------------------- */

:root {
  /* Colours taken from the original stylesheet */
  --navy: #002138;
  --navy-mid: #002a5f;
  --navy-light: #003961;
  --accent: #6cc9ef;
  --accent-deep: #2c9ec9;   /* darkened accent — needed for text on white */
  --topbar: #5e676d;
  --footer: #1d1d20;
  --red: #9d1022;

  --white: #fff;
  --paper: #f4f6f8;
  --line: #d9dee3;
  --ink: #1f2a31;
  --ink-soft: #5e676d;

  /* Type */
  --font: 'Roboto Condensed', 'Arial Narrow', 'Liberation Sans Narrow', system-ui, sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band-space: clamp(3rem, 7vw, 5.5rem);

  --radius: 3px;
  --shadow: 0 2px 4px rgba(0, 33, 56, .06), 0 12px 32px rgba(0, 33, 56, .10);
  --shadow-lift: 0 4px 8px rgba(0, 33, 56, .10), 0 20px 48px rgba(0, 33, 56, .18);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--navy-mid); }

/* One visible focus style for the whole site. */
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--navy);
  padding: .75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: .5rem;
  top: .5rem;
}

/* --- Typography ----------------------------------------------------------- */

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .005em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 1.1rem + 3.2vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: .01em;
}

h2 {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  text-transform: uppercase;
}

h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
  line-height: 1.7;
}

.center { text-align: center; }

/* Accent rule under headings — the original marked sections this way. */
.rule::after {
  content: '';
  display: block;
  width: 68px;
  height: 3px;
  background: var(--accent);
  margin: 1.1rem 0 0;
}

.rule.center::after { margin-inline: auto; }

.claim {
  font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy-mid);
  line-height: 1.35;
}

/* --- Top bar -------------------------------------------------------------- */

.topbar {
  background: var(--topbar);
  color: var(--white);
  font-size: .95rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.75rem;
  min-height: 42px;
  padding-block: .35rem;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.topbar a:hover { color: var(--accent); }

.topbar__social {
  margin-left: auto;
  display: flex;
  gap: .85rem;
}

.topbar__social a {
  width: 26px;
  height: 26px;
  justify-content: center;
}

.topbar svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
}

/* --- Header --------------------------------------------------------------- */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 60;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: .9rem;
}

.header__logo { flex: none; }

.header__logo img {
  width: clamp(84px, 9vw, 116px);
  height: auto;
  transition: transform .35s var(--ease);
}

.header__logo:hover img { transform: scale(1.04); }

/* --- Desktop navigation --------------------------------------------------- */

.nav { display: none; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.4vw, 1.5rem);
}

.nav > ul > li { position: relative; }

.nav a {
  display: block;
  padding: .7rem .25rem;
  color: var(--navy);
  font-size: clamp(.9rem, .82rem + .2vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .25rem;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav > ul > li > a:hover::after,
.nav > ul > li.is-active > a::after { transform: scaleX(1); }

.nav > ul > li.is-active > a { color: var(--navy-mid); }

/* Shop entry stands out, as in the original */
.nav a.nav__shop {
  background: var(--accent);
  color: var(--navy);
  padding: .6rem 1.1rem;
  border-radius: var(--radius);
  transition: background .25s var(--ease);
}

.nav a.nav__shop::after { display: none; }
.nav a.nav__shop:hover { background: var(--accent-deep); color: var(--white); }

/* --- Mobile navigation ---------------------------------------------------- */

.navtoggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: .7rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
}

.navtoggle__bars {
  position: relative;
  width: 20px;
  height: 14px;
  flex: none;
}

.navtoggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.navtoggle__bars span:nth-child(1) { top: 0; }
.navtoggle__bars span:nth-child(2) { top: 6px; }
.navtoggle__bars span:nth-child(3) { top: 12px; }

.navtoggle[aria-expanded='true'] .navtoggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded='true'] .navtoggle__bars span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded='true'] .navtoggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobilenav {
  display: none;
  background: var(--navy);
  border-top: 3px solid var(--accent);
}

.mobilenav.is-open { display: block; }

.mobilenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobilenav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .95rem var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.mobilenav a:hover,
.mobilenav a:focus-visible { background: var(--navy-light); color: var(--accent); }

.mobilenav .is-current > a { color: var(--accent); }

/* --- Hero ----------------------------------------------------------------- */
/* Replaces the original header slider, which was empty in the snapshot. */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

/* Layered maritime depth, built only from gradients — no image files. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(108, 201, 239, .30) 0%, rgba(108, 201, 239, 0) 58%),
    radial-gradient(90% 70% at 8% 100%, rgba(0, 57, 97, .85) 0%, rgba(0, 33, 56, 0) 60%),
    linear-gradient(168deg, #00304f 0%, #002138 55%, #001724 100%);
}

/* Long, slow swell lines. Purely decorative. */
.hero::after {
  content: '';
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 150%;
  z-index: -1;
  background-image:
    repeating-linear-gradient(97deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 74px);
  transform: skewY(-4deg);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.75rem, 7vw, 5rem);
}

/* Sits level with the eyebrow line rather than floating mid-block. */
.hero__mark {
  width: clamp(120px, 20vw, 190px);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}

@media (min-width: 860px) {
  .hero__mark { margin-top: -.35rem; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: .85rem;
}

.hero__text {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem);
  color: #d3e3ec;
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* Certification strip */
.hero__certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

/* Both labels bring their own colour (MSC blue, ASC teal) and are set on a
   white plate: the MSC blue would otherwise sink into the dark hero, and the
   MSC trademark rules ask for a background it clearly stands out against.
   Sized by height alone, so the upright MSC label and the landscape ASC one
   line up -- deliberately small here, the large version lives on Über uns. */
.hero__certs img {
  height: 64px;
  width: auto;
  background: var(--white);
  padding: 6px 8px;
  border-radius: 2px;
}

@media (max-width: 599px) {
  .hero__certs img { height: 52px; }
}

/* --- Buttons -------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--accent);
  color: var(--navy);
  padding: .8rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}

.button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.button--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}

.button--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.button--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.button--navy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}

.button--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.button--outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* --- Bands ---------------------------------------------------------------- */
/* The original stacked full-width colour bands: white, navy, navy+image. */

.band { padding-block: var(--band-space); }

.band--white { background: var(--white); }
.band--paper { background: var(--paper); }

.band--navy {
  background: var(--navy);
  color: var(--white);
}

.band--navy h2,
.band--navy h3 { color: var(--white); }

/* Stands in for the lost bg-blue-min.jpg background image. */
.band--deep {
  color: var(--white);
  background:
    radial-gradient(100% 80% at 15% 0%, rgba(108, 201, 239, .18) 0%, rgba(108, 201, 239, 0) 55%),
    linear-gradient(160deg, #003961 0%, #002a5f 45%, #002138 100%);
}

.band--deep h2 { color: var(--white); }

.band__intro {
  max-width: 70ch;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.band--navy .band__intro p,
.band--deep .band__intro p { color: #cfe0ea; }

/* --- Company teasers ------------------------------------------------------ */

.companies {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.company {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.company:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* White, not grey: both company logos are PNGs on a white ground, so a tinted
   panel would frame them with a visible white box. */
.company__figure {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 190px;
}

.company__figure img {
  max-height: 148px;
  width: auto;
  object-fit: contain;
}

.company__body {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.company__body h3 {
  color: var(--navy);
  margin-bottom: .75rem;
}

.company__body p { color: var(--ink-soft); }

.company__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

/* Founding year, sits directly under the company name. */
.company__since {
  margin-top: -.35rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-deep);
}

/* Only one company remains, so the two-column grid would leave the single
   card stranded at half width. Doubled class beats the .companies rule in
   the 860px media query regardless of source order. */
.companies.companies--single {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-inline: auto;
}

/* --- Certifications ------------------------------------------------------- */
/* MSC and ASC supply labels with very different proportions -- MSC upright,
   ASC landscape. Both are boxed to the same height and capped in width, so
   they carry comparable visual weight instead of one dwarfing the other. */

.certs {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 880px;
  margin-inline: auto;
}

.cert {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.cert__logo {
  display: grid;
  place-items: center;
  min-height: 130px;
  margin-bottom: 1.25rem;
}

.cert__logo img {
  width: auto;
  height: auto;
  max-height: 120px;
  max-width: 210px;
}

.cert h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.cert p {
  color: var(--ink-soft);
  font-size: .95rem;
}

/* Chain of Custody code. Reads as a registration number, not as prose:
   spaced-out capitals, a notch smaller than the description above it. */
.cert__code {
  margin-top: .75rem;
  color: var(--navy-mid);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
}

/* --- Job accordion (native <details>, no JavaScript) --------------------- */

.job {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: .85rem;
}

.job[open] { box-shadow: var(--shadow); }

.job summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 3vw, 1.6rem);
  font-size: clamp(1.02rem, .97rem + .3vw, 1.18rem);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.job summary::-webkit-details-marker { display: none; }

/* Plus/minus indicator: one element, circle plus two bars drawn as
   background layers. The vertical bar collapses to zero when open, so the
   plus turns into a minus. */
.job summary::after {
  content: '';
  flex: none;
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--white), var(--white)),
    linear-gradient(var(--white), var(--white));
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 10px 2px, 2px 10px;
  transition: background-color .25s var(--ease), background-size .3s var(--ease),
              transform .3s var(--ease);
}

.job[open] summary::after {
  background-size: 10px 2px, 2px 0;
  transform: rotate(180deg);
}

.job summary:hover { color: var(--accent-deep); }
.job summary:hover::after { background-color: var(--accent-deep); }

.job__body {
  padding: 0 clamp(1rem, 3vw, 1.6rem) 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.job__body h4 {
  color: var(--navy-mid);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  margin: 1.25rem 0 .6rem;
}

.job__body h4:first-child { margin-top: 0; }

.job__body ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.job__body li { margin-bottom: .4rem; }

/* --- Tiles (shop / contact / career) -------------------------------------- */

.tiles {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.tile {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  text-decoration: none;
  color: var(--white);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

/* Only linked tiles react to hover — the certification tiles are plain divs. */
a.tile:hover {
  background: rgba(255, 255, 255, .13);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.tile__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
  fill: var(--accent);
}

.tile h3 {
  color: var(--white);
  margin-bottom: .5rem;
}

.tile p {
  color: #cfe0ea;
  margin-bottom: 1.25rem;
}

.tile__more {
  margin-top: auto;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.tile__more svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform .25s var(--ease);
}

.tile:hover .tile__more svg { transform: translateX(4px); }

/* Highlighted shop tile */
.tile--shop {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}

.tile--shop h3 { color: var(--navy); }
.tile--shop p { color: rgba(0, 33, 56, .78); }
.tile--shop .tile__icon { fill: var(--navy); }
.tile--shop .tile__more { color: var(--navy); }

a.tile--shop:hover {
  background: var(--white);
  border-color: var(--white);
}

/* Facts strip following the tiles needs breathing room. */
.tiles + .facts { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* --- Facts strip ---------------------------------------------------------- */

.facts {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

.fact__value {
  display: block;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.fact__label {
  display: block;
  margin-top: .6rem;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #cfe0ea;
}

/* --- Page header (subpages) ---------------------------------------------- */

.pagehead {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pagehead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(108, 201, 239, .22) 0%, rgba(108, 201, 239, 0) 60%),
    linear-gradient(160deg, #00304f 0%, #002138 100%);
}

.pagehead h1 {
  color: var(--white);
  margin-bottom: 0;
}

.pagehead p {
  margin-top: .9rem;
  margin-bottom: 0;
  color: #cfe0ea;
  max-width: 60ch;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .6);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb li + li::before {
  content: '›';
  margin-right: .4rem;
  color: rgba(255, 255, 255, .45);
}

/* --- Prose (legal and text pages) ---------------------------------------- */

.prose h2 {
  color: var(--navy);
  margin-top: 2.5rem;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem);
}

.prose h3 {
  color: var(--navy-mid);
  margin-top: 1.9rem;
}

.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose ul,
.prose ol { padding-left: 1.35rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }

.prose a { color: var(--accent-deep); }
.prose a:hover { color: var(--navy); }

.prose dl { margin: 0 0 1.2em; }
.prose dt { font-weight: 700; color: var(--navy); margin-top: 1rem; }
.prose dd { margin: 0 0 .35rem; }

/* --- Info card / contact -------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: 0 1px 2px rgba(0, 33, 56, .05);
}

.card h2,
.card h3 { color: var(--navy); }

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.contactlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contactlist li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}

.contactlist li:last-child { border-bottom: 0; }

.contactlist svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-deep);
  flex: none;
  margin-top: .28rem;
}

.contactlist a {
  color: var(--navy-mid);
  font-weight: 700;
  text-decoration: none;
}

.contactlist a:hover { color: var(--accent-deep); text-decoration: underline; }

.contactlist span { color: var(--ink-soft); }

/* Variant for the dark bands (career page). */
.contactlist--onDark li { border-bottom-color: rgba(255, 255, 255, .16); }
.contactlist--onDark svg { fill: var(--accent); }
.contactlist--onDark span { color: #cfe0ea; }
.contactlist--onDark a { color: var(--accent); }
.contactlist--onDark a:hover { color: var(--white); }

address {
  font-style: normal;
  line-height: 1.7;
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  background: var(--footer);
  color: #c8ced3;
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 0;
  font-size: .97rem;
}

.footer__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.footer h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer a {
  color: #c8ced3;
  text-decoration: none;
}

.footer a:hover { color: var(--accent); }

.footer__brand img {
  width: 92px;
  margin-bottom: 1.25rem;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li { margin-bottom: .55rem; }

.footer__social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__social a:hover svg { fill: var(--navy); }

.footer__bar {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  font-size: .9rem;
  color: #98a1a8;
}

.footer__bar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.35rem;
  margin: 0;
  padding: 0;
}

/* --- Back to top ---------------------------------------------------------- */

.totop {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .25s var(--ease);
}

.totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.totop:hover { background: var(--accent); color: var(--navy); }

.totop svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Entrance animation --------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal .7s var(--ease) forwards;
  }

  .reveal:nth-child(2) { animation-delay: .08s; }
  .reveal:nth-child(3) { animation-delay: .16s; }
  .reveal:nth-child(4) { animation-delay: .24s; }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Breakpoints ---------------------------------------------------------- */

@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .companies { grid-template-columns: repeat(2, 1fr); }

  /* The lone company card reads as a wide panel: logo beside the text
     rather than a tall stack on an otherwise empty band. */
  .companies--single .company { flex-direction: row; }
  .companies--single .company__figure {
    flex: 0 0 40%;
    border-bottom: 0;
    border-right: 3px solid var(--accent);
  }

  /* The panel gives the logo a full-height column -- use it. */
  .companies--single .company__figure img { max-height: 200px; }
  .split { grid-template-columns: 1.15fr .85fr; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .hero__inner { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
}

@media (min-width: 1000px) {
  .nav { display: block; }
  .navbar { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile toggle bar sits below the header until the desktop nav appears. */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: .75rem;
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  .topbar, .navbar, .mobilenav, .totop, .hero::after { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .band--navy, .band--deep, .pagehead, .footer {
    background: #fff !important;
    color: #000 !important;
  }
  .hero h1, .pagehead h1, .band--navy h2, .band--deep h2, .footer h2 { color: #000 !important; }
  a { text-decoration: underline; }
}
