/* ===== Mind and Method Academy ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --oxford: #1B263B;
  --oxford-deep: #111827;
  --oxford-light: #243352;
  --gold: #C5A059;
  --gold-light: #D4B574;
  --gold-pale: #F5ECD9;
  --ochre: #D48C2C;
  --white: #FFFFFF;
  --off-white: #F8F6F1;
  --warm-gray: #E8E4DD;
  --text: #1B263B;
  --text-mid: #4A5568;
  --text-light: #718096;
  --border: #E2DFD8;
  --heading: 'Montserrat', sans-serif;
  --body: 'Lato', sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; font-weight: 600; }

.label {
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.gold-line { width: 56px; height: 3px; background: var(--gold); margin-bottom: 20px; }
.gold-line--c { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--dark { background: var(--oxford); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--cream { background: var(--off-white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--oxford); border-bottom: 2px solid var(--gold);
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav__logo {
  font-family: var(--heading); font-size: 1.05rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.5px;
}
.nav__logo span { color: var(--gold); }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  font-family: var(--body); font-size: 0.88rem; color: rgba(255,255,255,0.75);
  transition: color 0.2s; letter-spacing: 0.3px;
}
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__cta {
  background: var(--gold) !important; color: var(--oxford) !important;
  padding: 10px 24px; border-radius: 4px;
  font-weight: 600 !important; font-family: var(--heading) !important;
  font-size: 0.82rem !important; letter-spacing: 0.5px; transition: background 0.2s;
}
.nav__cta:hover { background: var(--gold-light) !important; }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s;
}

/* Hero */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: var(--oxford); overflow: hidden; padding-top: 72px;
}
.hero__bg {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: var(--oxford-light);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 580px; }
.hero__content h1 { color: var(--white); margin-bottom: 24px; }
.hero__content h1 em { font-style: normal; color: var(--gold); }
.hero__content p {
  color: rgba(255,255,255,0.7); font-size: 1.1rem;
  margin-bottom: 36px; max-width: 480px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__img-slot {
  position: absolute; top: 72px; right: 0; width: 44%; height: calc(100% - 72px);
  display: flex; align-items: center; justify-content: center; z-index: 1;
  color: rgba(255,255,255,0.3); font-size: 0.85rem; font-style: italic; text-align: center; padding: 24px;
  background: rgba(255,255,255,0.03); border-left: 1px solid rgba(255,255,255,0.06);
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--heading); font-weight: 600;
  font-size: 0.88rem; letter-spacing: 0.5px; padding: 14px 32px;
  border-radius: 4px; transition: all 0.2s; cursor: pointer; border: none; text-align: center;
}
.btn--gold { background: var(--gold); color: var(--oxford); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark { background: var(--oxford); color: var(--white); }
.btn--dark:hover { background: var(--oxford-light); }

/* Stats */
.stats { background: var(--oxford-deep); border-top: 1px solid rgba(197,160,89,0.15); padding: 44px 0; }
.stat__num {
  font-family: var(--heading); font-size: 2.4rem; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 6px;
}
.stat__txt {
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 300;
}

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 36px 28px; transition: box-shadow 0.3s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 30px rgba(27,38,59,0.08); transform: translateY(-2px); }
.card--dark {
  background: var(--oxford-light); border: 1px solid rgba(197,160,89,0.12);
}
.card--dark h3, .card--dark h4 { color: var(--white); }
.card--dark p { color: rgba(255,255,255,0.65); }
.card__icon {
  width: 48px; height: 48px; background: var(--gold-pale); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.3rem;
}
.card--dark .card__icon { background: rgba(197,160,89,0.12); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-mid); font-size: 0.95rem; }

/* Programme cards */
.prog-card { border-radius: 6px; overflow: hidden; border: 1px solid var(--border); transition: box-shadow 0.3s; }
.prog-card:hover { box-shadow: 0 8px 30px rgba(27,38,59,0.08); }
.prog-card__head {
  background: var(--oxford); padding: 28px 32px;
  border-bottom: 3px solid var(--gold);
}
.prog-card__head h3 { color: var(--white); margin-bottom: 6px; }
.prog-card__head p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.prog-card__body { padding: 28px 32px; background: var(--white); }
.prog-card__body li {
  padding: 7px 0 7px 22px; position: relative;
  color: var(--text-mid); font-size: 0.93rem;
}
.prog-card__body li::before {
  content: '—'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}

/* Logos bar */
.logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 20px 0; }
.logos__item {
  width: 120px; height: 48px; background: var(--warm-gray); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--text-light); font-style: italic;
}

/* Image placeholders */
.img-ph {
  background: var(--warm-gray); border: 2px dashed var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px; color: var(--text-light); font-size: 0.82rem;
  font-style: italic; text-align: center; padding: 24px;
}
.img-ph--dark {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
}

/* About page */
.credentials { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.credential {
  background: var(--gold-pale); padding: 10px 20px; border-radius: 4px;
  font-family: var(--heading); font-size: 0.82rem; font-weight: 600;
  color: var(--oxford); letter-spacing: 0.3px;
}

/* Contact form */
.form { max-width: 640px; margin: 0 auto; }
.form__group { margin-bottom: 24px; }
.form__label {
  display: block; font-family: var(--heading); font-size: 0.85rem;
  font-weight: 600; margin-bottom: 8px; color: var(--text);
}
.form__input, .form__textarea, .form__select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 4px; font-family: var(--body); font-size: 0.95rem;
  color: var(--text); background: var(--white); transition: border 0.2s;
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none; border-color: var(--gold);
}
.form__textarea { min-height: 160px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Footer */
.footer { background: var(--oxford-deep); color: rgba(255,255,255,0.5); padding: 64px 0 32px; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer h4 {
  color: var(--white); font-size: 0.85rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer a { font-size: 0.9rem; display: block; padding: 4px 0; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 0.8rem;
}
.footer__bottom a { display: inline; padding: 0; }
.footer__legal { display: flex; gap: 24px; }

/* Page headers (inner pages) */
.page-header {
  background: var(--oxford); padding: 140px 0 64px; text-align: center;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* Policy pages */
.policy { padding: 48px 0 96px; }
.policy h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
.policy h3 { font-size: 1.15rem; margin-top: 28px; margin-bottom: 8px; }
.policy p { color: var(--text-mid); margin-bottom: 16px; }
.policy ul { margin: 12px 0 20px 20px; }
.policy li { list-style: disc; color: var(--text-mid); padding: 3px 0; font-size: 0.95rem; }
.policy .last-updated { font-size: 0.85rem; color: var(--text-light); margin-bottom: 32px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__bg { display: none; }
  .hero__img-slot { display: none; }
  .hero__content { max-width: 100%; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links { 
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--oxford); flex-direction: column; padding: 24px;
    gap: 16px; border-bottom: 2px solid var(--gold);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__legal { justify-content: center; }
  .stats .grid-4 { gap: 20px; }
}
