/* =====================================================================
   Markazun Noor Academy — style.css
   Sections: Variables · Reset · Typography · Utilities · Ornaments ·
   Buttons · Header/Nav · Mobile menu · Hero · Ayah band · About ·
   Courses · Why · Teacher · Join · Gallery · CTA · Contact · Footer ·
   Floating · Responsive · Animations
   ===================================================================== */

/* ============ Variables ============ */
:root {
  --emerald-900: #062a20;
  --emerald-800: #0b3d2e;
  --emerald-600: #145c43;
  --gold-500: #c9a24b;
  --gold-300: #e6c97a;
  --gold-700: #7a5c1c;            /* darker gold for text on cream (AA) */
  --gold-gradient: linear-gradient(135deg, #f3dc9a 0%, #c9a24b 45%, #8a6a24 100%);
  --gold-soft: linear-gradient(135deg, #f6e3a8 0%, #d9b65f 50%, #b48a34 100%);
  --navy-900: #0b1a3a;
  --cream-50: #fbf7ee;
  --cream-100: #f3ead6;
  --ink: #1d2a24;
  --ink-soft: #46554d;
  --white: #ffffff;
  --wa: #25d366;
  --wa-dark: #128c4a;

  --line-gold: rgba(201, 162, 75, .4);
  --radius: 20px;
  --shadow: 0 14px 40px -18px rgba(6, 42, 32, .45);
  --shadow-dark: 0 18px 50px -20px rgba(0, 0, 0, .6);

  --f-ar: "Amiri Quran", "Amiri", "Scheherazade New", serif;
  --f-bn: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
  --f-bn-head: "Noto Serif Bengali", "Hind Siliguri", serif;
  --f-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --f-en: "Poppins", "Hind Siliguri", sans-serif;

  --header-h: 72px;
  --section-pad: clamp(4rem, 9vw, 7rem);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23e6c97a' stroke-width='1'%3E%3Crect x='29' y='29' width='30' height='30'/%3E%3Crect x='29' y='29' width='30' height='30' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='7'/%3E%3Cpath d='M29 29L0 0M59 29L88 0M29 59L0 88M59 59L88 88M44 22.8V0M44 65.2V88M22.8 44H0M65.2 44H88'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-bn);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream-50);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--header-h); }

:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--cream :focus-visible { outline-color: var(--gold-700); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--gold-300); color: var(--emerald-900);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ============ Typography ============ */
h1, h2, h3 { font-family: var(--f-bn-head); line-height: 1.3; font-weight: 700; }
[lang="ar"] {
  font-family: var(--f-ar);
  letter-spacing: 0 !important;   /* never letter-space Arabic */
  hyphens: none;
  word-break: normal;
}
[lang="en"] { font-family: var(--f-en); }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--f-en);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .4rem;
}
.eyebrow--light { color: var(--gold-300); }

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
  color: var(--emerald-800);
  text-align: center;
}
.section-title--light {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title--left { text-align: left; }
.section-lead {
  max-width: 40rem; margin: 0 auto;
  text-align: center; color: var(--ink-soft);
}
.section-lead--light { color: rgba(255, 255, 255, .78); }

.ayah {
  font-family: var(--f-ar);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 2.2;
  word-spacing: .08em;
  text-align: center;
  color: var(--emerald-800);
  overflow-wrap: break-word;
}
.ayah--long { font-size: clamp(1.4rem, 3.2vw, 2.1rem); }
.ayah-meaning {
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  color: var(--ink);
  font-weight: 500;
  max-width: 38rem;
  margin: 0 auto .9rem;
}

/* ============ Utilities ============ */
.container {
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: clamp(.85rem, 2.2vw, 1.5rem);
}
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

.section--cream {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(201, 162, 75, .08), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(20, 92, 67, .06), transparent 50%),
    var(--cream-50);
  padding-block: var(--section-pad);
}
.section--emerald {
  background: radial-gradient(ellipse at 50% 0%, var(--emerald-600) 0%, var(--emerald-800) 45%, var(--emerald-900) 100%);
  color: var(--white);
  padding-block: var(--section-pad);
}
.section--navy {
  background: radial-gradient(ellipse at 80% 30%, #16295a 0%, var(--navy-900) 60%, #070f24 100%);
  color: var(--white);
  padding-block: var(--section-pad);
}
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }

/* ============ Ornaments ============ */
/* Geometric star pattern overlay */
.pattern { position: relative; isolation: isolate; }
.pattern::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--pattern);
  background-size: 88px 88px;
  opacity: .07;
  pointer-events: none;
  z-index: -1;
}

/* Divider: line — star — line */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: .7rem;
  margin: .9rem auto 1.2rem;
  color: var(--gold-500);
}
.divider span {
  height: 1px; width: clamp(40px, 10vw, 90px);
  background: linear-gradient(90deg, transparent, currentColor);
}
.divider span:last-child { background: linear-gradient(90deg, currentColor, transparent); }
.divider svg { width: 16px; height: 16px; fill: currentColor; }
.divider--dark { color: var(--gold-700); }
.divider--left { justify-content: flex-start; margin-left: 0; }
.divider--left span:first-child { display: none; }

/* Skyline */
.skyline { width: 100%; height: clamp(48px, 7vw, 110px); fill: currentColor; }
.skyline--cream { color: var(--cream-50); position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; }
.skyline--footer { color: var(--emerald-900); margin-bottom: -1px; }

/* Reference pill */
.ref-pill {
  display: inline-block;
  font-size: .85rem; font-weight: 600;
  padding: .3rem 1rem;
  border-radius: 999px;
  background: rgba(201, 162, 75, .14);
  border: 1px solid rgba(122, 92, 28, .35);
  color: var(--gold-700);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: .5rem 1.2rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--gold {
  background: var(--gold-soft);
  color: var(--emerald-900);
  box-shadow: 0 10px 28px -10px rgba(201, 162, 75, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--gold:hover { box-shadow: 0 14px 34px -10px rgba(230, 201, 122, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--outline { border-color: var(--gold-500); color: var(--gold-300); }
.btn--outline:hover { background: rgba(201, 162, 75, .12); color: #f3dc9a; }
.btn--wa { background: var(--wa); color: #06341b; box-shadow: 0 10px 26px -12px rgba(37, 211, 102, .8); }
.btn--wa:hover { background: #2fe072; }
.btn--dark { background: var(--emerald-900); color: var(--gold-300); border-color: rgba(6, 42, 32, .4); }
.btn--dark:hover { background: var(--emerald-800); }

/* ============ Top bar ============ */
.topbar {
  background: var(--emerald-900);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  border-bottom: 1px solid rgba(201, 162, 75, .18);
}
.topbar__inner {
  display: flex; justify-content: center; align-items: center;
  gap: 1.6rem; min-height: 38px;
}
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item .icon { color: var(--gold-300); width: 14px; height: 14px; }
a.topbar__item { font-family: var(--f-en); font-weight: 500; }
a.topbar__item:hover { color: var(--gold-300); }
.topbar__item--hide-sm { display: none; }

/* ============ Header / Nav ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--emerald-900);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgba(11, 61, 46, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
  border-bottom: 1px solid rgba(201, 162, 75, .25);
}
.header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; min-width: 0; }
.brand__logo {
  display: block;
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(201, 162, 75, .5), 0 0 18px rgba(230, 201, 122, .25);
}
.brand__logo img, .brand__fallback { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand__logo--lg { width: 72px; height: 72px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(.86rem, .7rem + .8vw, 1.1rem);
  letter-spacing: .03em;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.brand__ar { font-size: 1.05rem; color: var(--gold-300); line-height: 1.5; align-self: flex-start; }

.nav { display: none; }
.nav__list { display: flex; gap: clamp(.9rem, 1.4vw, 1.5rem); }
.nav__link {
  position: relative;
  color: rgba(255, 255, 255, .86);
  font-weight: 500;
  font-size: .98rem;
  padding: .55rem 0;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: .15rem;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--gold-gradient);
  transform: translateX(-50%);
  transition: width .3s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--gold-300); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.header__cta { display: none; }

.burger {
  width: 46px; height: 46px;
  display: grid; place-content: center; gap: 5px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 75, .45);
}
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--gold-300); transition: transform .3s, opacity .3s; }
.burger span:nth-child(2) { width: 16px; justify-self: end; }

/* ============ Mobile menu ============ */
.mmenu { position: fixed; inset: 0; z-index: 100; }
.mmenu__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 20, 15, .6);
  opacity: 0; transition: opacity .35s ease;
}
.mmenu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(88vw, 380px);
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem 1.75rem;
  background:
    var(--pattern) center / 88px 88px,
    linear-gradient(180deg, var(--emerald-800), var(--emerald-900));
  background-blend-mode: soft-light, normal;
  border-left: 1px solid rgba(201, 162, 75, .45);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .5);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto;
}
.mmenu.is-open .mmenu__backdrop { opacity: 1; }
.mmenu.is-open .mmenu__panel { transform: none; }
.mmenu__close {
  align-self: flex-end;
  width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--gold-300);
  border: 1px solid rgba(201, 162, 75, .45); border-radius: 12px;
}
.mmenu__close .icon { width: 22px; height: 22px; }
.mmenu__ornament { text-align: center; margin: .5rem 0 1rem; color: var(--gold-300); }
.mmenu__crescent { width: 44px; height: 44px; margin: 0 auto; fill: var(--gold-300); }
.mmenu__ornament p { font-size: 1.6rem; line-height: 1.8; }
.mmenu__list { flex: 1; margin-bottom: 1.5rem; }
.mmenu__list a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 54px;
  font-family: var(--f-bn-head);
  font-size: 1.3rem;
  color: var(--white);
  border-bottom: 1px solid rgba(201, 162, 75, .18);
}
.mmenu__list a::after { content: "۞"; font-family: var(--f-ar); color: var(--gold-500); font-size: .9rem; opacity: .6; }
.mmenu__list a:hover, .mmenu__list a.is-active { color: var(--gold-300); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(230, 201, 122, .14) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 20%, var(--emerald-600) 0%, var(--emerald-800) 40%, var(--emerald-900) 100%);
  padding: clamp(2rem, 5vw, 3rem) 0 calc(clamp(48px, 7vw, 110px) + clamp(2.5rem, 6vw, 4rem));
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.bismillah {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 2;
  color: var(--gold-300);
  text-shadow: 0 0 24px rgba(230, 201, 122, .35);
}
.hero__emblem {
  position: relative;
  width: clamp(170px, 34vw, 280px);
  aspect-ratio: 1;
  margin: clamp(.5rem, 2vw, 1.2rem) 0 clamp(1.2rem, 3vw, 2rem);
  display: grid; place-items: center;
}
.hero__rays {
  position: absolute; inset: -55%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(243, 220, 154, .22) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
  mask: radial-gradient(circle, #000 18%, transparent 68%);
}
.hero__glow {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 220, 154, .45) 0%, rgba(201, 162, 75, .15) 40%, transparent 70%);
  filter: blur(6px);
}
.hero__logo {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .55));
}
.hero__title { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.hero__title .gold-text {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1rem + 4.6vw, 4rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35));
}
.hero__ar {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 2;
  color: var(--gold-300);
}
.hero__tagline {
  font-family: var(--f-bn-head);
  font-size: clamp(1.2rem, .95rem + 1.2vw, 1.75rem);
  font-weight: 600;
  margin-top: .2rem;
}
.hero__sub {
  max-width: 36rem;
  margin: .6rem auto 0;
  color: rgba(255, 255, 255, .8);
}
.hero__sub [lang="en"] { color: var(--gold-300); font-weight: 500; }
.hero__ctas {
  display: flex; flex-direction: column; gap: .8rem;
  width: 100%; max-width: 420px;
  margin-top: 1.8rem;
}
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin-top: 1.8rem;
}
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .9rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(201, 162, 75, .4);
  color: rgba(255, 255, 255, .9);
}
.chip .icon { color: var(--gold-300); }

