/* about.css — page specific styles and interactions */
/* Uses variables from main.css; define fallbacks */
:root{
  --accent: #0b61d1;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --max-width: 1200px;
}

/* HERO */
.hero-hero{
  background-image: linear-gradient(180deg, rgba(10,20,40,0.48), rgba(10,20,40,0.18)), url('../assets/hero-about-1600.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.hero-inner{ text-align:left; max-width:var(--max-width); margin:0 auto; }
.hero-inner h1{ font-size: clamp(28px, 4vw, 44px); margin:0 0 .6rem; font-weight:800; line-height:1.05; }
.eyebrow{ color: rgba(255,255,255,0.85); font-weight:600; margin-bottom:.6rem; text-transform:uppercase; letter-spacing:.06em; font-size:12px; }
.hero-kicker{ color: rgba(255,255,255,0.9); margin-bottom:1rem; }

/* layout util */
.container{ padding-left:24px; padding-right:24px; max-width:var(--max-width); margin-left:auto; margin-right:auto; }
.section{ padding:48px 0; }
.section-alt{ background: linear-gradient(180deg,#fbfdff,#fff); }

/* Grid helpers */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); align-items:center; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

/* Responsive adjustments */
@media (max-width:980px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .hero-inner{text-align:center} }

/* WHO WE ARE */
.who-media img{ width:100%; border-radius:10px; box-shadow:0 12px 28px rgba(10,20,40,0.06); }

/* Values */
.values-grid{ margin-top:20px; }
.value-card{ background:var(--card-bg); border-radius:12px; padding:20px; box-shadow:0 8px 20px rgba(10,20,40,0.04); text-align:center; }
.value-card h3{ margin-top:12px; margin-bottom:8px; }
.value-icon{ width:48px; height:48px; fill:var(--accent); opacity:0.92; }

/* By the numbers */
.counters{ margin-top:18px; text-align:center; }
.stat { background: #fff; padding:18px; border-radius:10px; box-shadow:0 8px 20px rgba(10,20,40,0.04); }
.stat-number{ font-size: clamp(22px,3.5vw,34px); font-weight:800; color:var(--accent); }
.stat-label{ color:var(--muted); margin-top:8px; }

/* Timeline */
.timeline-list{ list-style:none; padding:0; margin:0; display:block; }
.timeline-item{ position:relative; margin:28px 0; }
.timeline-item::before{ content: attr(data-year); position:absolute; left:-110px; top:0; font-weight:700; color:var(--muted); font-size:14px; }
.timeline-card{ background:var(--card-bg); padding:18px; border-radius:10px; box-shadow:0 8px 20px rgba(10,20,40,0.04); }

/* Leadership */
.leader-grid{ margin-top:18px; }
.leader{ 
  background: #fff;
  padding: 0;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,115,230,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.leader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0073e6, #0091ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.leader img{ 
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}
.leader h3{ 
  margin: 16px 12px 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.leader p{ 
  color: #666;
  font-size: 13px;
  margin: 0 12px 16px;
  font-weight: 500;
}
.leader:focus, .leader:hover{ 
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,115,230,0.15);
  border-color: rgba(0,115,230,0.2);
  outline: none;
}
.leader:hover::before {
  opacity: 1;
}
.leader:hover img {
  transform: scale(1.05);
}
.leader:hover h3 {
  color: #0073e6;
}

/* modal */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(6,12,30,0.45); z-index:1200; padding:20px; }
.modal[aria-hidden="false"]{ display:flex; }
.modal-panel{ background:#fff; border-radius:12px; max-width:760px; width:100%; padding:22px; box-shadow:0 20px 60px rgba(0,0,0,0.25); position:relative; }
.modal-close{ position:absolute; right:12px; top:12px; background:none;border:0;font-size:18px; cursor:pointer;}

/* Global reach map */
.map-wrap{ margin-top:18px; position:relative; min-height:240px; border-radius:12px; overflow:hidden; box-shadow:0 12px 30px rgba(10,20,40,0.06);}
.map-bg{ background-image:url('../assets/map-1600.jpg'); background-size:cover; background-position:center; background-attachment:fixed; filter:brightness(.6); min-height:240px; }
.offices{ position:absolute; left:12px; top:12px; display:flex; gap:12px; flex-wrap:wrap; list-style:none; padding:12px; margin:0; }
.offices li{ background:rgba(255,255,255,0.95); padding:8px 12px; border-radius:999px; box-shadow:0 8px 20px rgba(10,20,40,0.04); font-weight:700; font-size:13px; }

/* Community */
.impact-list{ margin-top:12px; list-style:none; padding:0; }
.impact-list li{ margin-bottom:8px; font-weight:700; }

/* Testimonials */
.testimonials-wrap{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.tframe{ width:100%; min-height:140px; position:relative; overflow:hidden; }
.titem{ display:none; padding:18px; background:var(--card-bg); border-radius:10px; box-shadow:0 8px 20px rgba(10,20,40,0.04); }
.titem p{ font-style:italic; }
.titem footer{ margin-top:10px; color:var(--muted); font-weight:700; text-align:right; }
.tbtn{ background:transparent; border:0; font-size:28px; cursor:pointer; color:var(--accent); width:48px; height:48px; display:flex; align-items:center; justify-content:center; }

/* CTA */
.cta-panel{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px; background:linear-gradient(90deg,#fff,#fbfdff); border-radius:12px; box-shadow:0 12px 30px rgba(10,20,40,0.05); }

/* utilities */
.muted{ color:var(--muted); }
.lede{ margin-bottom:16px; color:var(--muted); }

/* reveal animations (respects reduced motion) */
@media (prefers-reduced-motion: no-preference){
  .timeline-card, .value-card, .leader, .stat { transform: translateY(12px); opacity:0; transition: all .6s cubic-bezier(.2,.9,.3,1); }
  .in-view{ transform:none; opacity:1; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .modal{ transition:none; }
  .leader, .value-card, .stat, .timeline-card{ transition:none; transform:none; opacity:1; }
  .map-bg{ background-attachment:scroll; }
}

/* responsive fine-tuning */
@media (max-width:880px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .hero-inner{ text-align:center; }
  .hero-cta{ justify-content:center; display:flex; gap:12px; margin-top:12px; }
}
@media (max-width:520px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

/* Additional Mobile Responsive */
@media (max-width: 768px) {
  .hero-hero {
    padding: clamp(2rem, 4vw, 3rem) 0;
  }
  
  .hero-inner h1 {
    font-size: clamp(22px, 5vw, 32px);
  }
  
  .section {
    padding: 32px 0;
  }
  
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .value-card {
    padding: 16px;
  }
  
  .stat {
    padding: 14px;
  }
  
  .stat-number {
    font-size: clamp(18px, 3vw, 26px);
  }
}

@media (max-width: 480px) {
  .hero-hero {
    padding: 1.5rem 0;
  }
  
  .hero-inner h1 {
    font-size: 1.4rem;
  }
  
  .section {
    padding: 24px 0;
  }
  
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .grid {
    gap: 16px;
  }
  
  .value-icon {
    width: 40px;
    height: 40px;
  }
}
