/* Oxford Junior School — Vercel Static Stylesheet */
:root {
  --forest: #0d402a;
  --emerald: #1a8558;
  --mint: #e8f7f0;
  --accent: #3bcf93;
  --ink: #0d141a;
  --muted: #54595f;
  --border: #dce6de;
  --bg: #ffffff;
  --radius: 12px;
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.22;
  margin: 0 0 0.75rem;
  color: var(--forest);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--forest);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--forest);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--emerald);
  border-bottom-color: var(--emerald);
  text-decoration: none;
}

/* Sections */
.section { padding: 4rem 0; }
.section-mint { background: var(--mint); }
.section-forest { background: var(--forest); color: #ffffff; }
.section-forest h1, .section-forest h2, .section-forest h3 { color: #ffffff; }
.section-forest p { color: #d7ebe1; }

.hero {
  background: linear-gradient(135deg, var(--mint) 0%, #ffffff 70%);
  padding: 4.5rem 0 3.5rem;
}

.hero-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}
.hero-center p { font-size: 1.125rem; }

.page-banner {
  background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  text-align: center;
}
.page-banner h1 { color: #ffffff; margin-bottom: 0.5rem; }
.page-banner p { color: #e8f7f0; max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

.btn {
  display: inline-block;
  background: var(--emerald);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.65rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--forest); text-decoration: none; transform: translateY(-1px); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  align-items: center;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(13, 64, 42, 0.05);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}
.card-body { padding: 1.25rem; flex: 1; }
.card-body p:last-child { margin-bottom: 0; }

.split-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(13, 64, 42, 0.12);
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Contact form & info */
.contact-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(13, 64, 42, 0.05);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--forest);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--emerald);
}

.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  background: #1c2420;
  color: #e2ebe6;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 { color: #ffffff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer a { color: #c8dfd3; }
.site-footer a:hover { color: #ffffff; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
}
.social-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.social-pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
}
.social-pill:hover { background: var(--emerald); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: #a8bdb2;
}

@media (max-width: 900px) {
  .grid-3, .grid-4, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.5rem;
  }
  .main-nav.open { display: flex; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
}