.hero__particles { position: absolute; inset: 0; pointer-events: none; }
.hero__particles span {
  position: absolute; bottom: -10px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #f3dc9a;
  box-shadow: 0 0 8px 2px rgba(243, 220, 154, .6);
  opacity: 0;
}
.hero__particles span:nth-child(1) { left: 8%;  animation-delay: 0s; }
.hero__particles span:nth-child(2) { left: 18%; animation-delay: 3s; width: 3px; height: 3px; }
.hero__particles span:nth-child(3) { left: 30%; animation-delay: 6s; }
.hero__particles span:nth-child(4) { left: 42%; animation-delay: 1.5s; width: 2px; height: 2px; }
.hero__particles span:nth-child(5) { left: 55%; animation-delay: 4.5s; }
.hero__particles span:nth-child(6) { left: 64%; animation-delay: 8s; width: 3px; height: 3px; }
.hero__particles span:nth-child(7) { left: 74%; animation-delay: 2.2s; }
.hero__particles span:nth-child(8) { left: 84%; animation-delay: 5.5s; width: 2px; height: 2px; }
.hero__particles span:nth-child(9) { left: 92%; animation-delay: 7s; }
.hero__particles span:nth-child(10) { left: 50%; animation-delay: 9.5s; width: 3px; height: 3px; }

