/**
 * URAcademy2XL — About Page Styles
 * Supplements styles.css (shared tokens, nav, footer).
 * All CSS custom properties from :root in styles.css are available here.
 */

/* ──────────────────────────────────────────────────────────────
   1. ABOUT HERO
   ────────────────────────────────────────────────────────────── */

.about-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding: 140px 24px 96px; /* top padding accounts for sticky nav */
}

/* Warm "photo" background — gradient simulating a sunlit classroom */
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 65% 35%, #c4874a 0%, #7b4a1e 40%, #3d2010 100%);
}

/* Dark overlay for text legibility */
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(11, 29, 58, 0.88) 0%,
    rgba(11, 29, 58, 0.72) 55%,
    rgba(26, 122, 109, 0.60) 100%
  );
}

/* Subtle dot texture */
.about-hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.about-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.about-hero-eyebrow::before,
.about-hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

.about-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 32px;
}

.about-hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.about-hero-scroll:hover { color: var(--amber); }
.about-hero-scroll svg { animation: bounce-down 1.6s ease-in-out infinite; }

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ──────────────────────────────────────────────────────────────
   2. OUR MISSION
   ────────────────────────────────────────────────────────────── */

.sec-mission {
  background: #fff;
  padding: 100px 24px;
  text-align: center;
}

.mission-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.mission-quote-mark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 10rem;
  line-height: 0.7;
  color: var(--teal);
  opacity: 0.12;
  position: absolute;
  top: -24px;
  left: -24px;
  pointer-events: none;
  user-select: none;
  font-weight: 400;
}

.mission-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

.mission-statement {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  color: var(--navy);
  line-height: 1.45;
  font-weight: 400;
  font-style: italic;
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
}

.mission-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 2px;
  margin: 0 auto 28px;
}

.mission-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────
   3. OUR VALUES
   ────────────────────────────────────────────────────────────── */

.sec-values {
  background: var(--cream);
  padding: 96px 24px;
}

.values-header {
  text-align: center;
  margin-bottom: 64px;
}

.values-header .sec-eyebrow { margin-bottom: 12px; }

.values-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 0;
}

.values-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.value-card:hover::before { opacity: 1; }

/* Per-card accent color */
.value-card--excellence::before { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.value-card--compassion::before { background: linear-gradient(90deg, var(--amber), #f5c96e); }
.value-card--community::before  { background: linear-gradient(90deg, var(--navy), #2E5F8A); }

.value-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 30px;
  flex-shrink: 0;
}

.value-icon-wrap--excellence { background: rgba(26,122,109,0.10); }
.value-icon-wrap--compassion { background: rgba(232,168,56,0.12); }
.value-icon-wrap--community  { background: rgba(11,29,58,0.08); }

.value-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 14px;
  font-weight: 400;
}

.value-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────
   4. MEET THE TEAM
   ────────────────────────────────────────────────────────────── */

.sec-team {
  background: #fff;
  padding: 100px 24px;
}

.team-header {
  text-align: center;
  margin-bottom: 64px;
}

.team-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.team-subhead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

.team-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Team member card */
.team-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px 20px 28px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
  cursor: default;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Photo placeholder — circle with initials + gradient */
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--border), var(--shadow-sm);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback when no photo */
.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Per-member gradient backgrounds */
.team-avatar--1 .team-avatar-placeholder { background: linear-gradient(135deg, #1A7A6D, #0f4d45); }
.team-avatar--2 .team-avatar-placeholder { background: linear-gradient(135deg, #E8A838, #c98920); }
.team-avatar--3 .team-avatar-placeholder { background: linear-gradient(135deg, #0B1D3A, #2E5F8A); }
.team-avatar--4 .team-avatar-placeholder { background: linear-gradient(135deg, #7C3AED, #4c1d95); }

.team-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 4px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

/* Teal underline on hover — pseudo-element approach */
.team-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.28s var(--ease-smooth);
}
.team-card:hover .team-name::after { width: 100%; }

.team-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.team-bio {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────
   5. TIMELINE
   ────────────────────────────────────────────────────────────── */

.sec-timeline {
  background: var(--cream);
  padding: 100px 24px;
}

.timeline-header {
  text-align: center;
  margin-bottom: 72px;
}

.timeline-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.timeline-subhead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Vertical centre line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border) 8%,
    var(--border) 92%,
    transparent
  );
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 56px;
  position: relative;
}

.tl-item:last-child { margin-bottom: 0; }

/* Dot on the line */
.tl-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
  z-index: 2;
}
.tl-dot-inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(26,122,109,0.15);
  transition: transform 0.2s, border-color 0.2s;
}
.tl-item:hover .tl-dot-inner {
  transform: scale(1.3);
  border-color: var(--amber);
}

/* Content blocks: alternate left / right */
.tl-content {
  flex: 1;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
  position: relative;
}
.tl-item:hover .tl-content {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Arrow pointer toward the centre line */
.tl-content::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Right-side items: content on the right, gap spacer on left */
.tl-item--right .tl-content { margin-left: calc(50% + 28px); }
.tl-item--right .tl-content::after {
  left: -7px;
  border-right: none;
  border-top: none;
}

/* Left-side items: content on the left, gap spacer on right */
.tl-item--left .tl-content { margin-right: calc(50% + 28px); text-align: right; }
.tl-item--left .tl-content::after {
  right: -7px;
  border-left: none;
  border-bottom: none;
}

.tl-year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.tl-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 8px;
}

.tl-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Milestone icon */
.tl-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

/* ──────────────────────────────────────────────────────────────
   6. CLOSING CTA STRIP
   ────────────────────────────────────────────────────────────── */

.sec-about-cta {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
}

.about-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.about-cta-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 14px;
}

.about-cta-body {
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────
   7. RESPONSIVE
   ────────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .values-grid { grid-template-columns: 1fr; max-width: 420px; }

  /* Timeline: collapse to single column */
  .timeline::before { left: 20px; transform: none; }
  .tl-dot { left: 20px; transform: none; }
  .tl-item { flex-direction: column; }
  .tl-item--right .tl-content,
  .tl-item--left  .tl-content {
    margin-left: 52px;
    margin-right: 0;
    text-align: left;
  }
  .tl-item--right .tl-content::after,
  .tl-item--left  .tl-content::after {
    left: -7px; right: auto;
    border-right: none; border-top: none;
    border-left: initial; border-bottom: initial;
  }
  .tl-item--left .tl-content::after { left: -7px; right: auto; border: 1px solid var(--border); border-right: none; border-top: none; }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero { padding-top: 120px; padding-bottom: 72px; }
  .about-cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
}
