/* ==========================================================================
   Keystone Christian Homeschoolers
   Color scheme: burgundy, grey, black
   ========================================================================== */

:root {
  --burgundy:        #6e1423;
  --burgundy-dark:   #4a0d18;
  --burgundy-light:  #8c2236;
  --burgundy-tint:   #f3e7e9;

  --black:           #1a1a1a;
  --grey-900:        #2b2b2b;
  --grey-700:        #4d4d4d;
  --grey-500:        #777777;
  --grey-300:        #c9c9c9;
  --grey-100:        #ececec;
  --grey-50:         #f6f6f6;
  --white:           #ffffff;

  --max-width: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.16);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--black);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: .3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--burgundy-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--burgundy);
}
.btn-light:hover { background: var(--burgundy-tint); color: var(--burgundy-dark); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--grey-100);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
  text-decoration: none;
  letter-spacing: .3px;
}
.nav-brand:hover { text-decoration: none; color: var(--burgundy); }
.nav-brand .mark {
  width: 38px; height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-brand .brand-sub { display: block; font-family: var(--font-sans); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 500;
  color: var(--grey-700);
  text-decoration: none;
  padding: .4rem 0;
  position: relative;
}
.nav-links a:hover { color: var(--burgundy); }
.nav-links a.active { color: var(--burgundy); }
.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: .3s;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 52px 0; }
.section-sm { padding: 40px 0; }
.section-tint { background: var(--grey-50); }
.section-burgundy { background: var(--burgundy); color: var(--white); }
.section-burgundy h1,
.section-burgundy h2,
.section-burgundy h3 { color: var(--white); }
.section-burgundy .eyebrow { color: var(--burgundy-tint); }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.lead { font-size: 1.15rem; color: var(--grey-700); }

/* ==========================================================================
   Home — Hero / Logo
   ========================================================================== */
.hero {
  position: relative;
  text-align: center;
  padding: 56px 0 40px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
}
.hero-logo {
  margin: 0 auto 1.5rem;
  max-width: 360px;
  width: 72%;
}

/* Screen-reader-only (keeps an H1 in the DOM without showing duplicate text) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  margin-bottom: .35rem;
}
.hero .tagline {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--grey-700);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}
.hero-accent {
  width: 64px; height: 4px;
  background: var(--burgundy);
  border-radius: 4px;
  margin: 0 auto 1.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Enrollment banner directly under the tagline */
.hero-banner {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.75rem auto 0;
  padding: .9rem 1.1rem .9rem 1.5rem;
  background: var(--burgundy-tint);
  border: 1px solid #e7d2d6;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-banner p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--burgundy-dark);
  font-weight: 600;
}
.hero-banner .btn { padding: .7rem 1.4rem; }

/* Narrow single-column content (inner pages) */
.content-narrow { max-width: 760px; }

/* ---------- Content blocks ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.prose p { margin: 0 0 1.1rem; color: var(--grey-700); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

/* highlighted callout (enrollment notice) */
.callout {
  border-left: 4px solid var(--burgundy);
  background: var(--burgundy-tint);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  color: var(--burgundy-dark);
  margin-top: 1.4rem;
}
.callout strong { color: var(--burgundy-dark); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--burgundy-tint);
  color: var(--burgundy);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.4rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* what we offer — icon grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.5rem;
  margin-bottom: 2.5rem;
}
.offer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
}
.offer-icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
}
.offer-icon svg { width: 30px; height: 30px; }
.offer-icon img { width: 72px; height: 72px; object-fit: contain; }
.offer-item > span:last-child { font-weight: 600; color: var(--grey-900); font-size: .98rem; }
.offer-cta { text-align: center; }

/* curriculum — subject list */
.subject-list {
  display: grid;
  gap: 2.75rem;
  max-width: 820px;
  margin: 0 auto;
}
.subject {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.subject .offer-icon { margin: 0; }
.subject-body h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.subject-body p { margin: 0 0 .5rem; color: var(--grey-700); }
.subject-body p:last-child { margin-bottom: 0; }
.subject-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--burgundy);
}
.subject-verse cite {
  display: inline-block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--grey-500);
  margin-left: .35rem;
  white-space: nowrap;
}

/* facilities — text + photos */
.facilities-text {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.photo-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* offset anchored sections so headings clear the sticky header */
#subjects { scroll-margin-top: 90px; }

/* program — at a glance facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.facts-2 { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.facts-3 { grid-template-columns: repeat(3, 1fr); max-width: 720px; }
.fact { text-align: center; }
.fact-label {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .45rem;
}
.fact-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--black);
}
.fact-note {
  display: block;
  font-family: var(--font-sans);
  font-size: .78rem;
  line-height: 1.3;
  color: var(--grey-500);
  margin-top: .35rem;
}

/* membership — steps to join */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.step {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { margin: 0; color: var(--grey-700); }
.step-btn { margin-top: 1.25rem; }
.step .placeholder-note { display: block; margin-top: .6rem; }

/* subject pills */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.pill {
  font-size: .9rem;
  font-weight: 600;
  color: var(--burgundy-dark);
  background: var(--burgundy-tint);
  border: 1px solid #e7d2d6;
  padding: .4rem .9rem;
  border-radius: 999px;
}

/* download / packet box */
.packet {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--grey-50);
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
}
.packet .packet-text strong { display: block; font-size: 1.05rem; color: var(--black); }
.packet .packet-text span { color: var(--grey-500); font-size: .92rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: var(--grey-300);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--grey-300); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand-name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); margin-bottom: .5rem; }
.footer-apply {
  background: var(--burgundy);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.footer-apply h4 { color: var(--burgundy-tint); }
.footer-apply p { color: #f0dee1; margin: 0 0 1rem; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid var(--grey-900);
  padding-top: 22px;
  font-size: .85rem;
  color: var(--grey-500);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-credit {
  margin: .75rem 0 0;
  font-size: .72rem;
  color: var(--grey-500);
  opacity: .6;
}
.footer-credit a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   Generic page hero (inner pages)
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(900px 300px at 80% -20%, var(--burgundy-tint), transparent 70%),
    var(--grey-50);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--grey-100);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero .lead { max-width: 640px; }

.placeholder-note {
  display: inline-block;
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--grey-500);
  font-style: italic;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow-md);
    padding: .5rem 24px 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .8rem 0; }
  .nav-links a.active::after,
  .nav-links a:hover::after { display: none; }
  .section { padding: 60px 0; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  /* keep the home strip three-across at every width */
  .facts-3 { grid-template-columns: repeat(3, 1fr); padding: 1.25rem .85rem; gap: 1rem .6rem; }
  .facts-3 .fact-value { font-size: 1.02rem; }
}