/* ============ Welcome + 40-day course ============ */
.welcome { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem); }
.welcome__card {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 4.5vw, 3.5rem) clamp(1.2rem, 4.5vw, 3.75rem);
  border-radius: 28px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 85% 40%, rgba(230, 201, 122, .18), transparent 45%),
    radial-gradient(ellipse at 20% 0%, var(--emerald-600) 0%, var(--emerald-800) 50%, var(--emerald-900) 100%);
  border: 1px solid rgba(230, 201, 122, .55);
  box-shadow: 0 30px 70px -30px rgba(6, 42, 32, .75), inset 0 0 0 8px rgba(6, 42, 32, .35), inset 0 0 0 9px rgba(230, 201, 122, .22);
}
.welcome__card::before { opacity: .06; }
.welcome__corner { position: absolute; width: clamp(44px, 7vw, 72px); height: clamp(44px, 7vw, 72px); color: var(--gold-500); opacity: .6; }
.welcome__corner--tl { top: 14px; left: 14px; }
.welcome__corner--br { bottom: 14px; right: 14px; transform: rotate(180deg); }
.welcome__text { position: relative; }
.welcome__salam {
  font-family: var(--f-bn-head);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  font-weight: 600;
  color: var(--gold-300);
}
.welcome__title {
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.4rem);
  color: var(--white);
  margin-top: .3rem;
}
.welcome__lead { font-size: clamp(1.02rem, .97rem + .3vw, 1.15rem); color: rgba(255, 255, 255, .85); }
.welcome__lead strong { color: var(--gold-300); font-weight: 600; }
.welcome__lead [lang="en"] { font-weight: 500; color: var(--white); }
.welcome__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1rem;
  margin: 1.3rem 0 1.4rem;
}
.welcome__list li {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(201, 162, 75, .3);
  font-weight: 500; font-size: .97rem;
}
.welcome__list svg { width: 18px; height: 18px; flex-shrink: 0; fill: var(--gold-300); }
.welcome__ask { font-family: var(--f-bn-head); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; color: var(--gold-300); }
.welcome__note { color: rgba(255, 255, 255, .78); margin-top: .2rem; }
.welcome__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.welcome__ctas .btn--outline [data-phone-display] { font-family: var(--f-en); }

.welcome__badge {
  position: relative;
  order: -1;
  width: clamp(190px, 55vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid; place-items: center;
}
.welcome__rays {
  position: absolute; inset: -30%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(243, 220, 154, .2) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%);
  mask: radial-gradient(circle, #000 25%, transparent 68%);
}
.welcome__star {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: url(#gGold);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .45)) drop-shadow(0 0 22px rgba(230, 201, 122, .35));
}
.welcome__badge-text {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 62%; aspect-ratio: 1;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--emerald-600), var(--emerald-900));
  box-shadow: inset 0 0 0 2px rgba(230, 201, 122, .7), 0 0 0 5px rgba(6, 42, 32, .25);
  text-align: center;
  line-height: 1.2;
}
.welcome__num {
  font-family: var(--f-bn-head);
  font-size: clamp(3.2rem, 11vw, 5rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.welcome__small { font-size: clamp(.8rem, .7rem + .5vw, 1rem); font-weight: 600; color: var(--white); padding-inline: .5rem; }
.welcome__sign {
  position: relative;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(201, 162, 75, .28);
  text-align: center;
  font-family: var(--f-display); font-weight: 700; letter-spacing: .03em;
  color: var(--gold-300);
}
.welcome__sign span { font-family: var(--f-bn-head); letter-spacing: 0; color: var(--white); font-weight: 600; }

/* Hero highlight badge */
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1rem;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-weight: 600; font-size: clamp(.9rem, .85rem + .25vw, 1.02rem);
  color: var(--emerald-900);
  background: var(--gold-soft);
  box-shadow: 0 8px 24px -10px rgba(230, 201, 122, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .25s;
}
.hero__badge:hover { transform: translateY(-2px); }
.hero__badge .icon { width: 16px; height: 16px; }

/* ============ Featured Ayah ============ */
.ayah-band { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem); }
.arch-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2rem, 4vw, 2.6rem);
  text-align: center;
  background: linear-gradient(180deg, #fffdf7, var(--cream-100));
  border: 1px solid var(--line-gold);
  border-radius: 400px 400px 24px 24px / 220px 220px 24px 24px;
  box-shadow: var(--shadow), inset 0 0 0 8px var(--cream-50), inset 0 0 0 9px rgba(201, 162, 75, .35);
}
.arch-card__star {
  position: absolute; top: 1.4rem; left: 50%;
  width: 28px; height: 28px;
  transform: translateX(-50%);
  fill: var(--gold-500);
}
.arch-card .ayah { font-size: clamp(2rem, 6vw, 3.4rem); }

