/* ---------------------------------------------------
   GeIS design tokens
--------------------------------------------------- */
:root {
  --forest: #0b5e14;
  --forest-deep: #074f0d;
  --lime: #16a34a;
  --gold: #c9a84c;
  --cream: #f9fdf7;
  --ink: #16211a;
  --ink-soft: #3d4a41;
  --line: rgba(11, 46, 20, 0.14);
  --line-on-dark: rgba(244, 240, 230, 0.18);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 0.5em;
  color: var(--forest-deep);
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

a { color: inherit; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin: 0 0 0.9em;
}
.eyebrow-on-dark { color: var(--gold); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--forest-deep); }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

/* subtle paper grain, decorative only */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 230, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--forest-deep);
}
.wordmark-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
}
.wordmark-full {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
@media (max-width: 640px) { .wordmark-full { display: none; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--forest); }
.nav-cta {
  background: var(--forest);
  color: var(--cream) !important;
  padding: 0.55em 1.2em !important;
  border-radius: 3px;
}
.nav-cta:hover { border-bottom-color: transparent !important; background: var(--forest-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--forest-deep); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a { width: 100%; padding: 16px 28px; border-bottom: 1px solid var(--line); }
  .nav-cta { border-radius: 0; }
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero { padding: 88px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-lede { font-size: 1.08rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 1.6em; flex-wrap: wrap; }

.cycle-svg { width: 100%; height: auto; max-width: 420px; margin: 0 auto; display: block; }
.cycle-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.cycle-ring-dash { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 10; }
.cycle-node circle { fill: var(--lime); }
.cycle-label-main {
  font-family: var(--serif); font-weight: 700; font-size: 64px;
  fill: var(--forest-deep); text-anchor: middle;
}
.cycle-label-sub {
  font-family: var(--sans); font-size: 15px; letter-spacing: 0.03em;
  fill: var(--ink-soft); text-anchor: middle;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 280px; margin: 0 auto; }
}

/* ---------------------------------------------------
   About
--------------------------------------------------- */
.about { padding: 88px 0; border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
.about-stats {
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-stats dt {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--forest);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.about-stats dd { margin: 0; font-size: 0.95rem; }

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
}

/* ---------------------------------------------------
   Divisions
--------------------------------------------------- */
.divisions {
  background: var(--forest);
  color: var(--cream);
  padding: 96px 0;
}
.divisions-heading { color: var(--cream); max-width: 22ch; }

.division-list { list-style: none; margin: 48px 0 0; padding: 0; }
.division-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line-on-dark);
}
.division-row:last-child { border-bottom: 1px solid var(--line-on-dark); }
.division-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  color: var(--gold);
}
.division-text h3 { color: var(--cream); margin-bottom: 0.3em; }
.division-text p { color: rgba(244, 240, 230, 0.72); margin: 0; max-width: 56ch; }

@media (max-width: 640px) {
  .division-row { gap: 18px; }
}

/* ---------------------------------------------------
   Programmes
--------------------------------------------------- */
.programmes { padding: 96px 0; }
.programmes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.programme-feature {
  background: var(--cream);
  padding: 44px;
}
.programme-feature-alt { background: #eee7d4; }

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

/* ---------------------------------------------------
   Partners
--------------------------------------------------- */
.partners { padding: 0 0 96px; }
.partner-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.partner-list li {
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 10px 20px;
  border: 1px solid var(--line);
  color: var(--forest-deep);
}

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.contact {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 96px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-copy h2 { color: var(--cream); max-width: 16ch; }
.contact-copy p { color: rgba(244, 240, 230, 0.72); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; color: rgba(244, 240, 230, 0.85); }
.contact-form input,
.contact-form textarea {
  background: rgba(244, 240, 230, 0.06);
  border: 1px solid var(--line-on-dark);
  color: var(--cream);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.98rem;
  border-radius: 2px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.contact-form button { align-self: flex-start; }
.form-status { font-size: 0.9rem; color: var(--lime); min-height: 1.2em; margin: 0; }

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

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer { padding: 32px 0; }
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* keyboard focus visibility across interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
/* GeIS brand identity */
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--forest);
}

.geis-logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--forest);
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 42px;
  background: var(--line);
  margin: 0 3px;
}

.brand-full {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  max-width: 145px;
}




/* GeIS hero cycle text transition */
.cycle-label-main,
.cycle-label-sub {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cycle-fade {
  opacity: 0;
  transform: translateY(8px);
}



/* ---------------------------------------------------------------
   GeIS hero - living cycle animation
   --------------------------------------------------------------- */

.cycle-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: geisNodePulse 3.6s ease-in-out infinite;
}

.cycle-node[data-n="1"] {
  animation-delay: 0s;
}

.cycle-node[data-n="2"] {
  animation-delay: 0.6s;
}

.cycle-node[data-n="3"] {
  animation-delay: 1.2s;
}

.cycle-node[data-n="4"] {
  animation-delay: 1.8s;
}

