/* =============================================
   ABOUT PAGE CSS – 2026 Modern, No Overlap
   ============================================= */
:root {
  --primary: #8B0000;
  --primary-dark: #5C0000;
  --primary-light: #b71c1c;
  --accent: #f8cd30;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --bg-light: #ffffff;
  --bg-offwhite: #f9fafb;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 1.25rem;
  --navbar-height: 80px;   /* fallback, JS will override */
}

[data-theme="dark"] {
  --text-dark: #f0f0f0;
  --text-muted: #aaa;
  --bg-light: #111111;
  --bg-offwhite: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ---------- GENERAL ---------- */
.premium-section {
  padding: 5rem 0;
  transition: background 0.4s, color 0.4s;
}
.bg-secondary { background: var(--bg-offwhite); }

/* ---------- TYPOGRAPHY ---------- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  background: rgba(139,0,0,0.1);
  color: var(--primary);
  font-weight: 600; font-size: 0.85rem; letter-spacing: 2px;
  text-transform: uppercase; padding: 0.4rem 1.2rem;
  border-radius: 30px; margin-bottom: 1rem;
}
.section-title {
  font-size: 2.8rem; font-weight: 800;
  color: var(--text-dark); margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.15rem; max-width: 650px; margin: 0 auto;
  color: var(--text-muted);
}

/* ---------- GLASS PANEL & BUTTONS ---------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255,255,255,0.15);
}
.btn-primary-glow {
  background: var(--primary); color: white;
  border: none; border-radius: 50px; padding: 0.9rem 2.2rem;
  font-weight: 600; font-size: 1rem;
  box-shadow: 0 8px 25px rgba(139,0,0,0.3);
  transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary-glow:hover {
  background: var(--primary-dark); transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139,0,0,0.5);
}
.btn-glass {
  background: rgba(255,255,255,0.2); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-dark); border-radius: 50px; padding: 0.9rem 2.2rem;
  font-weight: 600; transition: all 0.3s ease;
}
[data-theme="dark"] .btn-glass { color: white; }
.btn-glass:hover { background: rgba(255,255,255,0.35); transform: translateY(-3px); }

/* =============================================
   PAGE HEADER (No video, no overlap)
   ============================================= */
.page-header-about {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  /* top padding = navbar height + generous space */
  padding-top: calc(var(--navbar-height, 80px) + 5rem);
  padding-bottom: 5rem;
}
.page-header-about .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; padding: 0.4rem 1.2rem; border-radius: 30px;
  font-weight: 600; font-size: 0.9rem; margin-bottom: 1.5rem;
}
.page-header-about .hero-title {
  font-size: 3.5rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}
.page-header-about .hero-subtitle {
  font-size: 1.3rem; opacity: 0.95; margin-bottom: 1.5rem;
}
.page-header-about .hero-description {
  font-size: 1.05rem; opacity: 0.9; max-width: 700px; margin: 0 auto 2rem;
}
.page-header-about .hero-cta-group {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}

/* =============================================
   OUR STORY
   ============================================= */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.story-image-wrapper { border-radius: 24px; overflow: hidden; box-shadow: 0 25px 45px rgba(0,0,0,0.1); }
.story-image { width: 100%; display: block; transition: transform 0.5s; }
.story-image-wrapper:hover .story-image { transform: scale(1.03); }
.story-content h3 { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin: 1.8rem 0 0.8rem; }
.story-content h3:first-of-type { margin-top: 0; }
.story-content p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.2rem; }
.stats-highlight { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* =============================================
   MISSION & VISION
   ============================================= */
.mission-vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.mission-card { padding: 2rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.mission-card:hover { transform: translateY(-8px); box-shadow: 0 0 25px rgba(139,0,0,0.25), 0 20px 40px rgba(0,0,0,0.1); }
.mission-icon { font-size: 2.8rem; color: var(--primary); margin-bottom: 1.2rem; transition: text-shadow 0.3s; }
.mission-card:hover .mission-icon { text-shadow: 0 0 15px rgba(139,0,0,0.5); }
.mission-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); }
.mission-card p { color: var(--text-muted); line-height: 1.7; }

/* =============================================
   TEAM
   ============================================= */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; justify-items: center; }
.team-card { background: var(--bg-light); border-radius: 24px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.05); transition: transform 0.35s, box-shadow 0.35s; width: 100%; max-width: 360px; }
.team-card:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(139,0,0,0.15); }
.team-card-img { aspect-ratio: 1/1; overflow: hidden; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s; }
.team-card:hover .team-card-img img { transform: scale(1.05); }
.team-card-body { padding: 1.5rem; text-align: center; }
.team-name { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.3rem; }
.team-position { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; }
.team-bio { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.2rem; }
.team-social { display: flex; justify-content: center; gap: 1rem; }
.social-link { width: 38px; height: 38px; background: var(--bg-offwhite); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-dark); font-size: 1.1rem; transition: all 0.3s; }
.social-link:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139,0,0,0.3); }

/* =============================================
   VALUES (Why Choose Us)
   ============================================= */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.value-card { padding: 2rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 0 25px rgba(139,0,0,0.25), 0 20px 40px rgba(0,0,0,0.1); }
.value-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; transition: text-shadow 0.3s; }
.value-card:hover .value-icon { text-shadow: 0 0 15px rgba(139,0,0,0.5); }
.value-card h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--text-dark); }
.value-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* =============================================
   CTA
   ============================================= */
.section-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 5rem 0; }
.section-cta .section-title, .section-cta .section-subtitle { color: white; }
.section-cta .section-subtitle { opacity: 0.9; }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.25,0.8,0.25,1), transform 0.7s cubic-bezier(0.25,0.8,0.25,1); }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal, .team-card, .mission-card, .value-card, .story-image { transition: none !important; animation: none !important; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .page-header-about .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2.5rem; }
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-highlight { justify-content: center; }
}

@media (max-width: 768px) {
  :root { --navbar-height: 70px; }   /* fallback for JS */
  .page-header-about { padding-top: calc(var(--navbar-height, 70px) + 3.5rem); padding-bottom: 3.5rem; }
  .page-header-about .hero-title { font-size: 2.2rem; }
  .page-header-about .hero-description { font-size: 1rem; }
  .premium-section { padding: 3.5rem 0; }
  .mission-vision-grid, .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-primary-glow, .btn-glass { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
  :root { --navbar-height: 60px; }
  .page-header-about { padding-top: calc(var(--navbar-height, 60px) + 3rem); padding-bottom: 3rem; }
  .page-header-about .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 2rem; }
  .story-image-wrapper { border-radius: 16px; }
}