/* ============ About ============ */
.about { padding-top: clamp(3rem, 6vw, 4.5rem); }
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.about__art { max-width: 400px; width: 100%; margin: 0 auto; }
.arch-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 0 8px rgba(201, 162, 75, .12), 0 0 0 9px rgba(201, 162, 75, .45), var(--shadow);
}
.arch-frame--emerald {
  background: radial-gradient(ellipse at 50% 45%, var(--emerald-600), var(--emerald-800) 55%, var(--emerald-900));
  display: grid; place-items: center;
}
.about__glow {
  position: absolute; left: 50%; top: 52%;
  width: 90%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    repeating-conic-gradient(rgba(243, 220, 154, .18) 0deg 4deg, transparent 4deg 18deg),
    radial-gradient(circle, rgba(243, 220, 154, .5), transparent 60%);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%);
  mask: radial-gradient(circle, #000 25%, transparent 70%);
}
.about__crescent { position: absolute; top: 14%; left: 50%; width: 54px; height: 54px; transform: translateX(-50%); fill: var(--gold-300); }
.about__quran { position: relative; width: 72%; height: auto; aspect-ratio: 240 / 200; margin-top: 18%; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .4)); }
.about__text p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.06rem; }
.about__text .eyebrow { text-align: left; }
.pills { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-gold);
  color: var(--emerald-800);
  font-weight: 600;
  box-shadow: 0 6px 18px -12px rgba(6, 42, 32, .5);
}
.pill .icon { color: var(--gold-700); }

/* ============ Courses ============ */
.course-grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.course-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.3rem, 2.5vw, 1.75rem) clamp(1.1rem, 2.2vw, 1.5rem) 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(201, 162, 75, .35);
  box-shadow: var(--shadow-dark);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.course-card::before {
  content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
  opacity: .6;
}
.course-card:hover { transform: translateY(-6px); border-color: rgba(230, 201, 122, .85); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(230, 201, 122, .2); }
.course-card__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(201, 162, 75, .12);
  border: 1px solid rgba(201, 162, 75, .45);
  color: var(--gold-300);
  margin-bottom: 1.1rem;
}
.course-card__icon svg { width: 30px; height: 30px; }
.course-card__title { font-size: 1.28rem; color: var(--white); }
.course-card__en { font-family: var(--f-en); font-size: .85rem; font-weight: 500; color: var(--gold-300); margin: .2rem 0 .7rem; }
.course-card__desc { color: rgba(255, 255, 255, .75); font-size: .98rem; flex: 1; }
.course-card__link {
  display: inline-flex; align-items: center; gap: .4rem;
  align-self: flex-start;
  margin-top: 1.1rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--gold-300);
}
.course-card__link .icon { transition: transform .25s; }
.course-card__link:hover .icon { transform: translateX(4px); }

.age-info {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  max-width: 560px;
  margin: 2.5rem auto 0;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  border: 1px dashed rgba(230, 201, 122, .6);
  background: rgba(6, 42, 32, .45);
  color: var(--gold-300);
  font-weight: 600;
  text-align: center;
}

/* ============ Why us ============ */
.feature-grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.feature-card {
  position: relative;
  padding: 2rem clamp(1.1rem, 2.2vw, 1.6rem) 1.75rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--gold-500); box-shadow: 0 22px 46px -20px rgba(6, 42, 32, .5); }
.feature-card__corner { position: absolute; width: 34px; height: 34px; color: var(--gold-500); opacity: .7; }
.feature-card__corner--tl { top: 10px; left: 10px; }
.feature-card__corner--br { bottom: 10px; right: 10px; transform: rotate(180deg); }
.feature-card__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--emerald-600), var(--emerald-900));
  color: var(--gold-300);
  box-shadow: 0 0 0 4px var(--cream-100), 0 0 0 5px var(--line-gold);
}
.feature-card__icon svg { width: 30px; height: 30px; }
.feature-card__title { font-size: 1.2rem; color: var(--emerald-800); }
.feature-card__en { font-family: var(--f-en); font-size: .82rem; font-weight: 500; color: var(--gold-700); margin: .15rem 0 .6rem; }
.feature-card p:last-child { color: var(--ink-soft); font-size: .98rem; }

