/* ==========================================================================
   APMIA theme
   Brand green #07683a (carried over from the original site) + neutral stone greys.
   ========================================================================== */

:root {
  --green: #07683a;
  --green-600: #06592f;
  --green-700: #054b28;
  --green-800: #043a1f;
  --green-900: #032c18;
  --green-200: #bfdccb;
  --green-100: #e2f0e8;
  --green-50: #f1f8f4;

  --ink: #14201a;
  --text: #36423b;
  --muted: #6a766f;
  --line: #dce5df;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;

  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', 'Noto Nastaliq Urdu', 'Noto Sans Arabic', Arial, sans-serif;
  --font-head: 'Roboto Condensed', 'Roboto', system-ui, 'Segoe UI', Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(3, 44, 24, .06), 0 1px 3px rgba(3, 44, 24, .06);
  --shadow: 0 6px 24px rgba(3, 44, 24, .10);
  --shadow-lg: 0 18px 48px rgba(3, 44, 24, .16);
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, white); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--green-200); color: var(--green-900); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 880px; }
.center { text-align: center; }
.news-grid + .center, .people-grid + .center { margin-top: 40px; }
.lead { font-size: 1.15rem; color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.45em;
  font: 500 .95rem/1 var(--font);
  letter-spacing: .02em;
  color: #fff; background: var(--green);
  border: 2px solid var(--green); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-800); border-color: #fff; }
.btn-light:hover { background: var(--green-100); border-color: var(--green-100); color: var(--green-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--green-800); border-color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-900); color: rgba(255,255,255,.88); font-size: .8125rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 8px; }
.topbar-list { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: inline-flex; align-items: center; gap: .5em; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .icon { opacity: .75; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(3, 44, 24, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--green); min-width: 0; }
.brand img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-text strong { font: 700 1.2rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; color: var(--green); }
.brand-text small { margin-top: 5px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative; display: block; padding: 12px 13px;
  font: 500 .86rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-link::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link, .nav-item.is-active > .nav-link { color: var(--green); }
.nav-item:hover > .nav-link::after, .nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.sub-toggle { display: none; }
.has-sub > .nav-link { padding-right: 6px; }
.has-sub::after { content: ''; width: 6px; height: 6px; margin-right: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); color: var(--muted); pointer-events: none; }

.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 270px; z-index: 20;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu, .nav-item.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 14px; font-size: .92rem; color: var(--text); text-decoration: none; border-radius: 6px; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--green-50); color: var(--green); }
.nav-item:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--green); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .when-open { display: none; }
.nav-open .nav-toggle .when-open { display: inline; }
.nav-open .nav-toggle .when-closed { display: none; }

@media (max-width: 1100px) {
  .brand-text strong { font-size: 1.02rem; }
  .nav-link { padding-inline: 9px; font-size: .8rem; }
  .nav-link::after { left: 9px; right: 9px; }
}
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .brand img { width: 52px; height: 52px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none; padding: 8px 24px 20px;
  }
  .nav-open .primary-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item::after { display: none; }
  .nav-link { flex: 1; padding: 16px 0; font-size: .95rem; }
  .nav-link::after { display: none; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: var(--green); cursor: pointer; }
  .sub-toggle .icon { transition: transform .2s; }
  .nav-item.is-open .sub-toggle .icon { transform: rotate(180deg); }
  .sub-menu { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--green-100); border-radius: 0; margin: 0 0 12px; padding: 4px 0 4px 12px; }
  .nav-item.is-open > .sub-menu { display: block; }
  .nav-item:hover > .sub-menu { opacity: 1; visibility: visible; }
  .topbar-inner { flex-direction: column; gap: 2px; }
  .topbar-right { display: none; }
}
@media (max-width: 520px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: .86rem; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.hero-track { position: relative; height: clamp(460px, 74vh, 700px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-img { transform: scale(1.0); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,44,24,.88) 0%, rgba(3,44,24,.62) 42%, rgba(3,44,24,.12) 100%), linear-gradient(0deg, rgba(3,44,24,.5), transparent 40%); }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 70px; max-width: var(--container); }
.hero-copy > * { max-width: 660px; }
.hero-copy h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); color: #fff; text-transform: uppercase; letter-spacing: .01em; line-height: 1.04; margin-bottom: .35em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-copy p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.92); margin-bottom: 1.6em; }
.hero-slide.is-active .hero-copy > * { animation: rise .8s .15s both cubic-bezier(.2,.7,.2,1); }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: .25s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: .35s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-block; font: 500 .78rem/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.eyebrow-light { color: var(--green-200); }

