/* =========================================================
   BreakPoint Learning Foundation — Website Styles
   Brand palette derived from logo:
   - Navy:   #112240
   - Orange: #E07003
   - Gold:   #F5C242
   ========================================================= */

:root {
  --navy:          #112240;
  --navy-darker:   #0A1730;
  --navy-soft:     #1d3461;
  --orange:        #E07003;
  --orange-hover:  #c25d00;
  --gold:          #F5C242;
  --bg:            #ffffff;
  --bg-warm:       #FAF7F2;
  --bg-tint:       #F2F5FA;
  --text:          #1F2937;
  --text-muted:    #4B5563;
  --rule:          #E5E7EB;
  --max-w:         1120px;
  --radius:        10px;
  --shadow-sm:     0 1px 2px rgba(17,34,64,.06);
  --shadow-md:     0 8px 24px rgba(17,34,64,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--text-muted); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem;
}
.brand {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none; color: var(--navy); font-weight: 800;
}
.brand img { width: auto; height: 56px; object-fit: contain; }
.brand .brand-text { font-size: 1.15rem; line-height: 1.1; }
.brand .brand-text small { display: block; font-size: .74rem; font-weight: 600; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
@media (max-width: 480px) {
  .brand img { height: 44px; }
  .brand .brand-text { font-size: 1rem; }
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: 8px;
  padding: .4rem .65rem; cursor: pointer; color: var(--navy); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--orange); }
.nav a.active { color: var(--orange); }
.nav .btn { font-size: .95rem; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: .5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .65rem 0; border-bottom: 1px solid var(--rule); }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn { margin-top: .5rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange); color: #fff;
  text-decoration: none; font-weight: 700;
  padding: .7rem 1.15rem; border-radius: 8px;
  border: 0; cursor: pointer;
  transition: background .15s ease, transform .05s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--orange-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.btn-secondary {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn.btn-on-dark { background: var(--gold); color: var(--navy-darker); }
.btn.btn-on-dark:hover { background: #ffd778; color: var(--navy-darker); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 400px at 80% -10%, rgba(245,194,66,.18), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(224,112,3,.20), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-darker) 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; }
.hero p.lede { color: #d8e0f0; max-width: 640px; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .accent-bar { width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 1.25rem; }

/* Hero with logo art on the right */
.hero.hero-split .container {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: center;
}
.hero.hero-split .hero-art { display: flex; justify-content: center; align-items: center; }
.hero.hero-split .hero-art img {
  width: 100%; max-width: 420px; height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.35));
}
@media (max-width: 800px) {
  .hero.hero-split .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero.hero-split .hero-art { order: -1; }
  .hero.hero-split .hero-art img { max-width: 280px; }
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
section.alt { background: var(--bg-warm); }
section.dark { background: var(--navy); color: #f0f3fa; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark a { color: var(--gold); }

.section-head { max-width: 760px; margin-bottom: 2rem; }
.eyebrow { color: var(--orange); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
section.alt .card { background: #fff; }
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(224,112,3,.10); color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; margin-bottom: .85rem;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 1.25rem; border-left: 4px solid var(--orange); background: #fff; border-radius: 4px; }
section.dark .stat { background: rgba(255,255,255,.06); border-left-color: var(--gold); color: #fff; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--navy); display: block; }
section.dark .stat .num { color: var(--gold); }
.stat .lbl { color: var(--text-muted); }
section.dark .stat .lbl { color: #d8e0f0; }

/* ---------- CTA strip ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}
.cta h2 { color: #fff; margin: 0; max-width: 700px; }
.cta p { color: #d8e0f0; margin: .5rem 0 0; }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 1.75rem; margin-bottom: .5rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(224,112,3,.18);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-darker); color: #c8d1e2;
  padding: 3rem 0 1.5rem;
  font-size: .95rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .65rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 2rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: #8c98ad;
}

/* ---------- Misc ---------- */
.tag {
  display: inline-block; background: rgba(245,194,66,.18);
  color: #8a5a00; font-weight: 700; font-size: .78rem;
  padding: .25rem .55rem; border-radius: 999px; letter-spacing: .03em;
}
.media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
}
@media (max-width: 800px) { .media { grid-template-columns: 1fr; } }
.media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.divider { height: 1px; background: var(--rule); margin: 2rem 0; border: 0; }

/* Skip link for accessibility */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; color: var(--navy); padding: .5rem .75rem; border-radius: 6px; z-index: 100; }
