@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@1,700&display=swap');

:root {
  --primary-deep: hsl(215, 75%, 22%);
  --primary-light: hsl(215, 45%, 96%);
  --secondary-gold: hsl(38, 95%, 52%);
  --accent-clay: hsl(24, 70%, 45%);
  
  --bg-cream: hsl(210, 20%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-slate: hsl(215, 15%, 93%);
  
  --text-ink: hsl(215, 45%, 10%);
  --text-body: hsl(215, 20%, 32%);
  --text-muted: hsl(215, 12%, 45%);
  --text-white: hsl(210, 20%, 98%);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 20px -2px rgba(11, 28, 60, 0.06);
  --shadow-md: 0 12px 30px -5px rgba(11, 28, 60, 0.10);
  --shadow-lg: 0 24px 50px -10px rgba(11, 28, 60, 0.16);
  --shadow-gold: 0 8px 30px -4px rgba(252, 185, 0, 0.25);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  
  --nav-height: 80px;
  --section-gap: 6rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-cream);
  color: var(--text-ink);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: normal;
  color: var(--secondary-gold);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* LAYOUT & CONTAINER */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  max-width: 650px;
  margin-bottom: 4rem;
}

.section-header.center {
  margin: 0 auto 4rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary-gold);
  margin-bottom: 1rem;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  z-index: 9999;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  /* iOS Safari fix: forces GPU compositing layer so position:fixed
     stays visible even when overflow-x:hidden is on the body */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary-deep);
}

.logo span {
  color: var(--secondary-gold);
}

.logo img {
  height: 65px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

/* HAMBURGER ICON – hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-ink);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-ink);
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary-deep);
  color: var(--text-white) !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: var(--border-radius-sm);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--secondary-gold);
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-gold);
  color: #1a1a2e;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 15px rgba(252, 185, 0, 0.35);
}

.btn-primary:hover {
  background: #fff;
  color: var(--primary-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(252, 185, 0, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary-deep);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: 2px solid var(--primary-deep);
  transition: var(--transition-smooth);
  letter-spacing: 0.03em;
}

.btn-outline:hover {
  background: var(--primary-deep);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hero buttons variant */
.hero .btn-primary {
  background: var(--secondary-gold);
  color: #1a1a2e;
  box-shadow: 0 6px 20px rgba(252,185,0,0.4);
}

.hero .btn-primary:hover {
  background: #fff;
  color: var(--primary-deep);
}

.hero .btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: var(--transition-smooth);
  letter-spacing: 0.03em;
}

.hero .btn-outline-white:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-3px);
}

/* HERO SECTION */
.hero {
  background: var(--primary-deep);
  padding: 0;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    rgba(10, 30, 70, 0.72) 0%,
    rgba(11, 28, 60, 0.55) 50%,
    rgba(10, 20, 50, 0.70) 100%
  );
}

.hero h1 {
  color: var(--text-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 em {
  color: var(--secondary-gold);
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 1.5rem 0 2.5rem;
  max-width: 560px;
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stat-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero-stat-card:nth-child(even) {
  margin-top: 3rem;
}

.counter-card { background: #fff; border-radius: 20px; padding: 3rem 2rem; text-align: center; box-shadow: var(--shadow-md); border: 1px solid rgba(30,115,190,0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; }
.counter-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-deep), var(--secondary-gold)); }
.counter-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.counter-number { font-family: 'Outfit', sans-serif; font-size: 4rem; font-weight: 900; color: var(--primary-deep); margin-bottom: 0.5rem; line-height: 1; }
.counter-number em { font-style: normal; color: var(--secondary-gold); }
.counter-label { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.5rem; }

/* GRIDS & CARDS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.03);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-gold);
}

.value-card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-deep);
  font-size: 1.5rem;
  font-weight: 700;
}

.value-card h3 {
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.impact-card {
  background: var(--primary-deep);
  color: var(--text-white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.impact-card h3 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.impact-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.impact-list {
  list-style: none;
}

.impact-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.impact-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary-gold);
  font-weight: 700;
}

/* PILLAR GRID (For About / Core) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--secondary-gold);
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pillar-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

/* TEAM GRID */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: 14px; overflow: hidden; height: 220px; box-shadow: var(--shadow-sm); position: relative; cursor: pointer; }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,28,70,0.5) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); display: block; }
.gallery-item:hover img { transform: scale(1.08); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-member {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-role {
  font-size: 0.85rem;
  color: var(--secondary-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ---------- BOARD SECTION & TEAM MEMBER CARDS ---------- */
.board-section {
  background: #f8f5f0;
  padding: 5rem 0 6rem;
  position: relative;
}

.board-section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.board-section-title .section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-gold);
  margin-bottom: 0.6rem;
}

.board-section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--primary-deep);
  font-weight: 800;
  margin: 0;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .board-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.board-member {
  background: var(--primary-deep);
  border-radius: 16px;
  overflow: hidden;
  border-top: 4px solid var(--secondary-gold);
  box-shadow: 0 8px 32px rgba(30, 115, 190, 0.15);
  transition: transform 0.38s cubic-bezier(.23,1,.32,1),
              box-shadow 0.38s cubic-bezier(.23,1,.32,1);
  cursor: default;
  display: flex;
  flex-direction: column;
}

.board-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(252, 185, 0, 0.25),
              0 8px 24px rgba(30, 115, 190, 0.2);
}

