/* ── Variables ─────────────────────────────────────── */
:root {
  --purple: #806daa;
  --purple-dark: #5d4e7d;
  --purple-light: #f0ecf8;
  --gold: #ffe07b;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --border: #e0d8f0;
  --max-width: 1100px;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.7; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section--alt { background: var(--purple-light); }

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Navigation ────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--purple);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; max-width: var(--max-width); margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { height: 60px; width: auto; }
.nav-logo-text { font-family: var(--font-heading); font-size: 1.1rem; color: var(--purple); line-height: 1.2; }
.nav-logo-text span { display: block; font-size: 0.85rem; font-family: var(--font-body); color: var(--text-light); font-weight: 300; }

.nav-links { display: flex; gap: 0.1rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  display: block; padding: 0.5rem 0.65rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text); border-radius: 4px;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--purple); background: var(--purple-light); text-decoration: none;
}

.nav-toggle {
  display: none; background: none; border: 2px solid var(--purple);
  border-radius: 4px; padding: 0.4rem 0.6rem; cursor: pointer;
  font-size: 1.25rem; color: var(--purple);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 3px solid var(--purple);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1.5rem; font-size: 1rem; border-radius: 0; }
  .site-header { position: relative; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white); padding: 4rem 1.25rem; text-align: center;
}
.hero h1 { color: var(--gold); margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; max-width: 680px; margin: 0 auto 1.5rem; opacity: 0.92; }
.hero-badges { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-badges img { height: 80px; width: auto; border-radius: 4px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.65rem 1.5rem;
  background: var(--purple); color: var(--white);
  border-radius: 6px; font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s; text-decoration: none;
}
.btn:hover { background: var(--purple-dark); text-decoration: none; }
.btn--outline {
  background: transparent; border: 2px solid var(--purple); color: var(--purple);
}
.btn--outline:hover { background: var(--purple); color: var(--white); }

/* ── Page title banner ─────────────────────────────── */
.page-banner {
  background: var(--purple); color: var(--white);
  padding: 2.5rem 1.25rem; text-align: center;
}
.page-banner h1 { color: var(--gold); }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: 10px;
  box-shadow: 0 2px 12px rgba(128,109,170,0.12);
  overflow: hidden;
}

/* ── Info cards (homepage) ─────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.info-card { padding: 1.75rem; border-left: 4px solid var(--purple); background: var(--white); border-radius: 0 8px 8px 0; }
.info-card h3 { color: var(--purple); }

/* ── Two-col intro ─────────────────────────────────── */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.intro-grid img { border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
@media (max-width: 700px) { .intro-grid { grid-template-columns: 1fr; } }

/* ── Team grid ─────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.team-card .team-photo { aspect-ratio: 1; overflow: hidden; }
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card .team-info { padding: 1.25rem; }
.team-card .team-name { font-family: var(--font-heading); font-size: 1.2rem; color: var(--purple); }
.team-card .team-role { font-size: 0.85rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.team-card .team-bio { font-size: 0.9rem; color: var(--text); line-height: 1.6; }

/* ── Gallery grid ──────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.gallery-grid a { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* ── Document list ─────────────────────────────────── */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.doc-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; border: 2px solid var(--border);
  border-radius: 8px; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s; color: var(--text);
}
.doc-card:hover { border-color: var(--purple); box-shadow: 0 2px 12px rgba(128,109,170,0.15); text-decoration: none; }
.doc-icon { font-size: 2rem; flex-shrink: 0; }
.doc-card span { font-weight: 500; font-size: 0.95rem; }

/* ── Safeguarding statement ────────────────────────── */
.safeguarding-statement {
  background: var(--purple); color: var(--white);
  border-radius: 10px; padding: 2rem; margin-bottom: 2.5rem;
}
.safeguarding-statement p { opacity: 0.92; }

/* ── Contact ───────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details p { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-weight: 500; font-size: 0.9rem; color: var(--text); display: block; margin-bottom: 0.25rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 2px solid var(--border); border-radius: 6px;
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--purple);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--purple-dark); color: rgba(255,255,255,0.85);
  padding: 2.5rem 1.25rem; margin-top: 0;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.footer-inner h4 { color: var(--gold); font-family: var(--font-heading); margin-bottom: 0.75rem; }
.footer-inner a { color: rgba(255,255,255,0.8); }
.footer-inner a:hover { color: var(--white); }
.footer-bottom { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; opacity: 0.7; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }
