/* O'Hare Academy — Design System */
:root {
  --navy: #0B1D36;
  --navy-light: #152a4a;
  --cream: #F7F4EF;
  --cream-dark: #EFEBE3;
  --accent: #C45C26;
  --accent-hover: #A84B1C;
  --green: #2E7D4F;
  --gold: #C9A227;
  --ink: #1A2332;
  --muted: #5A6577;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(11, 29, 54, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 29, 54, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --max-width: 1120px;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 29, 54, 0.06);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  height: 62px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.logo-text span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

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

.nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  background: var(--cream);
  color: var(--navy);
}

.nav .btn-nav {
  background: var(--navy);
  color: white !important;
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem;
}

.nav .btn-nav:hover {
  background: var(--navy-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

.mobile-toggle svg { width: 24px; height: 24px; }

/* ========== HERO ========== */
.hero {
  background: var(--navy);
  color: white;
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-content h1 .accent {
  color: #f0a070;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 34rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 92, 38, 0.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 1.75rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f0a070;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-photo {
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  object-fit: cover;
}

.hero-photo-caption {
  margin-top: 1.15rem;
  color: white;
  text-align: center;
  max-width: 340px;
}

.hero-photo-caption strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.hero-photo-caption .role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0a070;
  margin-bottom: 0.35rem;
}

.hero-photo-caption span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}

/* ========== SECTIONS ========== */
.section {
  padding: 4.5rem 1.5rem;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 29, 54, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cream) 0%, #e8e4dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Features list */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
}

.feature-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 125, 79, 0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* About / Bio */
.bio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.bio-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid rgba(11,29,54,0.06);
}

/* Subject tags */
.subject-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.subject-tag {
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1px solid rgba(11,29,54,0.1);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.15s;
}

.subject-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196, 92, 38, 0.04);
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: white;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  opacity: 0.85;
  margin-bottom: 1.75rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-item a, .contact-item span {
  color: var(--ink);
  font-weight: 550;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(11,29,54,0.12);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.85rem;
}

.footer-brand .logo-icon,
.logo-icon-footer {
  height: 48px;
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.65);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: white;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.1rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* Editor specific */
.editor-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.editor-panel h3 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-success {
  background: var(--green);
  color: white;
}

.btn-success:hover {
  background: #256b42;
  color: white;
}

.status-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

.status-msg.show { display: block; }
.status-msg.success { background: rgba(46,125,79,0.12); color: var(--green); }
.status-msg.info { background: rgba(11,29,54,0.06); color: var(--navy); }

/* Credentials pop card */
.credentials-pop {
  background: linear-gradient(145deg, #0B1D36 0%, #152a4a 100%);
  border: none;
  color: white;
  box-shadow: 0 12px 32px rgba(11, 29, 54, 0.25);
}

.credentials-pop h3 {
  color: white !important;
}

.credentials-pop .badge {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.credentials-pop p {
  color: rgba(255,255,255,0.8) !important;
}

/* Special offering banner */
.special-offer {
  background: linear-gradient(135deg, #C45C26 0%, #a84b1c 100%);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 28px rgba(196, 92, 38, 0.3);
  margin-bottom: 2rem;
}

.special-offer-content h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.special-offer-content p {
  opacity: 0.95;
  font-size: 0.95rem;
  margin: 0;
}

.special-offer .btn {
  background: white;
  color: var(--accent);
  flex-shrink: 0;
}

.special-offer .btn:hover {
  background: var(--cream);
  color: var(--accent-hover);
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-photo img { width: 220px; height: 220px; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
  .bio-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .feature-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(11,29,54,0.08);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: left; padding: 0.75rem 1rem; }
  .nav .btn-nav { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .mobile-toggle { display: block; }
}
