@charset "UTF-8";
/* ==========================================================
   Quran Path Academy - style.css
   Fonts: Amiri (headings, Quranic feel) + Source Sans 3 (body)
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --green-900: #072a20;
  --green-800: #0b3d2e;
  --green-700: #11553f;
  --green-600: #0f7a55;
  --mint-50: #f3f8f5;
  --mint-100: #e3efe8;
  --gold: #d4a437;
  --gold-dark: #a9801c;
  --ink: #1b2a24;
  --muted: #55655e;
  --white: #ffffff;
  --wa: #0e8a4a;

  --font-display: "Amiri", "Noto Naskh Arabic", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* side padding that keeps content ~1100px wide on big screens */
  --side: max(20px, calc((100% - 1100px) / 2));
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mint-50);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--green-800);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 80px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--side);
  background: var(--white);
  border-bottom: 3px solid var(--gold);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-800);
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom-color: var(--gold);
}

/* ---------- Hero ---------- */
#hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 72px var(--side);
  background: var(--green-800);
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 0.4em;
}

.hero-content > p {
  font-size: 1.2rem;
  color: #d5e6dc;
  max-width: 34em;
}

.hero-content ul {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-content li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}

.hero-content li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-trial,
.btn-whatsapp {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.btn-trial {
  background: var(--gold);
  color: var(--green-900);
  border: 2px solid var(--gold);
}

.btn-trial:hover {
  background: #e3b84f;
  border-color: #e3b84f;
}

.btn-whatsapp {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-whatsapp:hover {
  background: var(--white);
  color: var(--green-800);
}

.hero-image img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 12px;
  margin-inline: auto;
}

/* ---------- Generic sections ---------- */
section {
  padding: 72px var(--side);
}

section > h2 + p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Why Us + Courses (headings span, boxes in a grid) ---------- */
#why-us,
#courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

#why-us > h2,
#why-us > p,
#courses > h2,
#courses > p {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

#why-us > h2,
#why-us > p,
#courses > h2,
#courses > p {
  text-align: center; /* same centered headings as Packages and Free Trial */
}

#why-us > p,
#courses > p {
  margin-bottom: 20px;
}

#courses {
  background: var(--mint-100);
  counter-reset: step;
}

.feature-box {
  padding: 8px 0 8px 22px;
  border-left: 4px solid var(--gold);
}

.feature-box p {
  margin: 0;
  color: var(--muted);
}

/* Courses are a real beginner to advanced path, so they are numbered */
#courses .course-box {
  position: relative;
  counter-increment: step;
  padding: 28px 24px 24px;
  background: var(--white);
  border-top: 5px solid var(--green-700);
  border-radius: 4px;
}

#courses .course-box::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.course-box p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Pricing ----------
   The pricing section has inline styles in the HTML, so a few rules
   below use !important. Move those inline styles here to remove it. */
#pricing {
  background: var(--white);
  padding: 72px var(--side) !important;
}

#pricing .course-box {
  background: var(--mint-50);
  border: 1px solid #cfdcd5 !important;
  border-top: 5px solid var(--green-700) !important;
  border-radius: 4px !important;
  padding: 28px 24px !important;
}

#pricing .course-box h4 {
  color: var(--green-700) !important;
  font-family: var(--font-display);
  font-size: 1.5rem !important;
  line-height: 1.35;
}

#pricing .course-box h4 span {
  font-family: var(--font-body);
  font-size: 0.8rem !important;
  color: var(--muted) !important;
}

#pricing .course-box ul {
  border-top: 1px solid #cfdcd5 !important;
  padding-top: 14px !important;
  font-size: 1rem;
}

/* ---------- Free Trial form ---------- */
#trial {
  background: var(--green-800);
  color: #d5e6dc;
  text-align: center;
}

#trial h2 {
  color: var(--white);
}

#trial > p {
  color: #d5e6dc;
  margin-bottom: 32px;
}

form {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  text-align: left;
  border-top: 5px solid var(--gold);
}

form > div {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--green-800);
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--mint-50);
  border: 1px solid #b9cbc1;
  border-radius: 6px;
}

input:focus,
select:focus {
  border-color: var(--green-600);
  background: var(--white);
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: var(--green-700);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background: var(--green-600);
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
}

.whatsapp-float {
  display: inline-block;
  padding: 12px 20px;
  background: var(--wa);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:hover {
  background: #0a6e3b;
}

/* ---------- Footer ---------- */
footer {
  background: var(--green-900);
  color: #b9cfc3;
  font-size: 0.95rem;
}

footer p {
  margin: 0 0 6px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  #hero {
    gap: 32px;
    padding: 56px 28px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  /* compact header: logo on top, links in one swipeable row */
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 6px;
  }

  .logo {
    font-size: 1.4rem;
    text-align: center;
  }

  nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    gap: 0 18px;
    font-size: 0.92rem;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    white-space: nowrap;
    padding: 8px 0;
  }

  section[id] {
    scroll-margin-top: 90px;
  }

  /* hero */
  #hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content > p {
    font-size: 1.05rem;
  }

  .hero-content ul {
    margin: 18px 0 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-trial,
  .btn-whatsapp {
    width: 100%;
    min-height: 48px; /* easy thumb tap */
    padding: 13px 20px;
  }

  .hero-image img {
    max-height: 280px;
  }

  /* sections */
  section,
  #pricing {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .feature-box {
    padding-left: 16px;
  }

  /* pricing cards: one full-width card per row */
  #pricing .course-box {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100%;
  }

  /* form */
  form {
    padding: 22px 16px;
  }

  input,
  select {
    font-size: 16px; /* stops iPhone auto-zoom on focus */
    min-height: 48px;
  }

  button[type="submit"] {
    min-height: 50px;
  }

  /* floating WhatsApp: smaller, tucked into the corner */
  .whatsapp-float-container {
    right: 12px;
    bottom: 12px;
  }

  .whatsapp-float {
    padding: 11px 16px;
    font-size: 0.92rem;
  }

  /* keep footer text clear of the floating button */
  footer {
    padding-bottom: 80px !important;
  }
}

/* ---------- Small phones (360px and below) ---------- */
@media (max-width: 380px) {
  .logo {
    font-size: 1.25rem;
  }

  nav {
    justify-content: flex-start;
    gap: 0 14px;
    font-size: 0.88rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  #pricing .course-box h4 {
    font-size: 1.3rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Courses: desktop par teeno ek line mein */
#courses {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 800px) {
  #courses {
    grid-template-columns: 1fr;
  }
}