/* ==========================================================================
   Multi Grace College — site stylesheet
   Palette: deep green, warm gold, cream. Type: Fraunces + Inter.
   ========================================================================== */

:root {
  --green-950: #071e17;
  --green-900: #0b2f24;
  --green-800: #0f3d2e;
  --green-700: #15573f;
  --green-600: #1d6b4e;
  --green-100: #e4efe8;
  --green-50: #f1f7f3;

  --gold: #c99a3f;
  --gold-light: #e4c583;
  --gold-ink: #7d5a17;
  --gold-50: #faf3e2;

  --cream: #f8f5ee;
  --paper: #fffdf8;
  --ink: #14231d;
  --muted: #586a62;
  --line: rgba(20, 35, 29, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --white: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(7, 30, 23, 0.06);
  --shadow-md: 0 18px 45px -22px rgba(7, 30, 23, 0.35);
  --shadow-lg: 0 35px 80px -40px rgba(7, 30, 23, 0.55);
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-600);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  line-height: 1.25;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.4rem;
}

blockquote {
  margin: 0;
}

figure {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gold-light);
  color: var(--green-950);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  background: var(--gold);
  color: var(--green-950);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--green-950);
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.eyebrow--dark {
  color: var(--gold-ink);
}

.section__head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

.section__head--center .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.section__title {
  margin-bottom: 0.55rem;
}

.section__lede {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--muted);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--green-800);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--btn-fg);
  box-shadow: 0 12px 24px -14px rgba(7, 30, 23, 0.65);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--green-950);
}

.btn--gold:hover {
  --btn-bg: var(--gold-light);
}

.btn--dark {
  --btn-bg: var(--green-900);
  --btn-fg: var(--white);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-border: var(--white);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--green-800);
  --btn-border: rgba(20, 35, 29, 0.25);
}

.btn--outline:hover {
  --btn-bg: var(--green-800);
  --btn-fg: var(--white);
  --btn-border: var(--green-800);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-700);
  text-decoration: none;
  border-bottom: 1px solid rgba(21, 87, 63, 0.25);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-arrow::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 0.7rem;
  border-color: var(--green-700);
}

.link-arrow--light {
  color: var(--gold-light);
  border-bottom-color: rgba(228, 197, 131, 0.4);
}

.link-arrow--light:hover {
  color: var(--white);
  border-color: var(--white);
}

/* --------------------------------------------------------------------------
   Top bar & header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.topbar__item:hover {
  color: var(--gold-light);
}

.topbar__item svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex: none;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.topbar__note {
  color: rgba(255, 255, 255, 0.55);
}

.topbar__right a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}

.topbar__right a:hover {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -20px rgba(7, 30, 23, 0.45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green-900);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: var(--green-900);
}

.brand__mark {
  width: 46px;
  height: 46px;
  color: var(--green-800);
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__sub {
  margin-top: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.9vw, 1.55rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--green-700);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--green-800);
  font-weight: 600;
}

.nav__apply {
  margin-left: 0.2rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--green-900);
}

.nav-toggle__bar {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--green-900);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 30, 23, 0.94) 0%, rgba(7, 30, 23, 0.82) 42%, rgba(7, 30, 23, 0.35) 100%),
    linear-gradient(to top, rgba(7, 30, 23, 0.75) 0%, rgba(7, 30, 23, 0) 38%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3.2rem, 7vw, 5.5rem);
}

.hero__content {
  max-width: 650px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.15rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__lede {
  max-width: 520px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__aside {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.4rem;
}

.hero-card {
  width: 100%;
  max-width: 330px;
  padding: 1.6rem 1.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(11, 47, 36, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64c98b;
  box-shadow: 0 0 0 4px rgba(100, 201, 139, 0.18);
}

.hero-card h2 {
  font-size: 1.32rem;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.hero-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.1rem;
}

.hero-card__list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-card__list li {
  display: flex;
  gap: 0.55rem;
  margin: 0;
}

.hero-card__list svg {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: var(--gold);
  flex: none;
}

.hero-card .link-arrow {
  font-size: 0.85rem;
}

/* Facts strip */

