/* ═══════════════════════════════════════════════════════════════
   McConkey-Harris Classical School — styles.css
   Typography: EB Garamond
   Palette: Deep navy, warm parchment, antique gold, forest green
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2640;
  --navy-deep:  #101828;
  --gold:       #b8952a;
  --gold-light: #d4af52;
  --parchment:  #f5f0e8;
  --parchment-dark: #e8e0ce;
  --forest:     #2d4a2d;
  --cream:      #fdfaf4;
  --text:       #1e1e1e;
  --text-muted: #5a5240;
  --white:      #ffffff;

  --ff:         'EB Garamond', Georgia, 'Times New Roman', serif;

  --max-w:      1180px;
  --section-v:  80px;
  --radius:     4px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.10);
  --shadow-md:  0 6px 24px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff);
  font-size: 19px;
  line-height: 1.72;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

ul { list-style: none; }

.hidden { display: none !important; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
}
.narrow { max-width: 760px; }

/* ── Section label (small caps eyebrow) ─────────────────────── */
.section-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Headings ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--ff); font-weight: 600; line-height: 1.22; }

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.65;
}

.narrow-lead { max-width: 640px; margin-inline: auto; text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 14px 34px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(26, 38, 64, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 149, 42, .25);
  transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.35); }

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-crest {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}

.nav-name {
  font-family: var(--ff);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.2;
  white-space: nowrap;
}

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

.nav-links a {
  font-size: .96rem;
  font-weight: 500;
  color: rgba(245, 240, 232, .85);
  letter-spacing: .03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--gold) !important;
  border-radius: var(--radius);
  color: var(--gold) !important;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ══════════════════════════════════════════════════════════════
   HERO BANNER — 60vh, mountain background
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 60vh;
  min-height: 460px;
  max-height: 800px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin-top: 68px; /* nav height */
}

/* Mountain image fills the hero */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/mountain-softened.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  /* Subtle Ken-Burns warmth */
  animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* Gradient overlay: lighter at top, heavier at bottom for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(16, 24, 40, .18) 0%,
    rgba(16, 24, 40, .30) 40%,
    rgba(16, 24, 40, .72) 80%,
    rgba(16, 24, 40, .88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 40px 32px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Crest: left of center — absolute within hero-content flow */
.hero-crest-wrap {
  display: flex;
  justify-content: flex-start;
  padding-left: 4%;   /* nudge left-of-center on wide screens */
}

.hero-crest {
  height: clamp(110px, 14vw, 190px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.55));
  /* Very slight lift on load */
  animation: crestFade .9s ease both;
}

@keyframes crestFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Identity block: anchored at the bottom of the hero */
.hero-identity {
  align-self: flex-start;
  /* Offset toward left-center to align with crest */
  padding-left: 4%;
  animation: identityFade 1.1s .25s ease both;
}

@keyframes identityFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-name {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.hero-tagline {
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  font-style: italic;
  color: rgba(245, 240, 232, .88);
  letter-spacing: .04em;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* Gold separator dots between identity items */
.hero-tagline br + br { display: none; }

/* ══════════════════════════════════════════════════════════════
   SECTION — General
══════════════════════════════════════════════════════════════ */
.section { padding-block: var(--section-v); }

/* ══════════════════════════════════════════════════════════════
   IDENTITY SECTION
══════════════════════════════════════════════════════════════ */
.identity {
  background: var(--cream);
  text-align: center;
}

.identity-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.pillar:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pillar-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.pillar p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════
   CURRICULUM SECTION
══════════════════════════════════════════════════════════════ */
.curriculum {
  background: var(--parchment);
  text-align: center;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-block: 40px 32px;
  text-align: left;
}

.curriculum-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow .2s;
}
.curriculum-card:hover { box-shadow: var(--shadow-md); }

.card-grade {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.curriculum-card h3 {
  font-size: 1.18rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.curriculum-card ul {
  list-style: none;
  padding: 0;
}

.curriculum-card ul li {
  font-size: .96rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--parchment-dark);
  line-height: 1.45;
}
.curriculum-card ul li::before {
  content: '✦  ';
  color: var(--gold);
  font-size: .7rem;
}
.curriculum-card ul li:last-child { border-bottom: none; }

.curriculum-note {
  font-size: .94rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  border-top: 1px solid var(--parchment-dark);
  padding-top: 28px;
}

/* ══════════════════════════════════════════════════════════════
   HERITAGE SECTION
══════════════════════════════════════════════════════════════ */
.heritage {
  background: var(--navy);
}

.heritage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.heritage-text .section-label { color: var(--gold-light); }

.heritage-text h2 {
  color: var(--parchment);
  margin-bottom: 24px;
}

.heritage-text p {
  color: rgba(245, 240, 232, .80);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.heritage-quote {
  border-left: 3px solid var(--gold);
  padding: 16px 0 16px 24px;
  margin-top: 32px;
}

.heritage-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--parchment);
  margin-bottom: 8px;
}

.heritage-quote cite {
  font-size: .88rem;
  letter-spacing: .06em;
  color: var(--gold-light);
  font-style: normal;
}

.heritage-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  border: 3px solid rgba(184, 149, 42, .3);
}