.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 78px; display: flex; align-items: center; gap: 14px; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-arrow { width: 44px; height: 44px; display: inline-grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s, width .3s; }
.hero-dot.is-active { width: 52px; background: #fff; }
@media (max-width: 700px) { .hero-controls { bottom: 90px; } .hero-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-img { transition: none; } .hero-slide.is-active .hero-copy > * { animation: none; } }

/* ---------- Highlights strip ---------- */
.highlights { position: relative; z-index: 4; margin-top: -54px; }
.highlights-inner { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; border: 1px solid var(--line); }
.highlight { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.highlight:last-child { border-right: 0; }
.highlight strong { display: block; font: 700 1.9rem/1.1 var(--font-head); color: var(--green); letter-spacing: .01em; }
.highlight span { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); letter-spacing: .03em; }
@media (max-width: 800px) { .highlights-inner { grid-template-columns: repeat(2, 1fr); } .highlight:nth-child(2) { border-right: 0; } .highlight:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(30px, 4vw, 52px); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; color: var(--green); margin-bottom: .45em; }
.section-head h2::after { content: ''; display: block; width: 64px; height: 3px; background: var(--green); margin: 16px auto 0; border-radius: 2px; }
.section-head.is-left { text-align: left; margin-inline: 0; }
.section-head.is-left h2::after { margin-left: 0; }
.section-head .lead { margin: 18px 0 0; }

.section-intro .intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.section-intro .intro-grid.no-image { grid-template-columns: 1fr; max-width: 820px; }
.intro-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); text-transform: uppercase; color: var(--green); }
.intro-media { margin: 0; position: relative; }
.intro-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.intro-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--green-200); border-radius: var(--radius); z-index: -1; }
@media (max-width: 900px) { .section-intro .intro-grid { grid-template-columns: 1fr; } .intro-media::before { display: none; } }

