/*
Theme Name: Marmoris
Theme URI: https://marmoris.nl
Author: Marmoris
Description: Custom theme for Marmoris, specialist Earth Observation for the Blue Economy. Self-contained: each route renders a baked-in design with real photos, and automatically uses the WordPress page content instead when a page holds real block content.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: marmoris
*/

/* =========================================================
   Marmoris — Earth Observation for the Blue Economy
   Design system. Steel blue primary, coral accent (aquaculture),
   deep navy hero sections. Clean, scientific, lots of white space.
   ========================================================= */

:root {
  /* Brand */
  --steel: #3F79B3;
  --steel-deep: #2C5C8F;
  --navy: #0B2438;
  --navy-2: #0E2C45;
  --coral: #E06C57;
  --coral-deep: #C7553F;
  --teal: #2E8B82;

  /* Neutrals */
  --ink: #15212E;
  --body: #3D4D5C;
  --muted: #6B7C8C;
  --line: #E4EAF0;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FB;
  --bg-mist: #EEF3F8;

  /* Type */
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -22px rgba(11, 36, 56, 0.28);
  --shadow-soft: 0 10px 30px -18px rgba(11, 36, 56, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1.1em; }
a { color: var(--steel-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--steel); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }

section { padding: clamp(64px, 8vw, 110px) 0; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--steel);
  margin: 0 0 18px;
}
.eyebrow.on-dark { color: #7FB2E0; }
.eyebrow.coral { color: var(--coral); }
.eyebrow.teal { color: var(--teal); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--body); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.96rem;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--steel); color: #fff; box-shadow: 0 10px 24px -10px rgba(63,121,179,.7); }
.btn-primary:hover { background: var(--steel-deep); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(224,108,87,.7); }
.btn-coral:hover { background: var(--coral-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-dark:hover { border-color: #fff; color: #fff; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .arrow { transition: transform .2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 15px; border-radius: 9px;
  font-size: 0.95rem; font-weight: 500; color: var(--body);
  background: none; border: none; cursor: pointer; font-family: var(--sans);
}
.nav-links a:hover, .nav-trigger:hover { color: var(--steel); background: var(--bg-soft); }
.nav-links a.active { color: var(--steel); }
.nav-trigger .caret { transition: transform .2s var(--ease); }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px; width: 320px;
  opacity: 0; visibility: hidden; transition: all .22s var(--ease);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 11px 13px; border-radius: 10px; }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown .d-title { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.dropdown .d-desc { font-size: 0.84rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.steel { background: var(--steel); }
.dot.teal { background: var(--teal); }
.dot.coral { background: var(--coral); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0B2438 0%, #103453 55%, #0B2438 100%);
  color: #E8F0F7; padding: clamp(80px, 11vw, 140px) 0 clamp(70px, 9vw, 120px);
}
.hero.coral-theme { background: linear-gradient(160deg, #0B2438 0%, #2A1E2C 60%, #3A1F23 100%); }
.hero.teal-theme { background: linear-gradient(160deg, #0B2438 0%, #0E3733 60%, #0B2D2A 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #BCD2E5; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-bg { position: absolute; inset: 0; z-index: 1; opacity: .9; }
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(127,178,224,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,178,224,.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 80%);
}
.hero-home { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 880px){ .hero-home { grid-template-columns: 1fr; } }

/* Self-selection sector cards in hero */
.pick { display: grid; gap: 14px; }
.pick-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 18px 20px; color: #E8F0F7;
  transition: all .22s var(--ease);
}
.pick-card:hover { background: rgba(255,255,255,.1); transform: translateX(5px); color: #fff; border-color: rgba(255,255,255,.25); }
.pick-ico { width: 46px; height: 46px; border-radius: 11px; flex: none; display: grid; place-items: center; }
.pick-ico.steel { background: rgba(63,121,179,.22); border: 1px solid rgba(63,121,179,.5); }
.pick-ico.teal { background: rgba(46,139,130,.22); border: 1px solid rgba(46,139,130,.5); }
.pick-ico.coral { background: rgba(224,108,87,.22); border: 1px solid rgba(224,108,87,.5); }
.pick-card h3 { color: #fff; font-size: 1.05rem; margin: 0 0 2px; }
.pick-card p { margin: 0; font-size: 0.88rem; color: #A9C2D8; line-height: 1.4; }
.pick-card .arrow { margin-left: auto; color: #7FB2E0; transition: transform .2s var(--ease); }
.pick-card:hover .arrow { transform: translateX(4px); }

/* ---------- Proof / credibility strip ---------- */
.proof-strip { background: var(--navy); color: #B7CCE0; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.06); }
.proof-row { display: flex; align-items: center; gap: 14px 40px; flex-wrap: wrap; justify-content: center; }
.proof-row .pl { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: #6F8BA6; font-weight: 600; }
.proof-row .pname { font-family: var(--display); font-weight: 500; color: #DCE8F3; font-size: .98rem; }
.proof-sep { width: 4px; height: 4px; border-radius: 50%; background: #44627E; }

/* ---------- Stats panel ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px){ .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; border-top: 3px solid var(--steel);
}
.stat.coral { border-top-color: var(--coral); }
.stat.teal { border-top-color: var(--teal); }
.stat .num { font-family: var(--display); font-size: clamp(2.1rem, 4vw, 2.9rem); color: var(--ink); font-weight: 600; line-height: 1; margin-bottom: 10px; letter-spacing: -0.03em; }
.stat .lbl { font-size: 0.95rem; color: var(--body); }

/* ---------- Cards / capability grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px){ .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: #D3E0EC; }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-mist); display: grid; place-items: center; margin-bottom: 20px; color: var(--steel); }
.card.coral .ico { color: var(--coral); background: #FCEDE9; }
.card.teal .ico { color: var(--teal); background: #E4F2F0; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.97rem; color: var(--body); }

/* numbered step card */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 0 26px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -2px; width: 1px; height: calc(100% - 30px); background: var(--line); }
@media (max-width: 820px){ .step::after { display: none !important; } }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-mist); color: var(--steel); font-family: var(--display); font-weight: 600; display: grid; place-items: center; margin-bottom: 18px; font-size: 1.1rem; }
.step.coral .n { background: #FCEDE9; color: var(--coral); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; margin: 0; }

/* ---------- "Built on evidence" feature block ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .feature-media { order: -1; }
@media (max-width: 880px){ .feature { grid-template-columns: 1fr; gap: 36px; } .feature.flip .feature-media { order: 0; } }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* tick list */
.ticks { list-style: none; display: grid; gap: 14px; margin: 22px 0 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.ticks .tk { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E8F1FA; color: var(--steel); display: grid; place-items: center; margin-top: 2px; }
.ticks.coral .tk { background: #FCEDE9; color: var(--coral); }

/* ---------- Sector teaser cards (home) ---------- */
.sector-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 34px 30px; color: #fff; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  border: 1px solid rgba(255,255,255,.08);
}
.sector-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: #fff; }
.sector-card .sc-bg { position: absolute; inset: 0; z-index: 0; }
.sector-card .sc-inner { position: relative; z-index: 2; }
.sector-card .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; opacity: .85; }
.sector-card h3 { color: #fff; margin: 8px 0 8px; font-size: 1.45rem; }
.sector-card p { color: rgba(255,255,255,.86); font-size: 0.97rem; margin: 0 0 16px; }
.sector-card .link-arrow { color: #fff; }
.sc-steel { background: linear-gradient(155deg, #2C5C8F, #1B3E63); }
.sc-teal { background: linear-gradient(155deg, #2E8B82, #14524C); }
.sc-coral { background: linear-gradient(155deg, #D9684F, #A63E2C); }

/* ---------- Mission band ---------- */
.band { background: var(--bg-soft); }
.band-navy { background: var(--navy); color: #C7DAEC; }
.band-navy h2 { color: #fff; }
.band-mist { background: var(--bg-mist); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.08rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--steel); transition: .2s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--steel); color: #fff; border-color: var(--steel); }
.faq .ans { padding: 0 4px 24px; color: var(--body); font-size: 0.98rem; max-width: 78ch; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(155deg, #0B2438, #14406A); color: #fff; border-radius: 22px; padding: clamp(44px, 6vw, 70px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: #B9CFE4; max-width: 52ch; margin: 0 auto 28px; }
.cta-band.coral { background: linear-gradient(155deg, #2A1E22, #A63E2C); }
.cta-band.teal { background: linear-gradient(155deg, #0B2D2A, #1C6F66); }

/* ---------- Projects ---------- */
.proj-cluster { margin-bottom: 56px; }
.cluster-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cluster-head h3 { margin: 0; }
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.proj-card .pc-media { aspect-ratio: 16/10; }
.proj-card .pc-body { padding: 24px 26px; }
.proj-card .pc-body h4 { font-family: var(--display); font-size: 1.18rem; margin: 0 0 8px; color: var(--ink); }
.proj-card .pc-body p { font-size: 0.94rem; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; background: var(--bg-mist); color: var(--steel-deep); text-transform: uppercase; }
.chip.coral { background: #FCEDE9; color: var(--coral-deep); }
.chip.teal { background: #E4F2F0; color: var(--teal); }
.chip.amber { background: #FBF1DC; color: #B07A1E; }

/* ---------- About / team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 920px){ .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .team-grid { grid-template-columns: 1fr; } }
.person { text-align: left; }
.person .avatar { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--bg-mist); }
.person h4 { font-family: var(--display); margin: 0 0 2px; color: var(--ink); font-size: 1.08rem; }
.person .role { color: var(--steel); font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.person p { font-size: 0.9rem; margin: 0; color: var(--muted); }

.partner-row { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.partner-row .pr-mark { flex: none; width: 54px; height: 54px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--steel); font-family: var(--display); font-weight: 600; }
.partner-row h4 { margin: 0 0 4px; font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.partner-row p { margin: 0; font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 0.96rem; color: var(--ink); background: #fff; transition: border .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(63,121,179,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.info-block { margin-bottom: 26px; }
.info-block h4 { font-family: var(--display); color: var(--ink); margin: 0 0 6px; font-size: 1.05rem; }
.info-block p { margin: 0; font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9FB6CC; padding: 70px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.09); }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px){ .footer-top { grid-template-columns: 1fr; } }
.footer-top h5 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: #6F8BA6; margin: 0 0 16px; font-weight: 600; }
.footer-top ul { list-style: none; display: grid; gap: 10px; }
.footer-top a { color: #C3D5E6; font-size: 0.93rem; }
.footer-top a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; color: #8FA7BE; max-width: 30ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; font-size: 0.84rem; color: #6F8BA6; }
.footer-bottom a { color: #8FA7BE; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (subpages, lighter) ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: clamp(54px, 7vw, 88px) 0; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 60ch; color: var(--body); }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--steel); }

/* ---------- Utility ---------- */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.placeholder-note {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
  color: #9A6B12; background: #FBF1DC; border: 1px dashed #E2C277; border-radius: 8px; padding: 6px 12px; margin-top: 14px;
}
.note-inline { font-size: .8rem; color: #B07A1E; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Real imagery ---------- */
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3.1; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-card .pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 48px; }
.logo-strip img { height: 50px; width: auto; max-width: 150px; object-fit: contain; opacity: .82; transition: opacity .2s var(--ease); }
.logo-strip img:hover { opacity: 1; }
@media (max-width: 680px){ .logo-strip { gap: 24px 30px; } .logo-strip img { height: 36px; } }
.brand-logo, .site-header .custom-logo { height: 38px; width: auto; max-width: 220px; display: block; }
.site-header .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.footer-logo { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-social { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); color: #C3D5E6; transition: background .2s var(--ease), color .2s var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,.18); color: #fff; }
.footer-email { display: flex; align-items: center; gap: 9px; font-size: .93rem; color: #C3D5E6; margin: 0; }
.footer-email a { color: #C3D5E6; }
.footer-email a:hover { color: #fff; }
.footer-email svg { color: #8FA7BE; flex: none; }

/* ---------- Change-list additions ---------- */
/* Dark page hero variant */
.page-hero.dark { background: linear-gradient(160deg, #0B2438 0%, #103453 55%, #0B2438 100%); border-bottom: none; color: #E8F0F7; }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark .lead { color: #BCD2E5; }
.page-hero.dark .eyebrow { color: #7FB2E0; }
.page-hero.dark .breadcrumb, .page-hero.dark .breadcrumb a { color: #8FB0CC; }
.page-hero.dark .placeholder-note { background: rgba(251,241,220,.12); border-color: rgba(226,194,119,.4); color: #EBC77E; }

/* Full-colour partner strip on white */
.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip img { opacity: 1; }

/* About: mission pull-quote + values */
.pullquote { border-left: 4px solid var(--steel); padding: 6px 0 6px 26px; margin: 8px 0 26px; }
.pullquote p { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.35; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.values { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.values li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--body); }
.values .vk { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #E8F1FA; color: var(--steel); display: grid; place-items: center; margin-top: 2px; }

/* Team social icons */
.person-social { display: flex; gap: 9px; margin-top: 11px; }
.person-social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--steel); transition: all .2s var(--ease); }
.person-social a:hover { background: var(--steel); color: #fff; border-color: var(--steel); }

/* Categorised partners */
.partner-cat { margin-bottom: 40px; }
.partner-cat h3 { font-size: 1.15rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 26px 40px; }
.partner-logos img { height: 52px; width: auto; max-width: 160px; object-fit: contain; }
@media (max-width: 680px){ .partner-logos img { height: 40px; } }

/* Contact left column panel */
.contact-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }

/* Address / maps in contact */
.map-pin { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin-top: 8px; }

/* Hero background photo (real EO imagery) */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.55; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(11,36,56,.9) 0%, rgba(16,52,83,.74) 55%, rgba(11,36,56,.92) 100%); }

/* ---------- Gutenberg block compatibility ---------- */
/* theme.json removes the legacy inner-container wrapper, so our section/grid/flex
   CSS applies directly. We do NOT blanket-zero group margins (that killed intended
   spacing like .section-head margin-bottom); theme.json's blockGap:false already
   neutralises WordPress's own flow margins. */
.mm .wp-block-group__inner-container { display: contents; }
.mm .wp-block-group.wrap, .mm .wrap { margin-left: auto; margin-right: auto; }
.mm figure.wp-block-image { margin: 0; }
.mm .feature-media figure, .mm .person .avatar figure, .mm .proj-card .pc-media figure { height: 100%; margin: 0; }
.mm .feature-media .wp-block-image, .mm .person .avatar .wp-block-image, .mm .proj-card .pc-media .wp-block-image { height: 100%; }
.mm .feature-media .wp-block-image img, .mm .person .avatar .wp-block-image img, .mm .proj-card .pc-media .wp-block-image img { height: 100%; }
.mm .wp-block-heading { margin-top: 0; }
/* Neutralise WordPress's injected block-gap (belt-and-suspenders with theme.json blockGap 0);
   our own element/utility margins provide all spacing. */
.mm .is-layout-flow > * { margin-block-start: 0; }
.mm .mt-s { margin-top: 14px; }
.mm .mt-m { margin-top: 26px; }
.mm .mt-l { margin-top: 44px; }
.mm .hero-actions { margin-top: 34px; }
.mm .ticks { margin-top: 22px; }
/* Sections render as .wp-block-group (not <section>) — restore section padding (tightened) */
.mm > .wp-block-group { padding: clamp(48px, 6vw, 84px) 0; }
.mm > .wp-block-group.hero { padding: clamp(72px, 9vw, 118px) 0 clamp(60px, 7vw, 96px); }
.mm > .wp-block-group.page-hero { padding: clamp(48px, 6vw, 76px) 0; }

/* ---------- Mobile nav ---------- */
@media (max-width: 940px){
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 22px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a, .nav-trigger { padding: 13px 8px; font-size: 1rem; width: 100%; justify-content: flex-start; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; width: 100%; padding: 4px 0 8px 14px; }
  .has-dropdown .caret { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}


/* ---------- Legal / privacy page ---------- */
.legal p, .legal li { color: var(--body); }
.legal h2 { font-size: 1.4rem; margin-top: 44px; }
.legal h3 { font-size: 1.1rem; margin-top: 28px; }
.legal ul { padding-left: 22px; list-style: disc; margin-bottom: 1.1em; }
.legal li { margin-bottom: 8px; }

/* ---------- Theme content wrapper ---------- */
.site-main { width: 100%; }
