/* =========================================================
   CASE — Control and Solutions Engineering
   Design system modeled on manganinc.com layout patterns
   ========================================================= */

:root {
  --orange: #ff5f0e;
  --orange-dark: #e04e04;
  --blue: #3b60af;
  --navy: #003263;
  --navy-deep: #00203f;
  --ink: #3a3a3a;
  --ink-soft: #4b4f58;
  --line: #e5e5e5;
  --bg-soft: #f5f5f5;
  --white: #ffffff;

  --font-head: "Barlow", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 32, 63, 0.10);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--orange); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}

.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #d6e0ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.section-head p { color: var(--ink-soft); }
.section--navy .section-head p { color: #b9c7dc; }

.rule {
  width: 60px; height: 4px; background: var(--orange);
  border: 0; margin: 0 auto 1.5rem;
}
.rule--left { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .95rem 1.9rem; border-radius: var(--radius);
  border: 2px solid var(--orange);
  background: var(--orange); color: #fff;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { background: transparent; color: var(--orange); }
.btn--outline:hover { background: var(--orange); color: #fff; }

.read-more {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  display: inline-flex; align-items: center; gap: .4rem;
}
.read-more::after { content: "→"; transition: transform .2s; }
.read-more:hover { color: var(--navy); }
.read-more:hover::after { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep); color: #b9c7dc; font-size: .85rem;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: .5rem 0; flex-wrap: wrap;
}
.topbar a { color: #dfe7f2; }
.topbar a:hover { color: var(--orange); }
.topbar__links { display: flex; gap: 1.5rem; align-items: center; }
.topbar svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; fill: currentColor; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: .75rem; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo svg { width: 46px; height: 46px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 1.85rem; letter-spacing: .06em; }
.logo__tag { white-space: nowrap; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav__item { position: relative; }
.nav__link {
  display: block; padding: 1.9rem .85rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--navy);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--orange); }
.nav__item--has-sub > .nav__link::after {
  content: ""; display: inline-block; margin-left: .35rem; vertical-align: 3px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.subnav {
  list-style: none; margin: 0; padding: .6rem 0;
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border-top: 3px solid var(--orange);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item:hover > .subnav,
.nav__item:focus-within > .subnav,
.nav__item.is-open > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: .55rem 1.25rem; color: var(--ink); font-size: .95rem; }
.subnav a:hover { background: var(--bg-soft); color: var(--orange); }

.nav__cta { margin-left: .75rem; padding: .8rem 1.3rem; white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(110deg, rgba(0,32,63,.96) 0%, rgba(0,50,99,.88) 55%, rgba(59,96,175,.70) 100%),
    url("../img/hero-pattern.svg") center/cover no-repeat, var(--navy);
  padding: 140px 0 150px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 60px solid rgba(255,95,14,.12);
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 720px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.2rem; color: #d6e0ee; max-width: 620px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.page-hero {
  background:
    linear-gradient(110deg, rgba(0,32,63,.95), rgba(0,50,99,.85)),
    url("../img/hero-pattern.svg") center/cover no-repeat, var(--navy);
  color: #fff; padding: 90px 0 80px;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d6e0ee; max-width: 680px; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: #9fb2cd; margin-bottom: 1rem; letter-spacing: .05em; }
.breadcrumb a { color: #dfe7f2; }

/* ---------- Teaser blocks (overlapping hero) ---------- */
.teasers { margin-top: -80px; position: relative; z-index: 2; }
.teasers__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  box-shadow: var(--shadow); background: #fff;
}
.teaser { padding: 2.75rem 2.25rem; border-right: 1px solid var(--line); }
.teaser:last-child { border-right: 0; }
.teaser--accent { background: var(--orange); color: #fff; }
.teaser--accent h2, .teaser--accent h3 { color: #fff; }
.teaser--accent .read-more { color: #fff; }
.teaser--accent .read-more:hover { color: var(--navy); }
.teaser h2, .teaser h3 { font-size: 1.5rem; }
.teaser__icon { width: 52px; height: 52px; margin-bottom: 1.1rem; color: var(--orange); }
.teaser--accent .teaser__icon { color: #fff; }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.split__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--navy);
}
.split__media img, .split__media svg { width: 100%; height: 100%; object-fit: cover; }
.split__badge {
  position: absolute; left: 0; bottom: 0; background: var(--orange); color: #fff;
  padding: 1.25rem 1.75rem; font-family: var(--font-head);
}
.split__badge strong { display: block; font-size: 2.4rem; line-height: 1; }
.split__badge span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--orange)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* ---------- Solution cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media {
  aspect-ratio: 16/10; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; position: relative;
}
.card__media svg { width: 64px; height: 64px; opacity: .95; }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/grid.svg") center/cover; opacity: .18;
}
.card__body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 600; font-family: var(--font-head); }
.card__body h3 { margin-top: .35rem; }
.card__body p { color: var(--ink-soft); flex: 1; }

/* ---------- Numbered cards (01–04) ---------- */
.numbered { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.numbered__item {
  padding: 2.5rem 2rem; border-left: 1px solid rgba(255,255,255,.12);
  transition: background .25s;
}
.numbered__item:first-child { border-left: 0; }
.numbered__item:hover { background: rgba(255,255,255,.05); }
.numbered__num {
  font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange); margin-bottom: 1rem;
}
.numbered__item h3 { color: #fff; }
.numbered__item p { color: #b9c7dc; font-size: .96rem; }
.numbered__item .read-more { color: var(--orange); }
.numbered__item .read-more:hover { color: #fff; }

/* ---------- Competence / partner strip ---------- */
.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.badge {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center; font-family: var(--font-head);
  font-weight: 600; color: var(--navy); font-size: .95rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.badge svg { width: 36px; height: 36px; color: var(--blue); }

/* ---------- Stats ---------- */
.stats {
  background:
    linear-gradient(rgba(255,95,14,.94), rgba(224,78,4,.94)),
    url("../img/grid.svg") center/cover;
  color: #fff; padding: 80px 0;
}
.stats h2 { color: #fff; }
.stats .rule { background: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat__value { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.stat__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; margin-top: .6rem; opacity: .95; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.quote {
  background: #fff; padding: 2.5rem; border-radius: var(--radius); position: relative;
  box-shadow: 0 4px 18px rgba(0,0,0,.06); border-top: 4px solid var(--orange);
}
.quote::before {
  content: "\201C"; position: absolute; top: .5rem; right: 1.5rem;
  font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: rgba(59,96,175,.14);
}
.quote blockquote { margin: 0 0 1.5rem; font-size: 1.08rem; font-style: italic; color: var(--ink); }
.quote cite { font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--navy); display: block; }
.quote cite span { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); font-family: var(--font-body); }

/* ---------- News ---------- */
.news__date {
  display: inline-block; background: var(--orange); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; padding: .3rem .7rem; text-transform: uppercase; margin-bottom: .8rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 64px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta-band p { margin: .4rem 0 0; color: #b9c7dc; }

/* ---------- Detail sections (inner pages) ---------- */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: start; }
.sidebar {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  background: var(--bg-soft); border-radius: var(--radius); padding: 1.75rem;
}
.sidebar h4 { text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li a {
  display: block; padding: .65rem .9rem; border-left: 3px solid transparent;
  color: var(--navy); font-weight: 500;
}
.sidebar li a:hover { border-left-color: var(--orange); background: #fff; color: var(--orange); }
.sidebar .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }

.block { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.block__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.block__icon {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,95,14,.1); color: var(--orange); display: grid; place-items: center;
}
.block__icon svg { width: 30px; height: 30px; }
.block__head h2 { margin: 0; font-size: 1.8rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }

/* ---------- Credential callout ---------- */
.credential {
  display: flex; gap: 1.5rem; align-items: center; margin-top: 1.75rem;
  background: var(--navy); color: #d6e0ee; border-left: 5px solid var(--orange);
  border-radius: var(--radius); padding: 1.75rem 2rem;
}
.credential h3 { color: #fff; margin-bottom: .3rem; }
.credential p { margin: 0; }
.credential__icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,95,14,.15); color: var(--orange); display: grid; place-items: center;
}
.credential__icon svg { width: 34px; height: 34px; }
@media (max-width: 640px) { .credential { flex-direction: column; align-items: flex-start; } }

/* ---------- Values / team ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.duo .value h3 { margin-bottom: .4rem; }
.duo .checklist { margin-bottom: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.value { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.value svg { width: 44px; height: 44px; color: var(--orange); margin-bottom: 1rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--orange); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -10px; top: .3rem; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; border: 3px solid var(--orange);
}
.timeline strong { font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; display: block; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.contact__info { background: var(--navy); color: #d6e0ee; padding: 2.5rem; border-radius: var(--radius); }
.contact__info h3 { color: #fff; }
.contact__row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact__row svg { flex: none; width: 24px; height: 24px; color: var(--orange); margin-top: .2rem; }
.contact__row a { color: #fff; }
.contact__row a:hover { color: var(--orange); }
.contact__row strong { display: block; color: #fff; font-family: var(--font-head); letter-spacing: .05em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form__field { display: flex; flex-direction: column; gap: .4rem; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); padding: .85rem 1rem;
  border: 1px solid #cfd6df; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,96,175,.18);
}
.form textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: .85rem; color: var(--ink-soft); grid-column: 1 / -1; margin: 0; }
.form__status { grid-column: 1 / -1; margin: 0; font-weight: 500; }
.form__status.is-ok { color: #1c7c3a; }
.form__status.is-err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb2cd; font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 70px 0 50px; }
.site-footer h4 {
  color: #fff; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem;
  padding-bottom: .8rem; margin-bottom: 1.1rem; position: relative;
}
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #c8d4e5; }
.site-footer a:hover { color: var(--orange); }
.site-footer .logo { color: #fff; margin-bottom: 1.25rem; }
.site-footer .logo__tag { color: #9fb2cd; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.footer__social a:hover { background: var(--orange); color: #fff; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; font-size: .85rem;
}
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--navy-deep); color: #d6e0ee;
  border-top: 4px solid var(--orange); box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; padding: 1.25rem 0; }
.cookie-banner__text { margin: 0; font-size: .95rem; max-width: 780px; }
.cookie-banner__text strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .2rem; }
.cookie-banner__text a { color: var(--orange); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .75rem; flex: none; }
.cookie-banner .btn { padding: .75rem 1.3rem; font-size: .85rem; }
.has-cookie-banner .to-top { bottom: 8.5rem; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: #c8d4e5; cursor: pointer;
}
.link-btn:hover { color: var(--orange); }
@media (max-width: 760px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
  .has-cookie-banner .to-top { bottom: 13rem; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav__link { padding-inline: .6rem; font-size: .92rem; }
}
@media (max-width: 1100px) {
  .badges { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 2rem;
    overflow-y: auto; transform: translateX(100%); transition: transform .3s ease;
  }
  .nav-open .nav { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 1rem .25rem; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
  .subnav {
    position: static; box-shadow: none; border-top: 0; min-width: 0;
    opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 .5rem .75rem;
  }
  .nav__item:hover > .subnav, .nav__item:focus-within > .subnav { display: none; }
  .nav__item.is-open > .subnav { display: block; }
  .nav__cta { margin: 1.25rem 0 0; justify-content: center; }

}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .teasers__grid, .cards, .values { grid-template-columns: 1fr 1fr; }
  .teaser { border-right: 0; border-bottom: 1px solid var(--line); }
  .split, .contact, .detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidebar { position: static; }
  .numbered, .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .numbered__item:nth-child(3) { border-left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 130px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .topbar__hide-sm { display: none; }
  .teasers__grid, .cards, .cards--4, .values, .duo, .numbered, .two-col, .form { grid-template-columns: 1fr; }
  .numbered__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* Media panels inside navy sections: lift off the background */
.section--navy .split__media { background: var(--blue); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 20px 40px rgba(0,0,0,.25); }
.section--navy .split__media img { opacity: .55; }
