/* DISV site stylesheet.
 *
 * Raleway is loaded via <link rel="preconnect"> + <link> to Google Fonts
 * in src/layout.html. This file assumes the font is already available.
 */

:root {
  --brand:        #8E1025;
  --brand-dark:   #6D0C1C;
  --brand-soft:   #F6F4F2;
  --brand-border: #E8D5D9;
  --brand-quote:  #E8C5CB;
  --dark:         #1A1A1A;
  --mid:          #666666;
  --border:       #EEEEEE;
  --page-bg:      #F0F0F0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--page-bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

.site {
  max-width: 900px;
  min-width: 320px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.12);
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
a.nav-logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a,
.nav-links > .nav-item > a {
  font-size: 13px;
  color: #444;
  text-decoration: none;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--brand); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 220px;
  z-index: 101;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  font-weight: 500;
}
.nav-dropdown a:hover { background: var(--brand-soft); color: var(--brand); }

.nav-links a.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.nav-links a.nav-cta:hover { background: var(--brand-dark); color: #fff; }
.nav-hamburger { display: none; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand);
  padding: 28px 40px;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2.5px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero h1 {
  font-size: 32px;
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

/* Compact page header for sub-pages */
.page-header {
  position: relative;
  background: var(--brand);
  padding: 56px 40px 40px;
  color: #fff;
}
.page-header .eyebrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2.5px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-header h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.page-header .breadcrumb {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.page-header .breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.page-header .breadcrumb a:hover { border-bottom-color: #fff; }

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--brand);
}
.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── SHARED SECTION STYLES ── */
.section { padding: 64px 40px; }
.section-eyebrow {
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 36px;
}
.section-desc.compact { margin-bottom: 0; }

/* Prose — long-form content blocks */
.prose { max-width: 680px; }
.prose h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 32px 0 14px;
  letter-spacing: -0.3px;
}
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
}
.prose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 14px;
}
.prose ul, .prose ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mid);
  margin: 0 0 16px 22px;
}
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); font-weight: 600; }
.prose blockquote {
  font-size: 17px;
  color: var(--dark);
  font-style: italic;
  line-height: 1.55;
  border-left: 3px solid var(--brand);
  padding-left: 18px;
  margin: 24px 0;
}

/* ── PROGRAMS / CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.program-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}
.program-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.program-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.program-card-body h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.program-card-body p {
  font-size: 13px;
  color: #777;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.program-card-link {
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.program-card:hover .program-card-link { text-decoration: underline; }

/* ── IB RESULTS ── */
.ib-section { background: var(--brand-soft); padding: 64px 40px; }
.ib-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ib-quote {
  font-size: 16px;
  color: var(--dark);
  font-style: italic;
  line-height: 1.6;
  border-left: 3px solid var(--brand);
  padding-left: 18px;
  margin-bottom: 20px;
}
.ib-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ib-stat {
  background: #fff;
  border-radius: 8px;
  padding: 22px 16px;
  border: 1px solid var(--brand-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ib-stat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.ib-stat-lbl {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 72px;
  color: var(--brand-quote);
  position: absolute;
  top: 4px;
  left: 16px;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin-top: 28px;
  margin-bottom: 16px;
}
.testimonial-author {
  font-size: 11px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── INFO CARDS (Contact / facts) ── */
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.info-card h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.info-card p, .info-card a {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.55;
  text-decoration: none;
}
.info-card a:hover { color: var(--brand); }

/* ── STAFF GRID ── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.staff-card { text-align: center; }
.staff-card .portrait {
  width: 100%;
  aspect-ratio: 1;
  background: var(--brand-soft);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 10px;
}
.staff-card .name {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}
.staff-card .role {
  font-size: 11px;
  color: var(--mid);
  margin-top: 2px;
}

/* ── CALENDAR / EVENT LIST ── */
.calendar-list { list-style: none; margin: 0; padding: 0; }
.calendar-list li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.calendar-list .date {
  flex-shrink: 0;
  width: 170px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.2px;
}
.calendar-list .event {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
}

/* ── FEES TABLE ── */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fees-table th,
.fees-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.fees-table thead th {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}
.fees-table tbody tr:hover { background: #fafafa; }
.fees-table td.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  padding: 48px 40px 24px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 11px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  font-weight: 800;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-col p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
.footer-brand { color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── MOBILE (≤767px) ── */
@media (max-width: 767px) {
  nav { padding: 12px 20px; position: sticky; flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 3;
  }
  nav.open .nav-links {
    display: flex;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    margin: 12px -20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  nav.open .nav-links > a,
  nav.open .nav-links > .nav-item {
    border-bottom: 1px solid var(--border);
  }
  nav.open .nav-links > a,
  nav.open .nav-links > .nav-item > a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
  }
  nav.open .nav-item > a::after {
    content: '+';
    border: none;
    width: auto;
    height: auto;
    font-size: 18px;
    color: var(--brand);
    float: right;
    line-height: 1;
  }
  nav.open .nav-item.expanded > a::after { content: '−'; }
  nav.open .nav-dropdown {
    display: none;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    background: var(--brand-soft);
  }
  nav.open .nav-item.expanded > .nav-dropdown { display: block; }
  nav.open .nav-dropdown a {
    padding: 10px 32px;
    font-size: 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  nav.open .nav-cta {
    margin: 12px 20px 0;
    text-align: center;
    border-radius: 5px;
    padding: 12px !important;
    font-size: 14px !important;
  }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.2s ease;
  }
  nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
  nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { height: 300px; }
  .hero-bar { padding: 18px 20px; }
  .hero h1 { font-size: 22px; }
  .page-header { padding: 36px 20px 28px; }
  .page-header h1 { font-size: 24px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, 0.15); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-number { font-size: 32px; }

  .section { padding: 40px 20px; }
  .cards-grid,
  .cards-grid.two-col { grid-template-columns: 1fr; }
  .program-card-img { height: 180px; }

  .ib-section { padding: 40px 20px; }
  .ib-inner { grid-template-columns: 1fr; gap: 32px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-list li { flex-direction: column; gap: 2px; }
  .calendar-list .date { width: auto; }

  .site-footer { padding: 32px 20px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