/* Vision / mission */
.section-vm { background: linear-gradient(180deg, var(--green-50), #fff); }
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.vm-card { position: relative; overflow: hidden; padding: clamp(28px, 3.5vw, 44px); color: #fff; border-radius: var(--radius); background: linear-gradient(140deg, var(--green) 0%, var(--green-800) 100%); box-shadow: var(--shadow); }
.vm-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%); }
.vm-card h3 { color: #fff; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; }
.vm-card p { margin: 0; color: rgba(255,255,255,.92); font-size: 1.04rem; position: relative; z-index: 1; }
.vm-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.vm-icon .icon { width: 26px; height: 26px; }
@media (max-width: 800px) { .vm-grid { grid-template-columns: 1fr; } }

/* Objectives */
.objective-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.objective { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.objective:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.objective-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--green-100); color: var(--green); }
.objective-icon .icon { width: 26px; height: 26px; }
.objective h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; color: var(--green); margin-bottom: .45em; }
.objective p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 1060px) { .objective-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .objective-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .objective-grid { grid-template-columns: 1fr; } }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; margin-bottom: 30px; }
.person-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person-photo { display: block; aspect-ratio: 8 / 9; background: var(--green-50); overflow: hidden; }
.person-photo img, .profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.person-card:hover .person-photo img { transform: scale(1.04); }
.person-initial { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; font: 700 4rem/1 var(--font-head); color: var(--green-200); background: var(--green-50); }
.person-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.person-body h3 { font-size: 1.22rem; margin: 0; }
.person-body h3 a { color: var(--ink); text-decoration: none; }
.person-body h3 a:hover { color: var(--green); }
.person-role { margin: 0; color: var(--green); font-weight: 500; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.person-company { margin: 2px 0 0; color: var(--text); font-size: .95rem; }
.person-meta { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: .88rem; color: var(--muted); }
.person-meta li { display: flex; gap: 9px; align-items: flex-start; word-break: break-word; }
.person-meta .icon { margin-top: 3px; color: var(--green); }
.person-meta a { color: inherit; text-decoration: none; }
.person-meta a:hover { color: var(--green); text-decoration: underline; }

.profile { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile-photo { aspect-ratio: 7 / 8; border-radius: var(--radius); overflow: hidden; background: var(--green-50); box-shadow: var(--shadow); }
.profile-body h2 { font-size: 2rem; margin-bottom: .2em; }
.profile-facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 22px 0 28px; padding: 22px 0; border-block: 1px solid var(--line); }
.profile-facts dt { font-weight: 500; color: var(--muted); }
.profile-facts dd { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile-photo { max-width: 320px; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16 / 10; background: var(--green-50); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb-empty { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--green-50), var(--green-100)); }
.news-thumb-empty img { width: 72px; height: 72px; object-fit: contain; opacity: .45; filter: grayscale(.2); }
.news-body { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 9px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green); font-weight: 500; }
.news-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green-200); }
.news-body h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; font-family: var(--font); font-weight: 500; }
.news-body h3 a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-body h3 a:hover { color: var(--green); }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip { display: inline-block; padding: 8px 16px; font-size: .88rem; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: all .2s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-small { padding: 4px 12px; font-size: .78rem; background: var(--green-50); border-color: var(--green-100); color: var(--green); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.pg { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); background: #fff; font-weight: 500; }
a.pg:hover { border-color: var(--green); color: var(--green); }
.pg.is-current { background: var(--green); border-color: var(--green); color: #fff; }
.pg-gap { border-color: transparent; background: none; }

.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 26px; color: var(--muted); font-size: .92rem; }
.article-meta .icon { margin-right: 6px; color: var(--green); }
.article img { border-radius: var(--radius-sm); }
.back-link { margin-top: 44px; }
.more-news { margin-top: 70px; }

/* ---------- Page banner ---------- */
.page-banner { position: relative; color: #fff; padding: clamp(36px, 5vw, 64px) 0 clamp(34px, 5vw, 60px); background: linear-gradient(135deg, var(--green) 0%, var(--green-800) 100%); overflow: hidden; isolation: isolate; }
.page-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 300px at 85% -10%, rgba(255,255,255,.14), transparent 60%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px); }
.page-banner.has-image { background: var(--green-900) var(--banner-image) center / cover; }
.page-banner.has-image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,44,24,.9), rgba(3,44,24,.55)); }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: .01em; margin: 10px 0 0; max-width: 940px; }
.banner-sub { margin: 10px 0 0; font-size: 1.1rem; color: rgba(255,255,255,.86); max-width: 720px; }
.crumbs { font-size: .84rem; letter-spacing: .04em; color: rgba(255,255,255,.75); }
.crumbs a { color: rgba(255,255,255,.88); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .sep { margin: 0 8px; opacity: .55; }

/* ---------- Prose (editor content) ---------- */
.prose { font-size: 1.04rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; color: var(--green); margin: 1.8em 0 .55em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; color: var(--ink); }
.prose h4 { font-size: 1.12rem; margin: 1.4em 0 .4em; color: var(--green-700); }
.prose img { border-radius: var(--radius-sm); margin-block: 1.2em; }
.prose a { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--green); background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: .93rem; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { position: sticky; top: 0; background: var(--green); color: #fff; font-weight: 500; white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: var(--bg-soft); }
.prose tbody tr:hover { background: var(--green-50); }
.prose-intro { max-width: 860px; margin: 0 auto 48px; }
.prose-intro.is-centered { text-align: center; }
.prose .alignleft, .prose img[alt~="left"] { float: left; margin: 0 24px 12px 0; max-width: 220px; }
.prose::after { content: ''; display: table; clear: both; }
.prose figure { margin: 1.4em 0; }
.prose img { max-width: 100%; height: auto; }

/* ---------- Albums inside page content (see albumize filter) ---------- */
.album { column-count: 3; column-gap: 14px; margin: 1.8em 0; }
.album[data-count="2"] { column-count: 2; }
.album .photo { break-inside: avoid; margin: 0 0 14px; }
.album .photo a { display: block; aspect-ratio: auto; border-radius: var(--radius-sm); overflow: hidden; background: var(--green-50); box-shadow: var(--shadow-sm); cursor: zoom-in; position: relative; }
.album .photo img, .photo-single img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; transition: transform .45s, filter .3s; }
.album .photo a:hover img { transform: scale(1.04); }
.album .photo a::after { content: ''; position: absolute; inset: 0; background: rgba(3,44,24,0); transition: background .25s; }
.album .photo a:hover::after { background: rgba(3,44,24,.18); }
.photo-single { margin: 1.6em 0; }
.photo-single a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; width: fit-content; max-width: 100%; }
.photo-single img { max-width: 100%; }
@media (max-width: 760px) { .album, .album[data-count="3"] { column-count: 2; } }
@media (max-width: 420px) { .album { column-gap: 10px; } .album .photo { margin-bottom: 10px; } }

