/*
Theme Name: ClassClerks COACH Theme
Theme URI: https://classclerks.com/websites/
Author: ClassClerks
Author URI: https://classclerks.com
Description: A fast, accessible, ClassClerks-managed WordPress theme for COACH Homeschool.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: classclerks-client
*/

:root {
  --cc-ink: #062f45;
  --cc-navy: #07324b;
  --cc-blue: #0ba6df;
  --cc-blue-dark: #037dab;
  --cc-sky: #dff5fd;
  --cc-orange: #ff6f0b;
  --cc-gold: #ffb817;
  --cc-paper: #f5fafc;
  --cc-border: #d9e8ee;
  --cc-text: #18384a;
  --cc-muted: #5a7280;
  --cc-radius: 22px;
  --cc-shadow: 0 22px 60px rgba(6, 47, 69, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: var(--cc-text); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; text-rendering: optimizeLegibility; }
a { color: var(--cc-blue-dark); text-underline-offset: .18em; }
img, video { max-width: 100%; height: auto; }
button, input { font: inherit; }
.cc-site-container { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.cc-skip-link { position: fixed; left: 16px; top: -80px; z-index: 99999; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--cc-ink); box-shadow: var(--cc-shadow); }
.cc-skip-link:focus { top: 16px; }

.cc-site-header { position: sticky; top: 0; z-index: 900; border-bottom: 1px solid rgba(217, 232, 238, .88); background: rgba(255, 255, 255, .97); box-shadow: 0 8px 30px rgba(6, 47, 69, .06); backdrop-filter: blur(16px); }
.cc-utility-bar { background: var(--cc-ink); color: #dff5fd; font-size: .74rem; letter-spacing: .02em; }
.cc-utility-inner { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 24px; }
.cc-utility-inner div { display: flex; gap: 20px; }
.cc-utility-inner a { color: #fff; text-decoration: none; }
.cc-header-inner { min-height: 80px; display: flex; align-items: center; gap: 18px; }
.cc-brand, .cc-brand a { display: inline-flex; align-items: center; min-width: 0; color: var(--cc-ink); font-weight: 900; font-size: 1.1rem; text-decoration: none; }
.cc-brand img { display: block; width: auto; max-width: 190px; max-height: 58px; object-fit: contain; }
.cc-primary-nav { margin-left: auto; }
.cc-primary-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cc-primary-nav li { position: static; }
.cc-primary-nav > ul > li > a { display: flex; min-height: 80px; align-items: center; gap: 6px; padding: 0 10px; color: var(--cc-ink); font-size: .78rem; font-weight: 800; text-decoration: none; }
.cc-primary-nav > ul > li.menu-item-has-children > a::after { content: "⌄"; color: var(--cc-blue-dark); font-size: .85rem; }
.cc-primary-nav > ul > li > a:hover, .cc-primary-nav > ul > li > a:focus-visible { color: var(--cc-blue-dark); }
.cc-primary-nav .sub-menu { position: absolute; top: 100%; right: 0; left: 0; display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(1180px, calc(100vw - 48px)); margin-inline: auto; padding: 24px; border: 1px solid var(--cc-border); border-top: 4px solid var(--cc-blue); border-radius: 0 0 20px 20px; background: #fff; box-shadow: var(--cc-shadow); }
.cc-primary-nav li:hover > .sub-menu, .cc-primary-nav li:focus-within > .sub-menu { display: grid; }
.cc-primary-nav .sub-menu li { min-width: 0; }
.cc-primary-nav .sub-menu a { display: flex; min-height: 64px; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; color: var(--cc-ink); font-size: .82rem; font-weight: 750; line-height: 1.25; text-decoration: none; }
.cc-primary-nav .sub-menu a:hover, .cc-primary-nav .sub-menu a:focus-visible { background: var(--cc-sky); color: var(--cc-blue-dark); }
.cc-primary-nav .cc-nav-mark { flex: 0 0 32px; width: 32px; height: 32px; }
.cc-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; place-items: center; border: 1px solid var(--cc-border); border-radius: 10px; background: #fff; }
.cc-nav-toggle span { display: block; width: 20px; height: 2px; margin: 3px; background: var(--cc-ink); }
.cc-search-toggle { display: grid; flex: 0 0 40px; height: 40px; place-items: center; border: 1px solid var(--cc-border); border-radius: 50%; background: #fff; color: var(--cc-ink); font-size: 1.25rem; cursor: pointer; }
.cc-header-actions { display: flex; align-items: center; gap: 7px; }
.cc-header-actions .cc-header-actions { display: contents; }
.cc-header-actions a { min-height: 40px; padding: 8px 13px; font-size: .75rem; }
.cc-site-search { padding: 20px 0; border-top: 1px solid var(--cc-border); background: var(--cc-paper); }
.cc-site-search form { display: grid; gap: 7px; }
.cc-site-search label { color: var(--cc-ink); font-size: .78rem; font-weight: 800; }
.cc-site-search form div { display: flex; }
.cc-site-search input { min-width: 0; flex: 1; padding: 13px 16px; border: 1px solid var(--cc-border); border-radius: 12px 0 0 12px; }
.cc-site-search button { padding: 0 20px; border: 0; border-radius: 0 12px 12px 0; background: var(--cc-blue); color: var(--cc-ink); font-weight: 850; }

.cc-main { min-height: 62vh; overflow: hidden; }
.cc-front-page .cc-entry { width: 100%; margin: 0; }
.cc-front-page .cc-entry-content > * { margin-block-start: 0; margin-block-end: 0; }
.cc-home-hero { position: relative; isolation: isolate; display: grid; min-height: clamp(590px, 76vh, 820px); align-items: end; overflow: hidden; background: var(--cc-ink); color: #fff; }
.cc-hero-video { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(3, 35, 53, .91) 0%, rgba(3, 35, 53, .66) 52%, rgba(3, 35, 53, .18) 100%), linear-gradient(0deg, rgba(3, 35, 53, .58), transparent 46%); }
.cc-hero-copy { padding-top: 100px; padding-bottom: clamp(72px, 10vw, 126px); }
.cc-eyebrow { margin: 0 0 14px; color: var(--cc-blue); font-size: .75rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.cc-home-hero .cc-eyebrow { color: #8edffc; }
.cc-home-hero h1 { max-width: 820px; margin: 0; color: #fff; font-size: clamp(3rem, 7.3vw, 6.9rem); font-weight: 900; line-height: .92; letter-spacing: -.055em; }
.cc-home-hero h1 strong { color: var(--cc-gold); font-weight: inherit; }
.cc-hero-subheading { margin: 12px 0 0; color: #fff; font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 750; }
.cc-hero-subheading strong { color: var(--cc-orange); }
.cc-hero-body { max-width: 680px; margin-top: 22px; color: #e2f1f5; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.cc-hero-body p { margin: 0; }
.cc-button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cc-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 999px; font-size: .86rem; font-weight: 900; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.cc-button:hover { transform: translateY(-2px); filter: saturate(1.08); }
.cc-button-primary { background: var(--cc-gold); color: var(--cc-ink); box-shadow: 0 12px 28px rgba(255, 184, 23, .24); }
.cc-button-secondary { border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); color: #fff; }
.cc-button-light { background: #fff; color: var(--cc-ink); }

.cc-value-strip { position: relative; z-index: 2; background: var(--cc-ink); color: #fff; }
.cc-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.cc-value-grid article { display: grid; gap: 4px; min-height: 124px; align-content: center; padding: 24px 34px; border-left: 1px solid rgba(255,255,255,.14); }
.cc-value-grid article:last-child { border-right: 1px solid rgba(255,255,255,.14); }
.cc-value-grid strong { color: var(--cc-gold); font-size: 1.05rem; }
.cc-value-grid span { color: #c7dce4; font-size: .83rem; line-height: 1.45; }
.cc-home-section { padding: clamp(76px, 9vw, 122px) 0; }
.cc-section-heading { max-width: 780px; margin-bottom: 44px; }
.cc-section-heading h2 { margin: 0; color: var(--cc-ink); font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.cc-section-heading div { max-width: 700px; margin-top: 20px; color: var(--cc-muted); font-size: 1.03rem; }
.cc-section-heading div p { margin: 0; }
.cc-pillars { background: var(--cc-paper); }
.cc-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cc-pillar-card { min-height: 280px; padding: 30px; border: 1px solid var(--cc-border); border-radius: var(--cc-radius); background: #fff; box-shadow: 0 12px 36px rgba(6, 47, 69, .07); }
.cc-pillar-number { color: var(--cc-blue); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.cc-pillar-card h3 { margin: 48px 0 10px; color: var(--cc-ink); font-size: 1.7rem; line-height: 1.05; }
.cc-pillar-card p { margin: 0; color: var(--cc-muted); }
.cc-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(42px, 7vw, 90px); align-items: center; }
.cc-split figure { margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--cc-shadow); }
.cc-split figure img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cc-story blockquote { margin: 28px 0; padding: 6px 0 6px 24px; border-left: 5px solid var(--cc-orange); color: var(--cc-ink); font-size: 1.16rem; font-weight: 700; }
.cc-programs { background: var(--cc-ink); color: #fff; }
.cc-programs .cc-section-heading h2 { color: #fff; }
.cc-programs .cc-section-heading div { color: #c8dce4; }
.cc-programs .cc-program-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-programs .cc-program-card { min-height: 170px; align-items: flex-end; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; box-shadow: none; }
.cc-programs .cc-program-card:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.cc-programs .cc-program-card small { color: #a9c8d3; }
.cc-local-feature { background: var(--cc-paper); }
.cc-fact-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 28px 0 30px; padding: 0; list-style: none; }
.cc-fact-list li { padding: 13px 15px; border-radius: 12px; background: #fff; color: var(--cc-ink); font-size: .85rem; font-weight: 750; box-shadow: 0 7px 20px rgba(6,47,69,.06); }
.cc-home-cta { padding: 62px 0; background: linear-gradient(115deg, var(--cc-orange), var(--cc-gold)); color: var(--cc-ink); }
.cc-home-cta .cc-site-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cc-home-cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.04em; }
.cc-home-cta p { margin: 12px 0 0; font-weight: 650; }

.cc-page-shell .cc-entry { width: 100%; }
.cc-entry-header { padding: clamp(66px, 9vw, 120px) 0; background: linear-gradient(135deg, var(--cc-ink), #0a5d7a); color: #fff; }
.cc-entry-header .cc-eyebrow { color: #8edffc; }
.cc-entry-title { max-width: 980px; margin: 0; color: #fff; font-size: clamp(2.7rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.05em; }
.cc-content-shell { padding-block: clamp(52px, 8vw, 96px); }
.cc-entry-content { width: min(900px, 100%); margin-inline: auto; }
.cc-entry-content > *:first-child { margin-top: 0; }
.cc-entry-content h2, .cc-entry-content h3 { color: var(--cc-ink); line-height: 1.13; }
.cc-entry-content h2 { margin-top: 2em; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.cc-entry-content .wp-block-button__link, .cc-entry-content .wp-element-button { border-radius: 999px; background: var(--cc-blue); color: var(--cc-ink); font-weight: 850; }
.cc-front-page .cc-entry-content { width: 100%; }
.classclerks-managed-section h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.04em; }

.cc-site-footer { border-top: 7px solid var(--cc-orange); background: var(--cc-ink); color: #d8e8ed; }
.cc-footer-grid { display: grid; grid-template-columns: 1.5fr .75fr 1fr 1fr; gap: 48px; padding-block: 68px 54px; }
.cc-footer-grid h2 { margin: 0 0 18px; color: #fff; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; }
.cc-footer-brand img { max-width: 210px; max-height: 68px; filter: brightness(0) invert(1); }
.cc-footer-about p { max-width: 410px; margin: 20px 0 0; color: #bad2db; font-size: .88rem; }
.cc-footer-about .cc-nonprofit { color: var(--cc-gold); font-size: .75rem; font-weight: 800; }
.cc-footer-nav ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.cc-site-footer a { color: #e7f5fa; text-decoration: none; }
.cc-footer-nav a, .cc-footer-contact a { font-size: .85rem; }
.cc-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.cc-footer-contact h2 { margin-bottom: 9px; }
.cc-footer-contact address { color: #bad2db; font-size: .83rem; font-style: normal; }
.cc-social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; }
.cc-footer-give p { margin: 0 0 22px; color: #bad2db; font-size: .84rem; }
.cc-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); }
.cc-footer-bottom .cc-site-container { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 24px; }
.cc-footer-bottom p { margin: 0; color: #91b2be; font-size: .74rem; }
.cc-footer-bottom nav { display: flex; gap: 18px; font-size: .74rem; }
.cc-scroll-top { position: fixed; z-index: 8990; right: 22px; bottom: 90px; width: 45px; height: 45px; border: 0; border-radius: 50%; background: var(--cc-orange); color: var(--cc-ink); font-weight: 900; box-shadow: var(--cc-shadow); cursor: pointer; }

@media (max-width: 1120px) {
  .cc-primary-nav > ul > li > a { padding-inline: 7px; font-size: .71rem; }
  .cc-header-actions a { padding-inline: 10px; }
  .cc-programs .cc-program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-footer-grid { grid-template-columns: 1.4fr .8fr 1fr; }
  .cc-footer-give { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
  .cc-footer-give h2, .cc-footer-give p { margin: 0; }
}

@media (max-width: 920px) {
  .cc-site-container { width: min(100% - 30px, 1220px); }
  .cc-utility-bar { display: none; }
  .cc-header-inner { min-height: 72px; flex-wrap: wrap; gap: 10px; padding-block: 8px; }
  .cc-brand img { max-width: 166px; max-height: 50px; }
  .cc-nav-toggle { display: grid; }
  .cc-primary-nav { order: 5; display: none; width: 100%; max-height: calc(100vh - 82px); margin: 0; overflow-y: auto; padding-bottom: 12px; }
  .cc-primary-nav.is-open { display: block; }
  .cc-primary-nav ul, .cc-primary-nav .sub-menu { display: grid; position: static; width: 100%; gap: 3px; min-width: 0; padding: 3px 0 3px 14px; border: 0; border-radius: 0; box-shadow: none; }
  .cc-primary-nav > ul { padding-left: 0; }
  .cc-primary-nav > ul > li > a { min-height: 0; padding: 12px 10px; font-size: .88rem; }
  .cc-primary-nav .sub-menu a { min-height: 0; padding: 10px; }
  .cc-search-toggle { margin-left: auto; }
  .cc-header-actions { margin-left: 0; }
  .cc-value-grid, .cc-pillar-grid { grid-template-columns: 1fr; }
  .cc-value-grid article, .cc-value-grid article:last-child { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); border-left: 0; }
  .cc-split { grid-template-columns: 1fr; }
  .cc-local-feature .cc-split figure { order: 2; }
  .cc-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cc-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .cc-header-actions { display: none; }
  .cc-home-hero { min-height: 640px; }
  .cc-hero-shade { background: linear-gradient(0deg, rgba(3,35,53,.92), rgba(3,35,53,.44)); }
  .cc-home-hero h1 { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .cc-button-row .cc-button { width: 100%; }
  .cc-programs .cc-program-grid, .cc-fact-list, .cc-footer-grid { grid-template-columns: 1fr; }
  .cc-home-cta .cc-site-container, .cc-footer-give, .cc-footer-bottom .cc-site-container { align-items: flex-start; flex-direction: column; }
  .cc-footer-give { grid-column: auto; }
  .cc-footer-bottom .cc-site-container { justify-content: center; padding-block: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cc-hero-video { display: none; }
}
