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

:root {
  --navy: #1B2A4A;
  --navy-mid: #2F4468;
  --navy-light: #3D5680;
  --ochre: #C68A46;
  --ochre-dark: #B37A3A;
  --cream: #FAF7F2;
  --sand: #EFE7DA;
  --sand-dark: #D9CBB0;
  --ink: #3A3A34;
  --muted: #8A7F66;
  --border: #E4DCC9;
  --max: 760px;
  --shadow-navy-sm: 0 2px 10px rgba(27,42,74,0.08);
  --shadow-navy-md: 0 10px 30px rgba(27,42,74,0.14);
  --shadow-navy-lg: 0 24px 60px rgba(27,42,74,0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Accessible keyboard focus, visible everywhere */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: 36px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 19px; line-height: 1.4; }

p { margin: 0 0 1.2em; }

a { color: inherit; }

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

/* Header / nav */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-name {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.2px;
}
nav.main-nav { display: flex; gap: 26px; }
nav.main-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--navy); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--navy); cursor: pointer; }

@media (max-width: 640px) {
  .nav-inner { padding: 18px 24px; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .wrap { padding: 0 24px; }
  h1 { font-size: 30px; }
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -20px; right: -60px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(198,138,70,0.10) 0%, rgba(198,138,70,0) 70%);
  pointer-events: none; z-index: -1;
}
.eyebrow-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.eyebrow .rule { width: 28px; height: 1px; background: var(--ochre); }
.eyebrow span {
  font-size: 13px; letter-spacing: 1.5px; color: var(--ochre); font-weight: 600;
  text-transform: uppercase;
}
.availability-badge {
  display: inline-flex; align-items: center;
  font-size: 12.5px; letter-spacing: 0.3px; font-weight: 600; color: var(--navy);
  border: 1.5px solid var(--ochre); border-radius: 20px; padding: 5px 14px;
  background: rgba(198,138,70,0.08);
}

/* One orchestrated entrance for the homepage hero — the single deliberate motion moment on the site */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > * { opacity: 0; animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero > *:nth-child(1) { animation-delay: 0.02s; }
.hero > *:nth-child(2) { animation-delay: 0.12s; }
.hero > *:nth-child(3) { animation-delay: 0.22s; }
@media (prefers-reduced-motion: reduce) {
  .hero > * { opacity: 1; animation: none; }
}

/* CTA links */
.cta-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.cta-row a { font-size: 15px; text-decoration: none; }
.cta-primary { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--navy); padding-bottom: 3px; }
.cta-secondary { color: var(--muted); }
.cta-secondary:hover { color: var(--navy); }

/* Credentials strip */
.credentials { border-top: 1px solid var(--border); padding: 28px 0 56px; }
.credentials .label {
  font-size: 12px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; margin-bottom: 16px;
}
.chip-row { display: flex; gap: 14px; flex-wrap: wrap; }
.chip {
  background: var(--ochre-dark); color: #FAF7F2; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 3px;
}

/* Sections */
section.page-section { padding: 48px 0; }
section.page-section + section.page-section { border-top: 1px solid var(--border); }
.section-label {
  font-size: 12px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; margin-bottom: 8px;
}
.publisher-label {
  font-family: 'Libre Baskerville', serif; font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 18px;
}

