/* ---------- Reset & base ---------- */
:root {
  --font-heading: Georgia, "Cambria", "Times New Roman", serif;
  --font-body: Georgia, "Cambria", "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --base-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: var(--base-size); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: #2a2a26;
  background: #f6f1e8;
  line-height: 1.6;
}

body, button, input, textarea, select {
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 7%;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(46, 62, 47, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2e3e2f;
}

.logo-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9d8b6 0%, #6f8a5b 60%, #3d5a3a 100%);
  box-shadow: inset 0 0 0 2px #f6f1e8, 0 2px 6px rgba(61, 90, 58, 0.25);
  flex-shrink: 0;
}

.logo-text { font-family: var(--font-heading); }

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: #4b5b4c;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: #3d5a3a; }

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: #3d5a3a;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.1;
  font-family: var(--font-heading);
  color: #2e3e2f;
  letter-spacing: -0.01em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 500;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 500;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 14px;
  color: #6f8a5b;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: 1.1rem;
  color: #5b5b54;
}

.section-lede {
  max-width: 720px;
  margin: 0 0 36px;
  color: #5b5b54;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 72px 7% 96px;
  min-height: 640px;
}

.hero-text { max-width: 620px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-image {
  min-height: 540px;
  border-radius: 28px;
  background:
    linear-gradient(rgba(46, 62, 47, 0.18), rgba(46, 62, 47, 0.05)),
    url("https://images.unsplash.com/photo-1587653263995-422546a7a569?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 60px rgba(46, 62, 47, 0.18);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(46, 62, 47, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: #3d5a3a;
}

.hero-stats span {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #6e6e63;
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  background: #3d5a3a;
  color: #f6f1e8;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.button:hover { background: #2e4a2c; transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button-ghost {
  background: transparent;
  color: #3d5a3a;
  box-shadow: inset 0 0 0 1.5px #3d5a3a;
}

.button-ghost:hover {
  background: rgba(61, 90, 58, 0.08);
}

/* ---------- Sections ---------- */
.section { padding: 96px 7%; }

/* ---------- Program cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.card {
  position: relative;
  min-height: 240px;
  padding: 32px 30px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(46, 62, 47, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(46, 62, 47, 0.12);
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef2e4;
  color: #3d5a3a;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card p {
  color: #5b5b54;
  flex: 1;
  margin: 0 0 18px;
}

.card-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: #3d5a3a;
  letter-spacing: 0.02em;
}

.card-link:hover { color: #2e4a2c; }

/* ---------- Split / philosophy ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  background: #ecead8;
}

.split p { color: #555548; }

.pillars {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pillars li {
  padding-left: 22px;
  position: relative;
  color: #555548;
}

.pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6f8a5b;
}

.pillars strong {
  color: #2e3e2f;
  margin-right: 6px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  min-height: 200px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 22px rgba(46, 62, 47, 0.1);
}

.gallery-1 { background-image: linear-gradient(rgba(46,62,47,0.1), rgba(46,62,47,0.1)), url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=800&q=80"); }
.gallery-2 { background-image: linear-gradient(rgba(46,62,47,0.1), rgba(46,62,47,0.1)), url("https://images.unsplash.com/photo-1581726707445-75cbe4efc586?auto=format&fit=crop&w=800&q=80"); }
.gallery-3 { background-image: linear-gradient(rgba(46,62,47,0.1), rgba(46,62,47,0.1)), url("https://images.unsplash.com/photo-1597392582469-a697322d5c16?auto=format&fit=crop&w=800&q=80"); }
.gallery-4 { background-image: linear-gradient(rgba(46,62,47,0.1), rgba(46,62,47,0.1)), url("https://images.unsplash.com/photo-1444930694458-01babe71870e?auto=format&fit=crop&w=800&q=80"); }

/* ---------- About ---------- */
.about { max-width: 960px; }

.about p { color: #555548; margin-bottom: 14px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(46, 62, 47, 0.06);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d5a3a;
}

/* ---------- Admissions / steps ---------- */
.admissions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  background: #fbf7ee;
  border-top: 1px solid rgba(46, 62, 47, 0.06);
  border-bottom: 1px solid rgba(46, 62, 47, 0.06);
}

.admissions-text p { color: #5b5b54; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(46, 62, 47, 0.06);
}

.steps span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: #6f8a5b;
  letter-spacing: 0.05em;
}

.steps p { margin: 0; color: #5b5b54; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #2e3e2f;
  color: #f6f1e8;
  text-align: center;
}

.contact .contact-info {
  max-width: 640px;
  margin: 0 auto;
}

.contact-info .contact-details { text-align: left; }

.contact h2 { color: #f6f1e8; }
.contact .eyebrow { color: #c9d8b6; }
.contact .contact-info p { color: #d5d6c4; }

.contact-details {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-details li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.12);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.contact-details span {
  color: #c9d8b6;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 7%;
  background: #1f2b20;
  color: #d5d6c4;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  color: #f6f1e8;
}

.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.footer-links a:hover { color: #f6f1e8; }

.footer-meta {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #9ba391;
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 300px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(46, 62, 47, 0.22), 0 0 0 1px rgba(46, 62, 47, 0.06);
  font-family: var(--font-ui);
  color: #2a2a26;
  display: none;
}

.tweaks-panel.active { display: block; }

.tweaks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tweaks-title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3d5a3a;
}

.tweaks-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  color: #6e6e63;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
}

.tweaks-close:hover { background: #f1ede3; color: #2e3e2f; }

.tweaks-section { margin-bottom: 14px; }
.tweaks-section:last-child { margin-bottom: 0; }

.tweaks-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6e6e63;
  margin-bottom: 8px;
}

.tweaks-radio {
  display: grid;
  gap: 6px;
}

.tweaks-radio label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #e6e1d3;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tweaks-radio label:hover { border-color: #c9d8b6; }

.tweaks-radio label.checked {
  border-color: #3d5a3a;
  background: #f3f6ec;
}

.tweaks-radio .preview {
  font-size: 1.05rem;
  color: #2e3e2f;
}

.tweaks-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tweaks-slider-row input[type="range"] {
  flex: 1;
  accent-color: #3d5a3a;
}

.tweaks-slider-row .value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d5a3a;
  min-width: 38px;
  text-align: right;
}

/* ---------- Tweaks trigger button ---------- */
.tweaks-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #3d5a3a;
  color: #f6f1e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(61, 90, 58, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}

.tweaks-trigger:hover { background: #2e4a2c; transform: scale(1.05); }
.tweaks-trigger.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; min-height: auto; }
  .hero-image { min-height: 380px; order: -1; }
  .split, .admissions { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 7%; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 22px 7%;
    background: #f6f1e8;
    border-bottom: 1px solid rgba(46, 62, 47, 0.08);
  }

  .nav-links.active { display: flex; }

  .cards { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 520px) {
  .site-header, .hero, .section, .footer { padding-left: 6%; padding-right: 6%; }
  .gallery { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .contact-details li { grid-template-columns: 1fr; gap: 2px; }
  h1 { font-size: 2.2rem; }
  .tweaks-panel { left: 12px; right: 12px; width: auto; bottom: 12px; }
  .tweaks-trigger { bottom: 12px; right: 12px; }
}
