/* ============================================
   LION AND SUN FOUNDATION
   Apple-grade Mobile-First Design System
   Breakpoints: 390 · 768 · 1024 · 1280
   ============================================ */

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

/* ── TOKENS ───────────────────────────────── */
:root {
  --navy:        #1B2A4A;
  --navy-deep:   #111e36;
  --hero-bg:     #0d1a30;
  --gold:        #C9A84C;
  --gold-light:  #e0c278;
  --gold-dim:    rgba(201,168,76,0.12);
  --dark:        #0D0D0D;
  --white:       #FFFFFF;
  --light-bg:    #F8F7F4;
  --text-dark:   #1a1a1a;
  --text-muted:  #6b7280;
  --border:      #e5e0d5;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(27,42,74,0.10);
  --shadow-lg:   0 20px 60px rgba(27,42,74,0.14);
  --transition:  all 0.28s cubic-bezier(0.4,0,0.2,1);
  --nav-h:       64px;

  /* Safe area (iPhone notch / Dynamic Island / home bar) */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── GLOBAL OVERFLOW LOCK ─────────────────── */
*:not(html):not(body) {
  max-width: 100%;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(1.25rem, var(--safe-left)) 0 max(1.25rem, var(--safe-right));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.3);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(17, 30, 54, 0.96);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.4);
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.navbar-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-brand-tagline {
  font-size: 0.6rem;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Desktop nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.navbar-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s ease;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}

@media (hover: hover) {
  .navbar-nav a:hover { color: var(--gold); }
  .navbar-nav a:hover::after { width: 100%; }
}

.navbar-nav a.active { color: var(--gold); }
.navbar-nav a.active::after { width: 100%; }

/* Hamburger button */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: none;
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
  transform-origin: center;
}

.navbar-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ────────────────── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  height: 100dvh;
  background: var(--navy-deep);
  z-index: 850;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: calc(var(--nav-h) + var(--safe-top));
  padding-bottom: calc(2rem + var(--safe-bottom));
  padding-left: 2rem;
  padding-right: 2rem;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay.open {
  opacity: 1;
}

.mobile-menu-nav {
  list-style: none;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu-nav li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-nav li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open .mobile-menu-nav li:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu-nav li:nth-child(2) { transition-delay: 0.13s; }
.mobile-menu.open .mobile-menu-nav li:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-nav li:nth-child(4) { transition-delay: 0.23s; }
.mobile-menu.open .mobile-menu-nav li:nth-child(5) { transition-delay: 0.28s; }

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  min-height: 56px;
  transition: color 0.2s ease;
}

.mobile-menu-nav a::after {
  content: '→';
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.6;
}

.mobile-menu-nav a.active,
.mobile-menu-nav a:active {
  color: var(--gold);
}

.mobile-menu-brand {
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 1rem;
}

.mobile-menu-brand p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.7;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--safe-top) + 2rem) max(1.5rem, var(--safe-right)) calc(3rem + var(--safe-bottom)) max(1.5rem, var(--safe-left));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 680px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: clamp(700px, 100vw, 1400px);
  max-width: 95%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transform: translateX(0);
  animation: fadeInDown 0.9s cubic-bezier(0.4,0,0.2,1) forwards;
  filter: drop-shadow(0 0 50px rgba(201,168,76,0.22));
}

.hero-tagline {
  margin-top: clamp(-60px, -5vw, -20px);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  color: var(--gold);
  letter-spacing: 0.03em;
  animation: fadeInUp 0.9s ease 0.3s both;
  padding: 0 1rem;
}

.hero-divider {
  width: 50px;
  height: 1px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: fadeIn 0.9s ease 0.5s both;
}

.hero-cta {
  margin-top: 1rem;
  animation: fadeInUp 0.9s ease 0.6s both;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
  background: var(--hero-bg);
  padding: calc(var(--nav-h) + var(--safe-top) + clamp(2rem, 5vw, 4rem)) max(1.5rem, var(--safe-right)) clamp(2.5rem, 5vw, 4rem) max(1.5rem, var(--safe-left));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.05) 0%, transparent 65%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: rgba(255,255,255,0.6);
  font-style: italic;
  padding: 0 1rem;
}

.page-hero-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2vw, 0.95rem) clamp(1.5rem, 4vw, 2.5rem);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
  min-height: 48px;
  touch-action: manipulation;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

@media (hover: hover) {
  .btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.32);
  }
}

.btn-gold:active { transform: scale(0.97); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

@media (hover: hover) {
  .btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
  }
}