.member-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #155a96;
}

.member-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(.23,1,.32,1);
  display: block;
}

.board-member:hover .member-img-wrap img {
  transform: scale(1.07);
}

.member-info {
  padding: 1.6rem 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  font-family: 'Outfit', sans-serif;
}

.member-role {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.member-location {
  font-size: 0.82rem;
  color: var(--secondary-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-gold-line {
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-gold) 0%, transparent 100%);
  opacity: 0.4;
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.8);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 40px;
}

.footer-logo span {
  color: var(--secondary-gold);
}

.footer-col h4 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--secondary-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* PAGE HEADER (For sub-pages) */
.page-header {
  background: var(--primary-deep);
  padding: 8rem 0 5rem;
  text-align: center;
  color: var(--text-white);
}

.page-header h1 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.page-header .eyebrow {
  color: var(--secondary-gold);
}

/* ANIMATIONS */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(45px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-down {
  opacity: 0;
  transform: translateY(-45px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-down.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered grid animations */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-grid.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Maintain hover transforms on staggered children */
.stagger-grid.visible > .feature-card:hover {
  transform: translateY(-8px);
}
.stagger-grid.visible > .value-card:hover {
  transform: translateY(-5px);
}
.stagger-grid.visible > .aim-card:hover {
  transform: translateY(-2px);
}

/* Delay multipliers up to 8 grid items */
.stagger-grid.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-grid.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-grid.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-grid.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-grid.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-grid.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-grid.visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-grid.visible > *:nth-child(8) { transition-delay: 0.54s; }

/* MOBILE NAV */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--primary-deep);
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3, .pillar-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Compact nav so all items stay on one line */
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-cta { padding: 0.6rem 1rem !important; }
  .logo img { height: 52px; }
}

@media (max-width: 768px) {
  /* ── Mobile nav drawer ── */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-height, 80px);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height, 80px));
    background: var(--bg-card);
    border-top: 3px solid var(--primary-deep);
    padding: 1.5rem 1.5rem 3rem;
    gap: 0;
    text-align: left;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9998;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }
  .nav-links.active { left: 0; }

  /* each menu item row */
  .nav-links > li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    width: 100%;
  }
  .nav-links > li:last-child { border-bottom: none; }

  /* all top-level links */
  .nav-links > li > a {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-ink);
    padding: 14px 4px;
    white-space: normal;
  }

  /* ── Hamburger icon ── */
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8.75px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8.75px) rotate(-45deg);
  }

  body.no-scroll { overflow: hidden; }

  /* ── Layout grid resets ── */
  .section { padding: 4rem 0; }
  .grid-2, .grid-3, .pillar-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .hero-visual { grid-template-columns: 1fr; }
}


/* TAB SYSTEM */
.tab-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}
.tab-headers {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  border-bottom: 2px solid var(--bg-slate);
  overflow-x: auto;
  padding-bottom: 0.5rem;
  /* hide scrollbar */
  scrollbar-width: none;
}
.tab-headers::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  position: relative;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -0.65rem;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-deep);
  transition: var(--transition-smooth);
  border-radius: 3px 3px 0 0;
}
.tab-btn:hover {
  color: var(--primary-deep);
}
.tab-btn.active {
  color: var(--primary-deep);
}
.tab-btn.active::after {
  width: 100%;
}
.tab-content {
  text-align: center;
  display: none;
  animation: fadeInTab 0.4s ease-out forwards;
}
.tab-content.active {
  display: block;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



.brand-highlight {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary-deep);
}

/* Ensure brand highlight is visible on dark backgrounds */
footer .brand-highlight,
#join .brand-highlight,
.page-header .brand-highlight {
  color: var(--secondary-gold);
}

