* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ocean: #1D6A7A;
  --ocean-dark: #0F4A57;
  --ocean-light: #E8F4F7;
  --forest: #3B6D11;
  --stone: #5F5E5A;
  --stone-light: #F1EFE8;
  --warm: #BA7517;
  --text: #2C2C2A;
  --text-muted: #5F5E5A;
  --white: #ffffff;
  --cream: #FAFAF8;
}

html { scroll-behavior: smooth; }
body { font-family: Georgia, 'Times New Roman', serif; color: var(--text); background: var(--white); line-height: 1.7; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 3rem; height: 70px; background: rgba(255,255,255,0.96); border-bottom: 1px solid rgba(29,106,122,0.15); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { width: 38px; height: 38px; object-fit: contain; }
.nav-logo-text { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; color: var(--ocean-dark); text-transform: uppercase; line-height: 1.3; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--ocean); }
.nav-apply { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--ocean); color: white; padding: 10px 22px; border: none; cursor: pointer; text-decoration: none; }
.nav-apply:hover { background: var(--ocean-dark); }

/* HERO — homepage */
.hero { min-height: 100vh; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 100px 2rem 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,42,53,0.82) 0%, rgba(15,42,53,0.55) 50%, rgba(15,42,53,0.82) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 700px; }
.hero-eyebrow { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(42px, 7vw, 72px); font-weight: 400; color: white; line-height: 1.1; margin-bottom: 1rem; }
.hero-title em { font-style: italic; color: rgba(255,255,255,0.75); }
.hero-tagline { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 2rem; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: var(--white); clip-path: ellipse(60% 100% at 50% 100%); z-index: 1; }

/* HERO — inner pages */
.inner-hero { min-height: 50vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 120px 2rem 5rem; }
.inner-hero-bg { position: absolute; inset: 0; z-index: 0; }
.inner-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.inner-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,42,53,0.75) 0%, rgba(15,42,53,0.6) 100%); }
.inner-hero-content { position: relative; z-index: 1; text-align: center; max-width: 700px; }
.inner-hero-title { font-size: clamp(36px, 5vw, 58px); font-weight: 400; color: white; line-height: 1.15; margin-top: 1rem; }
.inner-hero-title em { font-style: italic; color: rgba(255,255,255,0.75); }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.six-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.section-label { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ocean); margin-bottom: 1rem; }
.section-header-centered { text-align: center; margin-bottom: 4rem; }
.section-heading { font-size: 36px; font-weight: 400; color: var(--text); margin-top: 0.5rem; }
.body-text { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.2rem; }
.welcome-heading { font-size: 38px; font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 2rem; }
.welcome-heading em { font-style: italic; color: var(--ocean); }

/* BUTTONS */
.btn-ocean { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; background: var(--ocean); color: white; padding: 16px 36px; text-decoration: none; border: none; cursor: pointer; display: inline-block; }
.btn-ocean:hover { background: var(--ocean-dark); }
.btn-primary { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; background: white; color: var(--ocean-dark); padding: 16px 36px; text-decoration: none; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--ocean-light); }
.btn-outline { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; background: transparent; color: white; padding: 15px 36px; text-decoration: none; border: 1px solid rgba(255,255,255,0.5); cursor: pointer; display: inline-block; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* WELCOME */
.welcome-section { padding: 7rem 2rem 5rem; background: var(--white); }

/* PHOTO BANNER */
.photo-banner { overflow: hidden; height: 450px; }
.photo-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }

/* VALUES */
.values-strip { background: var(--stone-light); padding: 5rem 2rem; }
.value-item { text-align: center; }
.value-icon { width: 48px; height: 48px; margin: 0 auto 1.5rem; }
.value-title { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ocean-dark); margin-bottom: 0.75rem; }
.value-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* PHILOSOPHY */
.philosophy-section { padding: 6rem 2rem; background: var(--white); }

/* PROGRAM TABS — homepage */
.program-section { padding: 6rem 2rem; background: var(--cream); }
.program-tabs { display: flex; border-bottom: 1px solid rgba(29,106,122,0.2); margin-bottom: 4rem; }
.program-tab { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; padding: 1rem 2rem; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-muted); background: none; border-top: none; border-left: none; border-right: none; transition: all 0.2s; margin-bottom: -1px; }
.program-tab.active { color: var(--ocean); border-bottom-color: var(--ocean); }
.program-content { display: none; }
.program-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.program-img-stack { display: flex; flex-direction: column; gap: 8px; }
.program-img-stack > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.program-img-stack-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.program-img-stack-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.program-text h3 { font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 1rem; }

/* GRADES — homepage */
.grades-section { background: var(--white); padding: 6rem 2rem; }
.grades-header { text-align: center; margin-bottom: 4rem; }
.grades-header h2 { font-size: 36px; font-weight: 400; color: var(--text); }
.grades-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.grade-card { background: var(--cream); border: 1px solid rgba(29,106,122,0.12); padding: 2rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.grade-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ocean); }
.grade-num { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean); margin-bottom: 0.5rem; }
.grade-name { font-size: 17px; font-weight: 400; font-style: italic; color: var(--text); margin-bottom: 0.5rem; }
.grade-theme { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); line-height: 1.5; }

