/* ==========================================================================
   The Minhajians International Online Quranic Institute
   Custom styles + animations
   ========================================================================== */

:root {
  --emerald-900: #052e2b;
  --emerald-800: #064e3b;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --teal-500: #0d9488;
  --gold: #d4a017;
  --gold-light: #f4c430;
  --cream: #fef9e7;
  --cream-2: #fef3c7;
  --charcoal: #0f172a;
  --slate-100: #f1f5f9;
  --slate-500: #64748b;
  --slate-700: #334155;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Cormorant Garamond', 'Amiri', Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.font-arabic { font-family: 'Amiri', 'Cairo', serif; }
/* Force lining figures wherever numbers appear in serif contexts */
.hero-stat-num, .founder-sign-name, .how-step-num, .testimonial-quote, .founder-quote {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

/* ---- Navbar ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  transition: all 0.35s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(5, 46, 43, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.7rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}
.nav-logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--emerald-900);
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(212,160,23,0.3);
}
.nav-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-logo-text small { font-size: 0.6rem; font-weight: 400; opacity: 0.85; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 0.6rem 1.3rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--emerald-900);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(212,160,23,0.35);
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,160,23,0.5); }
.nav-toggle {
  display: none;
  background: transparent; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer;
}
@media (max-width: 900px) {
  .nav { padding: 1rem 1.2rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
    padding: 5rem 2rem;
    background: linear-gradient(160deg, var(--emerald-900), var(--emerald-800));
    transition: right 0.4s ease;
  }
  .nav-links.open { right: 0; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile {
    display: inline-flex !important;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--emerald-900);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
  }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(212,160,23,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(13,148,136,0.2) 0%, transparent 50%),
    linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 50%, #043332 100%);
  color: var(--white);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23d4a017' stroke-width='0.6' opacity='0.12'><path d='M60 6l15 30 30 6-22 22 6 32-29-16-29 16 6-32-22-22 30-6z'/><circle cx='60' cy='60' r='24'/><circle cx='60' cy='60' r='40'/></g></svg>");
  background-size: 250px 250px;
  opacity: 0.6;
  animation: patternDrift 60s linear infinite;
  pointer-events: none;
}
@keyframes patternDrift {
  from { background-position: 0 0; }
  to { background-position: 250px 250px; }
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; text-align: center; }
.hero-bismillah {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 1.5rem;
  opacity: 1;
  animation: bismillahFadeIn 1.4s ease 0.2s both;
  /* Black calligraphy → gold color via filter chain */
  filter:
    brightness(0) saturate(100%)
    invert(72%) sepia(59%) saturate(1220%) hue-rotate(5deg) brightness(96%) contrast(92%);
}
@keyframes bismillahFadeIn {
  from { transform: translateY(-15px) scale(0.94); }
  to   { transform: translateY(0) scale(1); }
}
.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.35);
  color: var(--gold-light);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}
