/* ==========================================================================
   Transformed Villages Initiative Association (TVIA)
   Stylesheet: mobile-first, no framework
   ========================================================================== */

:root {
  /* Brand colors extracted from the TVIA logo */
  --navy: #2d327f;
  --navy-dark: #1c2050;
  --navy-tint: #eef0fa;
  --green: #257e3a;
  --green-dark: #1b5c2a;
  --green-tint: #eaf5ec;
  --cream: #fefaf4;
  --white: #ffffff;
  --ink: #201f24;
  --gray-600: #201f24;
  --gray-400: #57544e;
  --gray-200: #e4e1d8;
  --gray-100: #f2f0e9;

  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --container-w: 1200px;
  --radius: 22px;
  --radius-sm: 12px;
  --radius-btn: 12px;
  --shadow-sm: 0 2px 10px rgba(32, 31, 36, 0.07);
  --shadow-md: 0 16px 40px rgba(29, 32, 74, 0.16);
  --shadow-lg: 0 24px 60px rgba(29, 32, 74, 0.22);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Subtle fractal-noise texture used on dark sections for a less flat, more premium feel */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul, ol { list-style: none; padding: 0; margin: 0; }
img, picture, svg { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: 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;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--white);
  line-height: 1.45;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.55em;
}

h1 { font-size: clamp(1.9rem, 4vw + 0.5rem, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.2vw + 0.5rem, 2rem); }
h3 { font-size: clamp(1.1rem, 1.1vw + 0.5rem, 1.25rem); }
h4 { font-size: 1.05rem; }

p { color: var(--gray-600); }
p + p { margin-top: 1em; }

.lede {
  font-size: clamp(0.92rem, 0.8vw + 0.55rem, 1.02rem);
  color: var(--gray-600);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.85em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.text-white { color: var(--white); }
.text-white h1, .text-white h2, .text-white h3 { color: var(--white); }
.text-white p { color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 30px; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy-dark); }
.section-tint-blue { background: var(--navy-tint); }
.section-tint-green { background: var(--green-tint); }

/* When two adjacent sections share the same background, they read as one
   continuous block, so the seam between them shouldn't double up on padding. */
.section:not(.section-alt):not(.section-navy):not(.section-tint-blue):not(.section-tint-green)
  + .section:not(.section-alt):not(.section-navy):not(.section-tint-blue):not(.section-tint-green) { padding-top: 0; }
.section-alt + .section-alt { padding-top: 0; }
.section-navy + .section-navy { padding-top: 0; }
.section-tint-blue + .section-tint-blue { padding-top: 0; }
.section-tint-green + .section-tint-green { padding-top: 0; }

.section-head {
  max-width: 700px;
  margin-bottom: 2.75rem;
}
.section-head.centered { margin-inline: auto; text-align: center; }

.grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Icons ---------- */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn .icon { font-size: 1.05em; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:hover { transform: translateY(-2px); }
.btn:active:hover { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 126, 58, 0.28);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(45, 50, 127, 0.24);
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy-dark); border-color: var(--white); }

.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
@media (max-width: 480px) {
  /* Two buttons placed side by side should stay side by side on mobile too,
     shrinking to fit rather than stacking into separate rows. */
  .btn-row { flex-wrap: nowrap; }
  .btn-row .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.75rem;
    font-size: 0.82rem;
    gap: 0.4em;
    white-space: normal;
    text-align: center;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}
