/* ============================================================
   Next Frontier Builders, company pages (home, courses, about,
   privacy, terms). Loaded AFTER styles.css. styles.css is shared
   with the course sign-in pages and is not edited.
   CC Community Hub colors come from its own brand
   (paper #F6F3EC, slate teal #3B5B6D, deep slate #2C4653,
   caramel #A8763E) so the featured card reads as that product.
   ============================================================ */

:root {
  --hub-paper: #F6F3EC;
  --hub-teal:  #3B5B6D;
  --hub-deep:  #2C4653;
  --hub-caramel: #A8763E;
  --hub-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}

/* ---- Skip link: fully hidden until focused (styles.css leaves 11px showing) */
.skip-link { top: -100px; }
.skip-link:focus { top: 0; }

/* ---- Header: wraps under the wordmark on a phone -------- */
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; row-gap: var(--s-2); padding: var(--s-3) 0; }
  .nav__links { width: 100%; gap: var(--s-2) var(--s-4); flex-wrap: wrap; }
  .nav__links a { white-space: nowrap; }
}
.nav__links a[aria-current="page"] { color: var(--accent); }

/* ---- Company hero ------------------------------------- */
.co-hero { padding: var(--s-8) 0 var(--s-7); text-align: center; }
@media (min-width: 720px) { .co-hero { padding: var(--s-9) 0 var(--s-8); } }
.co-hero .eyebrow { display: block; margin-bottom: var(--s-4); }
.co-hero h1 { max-width: 20ch; margin: 0 auto var(--s-5); }
.co-hero p { max-width: 58ch; margin: 0 auto var(--s-6); font-size: var(--fs-body-l);
  color: var(--text-muted); line-height: 1.55; }

