/* ============================================================
   THE PDI SCHOOL — SHARED STYLESHEET (skeleton v1)
   Brand: navy #0A3161 / orange #F75117
   Fonts: Baloo 2 (display) / Nunito Sans (body) — matches JRH system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,600&display=swap');

:root {
  --navy: #0A3161;
  --navy-soft: #12417d;
  --orange: #F75117;
  --orange-soft: #ff7a45;
  --bg-light: #F2F6FA;
  --white: #FFFFFF;
  --grey-rule: #D7DEE6;
  --text-body: #23324a;
  --radius: 14px;
  --max-width: 1120px;
  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
}

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

h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

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

/* ---------- Divider (logo motif: rule + centre dot) ---------- */
.rule-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.5em 0;
}
.rule-dot::before, .rule-dot::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--orange);
  opacity: 0.5;
}
.rule-dot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { height: 44px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--orange); text-decoration: none; }

/* pure-CSS hamburger, no JS */
.nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- CTA button ---------- */
.btn-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(247, 81, 23, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(247, 81, 23, 0.35);
}
.btn-cta.secondary {
  background: transparent;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
  box-shadow: none;
}
.btn-cta.secondary:hover { background: var(--navy); color: var(--white) !important; }
.header-cta { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-light);
  padding: 72px 0;
  text-align: center;
}
.hero .eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75em;
  display: block;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 1.75em;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-light); }
.section.navy { background: var(--navy); color: var(--white); }
.section.navy h2, .section.navy h3 { color: var(--white); }

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-rule);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-top: 0; }

/* ---------- Placeholder marker (visible in draft only) ---------- */
.placeholder {
  border: 2px dashed var(--orange-soft);
  background: #fff6f2;
  border-radius: var(--radius);
  padding: 20px;
  color: #8a4a2c;
  font-size: 0.95rem;
}
.placeholder strong { color: var(--orange); }

/* ---------- CTA band (repeats site-wide) ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { opacity: 0.9; max-width: 560px; margin: 0 auto 1.5em; }

/* ---------- Knowledge Hub flat list ---------- */
.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hub-list li {
  border-bottom: 1px solid var(--grey-rule);
  padding: 14px 4px;
  font-family: var(--font-body);
}
.hub-list li:first-child { border-top: 1px solid var(--grey-rule); }

/* ---------- FAQ (native details/summary) ---------- */
details.faq {
  border-bottom: 1px solid var(--grey-rule);
  padding: 14px 0;
}
details.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  float: right;
  color: var(--orange);
  font-size: 1.3rem;
}
details.faq[open] summary::after { content: '–'; }
details.faq p { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfe0f5;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.site-footer a { color: #ffd9c7; }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .nav-toggle:checked ~ nav.main-nav {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-rule);
  }
  .nav-toggle:checked ~ nav.main-nav ul {
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .site-header { position: relative; }
}

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