/* ==========================================================================
   United Scholars Academy — Custom Styles
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

::selection {
  background: #C6A15B;
  color: #0E1B33;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: #A9813C;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  color: #0E1B33;
  margin-top: 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0%;
  height: 2px;
  background: #C6A15B;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #A9813C;
}
.nav-link:hover::after { width: 100%; }

.mobile-link {
  border-bottom: 1px solid rgba(14,27,51,0.08);
  padding-bottom: 0.85rem;
}

header.navbar-scrolled {
  box-shadow: 0 8px 30px -12px rgba(14,27,51,0.15);
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #C6A15B;
  color: #0E1B33;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 8px 24px -8px rgba(198,161,91,0.55);
}
.btn-gold:hover {
  background: #0E1B33;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-outline-light:hover {
  background: #fff;
  color: #0E1B33;
  border-color: #fff;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0E1B33;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.95rem 2.2rem;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-navy:hover {
  background: #C6A15B;
  color: #0E1B33;
  transform: translateY(-2px);
}

/* ---------- Icon badges ---------- */
.icon-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 4px;
  background: #FBF7EE;
  color: #A9813C;
  display: flex; align-items: center; justify-content: center;
}
.icon-badge-light {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #DBB973;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Program cards ---------- */
.program-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(14,27,51,0.25);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px -20px rgba(14,27,51,0.35);
}
.program-img {
  width: 100%; height: 180px; object-fit: cover;
  transition: transform 0.6s ease;
}
.program-card:hover .program-img {
  transform: scale(1.06);
}

/* ---------- Why us cards ---------- */
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  border-radius: 4px;
  transition: all 0.35s ease;
}
.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(198,161,91,0.4);
  transform: translateY(-4px);
}
.why-number {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: #C6A15B;
  opacity: 0.7;
}

/* ---------- Facilities ---------- */
.facility-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  cursor: default;
}
.facility-card img {
  transition: transform 0.6s ease;
}
.facility-card:hover img {
  transform: scale(1.08);
}
.facility-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,27,51,0.85) 0%, rgba(14,27,51,0.1) 55%, transparent 100%);
  display: flex; align-items: flex-end;
  padding: 1.25rem;
  color: #fff;
}

/* ---------- Achievement tiles ---------- */
.achievement-tile { transition: transform 0.35s ease; }
.achievement-tile:hover { transform: translateY(-4px); }

/* ---------- Events ---------- */
.event-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  border-radius: 4px;
  transition: all 0.35s ease;
}
.event-card:hover {
  border-color: rgba(198,161,91,0.4);
  background: rgba(255,255,255,0.07);
}
.event-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #DBB973;
  transition: gap 0.3s ease;
}
.event-link:hover { color: #fff; }

/* ---------- Testimonial slider ---------- */
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.slider-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(14,27,51,0.15);
  color: #0E1B33;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.slider-arrow:hover {
  background: #0E1B33;
  color: #fff;
  border-color: #0E1B33;
}
.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(14,27,51,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.testimonial-dot.active {
  background: #C6A15B;
  width: 22px;
  border-radius: 4px;
}

/* ---------- Admissions steps ---------- */
.admission-step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #0E1B33;
  color: #C6A15B;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  border: 4px solid #fff;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid rgba(14,27,51,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #0E1B33;
  font-size: 0.98rem;
}
.faq-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
  color: #A9813C;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: #4B5670;
  font-size: 0.92rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 1.5rem 1.5rem;
}

/* ---------- Forms ---------- */
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #DBB973;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 0.92rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus {
  outline: none;
  border-color: #C6A15B;
  background: rgba(255,255,255,0.1);
}
.form-input.error { border-color: #E27272; }
.form-error {
  display: none;
  color: #F2A5A5;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}
.form-input.error + .form-error { display: block; }
select.form-input option { color: #0E1B33; }

/* ---------- Footer ---------- */
.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-link { transition: color 0.25s ease; }
.footer-link:hover { color: #C6A15B; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: #C6A15B;
  border-color: #C6A15B;
  color: #0E1B33;
}

/* ---------- Scroll reveal ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}
.reveal-up.delay-1 { animation-delay: 0.15s; }
.reveal-up.delay-2 { animation-delay: 0.3s; }
.reveal-up.delay-3 { animation-delay: 0.45s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll.delay-1.in-view { transition-delay: 0.1s; }
.reveal-on-scroll.delay-2.in-view { transition-delay: 0.2s; }
.reveal-on-scroll.delay-3.in-view { transition-delay: 0.3s; }

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-bounce-slow { animation: bounceSlow 2s ease-in-out infinite; }

/* ---------- Mobile menu hamburger animation ---------- */
#menuBtn.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menuBtn.open .hamburger-line:nth-child(2) { opacity: 0; }
#menuBtn.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