.btn-outline-gold:active { transform: scale(0.97); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

@media (hover: hover) {
  .btn-navy:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27,42,74,0.3);
  }
}

.btn-navy:active { transform: scale(0.97); }

/* ============================================
   LAYOUT & SECTIONS
   ============================================ */

section {
  padding: clamp(3.5rem, 8vw, 6rem) max(1.25rem, var(--safe-left));
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
  display: block;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.section-title.light { color: var(--white); }

.section-divider {
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.section-divider.center {
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.8;
}

.section-intro.light { color: rgba(255,255,255,0.7); }

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

/* ============================================
   MISSION — HOME
   ============================================ */

.mission-section { background: var(--light-bg); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.mission-text {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.9;
}

.mission-accent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.mission-stat {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  background: var(--white);
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}

.mission-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--navy);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.mission-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

/* ============================================
   PILLARS PREVIEW — HOME
   ============================================ */

.pillars-section { background: var(--white); }

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Never force a specific column on mobile */
.pillar-card--last {
  grid-column: auto;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  min-height: 56px;
}

@media (hover: hover) {
  .pillar-card:hover {
    transform: translateX(4px);
    box-shadow: 4px 4px 20px rgba(27,42,74,0.08);
    border-left-color: var(--navy);
  }
}

.pillar-card:active {
  background: var(--light-bg);
  transform: scale(0.99);
}

.pillar-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--gold);
}

.pillar-card-content { min-width: 0; }

.pillar-card-number {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.pillar-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* ============================================
   PROGRAMS — FULL PILLARS
   ============================================ */

.pillar-full {
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--border);
}

.pillar-full:last-child { border-bottom: none; }

.pillar-full-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.pillar-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.pillar-icon-wrap svg { width: 28px; height: 28px; }

.pillar-full-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  display: block;
}

.pillar-full-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--navy);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.pillar-full-text {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-muted);
  line-height: 1.85;
}

/* ============================================
   VALUES — ABOUT
   ============================================ */

.values-section { background: var(--navy); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: rgba(255,255,255,0.02);
}

@media (hover: hover) {
  .value-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(201,168,76,0.35);
    transform: translateY(-4px);
  }
}

.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  color: var(--gold);
}

.value-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--white);
  margin-bottom: 0.65rem;
}

.value-text {
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}

/* ============================================
   MANDATE — ABOUT
   ============================================ */

.mandate-section { background: var(--light-bg); }

.mandate-block {
  max-width: 780px;
  margin: 0 auto;
}

.mandate-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: var(--navy);
  line-height: 1.65;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2.5rem);
  border-left: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   BOARD MEMBERS
   ============================================ */

.board-intro-section {
  background: var(--light-bg);
  padding: clamp(2rem, 4vw, 3.5rem) max(1.25rem, var(--safe-left));
}

.board-intro-text {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.85;
  text-align: center;
}

.board-section { background: var(--white); }

/* Mobile: single column stacked cards */
.board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.board-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  transition: var(--transition);
  background: var(--white);
  overflow: hidden;
  width: 100%;
}

@media (hover: hover) {
  .board-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--navy);
  }
}

.board-photo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dce3f0, #b8c5db);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  overflow: hidden;
}

.board-photo svg {
  width: 32px;
  height: 32px;
  color: #8a9cc0;
}

.board-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.board-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.board-title {
  font-size: 0.68rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.board-divider {
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: 0.5rem;
  border-radius: 2px;
}

.board-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Governance section */
.governance-section {
  background: var(--light-bg);
  padding: clamp(3rem, 7vw, 5rem) max(1.25rem, var(--safe-left));
}

.governance-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.governance-text {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-muted);
  line-height: 1.9;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-social {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.social-link {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--navy);
  transition: var(--transition);
  touch-action: manipulation;
}

@media (hover: hover) {
  .social-link:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    transform: translateY(-3px);
  }
}

.social-link:active { transform: scale(0.93); }