/* PRODUCTION MOBILE RESPONSIVENESS UPDATES */
@media (max-width: 768px) {
  /* Ensure button groups stack on small mobile screens */
  .hero-actions, 
  div[style*="display: flex; gap: 1rem;"] {
    flex-direction: column !important;
    width: 100%;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* Ensure text doesn't overflow */
  body {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Contact form input paddings */
  input, textarea {
    font-size: 16px; /* Prevents iOS auto-zoom on inputs */
  }

  /* Padding adjustments for mobile */
  section {
    padding: 4rem 0;
  }
  
  .container {
    padding: 0 1.5rem;
  }

  .contact-form {
    padding: 1.5rem !important;
  }
}

/* Base Form Reset for Production */
input, textarea, button {
  appearance: none;
  -webkit-appearance: none;
}

/* Touch Target Optimizations (44x44px minimum recommendation) */
.social-links a {
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Touch targets – only applied on mobile via the media query below */

/* DROPDOWN MENU */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-sm);
  padding: 1rem 0;
  min-width: 220px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1100;
  border: 1px solid rgba(30,115,190,0.08);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
  text-align: left;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-ink);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: left;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(30,115,190,0.05);
  color: var(--primary-deep);
}

.dropdown-menu a::after {
  display: none !important;
}

/* Adjust active style on parent link in dropdown */
.nav-dropdown.active-parent > a::after {
  width: 100%;
}

@media (max-width: 768px) {
  /* ── Mobile dropdown sub-menu ── */
  .nav-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid var(--secondary-gold) !important;
    padding: 0.25rem 0 0.5rem 0 !important;
    margin: 0 0 0.4rem 0 !important;
    background: var(--primary-light) !important;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm) !important;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: unset !important;
    width: 100%;
    left: auto !important;
    right: auto !important;
    overflow: hidden;
  }
  .nav-dropdown.active-mobile .dropdown-menu {
    display: flex !important;
  }

  /* Make the Events trigger span the full row so the whole row is tappable */
  .nav-dropdown > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* rotate the chevron when open */
  .nav-dropdown.active-mobile > a svg {
    transform: rotate(180deg);
  }

  /* sub-menu links — large touch targets */
  .nav-dropdown .dropdown-menu li {
    width: 100%;
    border-bottom: none;
  }
  .nav-dropdown .dropdown-menu a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-deep);
    padding: 13px 16px 13px 20px;
    text-align: left;
    white-space: normal;
    display: block;
    width: 100%;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
    border-radius: 0;
  }
  .nav-dropdown .dropdown-menu a::after {
    display: none !important;
  }
  .nav-dropdown .dropdown-menu a:hover,
  .nav-dropdown .dropdown-menu a:active {
    color: var(--secondary-gold);
    background: rgba(30, 115, 190, 0.07);
    padding-left: 26px;
  }

  /* CTA button: full-width pill on mobile */
  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    border-radius: 999px !important;
    padding: 14px 1.5rem !important;
  }
}

/* GLOBAL LIGHTBOX / IMAGE POPUP */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.2s;
}
.lightbox-close:hover {
  transform: scale(1.1);
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 1.5rem;
  z-index: 10001;
  user-select: none;
  transition: color 0.2s, transform 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--secondary-gold);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* PARTNER LOGOS SECTION */
.partners-section {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-slate) 100%);
  padding: 5rem 0;
  border-top: 1px solid rgba(30,115,190,0.06);
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(30,115,190,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.partners-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 3rem;
  position: relative;
  opacity: 0.7;
}

.partners-title::before,
.partners-title::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 1px;
  background: rgba(30,115,190,0.2);
}
.partners-title::before { right: calc(50% + 100px); }
.partners-title::after { left: calc(50% + 100px); width: 60px; height: 1px; bottom: auto; border-radius: 0; background: rgba(30,115,190,0.2); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-logo-wrapper {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(30,115,190,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-logo-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30,115,190,0.1);
  border-color: rgba(252,185,0,0.35);
}

.partner-logo-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-logo-wrapper:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 0 1rem;
  }
  .partner-logo-wrapper {
    height: 80px;
    padding: 1rem;
  }
}

/* ===== ADDITIONAL BEAUTIFICATION STYLES ===== */

/* Hero responsive improvements */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem) !important;
  }
  .hero-desc {
    font-size: 1rem !important;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }
  .btn-primary,
  .hero .btn-outline-white {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }
}

/* Gallery grid responsive */
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .gallery-item {
    height: 160px !important;
  }
}

/* Smooth section transitions */
section {
  transition: background 0.3s ease;
}

/* Value card icon enhancement */
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(30,115,190,0.1), rgba(252,185,0,0.1));
  border-radius: 14px;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(30,115,190,0.08);
}

/* Counter card layout fix */
@media (max-width: 640px) {
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Smooth image loading */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus ring for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--secondary-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Eyebrow caption polish */
.eyebrow {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
}

/* Section heading em tag global style */
h2 em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: var(--secondary-gold);
}

/* Gallery "View Full Gallery" btn on dark background */
.gallery-view-btn {
  border-color: var(--primary-deep);
  color: var(--primary-deep);
}