.facts {
  position: relative;
  z-index: 2;
  background: var(--green-950);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.fact {
  padding: 1.7rem 1.6rem;
  background: var(--green-950);
}

.fact__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.fact__label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   Sections & layout
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(3.6rem, 7vw, 6.2rem);
}

.section--tight {
  padding-block: clamp(2.6rem, 5vw, 4rem);
}

.section--cream {
  background: var(--cream);
}

.section--muted {
  background: var(--green-50);
}

.section--dark {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.8);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .section__lede,
.section--dark .lede {
  color: rgba(255, 255, 255, 0.7);
}

.section--flush-top {
  padding-top: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2.2rem, 5vw, 4.8rem);
}

.split--wide {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split__content {
  max-width: 560px;
}

.split__content > .btn,
.split__content > .link-arrow {
  margin-top: 0.5rem;
}

.media-stack {
  position: relative;
  padding-bottom: 2.4rem;
  padding-right: 2.2rem;
}

.media-stack img {
  width: 100%;
  aspect-ratio: 4 / 3.35;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.media-stack__small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  border: 6px solid var(--paper);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.media-stack__small img {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  box-shadow: none;
}

.media-stack__badge {
  position: absolute;
  top: 1.4rem;
  left: -1.1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--green-950);
  box-shadow: var(--shadow-md);
}

.media-stack__badge strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.media-stack__badge span {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section--cream .media-stack__small {
  border-color: var(--cream);
}

.grid {
  display: grid;
  gap: clamp(1.1rem, 2.2vw, 1.6rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 154, 63, 0.45);
}

.card__media {
  position: relative;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.45rem 1.4rem 1.5rem;
}

.card__body h3 {
  margin-bottom: 0.45rem;
}

.card__body p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.card__body .link-arrow,
.card__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tag--gold {
  background: var(--gold-50);
  color: var(--gold-ink);
}

.tag--light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-light);
}

/* Programme card */

.programme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.6rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.programme-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.programme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 154, 63, 0.4);
}

.programme-card:hover::before {
  transform: scaleX(1);
}

.programme-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-700);
}

.programme-card__icon svg {
  width: 26px;
  height: 26px;
}

.programme-card h3 {
  margin-bottom: 0.4rem;
}

.programme-card__level {
  margin-bottom: 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.programme-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.programme-card ul {
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--ink);
}

.programme-card ul li {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.32rem 0;
  border-bottom: 1px dashed var(--line);
}

.programme-card ul li:last-child {
  border-bottom: 0;
}

.programme-card ul svg {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  color: var(--gold);
  flex: none;
}

.programme-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* Feature blocks */

.feature {
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 154, 63, 0.45);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: rgba(201, 154, 63, 0.14);
  color: var(--gold-light);
}

.feature__icon svg {
  width: 23px;
  height: 23px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
}

/* Value cards */

.value-card {
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.value-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.value-card__letter {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.8rem;
}

/* Quote */

.quote-block {
  position: relative;
  padding: clamp(2rem, 4vw, 3.2rem);
  border-radius: var(--radius);
  background: var(--cream);
  border-left: 4px solid var(--gold);
}

.quote-block blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
}

.quote-block figcaption {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Testimonials */

.testimonial {
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.9rem;
  color: var(--gold);
}

.testimonial__stars svg {
  width: 15px;
  height: 15px;
}

.testimonial p {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.95rem;
  flex: none;
}

.testimonial__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.testimonial__role {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

/* News cards */

.news-card .card__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.news-card h3 {
  font-size: 1.14rem;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--green-700);
}

.news-card time {
  color: var(--muted);
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--green-950);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(7, 30, 23, 0.16);
  pointer-events: none;
}

.cta-band::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -190px;
}

.cta-band::after {
  width: 260px;
  height: 260px;
  right: 120px;
  bottom: -190px;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}

.cta-band h2 {
  margin-bottom: 0.35rem;
  color: var(--green-950);
}

.cta-band p {
  max-width: 560px;
  margin: 0;
  color: rgba(7, 30, 23, 0.75);
  font-size: 0.98rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  flex: none;
}