.contact-form {
  background: var(--light-bg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* Prevents iOS auto-zoom */
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-control::placeholder { color: #b8b8b8; }

textarea.form-control {
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-submit {
  margin-top: 0.5rem;
  width: 100%;
  min-height: 52px;
  font-size: 0.82rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--navy-deep);
  padding: clamp(3rem, 6vw, 4rem) max(1.25rem, var(--safe-left)) calc(clamp(1.5rem, 4vw, 2rem) + var(--safe-bottom)) max(1.25rem, var(--safe-right));
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 44px;
  margin-bottom: 0.75rem;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer-tagline {
  font-style: italic;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.footer-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

.footer-cols-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col ul a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease, padding-left 0.2s ease;
  min-height: 36px;
  display: flex;
  align-items: center;
}

@media (hover: hover) {
  .footer-col ul a:hover {
    color: var(--gold);
    padding-left: 4px;
  }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.75rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.35);
  transition: var(--transition);
  touch-action: manipulation;
}

@media (hover: hover) {
  .footer-social a:hover {
    color: var(--gold);
    border-color: var(--gold);
  }
}

.footer-social a:active { transform: scale(0.9); }

/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-bottom));
  left: max(1rem, var(--safe-left));
  right: max(1rem, var(--safe-right));
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  z-index: 9999;
  transform: translateY(120px);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.toast.show { transform: translateY(0); }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ============================================
   TABLET — 640px
   ============================================ */

@media (min-width: 640px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Board: 2 columns, vertical card layout at 640px */
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .board-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 0.85rem;
  }

  .board-photo {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }

  .board-photo svg { width: 40px; height: 40px; }

  .board-info { text-align: center; width: 100%; }

  .board-name { font-size: 1rem; }

  .board-divider { margin: 0.4rem auto 0.5rem; }

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

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

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   TABLET — 768px (iPad portrait)
   ============================================ */

@media (min-width: 768px) {
  :root { --nav-h: 72px; }

  .navbar-brand img { height: 46px; }
  .navbar-brand-name { font-size: 1rem; }

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

  /* Center last pillar card on 3-col layout */
  .pillar-card--last {
    grid-column: 2;
  }

  .pillar-full-inner {
    grid-template-columns: 72px 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  .pillar-icon-wrap { width: 72px; height: 72px; }
  .pillar-icon-wrap svg { width: 32px; height: 32px; }

  .mission-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }

  .mission-accent {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
  }

  .footer-top {
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
  }

  .footer-cols-row {
    display: contents;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mandate-quote {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  }

  /* Board: 3 columns at 768px */
  .board-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .board-card {
    padding: 2rem 1.5rem;
  }

  .board-photo {
    width: 90px;
    height: 90px;
    min-width: 90px;
  }

  .board-photo svg { width: 46px; height: 46px; }
}

/* ============================================
   DESKTOP — 1024px (iPad landscape / laptop)
   ============================================ */

@media (min-width: 1024px) {
  /* Show desktop nav, hide hamburger */
  .navbar-toggle,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }

  .navbar-nav { display: flex !important; }

  .navbar {
    padding: 0 2.5rem;
    height: 72px;
  }

  .navbar-brand img { height: 50px; }

  section { padding: 5.5rem 2rem; }

  .pillar-full-inner {
    grid-template-columns: 80px 1fr;
    gap: 2rem;
  }

  .pillar-icon-wrap { width: 80px; height: 80px; }
  .pillar-icon-wrap svg { width: 36px; height: 36px; }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }

  .footer-cols-row { display: contents; }

  .mission-accent { grid-template-columns: 1fr; gap: 1.5rem; }
  .mission-stat { padding: 1rem 1rem 1rem 1.25rem; }
}

/* ============================================
   LARGE DESKTOP — 1280px
   ============================================ */

@media (min-width: 1280px) {
  .navbar { padding: 0 3rem; }

  section { padding: 6rem 2rem; }

  .mission-grid { gap: 5rem; }
  .contact-grid { gap: 5rem; }
}

/* ============================================
   MOBILE — show menu/overlay elements
   ============================================ */

@media (max-width: 1023px) {
  .navbar-toggle { display: flex; }
  .navbar-nav { display: none; }
  .mobile-menu { display: block; }
  /* overlay is controlled exclusively by JS .open class — never set display:block here */
}

/* ============================================
   PHONES — bigger hero logo on small screens
   ============================================ */

@media (max-width: 767px) {
  .hero-logo {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    transform: translateX(0);
  }
  .hero-tagline {
    margin-top: 80px;
  }
}

/* ============================================
   LANDSCAPE PHONES (short screens)
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 2rem;
  }

  .hero-logo { width: clamp(340px, 80vw, 680px); }

  .mobile-menu {
    overflow-y: auto;
    padding-top: calc(var(--nav-h) + 0.5rem);
  }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
  .navbar, .hero-cta, .footer { display: none; }
  .hero { min-height: auto; padding: 2rem; }
}