/* ============ Teacher ============ */
.teacher { overflow: hidden; }
.teacher__corner { position: absolute; width: clamp(60px, 10vw, 110px); height: clamp(60px, 10vw, 110px); color: var(--gold-500); opacity: .55; }
.teacher__corner--tl { top: 1.2rem; left: 1.2rem; }
.teacher__corner--br { bottom: 1.2rem; right: 1.2rem; transform: rotate(180deg); }
.teacher__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.teacher__name {
  font-family: var(--f-bn-head);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.star-list { display: grid; gap: .9rem; margin-bottom: 2rem; }
.star-list li { position: relative; padding-left: 2.1rem; font-family: var(--f-en); font-weight: 500; font-size: 1.05rem; line-height: 1.6; }
.star-list li span { font-family: var(--f-bn); font-weight: 400; color: rgba(255, 255, 255, .7); }
.star-list svg { position: absolute; left: 0; top: .1rem; width: 22px; height: 22px; fill: var(--gold-300); filter: drop-shadow(0 0 6px rgba(230, 201, 122, .5)); }
.teacher__photo { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.teacher__glow {
  position: absolute; inset: -12%;
  background: radial-gradient(circle at 50% 45%, rgba(230, 201, 122, .35), transparent 65%);
  filter: blur(10px);
}
.arch-frame--photo {
  background: #0f2350;
  aspect-ratio: 900 / 1032;
  border-radius: 50% 50% 24px 24px / 34% 34% 24px 24px;
}
.arch-frame--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.teacher__fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle, #1a3570, var(--navy-900));
}
.teacher__fallback span {
  width: 45%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  font-family: var(--f-bn-head); font-size: clamp(3rem, 8vw, 4.5rem);
  color: var(--gold-300);
}

/* ============ Join steps ============ */
.steps { position: relative; display: grid; gap: 2rem; counter-reset: none; max-width: 520px; margin: 0 auto; }
.steps::before {
  content: "";
  position: absolute; top: 30px; bottom: 30px; left: 29px;
  border-left: 2px dotted rgba(230, 201, 122, .6);
}
.step { position: relative; display: grid; grid-template-columns: 60px 1fr; column-gap: 1.2rem; align-items: center; }
.step__num {
  grid-row: span 2;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--emerald-900);
  font-family: var(--f-bn-head);
  font-size: 1.6rem; font-weight: 700;
  box-shadow: 0 0 0 6px rgba(6, 42, 32, .9), 0 0 0 7px rgba(230, 201, 122, .5), 0 0 26px rgba(230, 201, 122, .4);
  position: relative; z-index: 1;
}
.step__title { font-size: 1.15rem; color: var(--white); align-self: end; }
.step p { color: rgba(255, 255, 255, .72); font-size: .95rem; align-self: start; }

/* ============ Gallery / Carousel ============ */
.carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.carousel__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 1rem 1rem 2.75rem;
  scroll-padding-inline: 1rem;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; }
.verse-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(380px, 52vw, 440px);
  padding: clamp(3rem, 7vw, 4.2rem) clamp(1.2rem, 5vw, 3.5rem) clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  background: linear-gradient(180deg, #fffdf7, var(--cream-100));
  border: 1px solid var(--line-gold);
  border-radius: 400px 400px 24px 24px / 160px 160px 24px 24px;
  box-shadow: 0 12px 26px -16px rgba(6, 42, 32, .45), inset 0 0 0 7px #fffdf7, inset 0 0 0 8px rgba(201, 162, 75, .3);
}
.verse-card .ayah-meaning { font-size: clamp(.98rem, .9rem + .3vw, 1.12rem); }
.verse-card--hadith {
  background: radial-gradient(ellipse at 50% 20%, var(--emerald-600), var(--emerald-800) 55%, var(--emerald-900));
  border-color: rgba(230, 201, 122, .6);
  box-shadow: 0 12px 26px -16px rgba(6, 42, 32, .6), inset 0 0 0 7px var(--emerald-800), inset 0 0 0 8px rgba(230, 201, 122, .4);
}
.verse-card--hadith .ayah { color: var(--gold-300); }
.verse-card--hadith .ayah-meaning { color: var(--white); }
.verse-card--hadith .ref-pill { color: var(--gold-300); border-color: rgba(230, 201, 122, .5); background: rgba(230, 201, 122, .1); }
.verse-card__label {
  align-self: center;
  margin-bottom: .4rem;
  padding: .2rem 1.1rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--emerald-900);
  font-weight: 700; font-size: .9rem;
}
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .5rem; }
.carousel__btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  color: var(--gold-700);
  background: var(--white);
  transition: background-color .2s, color .2s;
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn--next svg { transform: rotate(180deg); }
.carousel__btn:hover { background: var(--emerald-800); color: var(--gold-300); }
.carousel__dots { display: flex; gap: .25rem; }
.carousel__dot {
  width: 28px; height: 44px;
  display: grid; place-items: center;
}
.carousel__dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px;
  background: rgba(122, 92, 28, .35);
  transition: width .3s, background-color .3s;
}
.carousel__dot[aria-current="true"]::before { width: 24px; background: var(--gold-700); }

