/* ABOUT PAGE - animation-ready stylesheet
   - Reveal animation uses .pre-hidden -> .in-view pattern
   - Smooth, subtle motion, accessible focus + reduced-motion
   - Paste entire file to overwrite existing css/about.css
*/

/* ----------------- Design tokens ----------------- */
:root{
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --muted: #6b7280;
  --page-max: 1200px;
  --bg: #f0faf9; 
  --card-shadow: 0 10px 28px rgba(2,6,23,0.06);
  --card-shadow-strong: 0 22px 60px rgba(2,6,23,0.10);
  --glass: rgba(255,255,255,0.76);
  --glass-2: rgba(255,255,255,0.62);
  --radius-lg: 14px;
  --radius-md: 10px;
  --ease: cubic-bezier(.2,.9,.3,1);
  --reveal-duration: 520ms;
}

/* ----------------- Reset / Base ----------------- */
* { box-sizing: border-box; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  color: #0b1220;
  background-color: #f0faf9;
  line-height: 1.5;
}
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 20px; }
.section { padding: 46px 0; }

/* ----------------- Section Titles ----------------- */
.section-title {
  font-weight: 800;
  font-size: 1.95rem;
  text-align: center;
  margin: 0 0 10px;
  color: #07161a;
  letter-spacing: -0.02em;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 12px auto 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(15,119,110,0.08);
}
.lead.sublead { text-align:center; color:var(--muted); margin: 8px auto 22px; max-width:760px; }

/* ----------------- HERO ----------------- */
.about-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 70%);
  padding: 60px 0 40px;
  position: relative;
  overflow: visible;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero-pre { font-weight:700; color:var(--accent); opacity:0.95; margin:0 0 6px; letter-spacing:.02em; }
.hero-title { font-size:2.4rem; margin: 0 0 8px; line-height:1.03; color:#052425; }
.hero-sub { font-size:1.03rem; color:var(--muted); margin-bottom:16px; }

.about-hero-media img {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0,0,0,0.10);
}

/* small wave divider styling */
.hero-wave { margin-top: 18px; line-height: 0; }

/* CTAs */
.hero-ctas { display:flex; gap:12px; margin-top:8px; flex-wrap:wrap; }
.btn { padding: 12px 18px; border-radius: 10px; font-weight:700; text-decoration:none; display:inline-block; cursor:pointer; }
.btn.primary { background: linear-gradient(90deg,var(--accent), var(--accent-2)); color:#fff; box-shadow: 0 12px 30px rgba(15,119,110,0.08); }
.btn.ghost { background: transparent; border: 1px solid rgba(11,18,32,0.06); color: #0b1220; }

/* ----------------- Reveal animation pattern (progressive-friendly) ----------------- */
/* Default: elements are visible. JS will add .pre-hidden to hide and then transition to .in-view */
.reveal {
  opacity: 1;
  transform: none;
  transition: transform var(--reveal-duration) var(--ease), opacity var(--reveal-duration) var(--ease);
  will-change: transform, opacity;
}

/* Hidden initial state applied by JS: .reveal.pre-hidden */
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Visible animated state applied by JS when element comes into view */
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ----------------- MISSION / CARDS ----------------- */
.mission-wrap { padding-top: 12px; padding-bottom: 6px; }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 18px;
}
.mission-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.74));
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .32s var(--ease), box-shadow .32s ease, border-color .28s ease;
  border: 1px solid rgba(15,118,110,0.06);
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.mission-accent {
  position:absolute;
  left: -36%;
  top: -30%;
  width: 58%;
  height: 140%;
  transform: rotate(-18deg);
  background: linear-gradient(130deg, rgba(15,118,110,0.12), rgba(16,185,129,0.06));
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .45s ease;
  z-index: 0;
}
.mission-header { display:flex; gap:12px; align-items:center; z-index:2; }
.mission-icon { width:52px; height:52px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background: linear-gradient(180deg, rgba(15,118,110,0.06), rgba(16,185,129,0.03)); color:var(--accent); box-shadow: 0 8px 18px rgba(2,6,23,0.04); }
.mission-card h3 { margin:0; font-size:1.06rem; color:#063f3a; }
.mission-desc { margin:0; color:#374151; font-size:0.98rem; line-height:1.5; }
.mission-cta { display:inline-block; color:var(--accent); font-weight:700; text-decoration:none; padding-bottom:2px; border-bottom:2px solid transparent; transition: color .18s, transform .12s; }
.mission-cta:hover, .mission-cta:focus { color:#0b524a; border-color: rgba(15,118,110,0.18); transform: translateY(-2px); }
.mission-card:hover { transform: translateY(-10px); box-shadow: var(--card-shadow-strong); }

/* ----------------- TIMELINE ----------------- */
/* container */
.timeline-section { padding: 36px 0; }
.timeline { list-style:none; margin:0; padding:0; position:relative; }

/* vertical spine */
.timeline::before {
  content: "";
  position: absolute;
  left: 62px;                  /* aligns with icon center */
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, rgba(15,119,110,0.14), rgba(20,184,166,0.06));
  border-radius: 2px;
}

/* single item */
.timeline-item {
  display:flex;
  gap:18px;
  align-items:flex-start;
  margin-bottom: 16px;
  padding-left: 8px;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

/* icon box */
.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfffe);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 8px 24px rgba(2,6,23,0.06);
  border: 1px solid rgba(11,18,32,0.04);
  flex-shrink:0;
  position: relative;
}

/* small round connector to spine */
.timeline-icon::after {
  content:"";
  position:absolute;
  left: 48px; /* places at right edge of icon */
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(15,119,110,0.12);
  border: 2px solid white;
}

/* content card */
.timeline-content {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(11,18,32,0.03);
  width: 100%;
}

/* year + summary */
.timeline-content strong {
  display:block;
  color: var(--accent);
  font-size:1.02rem;
  margin-bottom:6px;
}
.timeline-content p {
  margin:0;
  color:var(--muted);
  line-height:1.45;
}

/* expanded details (hidden by default) */
.timeline-content .details {
  margin-top:10px;
  color: #475569;
  display:none;
  font-size:0.95rem;
  line-height:1.45;
}

/* expanded state controlled by your JS (class .expanded on li) */
.timeline-item.expanded .timeline-content {
  background: linear-gradient(180deg,#ffffff,#f7fffb);
  box-shadow: var(--card-shadow-strong);
}
.timeline-item.expanded .timeline-content .details {
  display:block;
}

/* hover focus */
.timeline-item:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-strong); }
.timeline-item:focus-within { outline: 4px solid rgba(20,184,166,0.06); outline-offset:6px; }

