/* ============================================================
   Decolonising M&E and Research — Course Website
   Shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --teal:        #1D6A6E;
  --teal-dark:   #155053;
  --teal-light:  #EAF4F4;
  --gold:        #B8720A;
  --gold-light:  #FDF3E4;
  --bg:          #FAF8F5;
  --bg-alt:      #F2EFE9;
  --white:       #FFFFFF;
  --text:        #2C2C2C;
  --text-mid:    #555555;
  --text-light:  #888888;
  --border:      #DDD9D3;
  --max:         860px;
  --radius:      6px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* ── Navigation ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.nav-wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--teal); }

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 4rem 0; }
section:nth-child(even):not(.hero) { background: var(--bg-alt); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.25;
  color: var(--teal);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--teal);
  color: var(--white);
  padding: 5rem 0 4.5rem;
}
.hero h1 {
  color: var(--white);
  max-width: 680px;
}
.hero .dates {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero .tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 1rem 0 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hero-cohort {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #9E6009;
  border-color: #9E6009;
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-full { width: 100%; text-align: center; }

/* ── Benefits list ─────────────────────────────────────────── */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.benefits-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.benefits-list .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* ── Learning objectives ───────────────────────────────────── */
.learning-objectives {
  list-style: none;
  counter-reset: obj-counter;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.learning-objectives li {
  counter-increment: obj-counter;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.learning-objectives li::before {
  content: counter(obj-counter);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.testimonial-card--wide { grid-column: span 2; }
.testimonial-card {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.testimonials-grid .testimonial-card:nth-child(odd) {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
}
.testimonials-grid .testimonial-card:nth-child(even) {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
}
.testimonial-card p {
  font-style: italic;
  color: var(--text);
  margin: 0;
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.price-tag {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.4rem;
  color: var(--teal);
  margin: 0.5rem 0;
}
.pricing-note {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* ── Booking options ───────────────────────────────────────── */
.booking-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.booking-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.booking-card h3 { color: var(--teal); }
.booking-card p { font-size: 0.95rem; color: var(--text-mid); flex: 1; }

/* ── TicketTailor widget wrapper ───────────────────────────── */
.tt-widget-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  min-height: 200px;
}

/* ── Bank transfer note ────────────────────────────────────── */
.bank-transfer-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* ── Policies ──────────────────────────────────────────────── */
.policies {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.policy-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.policy-block h3 {
  color: var(--teal);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ── Form ──────────────────────────────────────────────────── */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group .hint {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  display: block;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.form-check input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
}
.form-check label { font-size: 0.9rem; color: var(--text-mid); }
.data-note {
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ── Trainer ───────────────────────────────────────────────── */
.trainer-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.trainer-photo img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.trainer-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
}
.trainer-bio h2 { margin-bottom: 1rem; }
.trainer-bio p { margin-bottom: 0.9rem; }
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}
.linkedin-link:hover { color: var(--teal-dark); }
@media (max-width: 640px) {
  .trainer-layout { grid-template-columns: 1fr; }
  .trainer-photo { max-width: 200px; }
}

/* ── Info box ──────────────────────────────────────────────── */
.info-box {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.info-box p { font-size: 0.95rem; }

/* ── Schedule times ────────────────────────────────────────── */
.session-times {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.session-time-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
}
.session-zones {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.session-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--teal);
  min-width: 3.5rem;
}
.cal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid var(--teal);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.cal-link:hover { background: var(--teal); color: var(--white); }
.cal-download {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-light);
}
.cal-download a { color: var(--teal); font-weight: 500; }
.tz-selector { margin-top: 1.25rem; }
.tz-selector label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.tz-selector select {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  max-width: 100%;
}
.tz-selector select:focus { outline: none; border-color: var(--teal); }
.tz-result {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: var(--white); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.8rem; }
  section { padding: 2.75rem 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .booking-options { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
}