.heritage-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.heritage-image-wrap:hover .heritage-img { transform: scale(1.03); }

/* ══════════════════════════════════════════════════════════════
   ENROLLMENT FORM SECTION
══════════════════════════════════════════════════════════════ */
.enroll {
  background: var(--cream);
  text-align: center;
}

.enroll-form {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius);
  padding: 48px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
}

.form-row { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.form-row.two-col { flex-direction: row; }

.form-group { display: flex; flex-direction: column; flex: 1; gap: 6px; }

label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
}

.req { color: var(--gold); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-family: var(--ff);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--parchment-dark);
  border-radius: var(--radius);
  padding: 11px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 42, .15);
  background: var(--white);
}

select {
  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='%235a5240' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

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

.form-group { margin-bottom: 0; }

.enroll-form .btn { margin-top: 12px; font-size: 1.05rem; }

.form-disclaimer {
  font-size: .83rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

.form-success {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--forest);
  text-align: center;
  padding: 40px 24px;
}

/* ══════════════════════════════════════════════════════════════
   CANVAS LOGIN SECTION
══════════════════════════════════════════════════════════════ */
.canvas-login {
  background: var(--parchment);
}

.canvas-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.canvas-text .section-label { color: var(--gold); }
.canvas-text h2 { margin-bottom: 20px; }

.canvas-text p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.canvas-help {
  margin-top: 20px !important;
  font-size: .9rem;
  font-style: italic;
}

.canvas-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.canvas-emblem {
  width: 240px;
  height: 240px;
  background: var(--white);
  border: 2px solid var(--parchment-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.canvas-crest {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep);
  border-top: 2px solid rgba(184, 149, 42, .3);
  padding-block: 48px;
}

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

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-crest {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(.9) drop-shadow(0 1px 4px rgba(0,0,0,.4));
}

.footer-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 4px;
}

.footer-sub {
  font-size: .82rem;
  color: rgba(245, 240, 232, .55);
  font-style: italic;
  line-height: 1.5;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.footer-nav a {
  font-size: .9rem;
  color: rgba(245, 240, 232, .65);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-contact { text-align: right; }

.footer-contact a {
  font-size: .95rem;
  color: var(--gold-light);
}
.footer-contact a:hover { color: var(--gold); }

.footer-legal {
  font-size: .78rem;
  color: rgba(245, 240, 232, .35);
  margin-top: 10px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .identity-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .heritage-inner,
  .canvas-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .heritage-image-wrap { order: -1; }
  .heritage-img { height: 300px; }

  .canvas-decoration { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand { justify-content: center; }
  .footer-contact { text-align: center; }

  .form-row.two-col { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  :root { --section-v: 56px; }

  body { font-size: 17px; }

  .container { padding-inline: 20px; }

  /* Mobile nav */
  .nav-name { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid rgba(184, 149, 42, .2);
  }

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

  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 12px 24px;
    border: none !important;
    border-radius: 0 !important;
  }

  /* Hero on mobile */
  .hero { height: 72vw; min-height: 380px; max-height: 520px; }
  .hero-crest { height: 90px; }
  .hero-name { font-size: 1.8rem; }
  .hero-tagline { font-size: .82rem; }

  /* Pillars stack */
  .identity-pillars { grid-template-columns: 1fr; gap: 20px; }

  /* Enroll form */
  .enroll-form { padding: 28px 20px; }

}

/* ══════════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════════ */
@media print {
  .site-nav, .nav-toggle, .enroll-form button { display: none; }
  .hero { height: auto; min-height: 0; margin-top: 0; }
  .section { page-break-inside: avoid; }
}
