/* ============================================================
   ACE Okara — Design Tokens
   Concept: "The Registry" — a modern coaching brand that borrows
   its visual language from the gazette notifications, roll-number
   slips, and seniority lists CSS aspirants already live inside.
   ============================================================ */

:root {
  --navy: #0f1e38;
  --navy-deep: #081222;
  --navy-soft: #16294a;
  --gold: #c99a3e;
  --gold-light: #e8c578;
  --parchment: #f6f1e4;
  --parchment-dim: #ece4d0;
  --ink: #1c2333;
  --ink-soft: #4a4f5e;
  --muted: #7a7368;
  --line: rgba(28, 35, 51, 0.14);
  --line-on-navy: rgba(232, 197, 120, 0.28);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow.on-parchment { color: #9c7a2a; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  color: inherit;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--parchment);
  border-color: var(--line-on-navy);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline-dark:hover { border-color: var(--navy); background: rgba(15,30,56,0.04); }

/* ---------------- Navbar ---------------- */
.nav {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-on-navy);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .wrap { position: relative; }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img { width: 40px; height: 40px; }
.nav-brand-text {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--parchment);
  font-size: 16.5px;
  line-height: 1.15;
}
.nav-brand-text span {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(246,241,228,0.75);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--parchment);
  border-bottom-color: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line-on-navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 16px 32px;
    border-bottom: none;
  }
  .nav-links a.active, .nav-links a:hover {
    background: rgba(232,197,120,0.08);
    border-bottom: none;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; border: 1px solid var(--line-on-navy); border-radius: 4px;
    color: var(--parchment); width: 42px; height: 42px;
    font-size: 20px; cursor: pointer;
  }
  .nav-cta .btn-gold-sm { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(ellipse at 78% -10%, rgba(201,154,62,0.18), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--parchment);
  padding: 88px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-ref {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  border: 1px solid var(--line-on-navy);
  display: inline-block;
  padding: 7px 14px;
  border-radius: 2px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p.lede {
  font-size: 18px;
  color: rgba(246,241,228,0.78);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.seal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.seal-ring {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-on-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  position: relative;
}
.seal-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(232,197,120,0.35);
  border-radius: 50%;
}
.seal-ring img { width: 62%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .seal-wrap { order: -1; }
  .seal-ring { max-width: 200px; }
}

/* ---------------- Section scaffolding ---------------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: 34px; color: var(--navy); margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }

.on-navy { background: var(--navy); color: var(--parchment); }
.on-navy .section-head h2 { color: var(--parchment); }
.on-navy .section-head p { color: rgba(246,241,228,0.72); }

/* ---------------- Registry ledger table (signature element) ---------------- */
.ledger {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fffdf8;
}
.ledger-row {
  display: grid;
  grid-template-columns: 64px 1.6fr 1fr 1fr;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row.head {
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 26px;
}
.ledger-no {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 20px;
  font-weight: 600;
}
.ledger-title { font-weight: 600; color: var(--navy); font-size: 16px; }
.ledger-sub { font-size: 14px; color: var(--muted); margin-top: 3px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 2px;
}
.tag-free { background: rgba(201,154,62,0.16); color: #8a6a24; }
.tag-paid { background: rgba(15,30,56,0.08); color: var(--navy); }
.tag-soon { background: rgba(122,115,104,0.14); color: var(--muted); }

@media (max-width: 700px) {
  .ledger-row { grid-template-columns: 40px 1fr; }
  .ledger-row > div:nth-child(3), .ledger-row > div:nth-child(4) { grid-column: 2; }
  .ledger-row.head { display: none; }
}

/* ---------------- Mentor / bio ---------------- */
.mentor {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}
.mentor-photo {
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--parchment);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(15,30,56,0.12);
  aspect-ratio: 1;
}
.mentor-cred {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.mentor-cred li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.mentor-cred li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 9px;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .mentor { grid-template-columns: 1fr; }
  .mentor-photo { max-width: 220px; margin: 0 auto; }
}

/* ---------------- Feature columns ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.feature h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--navy-deep); font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: rgba(8,18,34,0.75); margin-bottom: 26px; font-size: 16px; }

/* ---------------- Footer ---------------- */
footer {
  background: var(--navy-deep);
  color: rgba(246,241,228,0.65);
  padding: 56px 0 30px;
  font-size: 14.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-navy);
}
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.foot-brand img { width: 34px; height: 34px; }
.foot-brand span { font-family: var(--serif); color: var(--parchment); font-size: 16px; }
footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 16px;
  font-weight: 600;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer ul a:hover { color: var(--parchment); }
.foot-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------- Page header (non-home pages) ---------------- */
.page-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--parchment);
  padding: 64px 0 56px;
}
.page-header h1 { font-size: 40px; margin-top: 14px; }
.page-header p { color: rgba(246,241,228,0.72); margin-top: 14px; max-width: 56ch; font-size: 16.5px; }

/* ---------------- Course detail cards ---------------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.subject-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
}
.subject-card .k {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.subject-card h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 8px; }
.subject-card p { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .subject-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .subject-grid { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px;
}
.panel .eyebrow { margin-bottom: 10px; display:block; }
.panel h3 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.panel p { color: var(--ink-soft); margin-bottom: 18px; }
.panel ul { margin: 0 0 22px; padding-left: 18px; color: var(--ink-soft); font-size: 15px; display: grid; gap: 8px; }

/* ---------------- Blog ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card .post-tag {
  background: var(--navy);
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 22px;
}
.post-card .post-body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.post-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.post-card .post-meta { font-size: 12.5px; color: var(--muted); }
.post-card.soon { opacity: 0.55; }
.post-card.soon .post-tag { background: var(--parchment-dim); color: var(--muted); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------------- Form ---------------- */
.form-panel { background: #fffdf8; border: 1px solid var(--line); border-radius: 4px; padding: 34px; }
.form-row { display: grid; gap: 8px; margin-bottom: 18px; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 100px; }

/* ---------------- WhatsApp float ---------------- */
.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1f2937;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  border: 1px solid var(--line-on-navy);
  z-index: 60;
  font-size: 26px;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