.hero-cta-group {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--emerald-900);
  box-shadow: 0 8px 24px rgba(212,160,23,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(212,160,23,0.55); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-solid {
  background: var(--emerald-800);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(6,78,59,0.3);
}
.btn-solid:hover { background: var(--emerald-700); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(6,78,59,0.45); }

.hero-stats {
  margin-top: 4.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 780px;
  margin-left: auto; margin-right: auto;
  padding: 1.6rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s forwards;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.3rem;
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Section base ---- */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Distinct section backgrounds ---- */
/* Why Us / About — cream with subtle diamond pattern */
#about {
  max-width: none;
  padding: 6rem 2rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #fdfaf3 0%, #faf5e9 100%);
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g fill='none' stroke='%23064e3b' stroke-width='0.3' opacity='0.06'><path d='M20 2l6 12 12 2-9 9 2 13-11-7-11 7 2-13-9-9 12-2z'/></g></svg>");
  background-size: 90px 90px;
  pointer-events: none;
}
#about > * { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
#about > .section-header { margin-left: auto; margin-right: auto; }

/* Courses — light emerald tint with soft grid pattern */
.courses-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(13,148,136,0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 0% 100%, rgba(212,160,23,0.05) 0%, transparent 40%),
    linear-gradient(180deg, #f0f9f5 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.courses-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(6,78,59,0.03) 1px, transparent 1px),
    linear-gradient(rgba(6,78,59,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.courses-section > * { position: relative; z-index: 2; }

/* How It Works — warm cream with subtle wavy accent */
.how-section {
  background:
    linear-gradient(180deg, #fff 0%, #fefaeb 50%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><path d='M0 30 Q30 5 60 30 T120 30' fill='none' stroke='%23d4a017' stroke-width='0.5' opacity='0.15'/></svg>");
  background-size: 240px 120px;
  background-position: center;
  pointer-events: none;
}
.how-section > * { position: relative; z-index: 2; }

/* FAQ — soft dawn colors */
.faq-section {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(6,78,59,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #fff8ee 0%, #fdfaf3 100%);
}

/* Contact — deep gradient shift, distinct from testimonials */
.contact-section {
  padding: 6rem 2rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(6,78,59,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(212,160,23,0.07) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><g fill='none' stroke='%23064e3b' stroke-width='0.4' opacity='0.05'><circle cx='50' cy='50' r='30'/><circle cx='50' cy='50' r='45'/></g></svg>");
  background-size: 200px 200px;
  pointer-events: none;
}
.contact-section > * { position: relative; z-index: 2; }
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 30px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 500;
  color: var(--emerald-900);
  margin: 0 0 1.2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-title .accent { font-style: italic; color: var(--gold); }
.section-sub {
  color: var(--slate-500);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---- Features / Why Us ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 2rem 1.6rem;
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(6,78,59,0.12);
  border-color: transparent;
}
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-800), var(--teal-500));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  color: var(--emerald-900);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.feature-card p {
  color: var(--slate-500);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ---- Founder (editorial layout — full image, no border) ---- */
.founder-section {
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(212,160,23,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(6,78,59,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}
.founder-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='%23064e3b' stroke-width='0.4' opacity='0.06'><path d='M40 8l10 20 20 4-15 15 4 22-19-10-19 10 4-22-15-15 20-4z'/></g></svg>");
  background-size: 160px 160px;
  pointer-events: none;
}
.founder-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .founder-inner { grid-template-columns: 1fr; gap: 3rem; }
  .founder-section { padding: 5rem 1.5rem; }
}

/* Full image — no border, subtle shadow + decorative accents */
.founder-photo-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: 2rem;
}
/* Gold decorative accent — top-left */
.founder-photo-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 80px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  z-index: 3;
  transition: all 0.4s ease;
}
/* Gold decorative accent — bottom-right */
.founder-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  border-bottom: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  z-index: 3;
  transition: all 0.4s ease;
}
.founder-photo-wrap:hover::before { top: -8px; left: -8px; width: 100px; height: 100px; }
.founder-photo-wrap:hover::after { bottom: -8px; right: -8px; width: 100px; height: 100px; }

.founder-photo {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 560px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -15px rgba(6,78,59,0.35),
    0 20px 40px -10px rgba(0,0,0,0.15);
  transform: perspective(1200px) rotateY(-2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 900px) {
  .founder-photo { max-width: 300px; max-height: 500px; }
}
.founder-photo:hover {
  transform: perspective(1200px) rotateY(0deg) translateY(-4px);
  box-shadow:
    0 40px 80px -20px rgba(6,78,59,0.45),
    0 25px 50px -15px rgba(0,0,0,0.2);
}
.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
}
/* Gradient overlay for depth */
.founder-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,78,59,0.15) 100%);
  pointer-events: none;
}