/* ---- CC Community Hub feature -------------------------- */
.hub-feature { padding: 0 0 var(--s-8); }
.hub-card {
  background: var(--hub-deep);
  color: var(--hub-paper);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--shadow-lg);
  display: grid; gap: var(--s-6);
}
@media (min-width: 900px) {
  .hub-card { padding: var(--s-8) var(--s-8); grid-template-columns: 1.05fr 1fr; gap: var(--s-8); align-items: start; }
}
.hub-card__top { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.hub-mark {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  background: linear-gradient(145deg, var(--hub-teal), #24394A);
  border: 1px solid rgba(246,243,236,.18);
  display: grid; place-items: center;
}
.hub-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--hub-paper);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hub-card__name { font-family: var(--hub-serif); font-size: 22px; line-height: 1.1; color: var(--hub-paper); }
.hub-card__kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: #D9B98C; margin-top: 2px; }
.hub-badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--hub-deep); background: #E9D9BF; border-radius: var(--radius-pill);
  padding: 6px 12px; margin-bottom: var(--s-4);
}
.hub-card h2 {
  font-family: var(--hub-serif); color: var(--hub-paper); font-weight: 400;
  font-size: clamp(30px, 4.2vw, 42px); line-height: 1.1; max-width: 16ch; margin-bottom: var(--s-4);
}
.hub-card h2 em { color: #D9B98C; white-space: nowrap; }
.hub-card p { color: rgba(246,243,236,.86); font-size: var(--fs-body-l); line-height: 1.55; }
.hub-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.btn--hub { background: var(--hub-caramel); border-color: var(--hub-caramel); color: #fff; }
.btn--hub:hover { background: #95672F; border-color: #95672F; color: #fff; box-shadow: var(--shadow-md); }
.btn--hub-ghost { background: transparent; color: var(--hub-paper); border-color: rgba(246,243,236,.45); }
.btn--hub-ghost:hover { background: rgba(246,243,236,.08); border-color: var(--hub-paper); color: var(--hub-paper); }
.hub-support { font-size: 14px !important; margin: var(--s-5) 0 0; color: rgba(246,243,236,.72) !important; }
.hub-support a { color: #E9D9BF; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.hub-support a:hover { color: #fff; }

.hub-list-wrap { background: rgba(246,243,236,.06); border: 1px solid rgba(246,243,236,.14);
  border-radius: var(--radius-md); padding: var(--s-5); }
.hub-list-wrap h3 { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: #D9B98C; margin-bottom: var(--s-4); }
.hub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.hub-list li { margin: 0; display: grid; grid-template-columns: 18px 1fr; gap: var(--s-3);
  color: var(--hub-paper); font-size: 16px; line-height: 1.45; }
.hub-list li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%;
  background: #D9B98C; justify-self: center; }
.hub-list small { display: block; color: rgba(246,243,236,.66); font-size: 14px; }
.hub-who { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid rgba(246,243,236,.14);
  display: grid; gap: var(--s-3); }
.hub-who p { font-size: 15px; margin: 0; }
.hub-who b { color: var(--hub-paper); font-weight: 600; }

/* ---- Other products ----------------------------------- */
.more { padding: var(--s-8) 0; background: var(--surface-warm); border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line); }
.more__head { text-align: center; margin-bottom: var(--s-6); }
.more__head .eyebrow { display: block; margin-bottom: var(--s-3); }
.more__head h2 { margin: 0 auto; max-width: 24ch; }
.more-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) { .more-grid { grid-template-columns: 1fr 1fr; } }
.product {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  scroll-margin-top: 96px;
}
@media (min-width: 720px) { .product { padding: var(--s-6); } }
.product__label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: var(--s-2); }
.product h3 { font-size: clamp(26px, 3vw, 30px); margin-bottom: var(--s-2); }
.product__tag { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 20px;
  line-height: 1.3; margin-bottom: var(--s-4); }
.product p { color: var(--text-muted); }
.product ul { color: var(--text-muted); padding-left: 1.1em; margin-bottom: var(--s-5); }
.product ul li + li { margin-top: var(--s-1); }
.product__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.product__note { font-size: 14px; color: var(--text-dim); margin: var(--s-3) 0 0; }

/* ---- Who we are / contact ----------------------------- */
.co-about { padding: var(--s-8) 0 var(--s-6); }
.co-about__grid { display: grid; gap: var(--s-6); max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) { .co-about__grid { grid-template-columns: 1.3fr 1fr; gap: var(--s-8); } }
.co-about h2 { margin-bottom: var(--s-4); }
.co-about p { color: var(--text-muted); }
.contact-box { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: var(--s-5); scroll-margin-top: 96px; }
.contact-box h3 { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--s-4); }
.contact-row + .contact-row { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border-soft); }
.contact-row b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.contact-row span { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }
.contact-row a { overflow-wrap: anywhere; font-weight: 500; }

/* ---- Courses page ------------------------------------- */
.page-hero { padding: var(--s-8) 0 var(--s-6); text-align: center; }
.page-hero .eyebrow { display: block; margin-bottom: var(--s-3); }
.page-hero h1 { max-width: 20ch; margin: 0 auto var(--s-4); }
.page-hero p { max-width: 56ch; margin: 0 auto var(--s-5); color: var(--text-muted); font-size: var(--fs-body-l); }
.signin-note { text-align: center; color: var(--text-muted); font-size: 15px; margin: var(--s-6) auto 0; }

/* ---- Prose pages (about, privacy, terms) --------------- */
.prose-page { padding: var(--s-8) 0 var(--s-9); }
.prose { max-width: var(--container-text); margin: 0 auto; }
.prose h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: var(--s-3); }
.prose .meta { color: var(--text-dim); font-size: 14px; margin-bottom: var(--s-6); }
.prose h2 { font-size: clamp(22px, 3vw, 28px); margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose .lead { font-size: var(--fs-body-l); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-3) 0 var(--s-5); font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border-soft);
  vertical-align: top; color: var(--text-muted); }
.prose th { color: var(--text); font-weight: 600; }
@media (max-width: 520px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--border-soft); }
  .prose td { border: 0; padding: 2px 0; }
  .prose td:first-child { color: var(--text); font-weight: 600; }
}

/* ---- Footer additions --------------------------------- */
.footer-grid--co { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid--co { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .footer-grid--co .footer__brand { grid-column: 1 / -1; } }
.footer__bar p { max-width: none; margin: 0; }
.site-footer { margin-top: 0; }