/* compact adjustments for very small screens */
@media (max-width: 900px) {
  .timeline::before { left: 44px; }
  .timeline-icon { width:44px; height:44px; }
  .timeline-icon::after { left: 44px; width:10px; height:10px; }
  .timeline-content { padding: 12px; }
}

/* ----------------- VALUES ----------------- */
.values-section { padding:44px 0; }
.values-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-top:12px; }
.value-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.72));
  border-radius: 14px;
  padding: 20px;
  text-align:center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(15,118,110,0.10);
  transition: transform .28s var(--ease), box-shadow .28s ease, border-color .25s ease;
  overflow:hidden;
}
.value-icon { width:56px; height:56px; margin:0 auto 12px; border-radius:12px; display:flex; align-items:center; justify-content:center; background: linear-gradient(180deg, rgba(15,118,110,0.12), rgba(16,185,129,0.06)); color:var(--accent); box-shadow: 0 10px 24px rgba(2,6,23,0.06); transition: transform .24s var(--ease); }
.value-card h4 { margin:6px 0; font-size:1.06rem; color:#064e48; }
.value-card p { margin:0; color:#374151; line-height:1.45; font-size:0.96rem; }
.value-card:hover { transform: translateY(-10px); box-shadow: var(--card-shadow-strong); border-color: rgba(15,118,110,0.18); }
.value-card:hover .value-icon { transform: translateY(-6px); }

/* ----------------- STATS + CTA ----------------- */
.stats-cta { display:flex; gap:20px; align-items:center; padding:36px 0; }
.stats-wrap { display:flex; gap:18px; flex:1; flex-wrap:wrap; }
.stat { background:#fff; padding:18px 22px; border-radius:12px; box-shadow: var(--card-shadow); text-align:center; min-width: 140px; }
.stat-number { font-size:1.5rem; color:var(--accent); font-weight:700; }
.stat-label { color:var(--muted); margin-top:6px; }
.cta-box { flex:1; background: linear-gradient(180deg,#f8fafc,#ffffff); padding:22px; border-radius:12px; box-shadow: var(--card-shadow); }

/* ----------------- Section differentiation ----------------- */
main > section:not(.about-hero):nth-of-type(even) { background: linear-gradient(180deg, rgba(15,119,110,0.01), transparent 60%); }
.mission-section, .values-section { position:relative; padding-left: 36px; }
.mission-section::before, .values-section::before {
  content:""; position:absolute; left:14px; top:12px; width:6px; height:calc(100% - 24px); border-radius:4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity:.10; pointer-events:none;
}
.main-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(11,18,32,0.04), transparent); margin: 18px 0; }

/* ----------------- Utilities ----------------- */
.muted { color: var(--muted); }
.mission-card:focus-within, .value-card:focus-within, .timeline li:focus { outline: 4px solid rgba(20,184,166,0.08); outline-offset:6px; }

/* ----------------- Responsive ----------------- */
@media (max-width: 1100px) {
  .about-hero-inner { grid-template-columns: 1fr; text-align:center; }
  .mission-grid { grid-template-columns: repeat(2,1fr); }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .stats-cta { flex-direction: column; }
  .mission-section, .values-section { padding-left: 16px; }
  .mission-section::before, .values-section::before { display:none; }
}
@media (max-width: 640px) {
  .mission-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .section { padding: 28px 0; }
  .section-title::after { width:48px; height:5px; }
  .hero-image { max-height: 320px; }
}

/* ----------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .mission-card, .value-card, .timeline li { transition: none !important; transform: none !important; }
}

/* Section separators */
.section {
  position: relative;
}

.section:not(.about-hero)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 90%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* Alternating section backgrounds */
main > section:nth-of-type(even) {
  background: linear-gradient(180deg, #f8fdfa 0%, #ffffff 80%);
}

/* ----------------- Sticky social logos ----------------- */
.sticky-social {
  position: fixed;
  right: 24px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1400;
}

.sticky-social .sticky-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* platform colors (same look as home page) */
.sticky-social .sticky-wa { background: #25D366; }
.sticky-social .sticky-ig { background: #E1306C; }
.sticky-social .sticky-fb{ background:#1877F2; }  /* Facebook */

.sticky-social .sticky-icon:hover {
  transform: translateY(-3px) scale(1.03);
  opacity: 0.96;
  box-shadow: 0 16px 30px rgba(0,0,0,0.4);
}

@media (max-width: 640px) {
  .sticky-social {
    right: 16px;
    bottom: 90px;
  }
}
