/* Laerskool Mayville — gedeelde style sheet
   Palette drawn directly from the school crest (navy / gold / red on cream) */

:root {
  --navy-deep: #12233f;
  --navy: #1d3e73;
  --navy-soft: #2a4f8f;
  --gold: #c9a227;
  --gold-soft: #e2c667;
  --red: #a81c2c;
  --cream: #f6f3ec;
  --paper: #fffdf8;
  --ink: #21262b;
  --ink-soft: #565f6b;
  --line: #e4ddc9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--navy-deep);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 22px 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--gold);
}

/* Solid nav variant for pages without a dark hero image behind it */
.site-nav.solid {
  position: static;
  background: var(--navy-deep);
}

/* ---------- Mobile nav toggle ---------- */

.nav-toggle {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span { margin-top: 6px; }

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav .container {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav-brand span {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 22px);
    left: -28px;
    right: -28px;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(10, 20, 40, 0.35);
    transition: max-height 0.25s ease;
  }

  .nav-links.open { max-height: 640px; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 15px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--gold);
    background: rgba(255, 255, 255, 0.04);
  }
}

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

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background: #0d1930;
}

.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 20, 40, 0.92) 0%,
    rgba(10, 20, 40, 0.55) 38%,
    rgba(10, 20, 40, 0.12) 68%,
    rgba(10, 20, 40, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0 56px;
  text-align: center;
  color: #fff;
}

.hero-crest {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
}

.hero-motto {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  font-weight: 500;
}

/* ---------- Page header (non-hero pages) ---------- */

.page-header {
  background: var(--navy-deep);
  color: #fff;
  padding: 64px 0 48px;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
}

.page-header p {
  margin-top: 10px;
  color: #c9d3e6;
  font-size: 16px;
  max-width: 520px;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.welcome {
  text-align: left;
}

.welcome .eyebrow-free-heading {
  font-size: clamp(24px, 3vw, 32px);
  max-width: 640px;
}

.welcome p {
  margin-top: 18px;
  max-width: 620px;
  font-size: 17px;
  color: var(--ink-soft);
}

.welcome p + p { margin-top: 14px; }

/* ---------- Contact band on homepage ---------- */

.contact-band {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}

.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-band h2 {
  color: #fff;
  font-size: 24px;
  max-width: 320px;
}

.contact-band .cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 2px;
}

/* ---------- Kontak page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.contact-card {
  background: var(--paper);
  padding: 32px;
}

.contact-card .dept-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.contact-card a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.contact-card a:hover { color: var(--red); border-color: var(--red); }

.phone-card {
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  text-align: left;
}

.phone-card a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  color: var(--navy-deep);
  text-decoration: none;
}

/* ---------- Photo grid ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- Content section with heading + body ---------- */

.info-block { max-width: 720px; }

.info-block h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 14px;
}

.info-block p { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }

.info-block ul {
  margin: 10px 0 10px 20px;
  color: var(--ink-soft);
  font-size: 16px;
}
.info-block ul li { margin-bottom: 8px; }

.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Reason cards (numbered) ---------- */

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 28px;
}

.reason-card {
  background: var(--paper);
  padding: 26px 28px;
}

.reason-card .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.reason-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.reason-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Simple two-column info split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Staff / therapist cards ---------- */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 12px;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
}

.staff-photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.staff-photo-placeholder {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
}

.staff-info h3 {
  font-size: 19px;
  margin-bottom: 2px;
}

.staff-role {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.staff-info p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card { flex-direction: column; }
}

/* ---------- Leadership cards (phase management) ---------- */

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 28px;
}

.lead-card {
  background: var(--paper);
  padding: 30px;
  display: flex;
  gap: 20px;
}

.lead-card img {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.lead-card h3 { font-size: 18px; margin-bottom: 2px; }

.lead-card .role {
  display: block;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.lead-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Grade phase blocks (Graadvoogde en Personeel) ---------- */

.grade-block {
  border: 1px solid var(--line);
  background: var(--paper);
  margin-top: 24px;
}

.grade-block-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.grade-block-header .grade-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
}

.grade-block-header .grade-voog {
  font-size: 14px;
  color: var(--gold-soft);
}

.staff-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0;
}

.staff-chip {
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.staff-chip img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid var(--line);
}

.staff-chip .name { font-size: 14px; color: var(--ink); font-weight: 600; }

/* ---------- Subject table ---------- */

.subject-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14.5px;
}

.subject-table caption { display: none; }

.subject-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.subject-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.subject-table tr:nth-child(even) td { background: var(--paper); }

.subject-table td:first-child {
  color: var(--navy-deep);
  font-weight: 600;
}

/* ---------- Support service rows ---------- */

.support-row {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.support-row:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }

.support-row .who { flex: 0 0 220px; }
.support-row .who h3 { font-size: 17px; margin-bottom: 2px; }
.support-row .who span {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.support-row .what p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Manna vir Mayvies ---------- */

.manna-panel {
  background: var(--navy-deep);
  color: #fff;
  padding: 48px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}

.manna-faces {
  display: flex;
  gap: 16px;
}

.manna-faces img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.manna-panel h2 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.manna-panel p { color: #d7deea; font-size: 15.5px; margin-bottom: 10px; }
.manna-panel a { color: var(--gold-soft); text-decoration: underline; }

/* ---------- Communication flowchart ---------- */

.comm-flow { margin-top: 28px; }

.comm-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 16px 22px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.comm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.comm-col { background: var(--paper); display: flex; flex-direction: column; }

.comm-col-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.comm-col.alt .comm-col-header { background: var(--red); }

.comm-col-body { padding: 18px; flex: 1; }

.comm-col-body .step { margin-bottom: 16px; }
.comm-col-body .step:last-child { margin-bottom: 0; }

.comm-col-body .step-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.comm-col.alt .comm-col-body .step-label { color: var(--red); }

.comm-col-body .step-email {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  word-break: break-word;
  margin-bottom: 6px;
}

.comm-mini-table { width: 100%; font-size: 13px; border-collapse: collapse; margin-top: 6px; }
.comm-mini-table td { padding: 4px 0; border-bottom: 1px dotted var(--line); color: var(--ink-soft); }
.comm-mini-table td:first-child { font-weight: 600; color: var(--ink); width: 36%; }

.comm-footer {
  margin-top: 1px;
  background: var(--navy-deep);
  color: #fff;
  padding: 20px 24px;
  font-size: 14px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.comm-footer div { flex: 1; min-width: 240px; color: #cfd8e8; }
.comm-footer strong { color: #fff; display: block; margin-bottom: 4px; }

@media (max-width: 760px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-card { flex-direction: column; text-align: center; }
  .lead-card img { margin: 0 auto; }
  .manna-panel { grid-template-columns: 1fr; padding: 32px 24px; }
  .support-row { flex-direction: column; gap: 10px; }
  .support-row .who { flex: none; }
}

/* ---------- Footer ---------- */

footer {
  background: var(--navy-deep);
  color: #9aa8c4;
  padding: 36px 0;
  font-size: 14px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .hero { min-height: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-band-inner { flex-direction: column; align-items: flex-start; }
}
