/* =============================================
   QURAN ACADEMY - PURE CSS STYLESHEET
   ============================================= */

/* =============================================
   1. CSS VARIABLES (DESIGN TOKENS)
   ============================================= */
:root {
  /* Base colors */
  --background: hsl(40, 33%, 98%);
  --foreground: hsl(160, 50%, 10%);
  
  /* Card surfaces */
  --card: hsl(40, 33%, 99%);
  --card-foreground: hsl(160, 50%, 10%);
  
  /* Primary - Deep Emerald Green */
  --primary: hsl(162, 75%, 17%);
  --primary-foreground: hsl(40, 33%, 98%);
  
  /* Secondary - Muted Gold */
  --secondary: hsl(43, 52%, 54%);
  --secondary-foreground: hsl(160, 50%, 10%);
  
  /* Muted surfaces */
  --muted: hsl(40, 20%, 94%);
  --muted-foreground: hsl(160, 20%, 40%);
  
  /* Accent - Light emerald */
  --accent: hsl(162, 40%, 94%);
  --accent-foreground: hsl(162, 75%, 17%);
  
  /* Borders and inputs */
  --border: hsl(40, 20%, 88%);
  --input: hsl(40, 20%, 88%);
  
  /* Custom brand colors */
  --gold: hsl(43, 52%, 54%);
  --gold-muted: hsl(43, 35%, 75%);
  --ivory: hsl(40, 33%, 98%);
  --ivory-warm: hsl(40, 40%, 96%);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(162, 75%, 17%) 0%, hsl(162, 60%, 25%) 100%);
  --gradient-gold: linear-gradient(135deg, hsl(43, 52%, 54%) 0%, hsl(43, 45%, 45%) 100%);
  --gradient-subtle: linear-gradient(180deg, hsl(40, 33%, 98%) 0%, hsl(40, 40%, 96%) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 hsla(160, 50%, 10%, 0.05);
  --shadow-md: 0 4px 6px -1px hsla(160, 50%, 10%, 0.1), 0 2px 4px -2px hsla(160, 50%, 10%, 0.1);
  --shadow-lg: 0 10px 15px -3px hsla(160, 50%, 10%, 0.1), 0 4px 6px -4px hsla(160, 50%, 10%, 0.1);
  --shadow-xl: 0 20px 25px -5px hsla(160, 50%, 10%, 0.1), 0 8px 10px -6px hsla(160, 50%, 10%, 0.1);
  --shadow-emerald: 0 10px 30px -10px hsla(162, 75%, 17%, 0.3);
  --shadow-gold: 0 10px 30px -10px hsla(43, 52%, 54%, 0.3);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --radius: 0.5rem;
  --container-max: 1400px;
  --container-padding: 2rem;
}

/* =============================================
   2. RESET & BASE STYLES
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================
   3. UTILITY CLASSES
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   4. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn--default {
  height: 2.5rem;
  padding: 0 1rem;
}

.btn--lg {
  height: 2.75rem;
  padding: 0 2rem;
}

.btn--xl {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.btn--hero {
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-emerald);
}

.btn--hero:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.btn--hero:active {
  transform: scale(0.98);
}

.btn--hero-outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn--hero-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn--subtle {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn--subtle:hover {
  background: hsla(162, 40%, 94%, 0.8);
}

.btn--full {
  width: 100%;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn--xl svg {
  width: 1.25rem;
  height: 1.25rem;
}
/* =============================================
   5. TOP BAR
   ============================================= */
