@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500&display=swap');
@import 'themes.css';

/* ── Reset & Base ──────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 1140px;
}

main {
  flex: 1;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */

.nav {
  background-color: var(--color-bg-nav);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__brand:hover {
  text-decoration: none;
}

.nav__logo {
  height: 38px;
  width: auto;
}

.nav__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  max-width: 440px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links > li {
  position: relative;
}

.nav__links a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: color 0.15s, background-color 0.15s;
}

.nav__links a:hover {
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
  text-decoration: none;
}

.nav__links a.active {
  color: var(--color-accent);
}

/* Dropdown */

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  min-width: 190px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  padding: 0.35rem 0;
  padding-top: calc(0.35rem + 4px);
}

.nav__links li:hover .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 0;
}

/* Mobile toggle */

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.2s;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero--tall {
  min-height: 580px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-hero-overlay);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero__content h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero__content .hero__quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  line-height: 1.55;
  border: none;
  padding: 0;
  margin: 0;
}

.hero__content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section__heading {
  margin-bottom: 1.5rem;
}

.section__intro {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ── Programme Cards ──────────────────────────────────────────────────────── */

.programmes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.programme-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


.programme-card__age {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.programme-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
}

.programme-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.programme-card__quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-border);
  padding-left: 0.85rem;
  margin-top: 0.25rem;
}

.programme-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 3px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ── Intro Text ───────────────────────────────────────────────────────────── */

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

.intro-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.faq__item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.faq__item p,
.faq__item ul {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.faq__item ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.faq__item ul li {
  margin-bottom: 0.25rem;
}

/* ── Content page body ────────────────────────────────────────────────────── */

.content-body {
  max-width: 720px;
}

.content-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.content-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.content-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.content-body ul li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.content-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.anecdote {
  background-color: var(--color-bg-alt);
  border-left: 2px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.anecdote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.anecdote cite {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ── Contact ──────────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details p,
.contact-details a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-details a {
  color: var(--color-accent);
}

.contact-group {
  margin-bottom: 1.5rem;
}

.contact-group h3 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.contact-group ul {
  list-style: none;
  padding: 0;
}

.contact-group ul li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-group ul li a {
  color: var(--color-accent);
}

/* Form */

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: border-color 0.15s;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

/* ── Calendar placeholder ─────────────────────────────────────────────────── */

.calendar-placeholder {
  background-color: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
}

.calendar-placeholder p {
  margin-bottom: 1.25rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background-color: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 0;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer__text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer__links a {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.footer__links a:hover {
  color: var(--color-accent);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0;
    position: relative;
  }

  .nav__brand {
    flex: 1;
    min-width: 0;
  }

  .nav__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav__toggle {
    display: flex;
    flex-shrink: 0;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 0.75rem;
    gap: 0;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links > li {
    width: 100%;
  }

  .nav__links a {
    padding: 0.5rem 0.25rem;
  }

  .nav__dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: transparent;
  }

  .nav__links li.is-open .nav__dropdown {
    display: block;
  }

  .nav__dropdown a {
    font-size: 0.85rem;
    padding: 0.4rem 0.25rem;
  }

  .hero {
    min-height: 360px;
  }

  .hero--tall {
    min-height: 400px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .programmes-grid {
    grid-template-columns: 1fr;
  }
}
