/* ============================================================
   TARBIYATUL QURAN ACADEMY — min.css
   Base: reset, layout, navbar, buttons, cards, modal, footer
   These rules rarely/never change.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

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

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

ul {
  list-style: none;
}

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

/* ── WRAPPER ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════════════
   TOPBAR / NAV
══════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-d) 0%, var(--emerald) 55%, var(--emerald-l) 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(26, 92, 58, .35), 0 0 0 2px rgba(240, 195, 85, .25);
  transition: box-shadow .25s, transform .2s;
  position: relative;
  overflow: hidden;
}

.logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240, 195, 85, .18) 0%, transparent 60%);
  border-radius: inherit;
}

.logo:hover {
  box-shadow: 0 4px 18px rgba(26, 92, 58, .5), 0 0 0 2px rgba(240, 195, 85, .5);
  transform: translateY(-1px);
}

.logo svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold-l);
  position: relative;
  z-index: 1;
}

.brandName {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald-d);
  letter-spacing: -.3px;
  line-height: 1.1;
}

.brandTag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .1px;
}

@media (max-width: 400px) {
  .brandName {
    font-size: 13px;
  }

  .brandTag {
    display: none;
  }
}

/* Desktop menu */
.menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu a {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.menu a:hover,
.menu a.active {
  background: #eef2ee;
  color: var(--emerald);
}

.menu a.active {
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

.hamburger:hover {
  background: #eef2ee;
}

.hamburger svg {
  display: block;
}

/* Close button — hidden on desktop */
.menuClose {
  display: none;
}

/* ── Mobile menu ── */
@media (max-width: 980px) {
  .hamburger {
    display: flex;
    align-items: center;
  }

  .menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 200;
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    font-size: 17px;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 12px;
    width: 280px;
    text-align: center;
  }

  .menu .btn {
    width: 280px;
    justify-content: center;
    margin-top: 6px;
  }

  .menuClose {
    display: block;
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: 1.5px solid var(--line);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
  }
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.primary {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}

.btn.primary:hover {
  background: var(--emerald-d);
  border-color: var(--emerald-d);
}

.btn.gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn.gold:hover {
  background: #b8841f;
  border-color: #b8841f;
}

.btn.btnWa {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
}

.btn.btnWa:hover {
  background: var(--wa-hover);
  border-color: var(--wa-hover);
}

.btn.outline {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}

.btn.outline:hover {
  background: var(--emerald);
  color: #fff;
}

.btn.lg {
  padding: 14px 28px;
  font-size: 15.5px;
  border-radius: 14px;
}

.btnIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════
   SECTION
══════════════════════════════════════════ */
.section {
  padding: 72px 0;
}

.section.bg-alt {
  background: #f6f9f7;
}

.section.bg-emerald {
  background: var(--emerald);
  color: #fff;
}

.sectionLabel {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(26, 92, 58, .1);
  color: var(--emerald);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section.bg-emerald .sectionLabel {
  background: rgba(255, 255, 255, .15);
  color: var(--gold-l);
}

.sectionTitle {
  text-align: center;
  margin-bottom: 48px;
}

.sectionTitle h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section.bg-emerald .sectionTitle h2 {
  color: #fff;
}

.sectionTitle p {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.section.bg-emerald .sectionTitle p {
  color: rgba(255, 255, 255, .75);
}

/* ── GRIDS ── */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

  .grid4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {

  .grid2,
  .grid3,
  .grid4 {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   CARD
══════════════════════════════════════════ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.cardIcon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(26, 92, 58, .1);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--emerald);
}

.cardIcon svg {
  width: 26px;
  height: 26px;
}

/* ── BADGE / PILL ── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(26, 92, 58, .1);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 20px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .6;
    transform: scale(1.3);
  }
}

/* ── STEP ITEM ── */
.stepItem {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stepItem+.stepItem {
  margin-top: 14px;
}

.stepItem h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stepItem p {
  font-size: 14px;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   FORM
══════════════════════════════════════════ */
.formCard {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.formTitle {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.formSubtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .1px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(26, 92, 58, .08);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.formNote {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.fieldRequired::after {
  content: ' *';
  color: #ef4444;
}

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.backdrop.show {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.95) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.modalHead h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--emerald);
}

.modalBody {
  padding: 28px;
}

.btnClose {
  background: none;
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: background .15s;
}

.btnClose:hover {
  background: var(--cream-d);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--emerald-d);
  color: rgba(255, 255, 255, .85);
  padding: 56px 0 24px;
}

.footerGrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 24px;
}

.footerBrand {
  max-width: 220px;
}

.footerBrand p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
}

.footerCol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footerCol h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 8px;
}

.footerCol a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .65);
  transition: color .15s;
}

.footerCol a:hover {
  color: #fff;
}

.footerBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--emerald);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 999;
  animation: slideUp .3s ease;
}

.toast.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.mt8 {
  margin-top: 8px;
}

.mt16 {
  margin-top: 16px;
}

.mt24 {
  margin-top: 24px;
}

.mb8 {
  margin-bottom: 8px;
}

.mb16 {
  margin-bottom: 16px;
}

.text-center {
  text-align: center;
}

.text-emerald {
  color: var(--emerald);
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--muted);
}

.fw-800 {
  font-weight: 800;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE — base breakpoints
══════════════════════════════════════════ */
@media (max-width: 820px) {
  .footerGrid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

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

  .section {
    padding: 48px 0;
  }

  .formCard {
    padding: 22px 16px;
  }

  .ctaBand {
    padding: 32px 20px;
  }

  .modal {
    border-radius: var(--radius);
  }

  .modalBody {
    padding: 18px 16px;
  }

  .modalHead {
    padding: 18px 16px 16px;
  }

  .sectionTitle {
    margin-bottom: 32px;
  }

  .wrap {
    padding: 0 16px;
  }
}