@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&display=swap');

:root {
  --primary-deep: hsl(143, 50%, 12%);
  --primary-light: hsl(143, 40%, 96%);
  --secondary-gold: hsl(38, 92%, 52%);
  --accent-clay: hsl(24, 60%, 45%);
  
  --bg-cream: hsl(40, 24%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-slate: hsl(143, 15%, 93%);
  
  --text-ink: hsl(143, 40%, 8%);
  --text-muted: hsl(143, 8%, 45%);
  --text-white: hsl(40, 20%, 98%);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 20px -2px rgba(11, 28, 18, 0.04);
  --shadow-md: 0 12px 30px -5px rgba(11, 28, 18, 0.08);
  --shadow-lg: 0 24px 50px -10px rgba(11, 28, 18, 0.12);
  --border-radius: 12px;
  --border-radius-sm: 6px;
  
  --nav-height: 80px;
}

*, *::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: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.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;
}

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

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

.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: var(--text-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary-deep);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--primary-deep);
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: var(--primary-deep);
  color: var(--text-white);
}

/* HERO SECTION */
.hero {
  background: var(--primary-deep);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
}

.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.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 18, 0.42); /* lightened overlay for better image visibility */
}

.hero h1 {
  color: var(--text-white);
}

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

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 1.5rem 0 2.5rem;
  max-width: 500px;
}

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

.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;
}

.hero-stat-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
}

.hero-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  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 */
.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;
}

/* 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);
}

/* 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; }
}

@media (max-width: 768px) {
  .nav-links { 
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height, 70px);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height, 70px));
    background: var(--bg-card);
    padding: 2rem 0;
    gap: 1rem;
    text-align: center;
    transition: left 0.4s ease;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.active { left: 0; }
  .nav-links li { margin: 0; }
  .nav-links a { font-size: 1.2rem; }
  
  .section { padding: 4rem 0; }
  
  .hamburger { display: flex; z-index: 1000; }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  body.no-scroll { overflow: hidden; }
  .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;
}
.nav-links a {
  padding: 12px 15px;
}