.text-link:hover { color: var(--green); border-color: var(--green); gap: 0.6em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
/* The frost/blur lives on a pseudo-element rather than .site-header itself:
   backdrop-filter on the real element would create a new containing block for
   its fixed-position descendant (#main-nav), breaking the full-screen mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled { border-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.brand img {
  height: 52px;
  width: auto;
  transition: height var(--transition);
}
.site-header.is-scrolled .brand img { height: 42px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: var(--navy-tint);
  color: var(--navy);
  border: none;
  font-size: 1.4rem;
  transition: background var(--transition), color var(--transition);
}
.nav-toggle:hover, .nav-toggle:active { background: var(--navy); color: var(--white); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--navy); color: var(--white); }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav {
  position: fixed;
  inset: 0;
  top: 73px;
  background: var(--white);
  padding: 1.5rem 1.25rem 2.5rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.main-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.main-nav a:not(.btn) {
  display: block;
  padding: 0.95rem 0.25rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-dark);
  border-bottom: 1px solid var(--gray-100);
}
.main-nav a.is-active { color: var(--green); }
.main-nav .nav-cta { margin-top: 1.5rem; }

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }
  .main-nav a:not(.btn) {
    border-bottom: none;
    padding: 0.6rem 0.9rem;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 999px;
  }
  .main-nav a:not(.btn):hover { background: var(--navy-tint); }
  .main-nav a.is-active { background: var(--green-tint); color: var(--green-dark); }
  .main-nav .nav-cta { margin-top: 0; margin-left: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.hero:not(.hero-full)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.hero:not(.hero-full)::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -220px;
  top: -260px;
  background: radial-gradient(circle, rgba(37, 126, 58, 0.55) 0%, rgba(37, 126, 58, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* Full-bleed background-photo hero (home page) */
.hero-full {
  background: #0a0a0a;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5rem);
}
.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.5) 0%, rgba(8, 8, 8, 0.58) 45%, rgba(6, 6, 6, 0.88) 100%);
}
.hero.hero-inner { padding-block: clamp(2.25rem, 4vw, 3rem); }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
.hero-content .eyebrow { color: var(--green-tint); }
.hero-content .eyebrow::before { background: var(--green-tint); }
.hero-content .lede { color: var(--white); }
.hero-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  line-height: 0;
}
.hero-photo img { width: 100%; height: auto; transition: transform 0.5s ease; }
.hero-photo:hover img { transform: scale(1.055); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero.hero-inner .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.hero-content-centered {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}
.breadcrumb a:hover { color: var(--white); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gray-200); }
/* Images always render at their real, full, uncropped size and shape.
   Card heights in a row may vary slightly as a result, and that is fine. */
/* Card grids (What We Do, Blog) show every image at the same size for a clean
   grid, best-fit cropped to a consistent frame rather than left uneven. */
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media picture { height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--green-tint) 0%, #dcf0e0 100%);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.55rem; font-size: 1.15rem; }
.card p { font-size: 0.95rem; }
.card .text-link { margin-top: auto; padding-top: 1rem; }

/* ---------- Feature / service rows ---------- */
.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 2.75rem;
  border-bottom: 1px solid var(--gray-200);
}
.feature-row:last-child { border-bottom: none; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0; }
.feature-media img { width: 100%; height: auto; transition: transform 0.5s ease; }
.feature-media:hover img { transform: scale(1.055); }
/* a few feature images apply this class straight to the <img> (no wrapper div) */
img.feature-media { transition: transform 0.5s ease; }
img.feature-media:hover { transform: scale(1.055); }
@media (min-width: 768px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature-row.reverse .feature-media { order: 2; }
}

