/* ============================================================
   Insight Horizon Education — brand stylesheet
   Palette drawn from the printed flyer: navy, gold, cream.
   ============================================================ */

:root {
  --navy: #1c4c8c;
  --navy-deep: #143a6d;
  --ink: #33415c;
  --gold: #d9a63e;
  --gold-soft: #eed9a8;
  --cream: #fbf4df;
  --wash: #fdfaf1;
  --paper: #ffffff;
  --line: #e5ddc9;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--navy); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header & navigation ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark { width: 46px; height: 46px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { color: var(--navy); }

.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.site-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border-bottom: none;
}

.site-nav .nav-cta:hover { background: var(--navy-deep); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .site-nav a { display: block; padding: 0.55rem 0; font-size: 1.05rem; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Type & shared blocks ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }

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

/* Gold-ruled small-caps label, as on the flyer */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 1.6rem;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  flex: 1;
  max-width: 180px;
  height: 2px;
  background: var(--gold-soft);
}

section { padding: 3.6rem 0; }
.section-wash { background: var(--wash); }

.center { text-align: center; }
.lede { font-size: 1.15rem; max-width: 46rem; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero { padding: 4rem 0 3.2rem; background: var(--wash); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 0.8rem;
}

.hero-art { text-align: center; }
.hero-art svg { width: min(300px, 70%); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: 170px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-deep); }

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #c6952f; border-color: #c6952f; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* ---------- Cards (cream boxes with gold spine, as on the flyer) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  margin-top: 1rem;
}

.card {
  background: var(--cream);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; }

.card .card-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.card .card-link:hover { text-decoration: underline; }

/* ---------- Trust strip ---------- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 1.5rem 0;
}

.trust ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-deep);
}

.trust li::before { content: "\2726"; color: var(--gold); margin-right: 0.5rem; }

/* ---------- Two-pathway blocks (Home) ---------- */

.pathways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.pathway {
  border: 2px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.pathway p { flex: 1; }

/* ---------- Detail sections on service pages ---------- */

.service {
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0;
}

.service:last-of-type { border-bottom: none; }

.service ul { padding-left: 1.2rem; }
.service li { margin-bottom: 0.35rem; }

.note {
  background: var(--cream);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: 0.98rem;
}

.fee { font-weight: 800; color: var(--navy-deep); }

/* JCQ explainer panel */
.jcq-panel {
  background: var(--navy);
  color: #f4f7fc;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 1.4rem 0;
}

.jcq-panel h3 { color: var(--gold-soft); }
.jcq-panel a { color: var(--gold-soft); }
.jcq-panel li { margin-bottom: 0.55rem; }
.jcq-panel strong { color: #fff; }

/* ---------- Steps (How it works) ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  background: var(--cream);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  padding: 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  padding: 1.05rem 1.3rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
}

.faq details[open] { border-color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.3rem 1.15rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.4rem;
}

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

.contact-list { list-style: none; padding: 0; margin: 1rem 0; }
.contact-list li { margin-bottom: 0.8rem; }
.contact-list strong { color: var(--navy-deep); }

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--navy); }

/* ---------- CTA band & curved footer (from the flyer) ---------- */

.footer-curve { display: block; width: 100%; margin-bottom: -1px; }

.site-footer {
  background: var(--navy);
  color: #eaf0fa;
  padding: 0 0 2rem;
  text-align: center;
}

.site-footer .cta-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--gold-soft);
  margin: 0.5rem 0 0.4rem;
}

.site-footer .sub-line { margin: 0 0 1.3rem; }

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.2rem;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.footer-contacts a { color: #fff; text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; }
.footer-contacts .icon { color: var(--gold); margin-right: 0.4rem; }

.footer-motto {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: #b9c8e2;
  margin: 0 0 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-nav a { color: #cdd9ee; }

.footer-legal { font-size: 0.8rem; color: #9db1d4; margin: 0; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
