/* /* =============================================
   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  (UNCHANGED)
   ============================================= */
.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;
  width: 2.75em;;
}

.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);
  width:100%;
  height: 50px;

}

.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);
}
/* ani */

.btn--hero1 {
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-emerald);
  width:15%;
  height: 50px;

}

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

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

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

.btn--hero1-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: #FAFAF5;
}

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

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

.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;
  /* width:55px; */
}

.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 {
  padding: 7rem 0 5rem;
  text-align: center;
  background: var(--gradient-subtle);
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.hero__subtitle {
  font-size: 1.3rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin: 5rem 0;
}

.contact-info {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 100%;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info__item:last-child {
  margin-bottom: 0;
}

.contact-info__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(162, 75%, 17%, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Fixed the broken 210% width */
.form-requirments {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  font-family: inherit;
  font-size: 1rem;
}

/* CTA */
.contact-cta {
  text-align: center;
  padding: 6rem 0;
}

.contact-cta h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

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

/* =============================================
   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;
  /* removed fixed margin-left: 50px that broke mobile */
}

.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(--border);
  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; }

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

/* Large tablets / small desktops */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 3.5rem 0;
  }
}

/* Mobile & small tablets */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .hero {
    padding: 5rem 0 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form {
    padding: 1.75rem;
  }

  .contact-info__item {
    gap: 1rem;
  }

  .contact-info__icon {
    width: 3rem;
    height: 3rem;
  }

  .contact-info__icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .contact-cta {
    padding: 4rem 0;
  }

  .contact-cta h2 {
    font-size: 2.1rem;
  }

  .contact-cta p {
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
  }

  .footer__main {
    padding: 3rem 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero__title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }

  .contact-cta h2 {
    font-size: 1.8rem;
  }

  .header__logo-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .header__logo-text {
    font-size: 1.1rem;
  }
}