:root {
  --ink: #153532;
  --muted: #5d716d;
  --teal: #0b6b63;
  --teal-dark: #06413d;
  --gold: #c9953f;
  --cream: #fbf8ef;
  --paper: #ffffff;
  --line: #dce8e1;
  --shadow: 0 24px 70px rgba(21, 53, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbf8;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(251, 248, 239, 0.92);
  border-bottom: 1px solid rgba(21, 53, 50, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.3) 0 17%, transparent 18%),
    linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 8px 20px rgba(6, 65, 61, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
}

.brand-mark::before {
  left: 9px;
  right: 9px;
  bottom: 10px;
  height: 13px;
  background: var(--gold);
  border-radius: 2px 2px 8px 8px;
  clip-path: polygon(0 0, 48% 22%, 100% 0, 100% 82%, 50% 100%, 0 82%);
}

.brand-mark::after {
  left: 14px;
  top: 8px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--teal);
}

.header-cta,
.button,
.contact-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
}

.header-cta:hover,
.button:hover,
.contact-form button:hover {
  transform: translateY(-2px);
}

.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 126px clamp(20px, 6vw, 86px) 58px;
  background:
    linear-gradient(90deg, rgba(8, 47, 44, 0.86) 0%, rgba(8, 47, 44, 0.68) 38%, rgba(8, 47, 44, 0.16) 68%, rgba(8, 47, 44, 0.02) 100%),
    url("assets/quran-learning-hero.png") center right / cover no-repeat;
}

.hero-content {
  max-width: 660px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.button {
  padding: 0 24px;
}

.button.primary {
  color: var(--teal-dark);
  background: var(--gold);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  padding: 22px 16px;
  background: var(--paper);
  color: var(--teal-dark);
  font-weight: 800;
  text-align: center;
}

.section,
.method-section,
.contact-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 86px);
}

.page-hero {
  min-height: 58vh;
  display: flex;
  align-items: end;
  padding: 142px clamp(20px, 6vw, 86px) clamp(52px, 8vw, 86px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 47, 44, 0.9), rgba(8, 47, 44, 0.65)),
    url("assets/quran-learning-hero.png") center / cover no-repeat;
}

.page-hero div {
  max-width: 820px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.75rem, 6.5vw, 5.6rem);
}

.page-hero p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(8, 47, 44, 0.9), rgba(8, 47, 44, 0.58)),
    url("assets/quran-learning-hero.png") center right / cover no-repeat;
}

.courses-hero {
  background:
    linear-gradient(90deg, rgba(8, 47, 44, 0.92), rgba(8, 47, 44, 0.7)),
    url("assets/quran-learning-hero.png") center / cover no-repeat;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(8, 47, 44, 0.92), rgba(8, 47, 44, 0.62)),
    url("assets/quran-learning-hero.png") center right / cover no-repeat;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  background: #fff;
}

.rich-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.values-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: var(--cream);
}

.values-section article {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 36px rgba(21, 53, 50, 0.06);
}

.values-section p {
  color: var(--muted);
}

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

.course-card {
  min-height: 260px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 36px rgba(21, 53, 50, 0.06);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.course-card p,
.method-copy p,
.teacher-panel p,
.contact-section p,
.steps p,
.course-list p {
  color: var(--muted);
}

.course-list {
  display: grid;
  gap: 16px;
  background: #fff;
}

.course-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.course-list h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.course-list p {
  margin-bottom: 0;
}

.text-link {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--teal-dark);
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  background: var(--teal-dark);
  color: #fff;
}

.method-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.steps {
  display: grid;
  gap: 16px;
}

.steps div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.steps span {
  grid-row: span 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--teal-dark);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.teachers {
  background: var(--cream);
}

.teacher-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 36px;
  align-items: start;
  padding: clamp(26px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.teacher-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.teacher-panel li {
  padding: 13px 0 13px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--teal-dark);
  font-weight: 700;
  position: relative;
}

.teacher-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  background: #edf7f3;
}

.contact-page-section {
  background: #f7fbf8;
}

.contact-details {
  max-width: 690px;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-lines span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.contact-lines strong {
  color: var(--teal-dark);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.contact-form button,
.whatsapp-submit {
  border: 0;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
  font: inherit;
}

.whatsapp-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.site-footer {
  padding: 26px clamp(20px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.72);
  background: #102c29;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 172px;
    background:
      linear-gradient(90deg, rgba(8, 47, 44, 0.9) 0%, rgba(8, 47, 44, 0.78) 58%, rgba(8, 47, 44, 0.38) 100%),
      url("assets/quran-learning-hero.png") center / cover no-repeat;
  }

  .trust-strip,
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-section,
  .teacher-panel,
  .contact-section,
  .split-section,
  .values-section {
    grid-template-columns: 1fr;
  }

  .course-list article {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .course-list .text-link {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 13px;
    overflow-x: auto;
    padding-bottom: 3px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 166px 18px 46px;
  }

  .page-hero {
    min-height: auto;
    padding: 166px 18px 52px;
  }

  .hero-actions,
  .hero-stats {
    display: grid;
  }

  .button,
  .hero-stats span {
    width: 100%;
  }

  .trust-strip,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: auto;
  }

  .course-list article {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .course-list .text-link {
    grid-column: auto;
  }

  .steps div {
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }

  .steps span {
    width: 48px;
    height: 48px;
  }

  .contact-form {
    padding: 18px;
  }
}