/* Founder text side */
.founder-text .section-eyebrow { text-align: left; display: block; }
.founder-text h2 {
  text-align: left;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  color: var(--emerald-900);
  margin: 0.5rem 0 1.5rem;
  line-height: 1.15;
}
.founder-quote {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--emerald-900);
  padding: 1.5rem 1.8rem 1.5rem 2.5rem;
  margin: 1rem 0 1.8rem;
  line-height: 1.55;
  background: linear-gradient(135deg, rgba(212,160,23,0.08), rgba(212,160,23,0.02));
  border-radius: 0 12px 12px 0;
  border-left: 4px solid var(--gold);
}
.founder-quote::before {
  content: '"';
  position: absolute;
  top: -20px; left: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.5;
}
.founder-bio {
  color: var(--slate-700);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  font-size: 1rem;
}
.founder-sign {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold) 0%, transparent 60%) 1;
}
.founder-sign-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--emerald-900);
  font-weight: 600;
  font-style: italic;
}
.founder-sign small {
  display: block;
  color: var(--slate-500);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ---- Courses ---- */
.courses-section { background: linear-gradient(180deg, #fff 0%, var(--slate-100) 100%); padding: 6rem 2rem; }
.courses-inner { max-width: 1200px; margin: 0 auto; }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.course-card {
  position: relative;
  padding: 2.4rem 2rem;
  border-radius: 1.2rem;
  background: var(--white);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.4s ease;
  isolation: isolate;
}
.courses-grid { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-gradient, linear-gradient(135deg, var(--emerald-800), var(--teal-500)));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.course-card:hover::before { opacity: 1; }
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(6,78,59,0.25);
  border-color: transparent;
}
.course-card:hover h3,
.course-card:hover .course-desc,
.course-card:hover .course-tag { color: var(--white); }
.course-card:hover .course-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.course-card:hover .course-link { color: var(--gold-light); }
.course-icon {
  width: 68px; height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6,78,59,0.08), rgba(13,148,136,0.08));
  color: var(--emerald-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.4rem;
  transition: all 0.3s;
}
.course-card h3 {
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  color: var(--emerald-900);
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.3s;
}
.course-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  background: rgba(212,160,23,0.15);
  color: var(--gold);
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.course-desc {
  color: var(--slate-500);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.4rem;
  transition: color 0.3s;
}
.course-link {
  color: var(--emerald-700);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: all 0.25s;
}
.course-link:hover { transform: translateX(4px); }

/* ---- How It Works ---- */
.how-section { padding: 6rem 2rem; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.how-step { text-align: center; position: relative; }
.how-step-num {
  width: 70px; height: 70px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-800), var(--teal-500));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(6,78,59,0.25);
  position: relative;
  z-index: 2;
}
.how-step-num::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.35;
}
.how-step h3 {
  font-size: 1.15rem;
  color: var(--emerald-900);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.how-step p { color: var(--slate-500); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ---- Testimonials ---- */
.testimonials-section {
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><g fill='none' stroke='%23d4a017' stroke-width='0.3' opacity='0.15'><path d='M30 5l7 15 15 3-11 11 3 16-14-8-14 8 3-16-11-11 15-3z'/></g></svg>");
  background-size: 120px 120px;
  opacity: 0.4;
}
.testimonials-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-title .accent { color: var(--gold-light); }
.testimonials-section .section-sub { color: rgba(255,255,255,0.7); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.testimonial-card {
  padding: 2rem 1.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.35s;
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(212,160,23,0.4);
}
.testimonial-stars { color: var(--gold-light); font-size: 0.95rem; margin-bottom: 0.8rem; letter-spacing: 0.1em; }
.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin: 0 0 1.4rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--emerald-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
}
.testimonial-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.testimonial-role { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* ---- FAQ ---- */
.faq-section { padding: 6rem 2rem; }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--white);
  transition: all 0.3s;
}
.faq-item.open {
  border-color: var(--emerald-700);
  box-shadow: 0 12px 30px rgba(6,78,59,0.12);
}
.faq-question {
  width: 100%;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--emerald-900);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: inherit;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--emerald-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  background: var(--emerald-800);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--slate-500);
  line-height: 1.7;
  padding: 0 1.4rem;
  font-size: 0.92rem;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 1.4rem 1.4rem; }

