/* ==========================================================================
   SPADO — 2026 design system
   ========================================================================== */

:root {
  --color-primary: #0f5c3f;
  --color-primary-dark: #0a3f2b;
  --color-primary-light: #e7f2ec;
  --color-accent: #8bc63e;
  --color-accent-dark: #6ea82b;

  --color-ink: #16201c;
  --color-ink-soft: #52605a;
  --color-ink-faint: #8b968f;

  --color-bg: #fbfbf8;
  --color-surface: #ffffff;
  --color-cream: #f3f4ee;
  --color-border: #e4e7e1;

  --font-heading: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(22, 32, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 32, 28, 0.08);
  --shadow-lg: 0 20px 48px rgba(22, 32, 28, 0.12);

  --space-section: clamp(3.5rem, 6vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }

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

.t26-section { padding: var(--space-section) 0; }
.t26-section--cream { background: var(--color-cream); }
.t26-section--primary { background: var(--color-primary); color: #fff; }
.t26-section--primary h2, .t26-section--primary h3, .t26-section--primary h4 { color: #fff; }

.t26-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.t26-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}
.t26-section--primary .t26-eyebrow { color: var(--color-accent); }

.t26-section-head { max-width: 680px; margin-bottom: 3rem; }
.t26-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.t26-section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.t26-section-head p { color: var(--color-ink-soft); font-size: 1.05rem; }
.t26-section--primary .t26-section-head p { color: rgba(255,255,255,0.85); }

.t26-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
}
.t26-btn:hover { transform: translateY(-2px); }
.t26-btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.t26-btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.t26-btn-accent { background: var(--color-accent); color: var(--color-ink); }
.t26-btn-accent:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.t26-btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.t26-btn-outline:hover { background: rgba(255,255,255,0.12); }
.t26-btn-outline-dark { border-color: var(--color-primary); color: var(--color-primary); }
.t26-btn-outline-dark:hover { background: var(--color-primary); color: #fff; }

/* Header / Nav */
.t26-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.t26-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.t26-brand img { height: 42px; width: auto; }

.t26-primary-nav { display: none; }
.t26-primary-nav ul { display: flex; align-items: center; gap: 2px; }
.t26-primary-nav > ul > li { position: relative; }
.t26-primary-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--color-ink);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.t26-primary-nav > ul > li > a:hover,
.t26-primary-nav > ul > li.active > a { background: var(--color-primary-light); color: var(--color-primary); }

.t26-has-dropdown > a {
  display: inline-flex; align-items: center; gap: 6px;
}
.t26-has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}
.t26-has-dropdown:hover > a::after { transform: rotate(225deg); margin-top: 3px; }

/* Mega-menu style dropdown.
   .t26-dropdown is an invisible hit-box (with padding-top bridging the visual
   gap to the trigger) so the pointer never crosses genuinely empty space
   between the nav link and the panel — that gap was what broke hover. */
.t26-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 620px;
  max-width: 90vw;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.t26-has-dropdown:hover .t26-dropdown,
.t26-has-dropdown.is-open .t26-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.t26-dropdown__panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  overflow: hidden;
}
.t26-dropdown__intro {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.t26-dropdown__intro h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.5rem; }
.t26-dropdown__intro p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-bottom: 1.25rem; }
.t26-dropdown__intro a { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; color: var(--color-accent); display: inline-flex; align-items: center; gap: 6px; }
.t26-dropdown__links { padding: 0.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; }
.t26-dropdown__links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--color-ink);
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.t26-dropdown__links a:hover { background: var(--color-primary-light); color: var(--color-primary); padding-left: 16px; }
.t26-dropdown__links a .t26-dropdown__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); flex: 0 0 auto;
}

.t26-nav-cta { display: none; }

.t26-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.t26-nav-toggle:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.t26-nav-toggle svg { width: 20px; height: 20px; }

/* Mobile menu */
.t26-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 20, 14, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.t26-mobile-nav.is-open { opacity: 1; visibility: visible; }
.t26-mobile-nav__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--color-surface);
  padding: 22px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.32,.72,0,1);
  overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: -20px 0 48px rgba(8,20,14,0.18);
}
.t26-mobile-nav.is-open .t26-mobile-nav__panel { transform: translateX(0); }
.t26-mobile-nav__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--color-border); }
.t26-mobile-nav__close {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--color-border);
  background: none; font-size: 20px; line-height: 1; color: var(--color-ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.t26-mobile-nav__close:hover { background: var(--color-primary-light); color: var(--color-primary); }
.t26-mobile-nav nav { flex: 1; }
.t26-mobile-nav ul li { border-bottom: 1px solid var(--color-border); }
.t26-mobile-nav ul li:last-child { border-bottom: none; }
.t26-mobile-nav ul li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; font-weight: 600; font-family: var(--font-heading); font-size: 0.98rem;
  color: var(--color-ink);
}
.t26-mobile-nav ul li > a:hover { color: var(--color-primary); }
.t26-mobile-nav__chevron { width: 18px; height: 18px; flex: 0 0 auto; transition: transform 0.25s ease; color: var(--color-ink-faint); }
.t26-mobile-nav li.is-expanded .t26-mobile-nav__chevron { transform: rotate(180deg); color: var(--color-primary); }
.t26-dropdown-static {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.t26-mobile-nav li.is-expanded .t26-dropdown-static { max-height: 400px; }
.t26-dropdown-static li { border-bottom: none; }
.t26-dropdown-static a {
  font-weight: 500 !important; font-size: 0.9rem !important; font-family: var(--font-body) !important;
  padding: 10px 4px 10px 18px !important; color: var(--color-ink-soft) !important;
  display: flex !important; align-items: center; gap: 8px; justify-content: flex-start !important;
}
.t26-dropdown-static a:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); flex: 0 0 auto; }
.t26-mobile-nav__cta { margin-top: 1.5rem; display: flex; }
.t26-mobile-nav__cta .t26-btn { width: 100%; justify-content: center; }

@media (min-width: 992px) {
  .t26-primary-nav { display: block; }
  .t26-nav-cta { display: inline-flex; }
  .t26-nav-toggle { display: none; }
}

/* Hero */
.t26-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.t26-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.t26-hero__bg.is-active { opacity: 1; }
.t26-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 20, 0.35) 0%, rgba(8, 24, 16, 0.85) 100%);
}
.t26-hero__content { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 3.5rem; }
.t26-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-accent);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.t26-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 820px; margin-bottom: 0.6em; transition: opacity 0.3s ease; }
.t26-hero p { font-size: 1.1rem; max-width: 560px; color: rgba(255,255,255,0.88); }
.t26-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.75rem; }
.t26-hero__dots { position: absolute; z-index: 3; right: 24px; bottom: 2rem; display: flex; gap: 6px; flex-wrap: wrap; max-width: 200px; justify-content: flex-end; }

@media (max-width: 640px) {
  .t26-hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .t26-hero__content { padding-top: 5.5rem; padding-bottom: 2rem; }
  .t26-hero__eyebrow {
    font-size: 0.7rem;
    line-height: 1.4;
    padding: 7px 12px;
    border-radius: 14px;
    margin-bottom: 1rem;
  }
  .t26-hero h1 { font-size: 1.85rem; line-height: 1.25; margin-bottom: 0.75em; }
  .t26-hero p { margin-bottom: 1.5rem; }
  .t26-hero__actions { margin-top: 0; }
  .t26-hero__dots {
    position: static;
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 1.75rem;
    max-width: none;
    gap: 8px;
    justify-content: center;
  }
  .t26-statement-strip { display: none; }
}
.t26-hero__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; padding: 0; }
.t26-hero__dots button.is-active { background: var(--color-accent); width: 20px; border-radius: 4px; }

/* Statement strip */
.t26-statement-strip { background: var(--color-ink); color: #fff; padding: 1.75rem 0; }
.t26-statement-strip p { margin: 0; font-family: var(--font-heading); font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 500; text-align: center; transition: opacity 0.3s ease; }

/* About split */
.t26-about-split { display: grid; gap: 2.5rem; align-items: center; }
.t26-about-split__media { position: relative; }
.t26-about-split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.t26-about-split__media-two {
  position: absolute;
  width: 46%;
  bottom: -10%; left: -8%;
  border: 6px solid var(--color-bg);
  border-radius: var(--radius-md);
}
.t26-about-split__body p { color: var(--color-ink-soft); font-size: 1.05rem; }
@media (min-width: 900px) { .t26-about-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
@media (max-width: 640px) {
  .t26-about-split { gap: 3rem; }
  .t26-about-split__media-two { width: 42%; bottom: -8%; left: 4%; }
}

/* Quote band */
.t26-quote-band { text-align: center; }
.t26-quote-band blockquote {
  margin: 0 auto;
  max-width: 820px;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* Grids / cards */
.t26-grid { display: grid; gap: 1.75rem; }
.t26-grid--3 { grid-template-columns: 1fr; }
.t26-grid--6 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .t26-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .t26-grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) { .t26-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.t26-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.t26-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.t26-card__media { aspect-ratio: 4/3; overflow: hidden; }
.t26-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.t26-card:hover .t26-card__media img { transform: scale(1.06); }

/* For document/report-cover images (not photos) — show them whole on a neutral
   background instead of cropping, so they don't clash with photographic cards. */
.t26-card__media--doc { background: var(--color-cream); display: flex; align-items: center; justify-content: center; }
.t26-card__media--doc img { width: auto; height: auto; max-width: 85%; max-height: 85%; object-fit: contain; }
.t26-card:hover .t26-card__media--doc img { transform: none; }
.t26-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.t26-card__body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.t26-card__body p { color: var(--color-ink-soft); font-size: 0.95rem; flex: 1; }
.t26-card__link { margin-top: 0.75rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--color-primary); display: inline-flex; align-items: center; gap: 6px; }

.t26-thematic-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-sm); }
.t26-thematic-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.t26-thematic-card:hover img { transform: scale(1.08); }
.t26-thematic-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,20,0) 35%, rgba(8,24,16,0.9) 100%); }
.t26-thematic-card__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem; color: #fff; }
.t26-thematic-card__label h3 { font-size: 1.05rem; margin: 0; }
.t26-thematic-card__label span {
  display: block; font-size: 0.8rem; color: rgba(255,255,255,0.75);
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease, margin 0.25s ease;
}
.t26-thematic-card:hover .t26-thematic-card__label span { max-height: 60px; margin-top: 6px; }

/* Forms */
.t26-form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .t26-form-grid--2 { grid-template-columns: 1fr 1fr; } }
.t26-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.t26-field input, .t26-field select, .t26-field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-ink);
}
.t26-field input:focus, .t26-field select:focus, .t26-field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light);
}
.t26-field textarea { min-height: 120px; resize: vertical; }
.t26-section--primary .t26-field input,
.t26-section--primary .t26-field select,
.t26-section--primary .t26-field textarea { border-color: transparent; }
.t26-form-status { font-size: 0.9rem; font-weight: 600; margin-top: 0.75rem; min-height: 1.4em; }
.t26-form-status.is-success { color: var(--color-accent); }
.t26-form-status.is-error { color: #ff9b8a; }

/* Testimonials slider */
.t26-testimonial { background: var(--color-surface); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-sm); text-align: center; }
.t26-testimonial p { font-size: 1.15rem; line-height: 1.6; color: var(--color-ink); font-family: var(--font-heading); font-weight: 500; }
.t26-testimonial__author { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 1.5rem; }
.t26-testimonial__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.t26-testimonial__author strong { display: block; font-size: 0.95rem; }

.t26-slider { position: relative; max-width: 760px; margin: 0 auto; }
.t26-slider__viewport { overflow: hidden; }
.t26-slider__track { display: flex; transition: transform 0.5s cubic-bezier(.65,0,.35,1); align-items: stretch; }
.t26-slider__slide { flex: 0 0 100%; min-width: 0; padding: 0 6px; }
.t26-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.75rem; }
.t26-slider__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); border: none; padding: 0; transition: all 0.2s ease; cursor: pointer; }
.t26-slider__dot.is-active { background: var(--color-primary); width: 24px; border-radius: 4px; }
.t26-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-surface); box-shadow: var(--shadow-md); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.t26-slider__arrow svg { width: 18px; height: 18px; }
.t26-slider__arrow--prev { left: -8px; }
.t26-slider__arrow--next { right: -8px; }
@media (min-width: 1100px) {
  .t26-slider__arrow--prev { left: -64px; }
  .t26-slider__arrow--next { right: -64px; }
}

/* Footer */
.t26-footer { background: var(--color-ink); color: rgba(255,255,255,0.75); }
.t26-footer-top { padding-top: 4.5rem; padding-bottom: 3rem; }
.t26-footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .t26-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.t26-footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.t26-footer-grid ul li { margin-bottom: 0.6rem; }
.t26-footer-grid ul a { font-size: 0.92rem; transition: color 0.15s ease; }
.t26-footer-grid ul a:hover { color: var(--color-accent); }
.t26-footer-brand img { height: 38px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.t26-footer-brand p { font-size: 0.9rem; max-width: 320px; }
.t26-footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.t26-footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); transition: background 0.15s ease;
}
.t26-footer-social a:hover { background: var(--color-accent); color: var(--color-ink); }
.t26-footer-contact { font-size: 0.92rem; display: block; margin-bottom: 0.6rem; }
.t26-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.t26-footer-bottom a { color: var(--color-accent); }