/* Page heading swatch — a small colour cue echoing the retired bookshelf palette, used consistently across all page headings */
.page-heading-row { display: flex; align-items: center; gap: 14px; margin-bottom: 0.5em; }
.page-heading-swatch {
  width: 34px; height: 26px; border-radius: 5px; flex-shrink: 0;
  background: linear-gradient(135deg, #1B2A4A 0%, #2F4468 22%, #3D5680 40%, #C68A46 62%, #B37A3A 80%, #D9CBB0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

/* Portrait (About page) */
.portrait-row { display: flex; gap: 24px; margin: 8px 0 40px; flex-wrap: wrap; }
.portrait-option { flex: 1; min-width: 220px; max-width: 320px; }
.portrait-option img { width: 100%; height: auto; border-radius: 8px; display: block; }
.portrait-option .portrait-label {
  font-size: 12px; letter-spacing: 1.2px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; margin-top: 10px; text-align: center;
}
.portrait-single { max-width: 280px; margin: 8px 0 40px; }
.portrait-single img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* Country section (Teacher Training page) */
.country-section { display: flex; gap: 28px; align-items: flex-start; }
.country-globe-icon { flex-shrink: 0; }
.country-list {
  columns: 3; column-gap: 28px; list-style: disc; padding-left: 20px; margin: 4px 0 0;
}
.country-list li { font-size: 16px; color: var(--cream); margin-bottom: 8px; break-inside: avoid; }
@media (max-width: 640px) {
  .country-section { gap: 18px; }
  .country-list { columns: 1; }
}

/* Title list — understated cards with cover thumbnails */
.title-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; }
.title-list li {
  padding: 14px 20px 14px 14px; background: #fff; border-radius: 6px;
  border: 1px solid var(--border); box-shadow: var(--shadow-navy-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  display: flex; align-items: center; gap: 16px;
}
.title-list li:has(a.t-name):hover {
  box-shadow: var(--shadow-navy-md); transform: translateY(-2px); border-color: var(--ochre);
}
.title-cover {
  width: 40px; height: 56px; border-radius: 3px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(27,42,74,0.18);
}
.title-cover-placeholder {
  width: 40px; height: 56px; border-radius: 3px; flex-shrink: 0;
  background: var(--sand); border: 1px dashed var(--border);
}
.title-list li > span { display: block; flex: 1; }
.title-list .t-name { font-family: 'Libre Baskerville', serif; color: var(--navy); font-weight: 700; margin-right: 6px; text-decoration: none; border-bottom: 1px solid transparent; }
.title-list a.t-name:hover { border-bottom-color: var(--ochre); }
.title-list .t-role { color: var(--ink); font-size: 15.5px; }
.publisher-heading { margin-top: 40px; }
.publisher-heading:first-child { margin-top: 0; }
.note-line { font-style: italic; color: var(--muted); font-size: 15px; margin: -12px 0 32px; }

/* Logo grid */
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin-top: 24px;
}
.logo-cell {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 16px; text-align: center; font-family: 'Libre Baskerville', serif;
  font-size: 15px; color: var(--navy); display: flex; align-items: center; justify-content: center;
  min-height: 112px; box-shadow: var(--shadow-navy-sm);
}
.logo-cell img { max-height: 82px; max-width: 100%; width: auto; object-fit: contain; }
.logo-cell.no-logo { font-size: 13px; color: var(--muted); font-style: italic; }
.logo-cell-large img { max-height: 82px; }
.logo-group-label {
  font-size: 12px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; margin: 32px 0 4px;
}
.logo-group-label:first-child { margin-top: 0; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { }
.video-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden;
  cursor: pointer; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-navy-sm); transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.video-thumb:hover { box-shadow: var(--shadow-navy-md); transform: translateY(-2px); }
.video-thumb .play-btn {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(250,247,242,0.92);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--navy);
  transition: transform 0.25s ease;
}
.video-thumb:hover .play-btn { transform: scale(1.08); }
.video-title { font-family: 'Libre Baskerville', serif; font-size: 15px; color: var(--navy); margin: 12px 0 4px; line-height: 1.4; }
.video-meta { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.video-yt-link { font-size: 12px; color: var(--ochre); text-decoration: none; }

/* Video lightbox — opens on click, closes on backdrop/Escape/X */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(27,42,74,0.82);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: 24px; opacity: 0; transition: opacity 0.25s ease;
}
.lightbox-overlay.open { display: flex; opacity: 1; }
.lightbox-box {
  width: 100%; max-width: 860px; aspect-ratio: 16/9; position: relative;
  box-shadow: var(--shadow-navy-lg); border-radius: 6px; overflow: hidden;
  transform: scale(0.97); transition: transform 0.25s ease;
}
.lightbox-overlay.open .lightbox-box { transform: scale(1); }
.lightbox-box iframe { width: 100%; height: 100%; border: none; display: block; }
.lightbox-close {
  position: absolute; top: -44px; right: 0; background: none; border: none;
  color: var(--cream); font-size: 28px; line-height: 1; cursor: pointer; padding: 6px;
}
.lightbox-close:hover { color: var(--ochre); }
@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay, .lightbox-box { transition: none; }
}