.top-bar {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.top-bar__link:hover {
  opacity: 0.8;
}

.top-bar__link svg {
  width: 1rem;
  height: 1rem;
}

.top-bar__hours {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.top-bar__divider {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}


    /* =============================================
   6. HEADER / NAVIGATION
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1rem 0;
  background: transparent;
  background: hsla(40, 33%, 98%, 0.95);

}

.header--scrolled {
  background: hsla(40, 33%, 98%, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
  background: hsla(40, 33%, 98%, 0.95);

}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsla(40, 33%, 98%, 0.95);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-emerald);
}

.header__logo-icon span {
  color: var(--primary-foreground);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.header__logo-tagline {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav-link {
  color: hsla(160, 50%, 10%, 0.8);
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.header__nav-link:hover {
  color: var(--primary);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__mobile-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--foreground);
}

.header__mobile-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 1024px) {
  .header__nav,
  .header__cta {
    display: none;
  }
  
  .header__mobile-toggle {
    display: block;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}

.mobile-menu--open {
  display: block;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-menu__link {
  color: hsla(160, 50%, 10%, 0.8);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: var(--primary);
}

.mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

    /* Hero */
    .hero {
      position: relative;
      min-height: 70vh;
      display: flex;
      align-items: center;
      background: var(--gradient-subtle);
      overflow: hidden;
      padding: 6rem 0 4rem;
    }

    .hero__title {
      font-size: clamp(2.5rem, 6vw, 4.2rem);
      font-weight: 700;
      margin-bottom: 1.25rem;
      text-align: center;
    }

  .hero__title-highlight {
  color: transparent;                   
  background: var(--gradient-hero);
  
  -webkit-background-clip: text;
  background-clip: text;
  
  -webkit-text-fill-color: transparent;  
}

    .hero__subtitle {
      font-size: 1.25rem;
      color: var(--muted-foreground);
      max-width: 720px;
      margin: 0 auto 2.5rem;
      text-align: center;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem 2.25rem;
      border-radius: var(--radius);
      font-weight: 500;
      text-decoration: none;
      transition: all 0.3s ease;
      font-size: 1.1rem;
    }

    .btn--hero {
      background: var(--gradient-hero);
      color: white;
      box-shadow: var(--shadow-emerald);
    }

    .btn--hero:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 25px hsla(162, 75%, 17%, 0.35);
    }

    /* Course cards */
    .courses__grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 2rem;
      margin: 4rem 0;
    }

    .course-card {
      background: var(--card);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      border: 1px solid var(--border);
      transition: all 0.35s ease;
      display: flex;
      flex-direction: column;
    }

    .course-card:hover {
      transform: translateY(-12px);
      box-shadow: var(--shadow-lg);
      border-color: hsla(162, 75%, 17%, 0.3);
    }

    .course-card__content {
      padding: 2.25rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .course-card__icon {
      width: 4.5rem;
      height: 4.5rem;
      background: var(--accent);
      border-radius: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.5rem;
      transition: all 0.4s ease;
    }

    .course-card:hover .course-card__icon {
      background: var(--primary);
      transform: scale(1.12) rotate(6deg);
    }

    .course-card__icon svg {
      width: 2rem;
      height: 2rem;
      color: var(--primary);
      transition: color 0.4s ease;
    }

    .course-card:hover .course-card__icon svg {
      color: white;
    }

    .course-card__meta {
      display: flex;
      gap: 1rem;
      margin-bottom: 1rem;
      font-size: 0.9rem;
    }

    .course-card__level,
    .course-card__duration {
      padding: 0.35rem 1rem;
      border-radius: 999px;
      font-weight: 500;
    }

    .course-card__level {
      background: var(--accent);
      color: var(--primary);
    }

    .course-card__duration {
      background: var(--muted);
      color: var(--muted-foreground);
    }

    .course-card__title {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--foreground);
    }

    .course-card__desc {
      color: var(--muted-foreground);
      margin-bottom: 2rem;
      flex-grow: 1;
    }

    .course-card__featured {
      position: relative;
    }

    .course-card__featured::before {
      content: "Most Popular";
      position: absolute;
      top: -14px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--gradient-hero);
      color: white;
      padding: 0.5rem 1.5rem;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 600;
      box-shadow: var(--shadow-emerald);
      white-space: nowrap;
      margin-top: 1.5%;
    }

    /* CTA section */
    .cta-section {
      text-align: center;
      padding: 6rem 0;
      background: var(--gradient-subtle);
    }

    .cta-section h2 {
      font-size: 2.5rem;
      margin-bottom: 1.25rem;
    }

    .cta-section p {
      color: var(--muted-foreground);
      font-size: 1.2rem;
      max-width: 680px;
      margin: 0 auto 2.5rem;
    }

    /* Animations */
    .animate-on-scroll {
      opacity: 0;
      transform: translateY(35px);
      transition: all 0.9s ease-out;
    }

    .animate-on-scroll.visible {
      opacity: 1;
      transform: translateY(0);
    }

/* =============================================
   15. FOOTER
   ============================================= */
.footer {
  background: var(--foreground);
  color: var(--primary-foreground);
}

.footer__main {
  padding: 4rem 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-left: 50px;

}

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

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  margin-bottom: 1.5rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer__logo-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon span {
  color: var(--borderd);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.footer__about {
  color: hsla(40, 33%, 98%, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsla(40, 33%, 98%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.footer__social-link:hover {
  background: var(--primary);
  color: var(--foreground);
}

.footer__social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: hsla(40, 33%, 98%, 0.7);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--primary);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.footer__contact-text {
  color: hsla(40, 33%, 98%, 0.7);
}

.footer__contact-label {
  font-size: 0.875rem;
  color: hsla(40, 33%, 98%, 0.5);
}

/* Footer bottom */
.footer__bottom {
  border-top: 1px solid hsla(40, 33%, 98%, 0.1);
  padding: 1.5rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: 0.875rem;
  color: hsla(40, 33%, 98%, 0.6);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__legal-link {
  font-size: 0.875rem;
  color: hsla(40, 33%, 98%, 0.6);
  transition: color 0.2s;
}

.footer__legal-link:hover {
  color: var(--primary);
}

.footer__payments {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: hsla(40, 33%, 98%, 0.4);
  font-size: 0.875rem;
}

.footer__payments span {
  font-weight: 700;
}

/* =============================================
   16. ANIMATIONS
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }
.animate-on-scroll[data-delay="6"] { transition-delay: 0.6s; }