/* ============================================================
   SAFEPath Learning — Global Stylesheet
   Edit brand colors in the :root block below.
   ============================================================ */

:root {
  /* Brand palette */
  --navy:        #12324f;   /* primary dark */
  --navy-800:    #1b4066;
  --teal:        #14a098;   /* brand accent */
  --teal-dark:   #0f857e;
  --amber:       #f4a825;   /* call-to-action */
  --amber-dark:  #d98e0b;

  /* Neutrals */
  --ink:         #1f2a37;
  --muted:       #5b6b7b;
  --line:        #e3e9ef;
  --bg:          #f6f9fc;
  --bg-alt:      #eef4f8;
  --white:       #ffffff;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 10px 30px rgba(18,50,79,.08);
  --shadow-lg:   0 20px 45px rgba(18,50,79,.14);
  --maxw:        1150px;
  --font:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #dbe6f0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--teal-dark);
  background: rgba(20,160,152,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section--navy .eyebrow { color: #7fe3da; background: rgba(127,227,218,.14); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 700; font-size: .98rem; padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: var(--navy); box-shadow: 0 8px 18px rgba(244,168,37,.35); }
.btn--primary:hover { background: var(--amber-dark); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(20,160,152,.3); }
.btn--teal:hover { background: var(--teal-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #f0f4f8; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 42px; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  color: var(--navy); font-weight: 600; font-size: .96rem; padding: 8px 12px;
  border-radius: 8px; text-decoration: none;
}
.nav__links a:hover { background: var(--bg-alt); color: var(--teal-dark); }
.nav__links a.active { color: var(--teal-dark); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 80% -10%, rgba(20,160,152,.16), transparent 60%), var(--bg); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 74px 0 66px; }
.hero h1 span { color: var(--teal-dark); }
.hero p { margin: 20px 0 28px; font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art {
  background: linear-gradient(160deg, var(--navy), var(--navy-800));
  border-radius: 22px; padding: 34px; color: #eaf2f8; box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__art h3 { color: #fff; margin-bottom: 6px; }
.hero__card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px; margin-top: 14px; display: flex; gap: 14px; align-items: center; }
.hero__card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--teal); display: grid; place-items: center; flex: 0 0 auto; color: #fff; font-weight: 800; }
.hero__card small { color: #a9c2d6; display: block; }
.hero__card strong { color: #fff; }

/* ---------- Trust bar ---------- */
.trust { background: var(--navy); color: #cfe0ee; }
.trust__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 30px 0; text-align: center; }
.trust__grid .num { font-size: 1.9rem; font-weight: 800; color: #fff; }
.trust__grid small { color: #9fb8cd; letter-spacing: .02em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: .2s ease; position: relative;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__ico { width: 52px; height: 52px; border-radius: 13px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 16px; color: var(--teal-dark); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .btn { margin-top: 18px; align-self: flex-start; }

/* Course card */
.course {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition:.2s;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course__top { padding: 22px 24px 0; }
.course__badge {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.badge--live { background: rgba(20,160,152,.12); color: var(--teal-dark); }
.badge--soon { background: #fdf0d6; color: var(--amber-dark); }
.badge--prep { background: #e7eefc; color: #2b57c4; }
.course__body { padding: 4px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course h3 { margin-bottom: 8px; }
.course p { color: var(--muted); font-size: .96rem; flex: 1; }
.course__meta { list-style: none; margin: 14px 0 18px; }
.course__meta li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink); padding: 3px 0; }
.course__meta li svg { color: var(--teal); flex: 0 0 auto; }
.course__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.course__price .amt { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.course__price .per { color: var(--muted); font-size: .9rem; }
.course--soon { opacity: .96; }
.course--soon .course__price .amt { color: var(--muted); }

/* Feature list */
.features { list-style: none; display: grid; gap: 14px; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(20,160,152,.14); color: var(--teal-dark); display: grid; place-items: center; margin-top: 2px; }

/* Book layout */
.book { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.book__cover { background: linear-gradient(160deg, var(--navy), var(--teal-dark)); border-radius: 16px; aspect-ratio: 3/4; display: grid; place-items: center; box-shadow: var(--shadow-lg); color:#fff; text-align:center; padding: 26px; }
.book__cover span { font-size:.8rem; letter-spacing:.15em; text-transform:uppercase; color:#a9e6df; }
.book__cover h3 { color:#fff; font-size:1.5rem; margin:10px 0; }

/* Policy */
.policy { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.policy h2 { margin: 28px 0 10px; font-size: 1.35rem; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--ink); margin-bottom: 12px; }
.policy ul { margin: 0 0 16px 20px; }
.policy .meta { color: var(--muted); font-size:.9rem; margin-bottom: 24px; }

/* FAQ (accordion) */
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.faq[open] { box-shadow: var(--shadow-lg); border-color: rgba(20,160,152,.35); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px;
  font-weight: 700; color: var(--navy); font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 12px; height: 12px; border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--teal-dark); }
.faq__body { padding: 0 24px 22px; color: var(--ink); }
.faq__body p { color: var(--muted); margin-bottom: 12px; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body ul { margin: 4px 0 12px 20px; }
.faq__body li { color: var(--muted); margin-bottom: 6px; }
.faq__body a { font-weight: 600; }

/* Coming soon banner */
.soon-note { background: #fdf6e6; border: 1px solid #f3e0b0; border-radius: var(--radius); padding: 20px 24px; display:flex; gap:14px; align-items:center; color:#7a5a12; }
.soon-note strong { color:#7a5a12; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal-dark), var(--navy)); color:#fff; border-radius: 22px; padding: 48px; text-align:center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color:#fff; }
.cta-band p { color:#d7ece9; max-width:560px; margin: 12px auto 26px; }

/* Forms */
.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form label { display:block; font-weight:600; font-size:.92rem; margin: 14px 0 6px; color: var(--navy); }
.form input, .form textarea, .form select {
  width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--bg);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.form .btn { margin-top: 20px; }

/* Page header */
.page-head { background: linear-gradient(160deg, var(--navy), var(--navy-800)); color:#dce8f2; padding: 56px 0; }
.page-head h1 { color:#fff; }
.page-head p { color:#a9c2d6; margin-top: 10px; max-width: 620px; }
.breadcrumb { font-size:.85rem; color:#8fb0c9; margin-bottom: 14px; }
.breadcrumb a { color:#bcd6e9; }

/* ---------- Footer ---------- */
.footer { background: #0d2338; color:#9fb6c9; padding: 56px 0 26px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom: 14px; }
.footer a { color:#9fb6c9; display:block; padding: 4px 0; font-size:.95rem; }
.footer a:hover { color:#fff; text-decoration:none; }
.footer__brand img { height: 40px; margin-bottom: 14px; }
.footer__brand p { color:#8ba4b8; font-size:.92rem; max-width: 260px; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: 38px; padding-top: 20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.85rem; color:#7c94a8; }

/* Utility */
.mt-0{margin-top:0}.mt-1{margin-top:12px}.mt-2{margin-top:24px}.mt-3{margin-top:36px}
.mb-2{margin-bottom:24px}
.section-head { max-width: 640px; margin: 0 auto 44px; text-align:center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding: 48px 0; }
  .hero__art { order: -1; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2,1fr); gap: 26px; }
  .book { grid-template-columns: 1fr; }
  .book__cover { max-width: 260px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; background:#fff; flex-direction: column;
    align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line); gap: 2px;
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px; }
  .nav__cta { margin: 8px 0 4px; }
  .nav__toggle { display: block; }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band, .policy, .form { padding: 28px 22px; }
  .section { padding: 52px 0; }
}