/* Profile header (portrait + qualifications, side by side) */
.profile-header { display: flex; gap: 32px; align-items: flex-start; margin: 8px 0 40px; flex-wrap: wrap; }
.profile-header .portrait-single {
  flex: 0 0 240px; max-width: 240px; margin: 0; height: 325px;
  border-radius: 8px; overflow: hidden; position: relative;
}
.profile-header .portrait-single img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.12); transform-origin: center;
}
.profile-header .qual-box { flex: 1; min-width: 260px; margin-top: 0; height: 325px; box-sizing: border-box; }

/* Qualifications box */
.qual-box {
  background: var(--sand); border-radius: 8px; padding: 15px 28px; margin-top: 40px;
}
.qual-box h3 { margin-bottom: 10px; }
.qual-box .qual-item { margin-bottom: 9px; }
.qual-box .qual-item:last-of-type { margin-bottom: 0; }
.qual-box .qual-name { display: block; font-size: 15px; font-weight: 700; color: var(--navy); }
.qual-box .qual-inst { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }

@media (max-width: 640px) {
  .profile-header { flex-direction: column; }
  .profile-header .portrait-single { flex: none; max-width: 240px; }
}

/* Country band (Teacher Training page) */
.country-band {
  background: var(--navy); color: var(--cream); padding: 32px 40px; border-radius: 8px; margin: 24px 0 40px;
}
.country-band .label { color: var(--ochre); }
.country-band p { font-size: 17px; margin: 0; color: var(--cream); }

/* Dropped cap for About page */
.drop-cap:first-letter {
  font-family: 'Libre Baskerville', serif; font-size: 58px; font-weight: 700;
  color: var(--navy); float: left; line-height: 0.8; padding: 6px 8px 0 0;
}

/* Contact */
.contact-block { padding: 64px 0 96px; }
.contact-email {
  font-family: 'Libre Baskerville', serif; font-size: 22px; color: var(--navy);
  text-decoration: none; border-bottom: 2px solid var(--ochre); padding-bottom: 4px;
}
.contact-columns { display: flex; gap: 40px; margin-top: 28px; align-items: flex-start; }
.contact-details { flex: 1 1 260px; }
.services-box {
  background: var(--sand); border-radius: 8px; padding: 18px 24px;
  flex: 0 0 220px; box-shadow: var(--shadow-navy-sm); margin-top: -70px;
}
@media (max-width: 640px) {
  .contact-columns { flex-wrap: wrap; }
}
.services-box h3 { margin-bottom: 14px; }
.services-list { list-style: none; padding: 0; margin: 0; }
.services-list li {
  font-family: 'Libre Baskerville', serif; font-weight: 700; color: var(--navy);
  font-size: 16px; padding: 8px 0; border-bottom: 1px solid var(--border);
}
.services-list li:last-child { border-bottom: none; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px;
}
footer.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer.site-footer p { margin: 0; font-size: 13px; color: var(--muted); }
footer.site-footer a { color: var(--muted); font-size: 13px; text-decoration: none; }
footer.site-footer a:hover { color: var(--navy); }

/* Award nominees (Home page) */
/* Award nominees (Home page) — prominent, framed, sits inside the hero */
.award-frame {
  background: var(--sand); border-radius: 8px; padding: 22px 26px; margin-top: 32px;
  box-shadow: var(--shadow-navy-sm);
}
.award-frame .label {
  font-size: 12px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; margin-bottom: 16px;
}
.award-row { display: flex; align-items: stretch; gap: 20px; flex-wrap: wrap; }
.award-pair {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-navy-md); flex: 0 0 auto; width: 300px;
  border-top: 4px solid var(--ochre);
}
.award-pair-content {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px 14px;
}
.award-cover { width: 64px; height: 90px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-navy-sm); flex-shrink: 0; }
.award-badge { height: 90px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.award-caption {
  padding: 12px 20px 16px; font-family: 'Libre Baskerville', serif; font-size: 15px; font-weight: 700; color: var(--navy);
  border-top: 1px solid var(--border); margin: 0 20px;
}
.award-caption span { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
  .award-row { justify-content: center; }
}