/* ---------- Gallery carousel ---------- */
.gallery-carousel-wrap { position: relative; }
.gallery-carousel {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.gallery-carousel::-webkit-scrollbar { display: none; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  z-index: 2;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.gallery-nav:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.gallery-prev { left: -8px; }
.gallery-next { right: -8px; }
@media (max-width: 640px) { .gallery-nav { display: none; } }

/* ---------- Founder / people ---------- */
.founder-card {
  position: relative;
  display: grid;
  gap: 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 3rem);
  overflow: hidden;
}
.founder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--grain);
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.founder-card > * { position: relative; z-index: 1; }
.founder-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); line-height: 0; }
.founder-photo img { width: 100%; height: auto; transition: transform 0.5s ease; }
.founder-photo:hover img { transform: scale(1.055); }
.founder-card h2, .founder-card h3 { color: var(--white); }
.founder-card p { color: var(--white); }
.founder-role {
  display: inline-block;
  color: var(--green-tint);
  background: rgba(37, 126, 58, 0.35);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.founder-highlights {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.founder-highlights li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--white);
}
.founder-highlights .icon { color: var(--green-tint); margin-top: 0.25em; flex-shrink: 0; }
@media (min-width: 768px) {
  .founder-card { grid-template-columns: 300px 1fr; align-items: start; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  gap: 1.75rem;
  max-width: 760px;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover, .team-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo { overflow: hidden; line-height: 0; aspect-ratio: 1 / 1; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.team-card:hover .team-photo img, .team-card:focus-visible .team-photo img { transform: scale(1.05); }
.team-body { padding: 1.5rem; }
.team-role {
  display: inline-block;
  color: var(--green-dark);
  background: var(--green-tint);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.team-body h3 { margin-bottom: 0.5rem; }
.team-body p { font-size: 0.9rem; }
.team-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
}

/* ---------- Team bio modal ---------- */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 13, 30, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.team-modal[hidden] { display: none; }
.team-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.team-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.team-modal-photo { line-height: 0; }
.team-modal-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--radius) var(--radius) 0 0; }
.team-modal-body { padding: 1.75rem; }
.team-modal-body h3 { margin-bottom: 0.5rem; }
.team-modal-body p { font-size: 0.98rem; }

/* ---------- Internship invitation ---------- */
.internship-invite { align-items: center; }
.internship-copy .lede { margin-bottom: 0; }
.internship-media img { width: 100%; height: auto; }
.offer-list {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  display: grid;
  gap: 0.85rem;
}
.offer-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--navy-dark);
}
.offer-list .icon {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.15em;
}
@media (min-width: 768px) {
  .internship-invite .internship-media { order: 2; }
}

/* ---------- Application modal ---------- */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 13, 30, 0.72);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.apply-modal[hidden] { display: none; }
.apply-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  margin: auto;
  box-shadow: var(--shadow-lg);
}
.apply-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.apply-modal-body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.apply-modal-body .eyebrow { padding-right: 2.75rem; }
.apply-modal-body h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.apply-modal-body > p { font-size: 0.96rem; margin-bottom: 1.5rem; }
#internship-form .form-row { margin-bottom: 1.1rem; }
#internship-form .field { margin-bottom: 0; }
#internship-form button[type="submit"] { width: 100%; margin-top: 0.4rem; }

/* ---------- Quote ---------- */
.quote-block {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.quote-block .icon { color: var(--green); font-size: 2rem; margin-bottom: 1rem; }
.quote-block blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw + 0.5rem, 1.6rem);
  color: var(--navy-dark);
  line-height: 1.4;
}
.quote-block cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--grain);
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: var(--white); max-width: 560px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.75rem; }

