/* ═══════════════════════════════════════════
   TOP One Percentile — Static Site CSS
   Design System & Component Styles
═══════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Color Variables ─── */
:root {
  --primary-50:  #eef3fb;
  --primary-100: #d5e3f5;
  --primary-200: #adc7eb;
  --primary-400: #4e81cc;
  --primary-500: #2b5fbc;
  --primary-600: #1a3a6b;
  --primary-700: #152f57;
  --primary-800: #102444;
  --primary-900: #0d1f3c;
  --gold-300: #e8c96e;
  --gold-400: #ddb448;
  --gold-500: #c9a84c;
  --gold-600: #b08a30;
  --shadow-card: 0 4px 24px rgba(26,58,107,0.10);
  --shadow-card-hover: 0 12px 40px rgba(26,58,107,0.18);
  --shadow-glow: 0 0 20px rgba(201,168,76,0.3);
}

/* ─── Keyframes ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes counterUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Announcement Bar ─── */
.announcement-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
#announcement-bar:hover .announcement-track {
  animation-play-state: paused;
}

/* ─── Navigation ─── */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-600);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--primary-600); background: var(--primary-50); }
.nav-link:hover::after { width: calc(100% - 1.75rem); }
.nav-link-active { color: var(--primary-600); font-weight: 600; background: var(--primary-50); }
.nav-link-active::after { width: calc(100% - 1.75rem); }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover { background: var(--primary-50); color: var(--primary-600); }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1a3a6b 0%, #2b5fbc 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(26, 58, 107, 0.25);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #152f57 0%, #1a3a6b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 58, 107, 0.35);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary-600);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: 2px solid var(--primary-600);
  transition: all 0.25s ease;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--primary-600);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold-500);
  color: var(--primary-900);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-glow);
}
.btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  color: var(--primary-900);
}

/* ─── Section Typography ─── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #eef3fb, #d5e3f5);
  color: var(--primary-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid var(--primary-200);
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* ─── Stat Cards ─── */
.stat-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: default;
}
.stat-card:hover {
  border-color: var(--primary-200);
  box-shadow: 0 8px 32px rgba(26, 58, 107, 0.12);
  transform: translateY(-4px);
}

/* ─── Feature Cards ─── */
.feature-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: default;
}
.feature-card:hover {
  border-color: var(--primary-600);
  box-shadow: 0 12px 40px rgba(26, 58, 107, 0.15);
  transform: translateY(-6px);
}
.feature-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}
.feature-card:hover .feature-card-icon {
  transform: scale(1.15) rotate(-5deg);
}
.feature-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}
.feature-card-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ─── Testimonial Card ─── */
.testimonial-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(26, 58, 107, 0.08);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(26, 58, 107, 0.15);
  border-color: var(--primary-200);
  transform: translateY(-2px);
}

/* ─── Footer ─── */
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-500);
  margin-bottom: 1.25rem;
}
.footer-link {
  color: #93c5fd;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.footer-link:hover { color: var(--gold-500); }
.footer-link::before {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  font-size: 0.75rem;
}
.footer-link:hover::before { opacity: 1; transform: translateX(0); }

.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  transition: all 0.2s ease;
}
.social-icon:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--primary-900);
  transform: translateY(-2px);
}

/* ─── Form Styles ─── */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: #374151; }
.form-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #1a1a2e;
  background: #f9fafb;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary-600);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.08);
}
.form-input::placeholder { color: #9ca3af; }
.form-error { font-size: 0.8rem; color: #dc2626; margin-top: 0.25rem; }

/* ─── Programs Tab Buttons ─── */
.prog-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.prog-tab-btn:hover {
  background: rgba(201, 168, 76, 0.3);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Float Animation ─── */
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-dot { animation: pulse 2s ease-in-out infinite; }

/* ─── Back to Top ─── */
#back-to-top { transition: all 0.3s ease; opacity: 0; visibility: hidden; }
#back-to-top.visible { opacity: 1; visibility: visible; }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  position: relative;
  padding: 5rem 0 7rem;
  background: linear-gradient(135deg, #1a3a6b 0%, #0d1f3c 100%);
  overflow: hidden;
  text-align: center;
}
.page-hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

/* ─── Gallery Filter Buttons ─── */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f3f4f6;
  color: #4b5563;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary-600);
  color: white;
  box-shadow: 0 4px 12px rgba(26,58,107,0.2);
}

/* ─── Lightbox ─── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.open { display: flex; animation: fadeIn 0.2s ease; }

/* ─── FAQ Accordion ─── */
.faq-item { border-radius: 1rem; border: 1px solid #e5e7eb; background: white; overflow: hidden; transition: all 0.2s ease; }
.faq-item.open { border-color: var(--primary-200); box-shadow: var(--shadow-card-hover); }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-body.open { max-height: 500px; }
.faq-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.faq-item.open .faq-icon {
  background: var(--primary-600);
  color: white;
  transform: rotate(180deg);
}

/* ─── Testimonial Carousel ─── */
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide { min-width: 100%; padding: 0 0.5rem; }

/* ─── Toast ─── */
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 280px;
  max-width: 400px;
  animation: fadeIn 0.3s ease;
  background: var(--primary-600);
  color: white;
  border-left: 4px solid var(--gold-500);
}
.toast.success { background: #166534; border-left-color: #4ade80; }
.toast.error { background: #dc2626; border-left-color: #fca5a5; }

/* ─── Responsive Video ─── */
.embed-responsive { position: relative; width: 100%; padding-bottom: 56.25%; }
.embed-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ─── Sticky nav shadow on scroll ─── */
.navbar-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

/* ─── Utility helpers ─── */
.container { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ─── Print ─── */
@media print {
  nav, footer, .fixed, #back-to-top, #announcement-bar { display: none !important; }
  body { color: black !important; background: white !important; }
}