@media (max-width: 640px) {
  .t26-footer-top { padding-top: 3rem; padding-bottom: 1.75rem; }
  .t26-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
  .t26-footer-grid > div:nth-child(1) { order: 1; }
  .t26-footer-grid > div:nth-child(4) { order: 2; }
  .t26-footer-grid > div:nth-child(2) { order: 3; }
  .t26-footer-grid > div:nth-child(3) { order: 4; }
  .t26-footer-grid h4 { margin-bottom: 1.2rem; }
  .t26-footer-grid ul li { margin-bottom: 0.4rem; }
  .t26-footer-grid ul a { font-size: 0.88rem; }
  .t26-footer-brand p { max-width: none; font-size: 0.88rem; }
}

.t26-scroll-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.2s ease; z-index: 90; border: none;
}
.t26-scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 640px) { .t26-scroll-top { width: 40px; height: 40px; right: 14px; bottom: 14px; } }

/* Page-transition loader: thin top progress bar shown while a page loads / navigates away */
.t26-page-loader {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: var(--color-accent);
  z-index: 999;
  transition: width 0.4s ease, opacity 0.3s ease 0.15s;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.t26-page-loader.is-done { opacity: 0; }

/* Inline spinner used inside buttons during async form submission */
.t26-btn-spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; vertical-align: -2px;
  animation: t26-spin 0.7s linear infinite;
  opacity: 0.85;
}
@keyframes t26-spin { to { transform: rotate(360deg); } }
.t26-btn.is-loading { opacity: 0.85; pointer-events: none; }

/* Simple inner page (used by Youth / ClimateChange until fully redesigned) */
.t26-page-hero { background: var(--color-primary-dark); color: #fff; padding: 4rem 0 3rem; text-align: center; }
.t26-page-hero h1 { margin: 0; }
.t26-page-hero .t26-eyebrow { color: var(--color-accent); }
.t26-page-hero .t26-eyebrow::before { background: #fff; }
/* The spado-cover.png background (a wide photo collage) is set inline per-page for
   desktop/tablet, but background-size:cover crops it down to an unreadable sliver
   on narrow phones — swap it for a clean gradient there instead. */
@media (max-width: 640px) {
  .t26-page-hero { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)) !important; padding: 3.5rem 0 2.5rem; }
}

/* Project detail pages (peacebuilding sub-projects, etc.) */
.t26-detail-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .t26-detail-grid--with-media { grid-template-columns: 1.6fr 1fr; } }
.t26-detail-video { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 9/16; max-height: 500px; }

/* Masonry-style project grid (peacebuilding overview page) */
.t26-project-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .t26-project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .t26-project-grid { grid-template-columns: repeat(3, 1fr); } }
.t26-project-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.t26-project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.t26-project-card:hover img { transform: scale(1.08); }
.t26-project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,20,0) 40%, rgba(8,24,16,0.88) 100%); }
.t26-project-card__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1rem; color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; }

/* Photo gallery / slider (used on project detail pages with a "Glimpse in Photos" style section) */
.t26-gallery-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.t26-gallery-nav { display: flex; gap: 8px; }
.t26-gallery-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--color-border);
  background: var(--color-surface); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.t26-gallery-nav button:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.t26-gallery-nav svg { width: 16px; height: 16px; }
.t26-gallery {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch;
}
.t26-gallery::-webkit-scrollbar { height: 6px; }
.t26-gallery::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 999px; }
.t26-gallery__item {
  flex: 0 0 auto; width: 260px; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); scroll-snap-align: start;
}
.t26-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Simple modal (used for e.g. "publication available on request") */
.t26-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 32, 24, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease;
}
.t26-modal.is-open { opacity: 1; visibility: visible; }
.t26-modal__panel {
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 420px; width: 100%; padding: 2rem;
  transform: translateY(12px); transition: transform 0.2s ease;
}
.t26-modal.is-open .t26-modal__panel { transform: translateY(0); }
.t26-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.t26-modal__close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border); background: none; font-size: 18px; line-height: 1; }
.t26-modal__body p { color: var(--color-ink-soft); margin-bottom: 0.5rem; }
