/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --bg: #F1F3F0;
  --surface: #FFFFFF;
  --ink: #17242B;
  --ink-soft: #4C5D63;
  --line: #DCE3DE;

  --primary: #1F5C73;
  --primary-dark: #123B4B;
  --primary-tint: #E5EEEF;

  --amber: #E1A339;
  --amber-tint: #FBF0DC;

  --moss: #4C7A57;
  --moss-tint: #E7F0E7;

  --danger: #B3443A;

  --font-display: "PT Serif", Georgia, "Times New Roman", serif;
  --font-body: "PT Sans", -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1140px;
  --wrap-narrow: 760px;
}

/* =========================================================
   Reset & base
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--primary);
  color: #fff;
  padding: 0.75em 1.2em;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: 4rem 0; }
.section-alt { background: var(--surface); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }

.lead { font-size: 1.1rem; max-width: 60ch; }
.empty-note { color: var(--ink-soft); font-style: italic; }

.link-more { font-weight: 700; white-space: nowrap; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-tint); }
.btn-block { display: block; width: 100%; text-align: center; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 50%; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.site-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  background: var(--amber);
  color: var(--ink) !important;
  padding: 0.55em 1.2em;
  border-radius: 999px;
}
.nav-cta:hover { background: #cf9127 !important; }

.lang-switch {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.45em 1em !important;
  font-size: 0.85rem !important;
  color: var(--ink) !important;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary) !important; text-decoration: none !important; }

.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav a { padding: 1rem 1.5rem; width: 100%; }
  .nav-cta { border-radius: 0; margin: 0.5rem 1.5rem; width: fit-content; }
  .nav-toggle-input:checked ~ .site-nav { max-height: 320px; }
}

/* =========================================================
   Flash messages
   ========================================================= */
.flash-wrap { padding-top: 1rem; }
.flash {
  padding: 0.9em 1.2em;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.flash-success { background: var(--moss-tint); color: #2d4b34; }
.flash-info { background: var(--primary-tint); color: var(--primary-dark); }
.flash-warning { background: var(--amber-tint); color: #6b4b0f; }
.flash-danger { background: #f7e3e1; color: var(--danger); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 4.5rem 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy h1 { max-width: 14ch; }
.hero-sub { font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { display: flex; flex-direction: column; align-items: center; }
.hero-art-frame {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(18, 59, 75, 0.35);
}
.hero-art-frame img { width: 100%; height: auto; display: block; }
.hero-art-frame.has-photo img { aspect-ratio: 1 / 1; object-fit: cover; }
.hero-photo-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0.9rem 0 0;
  text-align: center;
}

.stats-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding: 2rem 1.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; max-width: 220px; margin: 0 auto 1rem; }
}

/* =========================================================
   About / focus cards
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.focus-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.focus-card h3 { margin-bottom: 0.4em; color: var(--primary-dark); }
.focus-card p { margin: 0; font-size: 0.95rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .focus-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Mission quote band
   ========================================================= */
.quote-band {
  background: var(--primary-tint);
  padding: 3.5rem 0;
}
.quote-block { max-width: 780px; margin: 0 auto; text-align: center; position: relative; }
.quote-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--amber);
  display: block;
  margin-bottom: -0.5rem;
}
.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   Moments gallery (illustrative — see hero note re: real photos)
   ========================================================= */
.moments-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.moments-head p { margin: 0.6em auto 0; }
.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.moment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.moment-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.moment-caption { padding: 1rem 1.2rem 1.3rem; font-weight: 700; color: var(--ink); font-size: 0.95rem; }

@media (max-width: 860px) {
  .moments-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .moments-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Cards (announcements)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 1.3rem; }
.card-date {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.4em;
}
.card h3, .card-title { margin-bottom: 0.3em; font-size: 1.15rem; }
.card h3 a, .card-title a { color: var(--ink); }
.card p { font-size: 0.95rem; margin-bottom: 0.6em; }

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Timeline (activities) — a real chronological sequence,
   so a rail + markers is meaningful here, not decorative.
   ========================================================= */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--moss);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--moss);
}
.timeline-content h3 { margin-bottom: 0.25em; }
.timeline-content h3 a, .timeline-content .card-title a { color: var(--ink); }
.timeline-content p { font-size: 0.95rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { background: var(--primary-dark); color: #fff; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band .btn-primary { background: var(--amber); color: var(--ink); }
.cta-band .btn-primary:hover { background: #cf9127; }

/* =========================================================
   Detail pages
   ========================================================= */
.page-head { padding-bottom: 1rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 700; }
.detail h1 { margin-top: 0.3em; }
.detail-img { border-radius: var(--radius); margin: 1.5rem 0; max-height: 420px; width: 100%; object-fit: cover; }
.detail-body { max-width: 70ch; font-size: 1.05rem; }
.detail-body p { color: var(--ink); }

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-weight: 700;
}
.pagination-current { color: var(--ink-soft); font-weight: 400; font-size: 0.9rem; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}
.contact-item { margin-bottom: 1.6rem; }
.contact-item h3 { color: var(--primary-dark); margin-bottom: 0.2em; font-size: 1rem; }
.contact-item p { margin: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field input[type="file"],
.field textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.field-checkbox { display: flex; align-items: center; gap: 0.6em; }
.field-checkbox label { margin: 0; }
.field-error { color: var(--danger); font-size: 0.85rem; display: block; margin-top: 0.3em; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--primary-dark);
  color: #d9e4e6;
  margin-top: 2rem;
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 0.4em;
}
.footer-tagline { color: #b9cbce; max-width: 40ch; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #fff; font-weight: 700; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 0.6em; }
.footer-col a { display: block; color: #cfdde0; margin-bottom: 0.5em; }
.footer-col p { color: #cfdde0; margin-bottom: 0.4em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  color: #a9bcc0;
}
.footer-bottom p { margin: 0; color: inherit; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