/* ---------- Link cards / archives ---------- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: all .22s; }
.link-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.link-card-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--green-100); color: var(--green); }
.link-card-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.link-card-text strong { font-weight: 500; font-size: 1.04rem; }
.link-card-text small { color: var(--muted); }
.link-card-go { color: var(--green); transition: transform .2s; }
.link-card:hover .link-card-go { transform: translateX(4px); }

.archive-title { font-size: 1.5rem; color: var(--green); margin: 56px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--green-100); }
.archive-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.archive-list a { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); background: #fff; transition: all .2s; }
.archive-list a:hover { border-color: var(--green); color: var(--green); background: var(--green-50); }
.archive-list .icon { color: var(--green); }

/* ---------- Documents ---------- */
.doc-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 22px 24px; margin-top: 26px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); }
.doc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green); color: #fff; }
.doc-icon .icon { width: 26px; height: 26px; }
.doc-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.doc-info strong { font-weight: 500; color: var(--ink); word-break: break-word; }
.doc-info small { color: var(--muted); letter-spacing: .08em; }
.doc-viewer { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.doc-viewer iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; }

/* ---------- Galleries ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--green-100); box-shadow: var(--shadow-sm); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,44,24,.82), transparent 55%); }
.tile-label { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; color: #fff; }
.tile-label strong { font: 700 1.5rem/1.15 var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.tile-label small { opacity: .85; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin-top: 4px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.photo { margin: 0; }
.photo a { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--green-50); box-shadow: var(--shadow-sm); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo a:hover img { transform: scale(1.08); }
.photo figcaption { margin-top: 8px; font-size: .92rem; text-align: center; color: var(--text); font-weight: 500; }

.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; flex-direction: column; background: rgba(3,20,12,.96); padding: 24px; backdrop-filter: blur(6px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 78vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox p { color: #fff; margin: 16px 0 0; font-size: 1.05rem; text-align: center; max-width: 900px; }
.lightbox .lb-count { position: absolute; top: 28px; left: 24px; margin: 0; font-size: .9rem; letter-spacing: .12em; color: rgba(255,255,255,.8); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
.lightbox img { background: rgba(255,255,255,.04); min-height: 80px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; }
.lightbox .lb-next { right: 20px; top: 50%; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-form h2 { font-size: 1.8rem; color: var(--green); }
.info-card { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; }
.info-card h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-bottom: 14px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; word-break: break-word; }
.info-list .icon { margin-top: 4px; color: var(--green); }
.info-list a { color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--green); text-decoration: underline; }
.map-wrap { margin-top: 56px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* Form (Grav form plugin markup) */
form .form-group, form .form-field { margin-bottom: 18px; }
form label, form .form-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--ink); font-size: .94rem; }
form input[type=text], form input[type=email], form input[type=tel], form textarea, form select {
  width: 100%; padding: 13px 16px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #c9d5ce; border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
form textarea { min-height: 160px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
form .required { color: #b3261e; }
form button[type=submit], form input[type=submit], form .button { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.9em; font: 500 1rem/1 var(--font); color: #fff; background: var(--green); border: 2px solid var(--green); border-radius: 999px; cursor: pointer; transition: background .2s, transform .2s; }
form button[type=submit]:hover, form .button:hover { background: var(--green-700); border-color: var(--green-700); transform: translateY(-1px); }
.form-errors, .alert.error, .notices.red, .notices.yellow { padding: 14px 18px; border-radius: var(--radius-sm); background: #fdecea; color: #7a1710; border: 1px solid #f5c6c2; margin-bottom: 18px; }
.notices.green, .notices.blue, .form-message { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200); margin-bottom: 18px; }
.hidden-field, .form-honeypot, .honeypot { position: absolute; left: -9999px; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--green-800), var(--green)); color: #fff; padding: clamp(40px, 5vw, 64px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; margin: 0 0 .3em; }
.cta p { margin: 0; color: rgba(255,255,255,.88); max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-800); color: rgba(255,255,255,.82); font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.4fr; gap: clamp(24px, 3vw, 44px); padding-block: 64px 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand img { background: #fff; border-radius: 50%; padding: 4px; width: 60px; height: 60px; }
.brand-light .brand-text strong { color: #fff; font-size: 1rem; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; padding-bottom: 12px; position: relative; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--green-200); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; word-break: break-word; }
.footer-contact .icon { margin-top: 4px; color: var(--green-200); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); background: var(--green-900); }
.footer-bottom-inner { padding-block: 18px; text-align: center; font-size: .86rem; color: rgba(255,255,255,.75); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; font-weight: 500; }
@media (max-width: 1100px) { .footer-top { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; padding-block: 48px 32px; } .footer-contact { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Error ---------- */
.error-code { font: 700 clamp(5rem, 14vw, 9rem)/1 var(--font-head); color: var(--green-100); margin: 0; }
.error-page h1 { text-transform: uppercase; color: var(--green); }

/* Print */
@media print {
  .topbar, .site-header, .site-footer, .hero-controls, .cta { display: none !important; }
  body { color: #000; }
}