/* ACADEMICS PAGE */
.academics-intro { padding: 6rem 2rem 4rem; background: var(--white); }
.outcome-list { list-style: none; padding: 0; margin-top: 1rem; }
.outcome-list li { font-family: Georgia, serif; font-size: 15px; color: var(--text-muted); line-height: 1.8; padding: 0.6rem 0; border-bottom: 1px solid rgba(29,106,122,0.1); padding-left: 1.5rem; position: relative; }
.outcome-list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--ocean); }
.grade-detail-section { padding: 2rem 2rem 6rem; background: var(--white); }
.grade-detail { padding: 3.5rem 0; border-top: 1px solid rgba(29,106,122,0.12); }
.grade-detail:first-child { border-top: none; }
.grade-detail-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.grade-badge { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; background: var(--ocean); color: white; padding: 8px 18px; white-space: nowrap; }
.grade-detail-title { font-size: 28px; font-weight: 400; color: var(--text); }
.grade-detail-theme { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.25rem; }
.curriculum-heading { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean); margin-bottom: 1rem; }
.curriculum-subhead { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; margin-top: 0.5rem; }
.curriculum-list { list-style: none; padding: 0; }
.curriculum-list li { font-family: Georgia, serif; font-size: 14px; color: var(--text-muted); line-height: 1.8; padding-left: 1rem; position: relative; }
.curriculum-list li::before { content: '–'; position: absolute; left: 0; color: var(--ocean); }

/* PROGRAM PAGE */
.program-pillars { padding: 5rem 2rem; background: var(--stone-light); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillar-card { background: white; padding: 2.5rem 2rem; border-top: 3px solid var(--ocean); }
.pillar-num { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.2em; color: var(--ocean); margin-bottom: 0.75rem; }
.pillar-title { font-size: 18px; font-weight: 400; color: var(--text); margin-bottom: 1rem; }
.program-detail-section { padding: 6rem 2rem; background: var(--white); }
.program-detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; margin-bottom: 6rem; padding-bottom: 6rem; border-bottom: 1px solid rgba(29,106,122,0.1); }
.program-detail-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.program-detail-block.reverse { direction: rtl; }
.program-detail-block.reverse > * { direction: ltr; }
.program-detail-heading { font-size: 30px; font-weight: 400; color: var(--text); line-height: 1.2; margin-bottom: 1.5rem; margin-top: 0.5rem; }
.program-detail-heading em { font-style: italic; color: var(--ocean); }
.program-detail-text { padding-top: 0.5rem; }

/* ADMISSIONS */
.admissions-section { background: var(--ocean-dark); padding: 7rem 2rem; }
.fee-row { display: flex; justify-content: space-between; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fee-row:last-of-type { border-bottom: none; }
.fee-label { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 12px; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }
.fee-note { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 0.25rem; }
.fee-amount { font-size: 15px; color: white; }

/* CTA STRIP */
.cta-strip { background: var(--ocean-dark); padding: 4rem 2rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.cta-heading { font-size: 28px; font-weight: 400; color: white; margin-bottom: 0.5rem; }
.cta-buttons { display: flex; gap: 1rem; flex-shrink: 0; }

/* FOOTER */
footer { background: #2C2C2A; padding: 3.5rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-col-title { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 1rem; }
.footer-col p, .footer-col a { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.8; text-decoration: none; display: block; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.footer-copy { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; color: rgba(255,255,255,0.3); }

/* APPLICATION PAGE */
.apply-page { padding: 8rem 2rem 5rem; background: var(--stone-light); min-height: 100vh; }
.apply-intro { text-align: center; max-width: 650px; margin: 0 auto 4rem; }
.form-card { background: white; max-width: 820px; margin: 0 auto; padding: 3rem 3.5rem; border: 1px solid rgba(29,106,122,0.1); }
.form-section-title { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ocean); margin: 2.5rem 0 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(29,106,122,0.15); }
.form-section-title:first-child { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.25rem; }
.form-row.full { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field label { display: block; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 14px; border: 1px solid rgba(29,106,122,0.2); font-family: Georgia, serif; font-size: 14px; color: var(--text); background: white; outline: none; transition: border-color 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ocean); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235F5E5A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 6px; }
.radio-group label { font-family: Georgia, serif; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.radio-group input[type=radio] { width: auto; margin: 0; }
.form-note { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; color: var(--text-muted); line-height: 1.6; margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--stone-light); border-left: 3px solid var(--ocean); }
.form-submit { text-align: center; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(29,106,122,0.1); }

/* ADMISSIONS PAGE */
.admissions-fees-page { margin-top: 1rem; }
.fee-row-page { display: flex; justify-content: space-between; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid rgba(29,106,122,0.12); }
.fee-row-page:last-of-type { border-bottom: none; }
.fee-label-page { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; letter-spacing: 0.05em; color: var(--text); font-weight: 500; }
.fee-note-page { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; color: var(--text-muted); margin-top: 0.2rem; }
.fee-amount-page { font-size: 15px; color: var(--ocean-dark); font-weight: 500; white-space: nowrap; margin-left: 1rem; }
.fee-sibling { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 12px; color: var(--text-muted); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(29,106,122,0.12); }
.admissions-details-section { padding: 5rem 2rem; background: var(--stone-light); }
.admissions-subheading { font-size: 22px; font-weight: 400; color: var(--text); margin-bottom: 1rem; }
.admissions-notice { background: white; border-left: 3px solid var(--ocean); padding: 2rem 2.5rem; margin-top: 4rem; }
.admissions-notice-heading { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean); margin-bottom: 1rem; }
.policy-link { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; color: var(--ocean); text-decoration: underline; letter-spacing: 0.05em; }
.policy-link:hover { color: var(--ocean-dark); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .two-col, .program-content.active, .footer-grid, .program-detail-block, .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .three-col, .six-col, .pillars-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grades-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip-grid { grid-template-columns: repeat(2, 1fr); height: 300px; }
  .form-card { padding: 2rem 1.5rem; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .program-detail-block.reverse { direction: ltr; }
  .cta-buttons { flex-direction: column; }
  .grade-detail-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}