/* ==========================================================
   Aghdam School — Custom Styles
   (Tailwind utility classes are configured/loaded in index.html;
   this file holds all custom/global styling.)
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #26201f;
}

h1, h2, h3, .font-display {
  font-family: 'Manrope', sans-serif;
}

/* Nav links with animated underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #8f2233;
  transition: width .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #8f2233;
}

/* Buttons */
.btn-maroon {
  background: #8f2233;
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.btn-maroon:hover {
  background: #7a1c2b;
  transform: translateY(-1px);
}

.btn-outline-maroon {
  border: 1.5px solid #8f2233;
  color: #8f2233;
  transition: all .2s ease;
}
.btn-outline-maroon:hover {
  background: #8f2233;
  color: #fff;
}

/* Hero image angled clip */
.hero-shape {
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Card hover lift */
.card-hover {
  transition: box-shadow .25s ease, transform .25s ease;
}
.card-hover:hover {
  box-shadow: 0 12px 30px -8px rgba(143, 34, 51, .18);
  transform: translateY(-4px);
}

/* Stats bar dividers */
.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, .25);
}
@media (max-width: 767px) {
  .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .25);
  }
}

/* Fade-up entrance for hero content */
.fade-up {
  animation: fadeUp .7s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile nav collapse */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-menu.open {
  max-height: 480px;
}

/* Testimonial quote mark */
.quote-mark {
  font-family: Georgia, serif;
  line-height: 0.6;
}

/* Text selection color */
::selection {
  background: #f3ccd3;
  color: #4f111c;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-up {
    animation: none;
  }
  .card-hover,
  .btn-maroon,
  .nav-link::after,
  .mobile-menu,
  #toTop {
    transition: none;
  }
}
