@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --navy: #1B2A41;
  --navy-deep: #142033;
  --cream: #F4F1EA;
  --gold: #C7A652;
  --gray: #3F3F3F;
  --gray-soft: #6A6A6A;
  --border: #D9D6CF;
  --white: #FFFFFF;
  --max: 1080px;
  --shadow-soft: 0 8px 24px rgba(20, 32, 51, 0.06);
  --radius-soft: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans Pro", Arial, sans-serif;
  color: var(--gray);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .brand-text { font-family: "Playfair Display", Georgia, serif; }
h1, h2, h3, p, ul { margin-top: 0; }
p:last-child, ul:last-child { margin-bottom: 0; }

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

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
  flex: 1 1 auto;
}

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

.brand img {
  width: 82px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.site-nav {
  flex: 0 0 auto;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main { min-height: 70vh; }

.hero, .section .inner, .page-hero .inner, .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #22354f 0%, #1B2A41 100%);
  color: var(--white);
  padding: 112px 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(27,42,65,0.08), rgba(27,42,65,0)),
    linear-gradient(to bottom, rgba(27,42,65,0.03), rgba(27,42,65,0.08));
  pointer-events: none;
}

.hero .inner { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 42px;
  align-items: start;
}

.hero h1, .page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero h1 { color: var(--white); max-width: 760px; }

.page-hero {
  background: linear-gradient(135deg, #22354f 0%, #1B2A41 100%);
  color: var(--white);
  padding: 72px 24px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.42fr);
  gap: 36px;
  align-items: center;
}

.page-hero-copy { min-width: 0; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }

.hero p.lead, .page-hero p.lead {
  font-size: 1.18rem;
  max-width: 780px;
  color: rgba(255,255,255,0.94);
}

.page-hero-art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-seal {
  width: 138px;
  height: auto;
  display: block;
}

.hero-panel-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-panel h2 {
  margin-top: 8px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-bottom: 16px;
}

.hero-actions, .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-secondary, .button.primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.button.dark {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.button.dark:hover {
  background: var(--navy);
  color: var(--white);
}

.section { padding: 78px 24px; }
.section.alt { background: var(--cream); }

.section h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section h3 {
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section p + p { margin-top: 18px; }

.section-heading {
  margin-bottom: 34px;
  max-width: 820px;
}

.section-heading p {
  font-size: 1.08rem;
  color: var(--gray-soft);
}

.split, .columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  border: 1px solid var(--border);
  padding: 30px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-soft);
  height: 100%;
}

.info-panel, .hero-panel {
  padding: 28px;
  border-radius: var(--radius-soft);
}

.hero-panel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(2px);
}

.hero-panel h2, .hero-panel h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.hero-panel p { color: rgba(255,255,255,0.94); }

.info-panel {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.form-box {
  border: 1px solid var(--border);
  padding: 28px;
  background: var(--cream);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #BBB;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  background: var(--white);
  color: var(--gray);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.clean-list { padding-left: 20px; }
.clean-list li { margin-bottom: 10px; }

.section-link {
  margin-top: 30px;
  font-weight: 700;
}

.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 54px 24px 42px;
}

.footer a { color: var(--white); }
.footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.footer-grid strong {
  display: inline-block;
  margin-bottom: 8px;
}

.footer .small {
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 8px;
}

@media (max-width: 960px) {
  .hero-grid, .card-grid, .split, .form-grid, .footer-grid, .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-art { justify-content: flex-start; }
  .hero-seal { width: 124px; }
  .hero-panel { max-width: 680px; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 14px 40px rgba(20, 32, 51, 0.12);
    border-radius: 6px;
    padding: 10px 0;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .site-nav a:hover {
    background: #f6f4ee;
    text-decoration: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .brand {
    min-width: 0;
    padding-right: 10px;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero, .page-hero, .section, .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero { padding-top: 78px; padding-bottom: 78px; }
  .page-hero { padding-top: 56px; padding-bottom: 56px; }
  .section { padding-top: 64px; padding-bottom: 64px; }

  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
    gap: 12px;
  }

  .brand img {
    width: 72px;
    max-height: 72px;
  }

  .brand-text {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .hero p.lead, .page-hero p.lead { font-size: 1.08rem; }

  .card, .info-panel, .hero-panel, .form-box { padding: 22px; }

  .button {
    width: 100%;
    text-align: center;
  }

  .hero-actions, .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-seal { width: 120px; }

  .hero-panel-seal {
    margin-bottom: 18px;
  }

  .hero-panel h2 {
    margin-top: 12px;
  }

  .site-nav {
    left: 12px;
    right: 12px;
  }

  .footer { padding-top: 42px; padding-bottom: 34px; }
}

.interest-fieldset {
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.interest-fieldset legend {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.interest-fieldset legend span {
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--gray-soft);
  font-weight: 600;
}

.interest-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  background: var(--white);
  margin-bottom: 12px;
}

.interest-option input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.interest-option strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.interest-option small {
  display: block;
  color: var(--gray);
  font-size: 0.96rem;
  line-height: 1.5;
}


.board-interest-box {
  background: linear-gradient(180deg, #f8f5ef 0%, #f2eee5 100%);
}

.form-intro-strip {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,0.68);
  border-radius: 8px;
}

.form-intro-strip p {
  margin: 0;
  color: var(--navy);
}

.interest-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.interest-option {
  margin-bottom: 0;
  height: 100%;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.interest-option:hover,
.grade-chip:hover {
  border-color: rgba(151, 107, 18, 0.45);
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.08);
  transform: translateY(-1px);
}

.student-fieldset {
  margin-top: 28px;
  padding-top: 4px;
}

.field-help {
  margin: 0 0 16px;
  color: var(--gray);
}

.student-top-grid {
  margin-bottom: 18px;
}

.grade-section + .grade-section {
  margin-top: 20px;
}

.section-label {
  margin-bottom: 10px;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.grade-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  margin-bottom: 0;
}

.grade-chip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.grade-chip span {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 960px) {
  .interest-option-grid,
  .grade-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .interest-option-grid,
  .grade-grid {
    grid-template-columns: 1fr;
  }

  .grade-chip {
    padding: 12px;
  }
}

.section-label span {
  color: var(--gray-soft);
  font-size: 0.95rem;
  font-weight: 600;
}


.board-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-card h3 {
  margin-bottom: 10px;
}

.board-title {
  color: var(--navy);
  margin-bottom: 16px;
}

.board-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}


/* Campaign homepage additions */
.hero-campaign .campaign-line {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.hero-campaign .hero-qualifier {
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  margin: 0 0 18px;
}

.section-dark {
  color: var(--navy);
}

.lead-dark {
  font-size: 1.18rem;
  color: var(--gray);
  max-width: 860px;
}

.campaign-proof {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.campaign-proof .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.campaign-proof .card {
  border-top: 4px solid var(--gold);
}

@media (max-width: 900px) {
  .hero-campaign .campaign-line {
    font-size: 1.2rem;
  }

  .campaign-proof {
    margin-top: 0;
  }
}
