/* ============================================
   Charlotte School Consulting — Stylesheet
   ============================================ */

:root {
  --navy: #2b4360;
  --navy-deep: #1d2e42;
  --sage: #a8bba0;
  --sage-soft: #d7e0d2;
  --sage-deep: #6e8567;
  --gold: #c9a961;
  --cream: #faf7f1;
  --white: #ffffff;
  --ink: #2a2a28;
  --ink-soft: #55564f;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--sage-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 54px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  background: var(--sage-soft);
}

.nav-links a[aria-current="page"] {
  color: var(--sage-deep);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
}

/* ---------- Root/branch divider motif ---------- */
.root-divider {
  display: block;
  width: 100%;
  height: auto;
  color: var(--sage);
}

.root-divider--hero {
  margin-top: -40px;
  opacity: 0.55;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.hero-logo {
  flex-shrink: 0;
  width: 320px;
  height: auto;
}

.hero-heading {
  flex: 1;
}

.hero-heading .eyebrow {
  margin-bottom: 12px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--navy-deep);
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-callout {
  background: var(--white);
  border: 1px solid var(--sage-soft);
  border-left: 4px solid var(--sage-deep);
  border-radius: 4px;
  padding: 32px 36px;
  text-align: left;
  box-shadow: 0 12px 30px -18px rgba(43, 67, 96, 0.35);
}

.hero-callout p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-callout strong {
  color: var(--navy);
}

/* ---------- Generic page header (non-home pages) ---------- */
.page-header {
  padding: 76px 0 8px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  color: var(--navy-deep);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.page-header .lede {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */
section {
  padding: 56px 0;
}

.section-tight {
  padding-top: 8px;
}

/* ---------- Who We Serve — branch cards ---------- */
.branches {
  position: relative;
  padding-top: 24px;
}

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

.branch-card {
  background: var(--white);
  border-radius: 6px;
  padding: 34px 28px 30px;
  border-top: 3px solid var(--sage-deep);
  box-shadow: 0 10px 24px -18px rgba(29, 46, 66, 0.3);
  display: flex;
  flex-direction: column;
}

.branch-card:nth-child(2) {
  border-top-color: var(--gold);
}

.branch-card:nth-child(3) {
  border-top-color: var(--navy);
}

.branch-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-soft);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.branch-mark svg {
  width: 20px;
  height: 20px;
  color: var(--sage-deep);
}

.branch-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--navy-deep);
  margin: 0 0 12px;
}

.branch-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Benefits page ---------- */
.benefits-intro {
  max-width: 720px;
  margin: 0 auto 12px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.benefit-item {
  text-align: center;
  padding: 30px 22px;
}

.benefit-leaf {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--sage-deep);
}

.benefit-item h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy-deep);
  margin: 0 0 10px;
}

.benefit-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- About the Founder ---------- */
.founder {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 32px 0;
}

.founder-top {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.founder-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 3px solid var(--white);
  box-shadow: 0 10px 24px -14px rgba(29, 46, 66, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 10px;
}

.founder-heading .eyebrow {
  margin-bottom: 10px;
}

.founder-heading h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--navy-deep);
  margin: 0;
}

.founder-bio {
  background: var(--white);
  border: 1px solid var(--sage-soft);
  border-radius: 6px;
  padding: 36px 40px;
}

.founder-bio p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

.founder-bio p::first-letter {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--navy);
  float: left;
  line-height: 0.8;
  margin: 6px 8px 0 0;
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 460px;
  margin: 8px auto 0;
  background: var(--white);
  border: 1px solid var(--sage-soft);
  border-top: 3px solid var(--sage-deep);
  border-radius: 6px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 10px 24px -18px rgba(29, 46, 66, 0.3);
}

.contact-card .branch-mark {
  margin: 0 auto 18px;
}

.contact-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--navy-deep);
  margin: 0 0 6px;
}

.contact-role {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.contact-email {
  display: inline-block;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--sage-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--sage-soft);
  margin-top: 40px;
  padding: 36px 0 44px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 34px;
  width: auto;
  opacity: 0.85;
}

.footer-tag {
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .branch-grid,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .founder-top {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .founder-bio {
    padding: 28px 24px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 20px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .wrap,
  .hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-logo {
    width: 220px;
  }

  .hero-heading .eyebrow {
    text-align: center;
  }

  .hero-callout {
    padding: 26px 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-tag {
    text-align: center;
  }
}