/* ============ CTA band ============ */
.cta {
  position: relative;
  background: linear-gradient(120deg, #f6e3a8 0%, #d9b65f 40%, #c9a24b 60%, #a37b2c 100%);
  color: var(--emerald-900);
  padding-block: clamp(3rem, 7vw, 4.5rem);
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern);
  background-size: 88px;
  filter: brightness(0);
  opacity: .035;
}
.cta__inner { position: relative; }
.cta__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); color: var(--emerald-900); }
.cta__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); font-weight: 500; margin: .4rem 0 1.6rem; color: #1b3a2c; }
.cta__btns { display: flex; flex-direction: column; gap: .8rem; max-width: 420px; margin: 0 auto; }
.cta__star { position: absolute; width: clamp(50px, 9vw, 90px); height: clamp(50px, 9vw, 90px); fill: rgba(6, 42, 32, .08); top: 50%; transform: translateY(-50%); }
.cta__star--l { left: 0; }
.cta__star--r { right: 0; }

/* ============ Contact ============ */
.contact__grid { display: grid; gap: 2rem; align-items: start; }
.contact__cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(201, 162, 75, .35);
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}
a.contact-card:hover { transform: translateY(-4px); border-color: rgba(230, 201, 122, .85); background: rgba(255, 255, 255, .08); }
.contact-card__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(201, 162, 75, .14);
  color: var(--gold-300);
}
.contact-card__icon svg { width: 26px; height: 26px; fill: currentColor; }
.contact-card__icon--wa { background: rgba(37, 211, 102, .15); color: var(--wa); }
.contact-card__icon--fb { background: rgba(24, 119, 242, .16); color: #5b9bff; }
.contact-card__label { display: block; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.contact-card__value { display: block; font-family: var(--f-en); font-weight: 600; font-size: 1.08rem; color: var(--white); }
.contact-card--static .contact-card__value { font-family: var(--f-bn); }

.form {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(201, 162, 75, .45);
  box-shadow: var(--shadow-dark);
}
.form__title { font-size: 1.4rem; color: var(--gold-300); }
.form__note { font-size: .92rem; color: rgba(255, 255, 255, .7); margin: .2rem 0 1.3rem; }
.form__row { display: grid; gap: 0 1rem; }
.field { margin-bottom: .6rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: rgba(255, 255, 255, .9); }
.field label span { color: var(--gold-300); }
.field small { font-weight: 400; color: rgba(255, 255, 255, .55); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem 1rem;
  border-radius: 12px;
  background: rgba(3, 20, 15, .55);
  border: 1px solid rgba(201, 162, 75, .35);
  color: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e6c97a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field select option { background: var(--emerald-900); color: var(--white); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(230, 201, 122, .25);
}
.field.has-error input, .field.has-error select { border-color: #ff8a80; }
.field__error { min-height: 1.3em; font-size: .85rem; color: #ffb4ab; margin-top: .2rem; }
.form .btn { margin-top: .6rem; }

/* ============ Footer ============ */
.footer { background: var(--emerald-800); color: rgba(255, 255, 255, .78); }
.footer__body { background: var(--emerald-900); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer__grid { display: grid; gap: 2.2rem; }
.footer__brand .brand__logo { margin-bottom: .9rem; }
.footer__name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.footer__ar { text-align: left; font-size: 1.5rem; color: var(--gold-300); line-height: 1.9; }
.footer__tag { font-size: .95rem; }
.footer__head {
  font-size: 1.1rem; color: var(--gold-300); margin-bottom: .8rem;
  padding-bottom: .5rem; border-bottom: 1px solid rgba(201, 162, 75, .25);
}
.footer__col li { padding: .25rem 0; }
.footer__col li a { display: inline-block; padding: .3rem 0; transition: color .2s; }
.footer__col li a:hover { color: var(--gold-300); }
.socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer .social {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06), 0 8px 18px -8px rgba(0, 0, 0, .6);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.footer .social svg { width: 24px; height: 24px; fill: currentColor; }
.footer .social--wa { background: #25d366; }
.footer .social--fb { background: var(--white); color: #1877f2; overflow: hidden; }
.footer .social--fb svg { width: 100%; height: 100%; }
.footer .social:hover { transform: translateY(-3px); filter: brightness(1.08); }
.footer .social--wa:hover { box-shadow: 0 0 0 4px rgba(37, 211, 102, .25), 0 10px 22px -8px rgba(37, 211, 102, .7); }
.footer .social--fb:hover { box-shadow: 0 0 0 4px rgba(24, 119, 242, .25), 0 10px 22px -8px rgba(24, 119, 242, .7); }
.footer__dua {
  text-align: center;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(201, 162, 75, .2);
}
.footer__dua-ar {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 2;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__ref { color: rgba(255, 255, 255, .55); font-size: .9rem; }
.footer__bottom {
  margin-top: 2rem;
  padding: 1.1rem 0 calc(1.1rem + 70px);
  border-top: 1px solid rgba(201, 162, 75, .15);
  font-size: .88rem; text-align: center;
  color: rgba(255, 255, 255, .6);
}

/* ============ Floating ============ */
.fab-wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .45);
}
.fab-wa svg { width: 30px; height: 30px; fill: currentColor; position: relative; z-index: 1; }
.fab-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa);
  z-index: 0;
}
.fab-wa__tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  padding: .45rem .9rem;
  border-radius: 10px;
  background: var(--emerald-900);
  color: var(--white);
  font-size: .88rem;
  border: 1px solid rgba(201, 162, 75, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.fab-wa:hover .fab-wa__tip, .fab-wa:focus-visible .fab-wa__tip { opacity: 1; transform: translateY(-50%); }

.to-top {
  position: fixed; right: 24px; bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--emerald-900);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }

/* ============ Responsive ============ */
@media (min-width: 480px) {
  .hero__ctas, .cta__btns { flex-direction: row; justify-content: center; max-width: none; }
  .hero__ctas .btn, .cta__btns .btn { width: auto; }
  .form__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479.98px) {
  .welcome__list { grid-template-columns: 1fr; }
  .welcome__ctas .btn { width: 100%; }
  .hero__ctas .btn, .cta__btns .btn { width: 100%; }
  .brand__ar { display: none; }
}

@media (min-width: 768px) {
  .topbar__item--hide-sm { display: inline-flex; }
  .header__cta { display: inline-flex; }
  .course-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: .85fr 1.15fr; }
  .about__art { margin: 0; }
  .teacher__grid { grid-template-columns: 1.15fr .85fr; }
  .contact__cards { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .verse-card { flex-basis: 100%; }

  /* Steps: horizontal */
  .steps { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 1.5rem; }
  .steps::before { top: 30px; bottom: auto; left: 12.5%; right: 12.5%; border-left: 0; border-top: 2px dotted rgba(230, 201, 122, .6); }
  .step { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: .4rem; }
  .step__num { grid-row: auto; margin-bottom: .6rem; }
}

@media (min-width: 1024px) {
  .welcome__card { grid-template-columns: 1.45fr .85fr; }
  .welcome__badge { order: 0; width: clamp(240px, 24vw, 320px); }
  .welcome__sign { grid-column: 1 / -1; }
  .course-grid, .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: .9fr 1.1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .hero { min-height: calc(100vh - var(--header-h) - 38px); min-height: calc(100svh - var(--header-h) - 38px); display: flex; align-items: center; }
}

@media (min-width: 1280px) {
  .nav { display: block; }
  .burger { display: none; }
  .brand { margin-right: 0; }
  .nav { margin-inline: auto; }
}

/* ============ Animations ============ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .5; }
  100% { transform: translateY(-80vh) scale(1); opacity: 0; }
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__rays, .welcome__rays { animation: spin 60s linear infinite; }
  .hero__logo { animation: float 6s ease-in-out infinite; }
  .hero__particles span { animation: rise 11s linear infinite; }
  .fab-wa::before { animation: pulse 2.2s ease-out infinite; }

  .js .reveal, .js .stagger > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  }
  .js .reveal.is-visible, .js .stagger.is-visible > * { opacity: 1; transform: none; }
  /* keep hover lift working after reveal */
  .js .stagger.is-visible > .course-card:hover,
  .js .stagger.is-visible > .feature-card:hover { transform: translateY(-6px); transition-delay: 0s !important; }
  .js .stagger.is-visible > a.contact-card:hover { transform: translateY(-4px); transition-delay: 0s !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .hero__particles { display: none; }
}
main:focus { outline: none; }