.cta-band .btn--dark:hover {
  --btn-bg: var(--green-800);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-900);
  color: var(--white);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(7, 30, 23, 0.95) 0%, rgba(7, 30, 23, 0.8) 55%, rgba(7, 30, 23, 0.42) 100%);
}

.page-hero__inner {
  padding-block: clamp(3.2rem, 7vw, 5.6rem);
  max-width: 750px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.7rem;
}

.page-hero p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb [aria-current="page"] {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Content blocks
   -------------------------------------------------------------------------- */

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose p,
.prose li {
  color: #33443c;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose ul li::marker {
  color: var(--gold);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  margin: 0;
  padding: 0.5rem 0;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.78);
}

.checklist svg {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: var(--gold);
  flex: none;
}

.checklist--dark li {
  color: var(--ink);
}

.checklist--dark svg {
  color: var(--green-700);
}

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.step h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--muted);
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

caption {
  padding: 1rem 1.2rem 0;
  text-align: left;
  font-size: 0.78rem;
  color: var(--muted);
}

th,
td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--green-50);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-800);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(201, 154, 63, 0.05);
}

td strong {
  color: var(--ink);
}

.section--dark .table-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}

.section--dark table {
  color: rgba(255, 255, 255, 0.76);
}

.section--dark th,
.section--dark td {
  border-bottom-color: var(--line-dark);
}

.section--dark td strong {
  color: var(--white);
}

.section--dark caption {
  color: rgba(255, 255, 255, 0.55);
}

.section--dark tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.section--dark .timeline li::before {
  box-shadow: 0 0 0 4px var(--green-900);
}

/* Accordion */

.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  overflow: hidden;
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion details:last-child {
  border-bottom: 0;
}

.accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 3.2rem 1.1rem 1.35rem;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary:hover {
  background: var(--green-50);
}

.accordion summary::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--gold-ink);
  border-bottom: 2px solid var(--gold-ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--ease);
}

.accordion details[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}

.accordion .accordion__body {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 72ch;
}

.accordion .accordion__body p {
  margin-bottom: 0.7rem;
}

.accordion .accordion__body p:last-child {
  margin-bottom: 0;
}

/* Timeline */

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.6rem;
  list-style: none;
  border-left: 1px solid rgba(201, 154, 63, 0.45);
}

.timeline li {
  position: relative;
  margin: 0 0 1.7rem;
  padding-left: 0.4rem;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.98rem;
  top: 0.5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-ink);
  margin-bottom: 0.15rem;
}

.timeline p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Filters */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--green-700);
  color: var(--green-700);
}

.filter-btn[aria-pressed="true"] {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

[data-filter-item][hidden] {
  display: none;
}

.filter-empty {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--green-900);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.82;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 30, 23, 0.72) 0%, rgba(7, 30, 23, 0) 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-visible .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  width: min(1000px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green-950);
  color: var(--white);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(4, 16, 12, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: var(--green-950);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
}

.lightbox__caption {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.lightbox__controls {
  display: flex;
  gap: 0.4rem;
  flex: none;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
}

.lightbox__btn svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Portal
   -------------------------------------------------------------------------- */

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.login-card {
  padding: clamp(1.7rem, 3vw, 2.3rem);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.login-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.login-card > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.portal-links {
  display: grid;
  gap: 0.8rem;
}

.portal-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.portal-card:hover {
  color: var(--ink);
  border-color: rgba(201, 154, 63, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.portal-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-700);
  flex: none;
}

.portal-card__icon svg {
  width: 21px;
  height: 21px;
}

.portal-card strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.3;
}

.portal-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.portal-card > svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--gold-ink);
  flex: none;
}

.notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 154, 63, 0.4);
  background: var(--gold-50);
  color: #5c4410;
  font-size: 0.86rem;
  line-height: 1.6;
}