/* ---------- Values / approach list ---------- */
.value-list { display: grid; gap: 1.5rem; }
.value-item { display: flex; gap: 1rem; }
.value-item .card-icon { margin-bottom: 0; }
.value-item h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.value-item p { font-size: 0.94rem; }
@media (min-width: 768px) { .value-list.cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}
.contact-info-list { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}
.contact-info-item .card-icon { margin-bottom: 0; width: 42px; height: 42px; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-item-body { flex: 1; min-width: 0; }
.contact-info-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-info-item p { font-size: 0.92rem; margin: 0; }
.contact-info-item a { color: var(--navy); font-weight: 700; }
.contact-info-item a:hover { color: var(--green); }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy-dark); }
.field .required { color: var(--green); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.field-hint { font-size: 0.8rem; color: var(--gray-400); }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

.captcha-row { margin-top: 1.2rem; display: flex; justify-content: center; }
.captcha-row .g-recaptcha { min-height: 78px; }
.captcha-note { margin-top: 0.85rem; text-align: center; }
.captcha-note a { color: var(--navy); font-weight: 600; text-decoration: underline; }
#internship-form .captcha-row { justify-content: flex-start; }
@media (max-width: 360px) {
  .captcha-row .g-recaptcha { transform: scale(0.86); transform-origin: center; }
  #internship-form .captcha-row .g-recaptcha { transform-origin: left; }
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.is-visible { display: flex; }
.form-status.success { background: var(--green-tint); color: var(--green-dark); }
.form-status.error { background: #fbeaea; color: #a5303a; }
.form-status .icon { margin-top: 0.15em; flex-shrink: 0; font-size: 1.15rem; }

/* ---------- FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--gray-200); }
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0.25rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-dark);
}
.accordion-trigger .icon { color: var(--green); transition: transform var(--transition); flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.accordion-panel p { padding: 0 0.25rem 1.25rem; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0a0a; color: var(--white); }
.site-footer p { color: var(--white); }
.footer-top { padding-block: 3.25rem; display: grid; gap: 2.25rem; }
.footer-brand p { color: var(--white); font-size: 0.92rem; max-width: 320px; }
.footer-tagline { font-family: var(--font-serif); font-style: italic; color: var(--green-tint); margin-top: 0.75rem; font-size: 0.95rem; }
.footer-col h4, .footer-brand h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: var(--white); font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-col li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-col .icon { color: var(--green-tint); margin-top: 0.3em; flex-shrink: 0; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--white);
}
.footer-bottom a:hover { color: var(--white); }
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr; }
}

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--navy-tint);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.badge-pill .icon { color: var(--green); }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Floating action buttons ---------- */
.floating-actions {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background var(--transition), opacity var(--transition), visibility var(--transition);
}
.fab:hover { transform: translateY(-3px); }
.fab-whatsapp { background: var(--green); color: var(--white); }
.fab-whatsapp:hover { background: var(--green-dark); }

/* ---------- Animated counters ---------- */
.counter { font-variant-numeric: tabular-nums; }

/* ---------- Gallery lightbox ---------- */
.gallery-carousel a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: block;
  height: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gallery-carousel a img {
  height: 100%;
  width: auto;
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease;
}
.gallery-carousel a:hover img, .gallery-carousel a:focus-visible img { transform: scale(1.045); }
@media (min-width: 768px) { .gallery-carousel a { height: 320px; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 13, 30, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: 0.85rem;
  padding-inline: 4rem;
}

/* ---------- Program jump nav (services page) ---------- */
.jump-nav {
  position: sticky;
  top: 73px;
  z-index: 300;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.jump-nav ul {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.75rem;
  scrollbar-width: thin;
}
.jump-nav ul::-webkit-scrollbar { height: 4px; }
@media (min-width: 1024px) {
  .jump-nav ul { justify-content: center; overflow-x: visible; flex-wrap: wrap; }
}
.jump-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-tint);
  transition: background var(--transition), color var(--transition);
}
.jump-pill.is-active { background: var(--green); color: var(--white); }
.section .feature-row { scroll-margin-top: 145px; }

/* ---------- Quote carousel ---------- */
.quote-carousel {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  min-height: 220px;
}
.quote-slide { display: none; }
.quote-slide.is-active { display: block; animation: fadeInUp 0.5s ease; }
.quote-slide .icon { color: var(--green); font-size: 2rem; margin-bottom: 1rem; }
.quote-slide blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw + 0.5rem, 1.6rem);
  color: var(--navy-dark);
  line-height: 1.4;
}
.quote-slide cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
}
.quote-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.quote-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.quote-controls button:hover { background: var(--green); border-color: var(--green); color: var(--white); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Blog ---------- */
.post-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.card .post-date { margin-bottom: 0.5rem; }

.article-wrap { max-width: 740px; margin-inline: auto; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.article-meta strong { color: var(--navy-dark); }
.article-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.3rem, 1.8vw + 0.6rem, 1.6rem);
}
.article-body p { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.55; }
.article-body blockquote {
  border-left: 4px solid var(--green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy-dark);
  font-size: 1.15rem;
}
.article-share {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gray-200);
}
.article-share span { font-weight: 700; color: var(--navy-dark); font-size: 0.9rem; }

/* ---------- Copy to clipboard ---------- */
.contact-info-item { position: relative; }
.copy-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.copy-btn:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.copy-btn.is-copied { background: var(--green); color: var(--white); border-color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .quote-slide.is-active { animation: none; }
}