/* ---- Contact ---- */
.contact-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--slate-100) 0%, #fff 100%);
}
.contact-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-info { padding-top: 1rem; }
.contact-info .section-eyebrow { display: block; margin-bottom: 0.6rem; }
.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--emerald-900);
  margin: 0 0 1rem;
  line-height: 1.2;
}
.contact-info p { color: var(--slate-500); line-height: 1.7; margin: 0 0 1.8rem; }

.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  text-decoration: none;
  color: var(--charcoal);
  transition: all 0.3s;
}
.contact-method:hover {
  border-color: var(--emerald-700);
  box-shadow: 0 10px 24px rgba(6,78,59,0.1);
  transform: translateX(4px);
}
.contact-method-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-800), var(--teal-500));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-method-label { font-size: 0.72rem; color: var(--slate-500); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.15rem; }
.contact-method-value { font-weight: 600; color: var(--emerald-900); font-size: 0.95rem; }

.contact-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 30px 60px rgba(6,78,59,0.1);
  border: 1px solid #e2e8f0;
}
.contact-form-wrap h3 { margin: 0 0 1.6rem; color: var(--emerald-900); font-size: 1.4rem; font-weight: 600; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem; color: var(--slate-700);
  margin-bottom: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: all 0.2s;
  color: var(--charcoal);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 4px rgba(6,78,59,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-msg {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.form-msg.show { display: block; }
.form-msg.ok  { background: #ecfdf5; color: var(--emerald-800); border: 1px solid #a7f3d0; }
.form-msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- Footer ---- */
.footer {
  background: var(--emerald-900);
  color: rgba(255,255,255,0.75);
  padding: 4rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin: 0.8rem 0 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.6; margin: 0; }
.footer h5 {
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--gold-light); text-decoration: none; }

/* ---- Back to top button ---- */
.back-to-top {
  position: fixed;
  bottom: 6.5rem; right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700));
  color: var(--gold-light);
  border: 2px solid rgba(212,160,23,0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(6,78,59,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s, visibility 0.35s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--emerald-900);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(212,160,23,0.4);
}

/* ---- Floating WhatsApp button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: all 0.3s;
  animation: pulseWA 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 15px 40px rgba(37,211,102,0.6);
}
@keyframes pulseWA {
  0%, 100% { box-shadow: 0 10px 30px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.6); }
  50% { box-shadow: 0 10px 30px rgba(37,211,102,0.4), 0 0 0 15px rgba(37,211,102,0); }
}

/* ---- Reveal animations ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll-driven zoom animations (native CSS) ---- */
@keyframes zoomEnter {
  from { transform: scale(0.88); opacity: 0.55; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes zoomExit {
  from { transform: scale(1);    opacity: 1; }
  to   { transform: scale(0.94); opacity: 0.65; }
}
@keyframes bgParallax {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-80px) scale(1.08); }
}
@keyframes cardTilt {
  from { transform: translateY(60px) scale(0.92) rotateX(8deg); opacity: 0; }
  to   { transform: translateY(0)    scale(1)    rotateX(0);    opacity: 1; }
}

/* Sections zoom in on entry, hold, then subtle zoom out on exit */
@supports (animation-timeline: view()) {
  .zoom-section {
    animation: zoomEnter linear both, zoomExit linear both;
    animation-timeline: view(), view();
    animation-range: entry 0% cover 30%, cover 70% exit 100%;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
  }
  .parallax-bg {
    animation: bgParallax linear;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
    will-change: transform;
  }
  .zoom-in-child {
    animation: cardTilt linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
  }
}

/* Fallback: JS-driven scroll zoom (Firefox / older browsers) */
.zoom-section.js-zoom { transition: transform 0.15s linear, opacity 0.15s linear; will-change: transform, opacity; }