.cycle-node[data-n="5"] {
  animation-delay: 2.4s;
}

.cycle-node[data-n="6"] {
  animation-delay: 3s;
}

@keyframes geisNodePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

/* Gentle movement for the dashed system ring */
.cycle-ring-dash {
  transform-origin: center;
  animation: geisRingRotate 24s linear infinite;
}

@keyframes geisRingRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cycle-node,
  .cycle-ring-dash {
    animation: none;
  }
}

/* ---------------------------------------------------------------
   GeIS in Action - Photo Carousel
   --------------------------------------------------------------- */

.gallery {
  padding: 110px 0;
  background: var(--cream);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.gallery-heading h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--forest);
}

.gallery-intro {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Main carousel box */
.gallery-carousel {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--forest);
  box-shadow: 0 24px 60px rgba(7, 30, 10, 0.16);
}

/* Slides */
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Dark green gradient */
.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 32, 12, 0.9) 0%,
    rgba(5, 32, 12, 0.35) 45%,
    rgba(5, 32, 12, 0.02) 75%
  );
  pointer-events: none;
}

/* Caption */
.gallery-caption {
  position: absolute;
  left: 50px;
  bottom: 42px;
  z-index: 2;
  color: #fff;
  max-width: 600px;
}

.gallery-count {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  opacity: 0.9;
}

.gallery-caption strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.gallery-caption span {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Arrow buttons */
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: rgba(11, 94, 20, 0.9);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.gallery-arrow:hover {
  background: var(--forest-deep);
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
  left: 24px;
}

.gallery-next {
  right: 24px;
}

/* Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 94, 20, 0.2);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.gallery-dot.active {
  background: var(--forest);
  transform: scale(1.35);
}

/* Mobile */
@media (max-width: 900px) {
  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-carousel {
    height: 480px;
  }

  .gallery-caption {
    left: 30px;
    right: 30px;
    bottom: 32px;
  }
}

@media (max-width: 600px) {
  .gallery {
    padding: 80px 0;
  }

  .gallery-heading {
    margin-bottom: 32px;
  }

  .gallery-carousel {
    height: 430px;
    border-radius: 12px;
  }

  .gallery-caption {
    left: 22px;
    right: 22px;
    bottom: 25px;
  }

  .gallery-caption strong {
    font-size: 2rem;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .gallery-prev {
    left: 12px;
  }

  .gallery-next {
    right: 12px;
  }
}
/* ---------------------------------------------------------------
   Shared navigation polish for all GeIS pages
   --------------------------------------------------------------- */

.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 88px;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
}

.site-header .site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header .site-nav a:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

.site-header .site-nav a.active {
  color: var(--forest);
  font-weight: 600;
  border-bottom-color: var(--forest);
}

.site-header .site-nav .nav-cta {
  background: var(--forest);
  color: var(--cream) !important;
  padding: 0.6em 1.2em !important;
  border-radius: 3px;
  border-bottom: none !important;
}

.site-header .site-nav .nav-cta:hover {
  background: var(--forest-deep);
  color: #fff !important;
}
/* Social media links */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.social-links strong {
  margin-right: 6px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.linkedin {
  background: #0a66c2;
}

.social-icon.youtube {
  background: #ff0000;
}


/* Partner logos */

.partner-logo {
  width: 100%;
  height: 110px;
  object-fit: contain;
  display: block;
  margin: 0 auto 22px;
  padding: 12px 28px;
  box-sizing: border-box;
  background: #f7faf5;
  border-radius: 10px;
}
.partner-card h3 {
  margin-top: 0;
}




/* Sponsorship and services sections */
#sponsorship {
  padding-bottom: 48px;
}

#services {
  padding-top: 48px;
  padding-bottom: 64px;
}


.division-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.8;
}

.division-card:hover .division-link {
  opacity: 1;
}



/* =========================================
   GEIS HOMEPAGE - SIX DIVISIONS
   ========================================= */

.home-divisions-section {
  padding: 100px 0;
  background: var(--cream);
}

.home-divisions-heading {
  max-width: 780px;
  margin-bottom: 55px;
}

.home-divisions-heading .eyebrow {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.home-divisions-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--forest);
  margin: 0 0 22px;
}

.home-divisions-heading p:last-child {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.7;
}

.home-divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-division-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 330px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-division-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(7, 30, 10, 0.09);
}

.home-division-number {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 35px;
}

.home-division-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 15px;
}

.home-division-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 22px;
}

.home-division-link {
  display: inline-block;
  margin-top: auto;
  padding: 10px 16px;
  background: var(--forest);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.25s ease;
}

.home-division-card:hover .home-division-link {
  background: var(--gold);
  color: var(--forest);
}

/* Tablet */
@media (max-width: 900px) {
  .home-divisions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .home-divisions-section {
    padding: 70px 0;
  }

  .home-divisions-grid {
    grid-template-columns: 1fr;
  }

  .home-division-card {
    min-height: 280px;
    padding: 26px;
  }
}