.notice svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.form {
  display: grid;
  gap: 1.05rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.field label .req {
  color: #a4472a;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(20, 35, 29, 0.2);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314231d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(29, 107, 78, 0.15);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b2442a;
  box-shadow: 0 0 0 3px rgba(178, 68, 42, 0.12);
}

.field__error {
  font-size: 0.78rem;
  color: #9c3a21;
}

.field__hint {
  font-size: 0.76rem;
  color: var(--muted);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 0.2rem;
}

.form__foot p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 42ch;
}

.form__success {
  display: none;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 107, 78, 0.35);
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.9rem;
}

.form__success.is-visible {
  display: block;
}

.form__success h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.form__success p {
  margin-bottom: 0.6rem;
}

.checkbox-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
}

.checkbox-field .field__error {
  flex-basis: 100%;
  margin-left: 1.85rem;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--green-700);
}

.checkbox-field label {
  font-weight: 400;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact & map
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-700);
  flex: none;
}

.contact-card__icon svg {
  width: 20px;
  height: 20px;
}

.contact-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.contact-card p,
.contact-card ul {
  margin: 0;
  font-size: 0.92rem;
  color: #33443c;
}

.contact-card ul {
  padding: 0;
  list-style: none;
}

.contact-card li {
  margin: 0;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

.map {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-50);
}

.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map__fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  padding-top: clamp(3rem, 6vw, 4.6rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: 3rem;
}

.footer__brand .brand {
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer__brand .brand__mark {
  color: var(--gold);
}

.footer__brand .brand__sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer__brand p {
  max-width: 300px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer__col h3 {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li {
  margin: 0 0 0.55rem;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--gold-light);
}

.footer__contact li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer__contact svg {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: var(--gold);
  flex: none;
}

.social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-950);
}

.social svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--gold-light);
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--gold-light);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green-700);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .programme-card:hover,
  .btn:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 70px;
  }

  .topbar__note {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
    background: var(--green-950);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__link {
    display: block;
    padding: 0.95rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link[aria-current="page"] {
    color: var(--gold-light);
  }

  .nav__apply {
    align-self: flex-start;
    margin: 1.8rem 0 0;
    min-height: 52px;
    padding-inline: 1.8rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 120;
  }

  .nav-toggle[aria-expanded="true"] {
    color: var(--gold-light);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }

  .hero__aside {
    justify-content: flex-start;
  }

  .hero-card {
    max-width: 420px;
  }

  .facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split--wide,
  .portal-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .split--reverse .split__media {
    order: -1;
  }

  .media-stack {
    max-width: 560px;
    padding-right: 1.6rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 0.97rem;
  }

  .topbar {
    font-size: 0.72rem;
  }

  .topbar__inner {
    justify-content: center;
    min-height: 36px;
  }

  .topbar__meta {
    gap: 0.9rem;
    justify-content: center;
  }

  .topbar__meta .topbar__item:nth-child(1),
  .topbar__meta .topbar__item:nth-child(3) {
    display: none;
  }

  .topbar__right {
    display: none;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 1.08rem;
  }

  .brand__sub {
    font-size: 0.54rem;
  }

  .hero__inner {
    padding-block: 3.4rem 3rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8.5vw, 2.9rem);
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__aside {
    display: none;
  }

  .fact {
    padding: 1.25rem 1.1rem;
  }

  .fact__label {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-stack {
    padding-right: 1.2rem;
    padding-bottom: 2rem;
  }

  .media-stack__small {
    width: 42%;
  }

  .media-stack__badge {
    left: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .gallery-item__caption {
    opacity: 1;
    transform: none;
  }

  .step {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 1.1rem 1.15rem;
  }

  .step::before {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.9rem;
  }

  .footer__brand p {
    max-width: none;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    flex: 1 1 auto;
  }

  .lightbox__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox__controls {
    align-self: flex-end;
  }
}

@media (max-width: 400px) {
  .facts__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .fact__num {
    margin-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .back-to-top,
  .cta-band,
  .hero__aside,
  .topbar__right {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .page-hero {
    color: #000;
    background: #fff;
  }

  .hero h1,
  .page-hero h1 {
    color: #000;
  }

  .hero__media,
  .page-hero__media,
  .hero__overlay {
    display: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
