/* Kerr University brand layer. Shared overrides for the approved crimson, cream, and gold direction. */
:root {
  --ku-crimson: #8b171d;
  --ku-crimson-deep: #4f0d12;
  --ku-gold: #c7a14a;
  --ku-gold-light: #f0d98f;
  --ku-cream: #fbf6ea;
  --ku-ink: #241613;
}

/* Typography unification: every page across the site still requests
   "Fraunces" and "Libre Franklin" by name in its own inline styles. Rather
   than editing every one of those pages, these @font-face rules redeclare
   what those two family names actually render as, so the whole site moves
   to the approved Source Serif 4 / Manrope pairing from this one file.
   (The Fraunces/Libre Franklin Google Fonts <link> tags on each page still
   load in the background; harmless, just unused bytes. Renaming the
   font-family references directly is the proper long-term cleanup.) */
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/ss4-400.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/ss4-500.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/ss4-600.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/ss4-700.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 900; font-style: normal; font-display: swap; src: url("/fonts/ss4-900.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/ss4-italic-400.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/ss4-italic-500.woff2") format("woff2"); }

@font-face { font-family: "Libre Franklin"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/manrope-300.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/manrope-700.woff2") format("woff2"); }

/* Final Kerr University type system. The original Fraunces display face has
   unusually soft, swollen serifs that made the hero feel generic. DM Serif
   Display is calmer and more classically editorial; DM Sans keeps controls
   clear and contemporary. Both are included locally for stable rendering. */
@font-face { font-family: "Kerr Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-serif-display-400.ttf") format("truetype"); }
@font-face { font-family: "Kerr Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/dm-serif-display-italic.ttf") format("truetype"); }
@font-face { font-family: "Kerr Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-400.ttf") format("truetype"); }
@font-face { font-family: "Kerr Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-500.ttf") format("truetype"); }
@font-face { font-family: "Kerr Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-600.ttf") format("truetype"); }
@font-face { font-family: "Kerr Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-700.ttf") format("truetype"); }

/* Pages retain legacy, inline declarations. These intentionally come later
   and use !important so the visible site actually receives the new system. */
body, button, input, select, textarea { font-family: "Kerr Sans", Arial, sans-serif !important; }
h1, h2, h3, h4, h5, h6, .display, .brand b, .foot-brand b, .foot-tag,
.pullquote, .stat .num, .price .tier, .price .amt, .gbadge .glogo,
.gbadge .score, .faq summary, .rev .av, .rev .gicon {
  font-family: "Kerr Display", Georgia, serif !important;
  font-weight: 400 !important;
}

.hero h1 { letter-spacing: -0.024em; line-height: 1.04; }
.hero h1 em { font-weight: 400; }

header.site {
  background: rgba(251, 246, 234, 0.92);
  border-bottom-color: rgba(139, 23, 29, 0.14);
}

header.site .nav {
  min-height: 82px;
}

header.site .brand .medallion {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4c9, #b78b31 58%, #35120b 100%);
  box-shadow: 0 9px 20px -12px rgba(49, 10, 13, 0.75), inset 0 0 0 2px var(--ku-gold-light, #f0d98f);
  padding: 2px;
}

header.site .brand .medallion img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

header.site .brand b {
  color: var(--ku-ink);
  font-size: 1.28rem;
}

header.site .brand b span {
  color: var(--ku-crimson);
  letter-spacing: 0.26em;
}

header.site .nav-links a,
header.site .has-sub > button {
  position: relative;
  letter-spacing: 0.015em;
  transition: color 0.2s ease, background 0.2s ease;
}
header.site .nav-links a:hover,
header.site .nav-links a.active,
header.site .has-sub > button:hover {
  color: var(--ku-crimson);
  background: transparent;
}
/* a growing underline reads as more considered than a flat hover tint,
   and doubles as a quiet "you are here" marker on the current page */
header.site .nav-links a::after {
  content: "";
  position: absolute;
  left: 0.7em;
  right: 0.7em;
  bottom: 0.3em;
  height: 1.5px;
  background: var(--ku-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
header.site .nav-links a:hover::after,
header.site .nav-links a.active::after,
header.site .nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
header.site .has-sub > button:hover {
  background: rgba(139, 23, 29, 0.05);
  border-radius: 9px;
}

.hero {
  overflow: hidden;
  background: var(--ku-crimson-deep);
}

.hero::before {
  background:
    radial-gradient(75% 95% at 90% 10%, rgba(239, 204, 119, 0.22), transparent 58%),
    radial-gradient(85% 95% at 6% 20%, #a61e27 0%, var(--ku-crimson) 42%, var(--ku-crimson-deep) 100%);
}

.hero::after {
  opacity: 0.68;
  background:
    linear-gradient(90deg, rgba(49, 7, 10, 0.22), transparent 64%),
    radial-gradient(44% 70% at 84% 50%, rgba(240, 217, 143, 0.16), transparent 70%);
}

.hero .crest-wm {
  top: 50%;
  bottom: auto;
  right: -4%;
  width: min(710px, 68vw);
  opacity: 0.3;
  filter: drop-shadow(0 28px 28px rgba(34, 4, 7, 0.44));
  transform: translate3d(0, -50%, 0) rotate(-5deg) rotateY(-12deg);
  transform-origin: 56% 52%;
  animation: ku-crest-float 8s ease-in-out infinite;
}

.ku-webgl {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(46vw, 670px);
  height: 100%;
  min-height: 540px;
  pointer-events: none;
}

.ku-webgl canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero.ku-scene-ready .crest-wm { opacity: 0.04; }

.hero .hero-grid {
  position: relative;
  z-index: 1;
}

@media (min-width: 901px) {
  .hero.ku-scene-ready .hero-card {
    transform: translate(18px, 76px) scale(0.9);
    transform-origin: center right;
  }
}

.hero .eyebrow.on-dark {
  color: var(--ku-gold-light);
}

.hero h1 em {
  color: var(--ku-gold-light);
}

.hero .hero-card {
  border: 1px solid rgba(240, 217, 143, 0.38);
  box-shadow: 0 30px 55px -28px rgba(17, 2, 4, 0.88);
}

.hero .video-shell::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(240, 217, 143, 0.38);
  border-radius: inherit;
  pointer-events: none;
}

.btn--gold {
  background: linear-gradient(135deg, #e0bd63 0%, #bc8c30 100%);
  color: #2a1906;
}

.btn--gold:hover {
  box-shadow: 0 18px 34px -14px rgba(240, 194, 91, 0.88);
}

/* Shared action language: generous pill forms, a quiet glass highlight, and
   a visible keyboard focus state. These override legacy one-off button rules
   without changing any links, form actions, or page behavior. */
.btn {
  position: relative;
  isolation: isolate;
  border-radius: 999px !important;
  letter-spacing: 0.012em;
  transition: transform .22s var(--ku-ease, ease), box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.22), transparent 36%, rgba(72,34,6,.08));
  opacity: .72;
  pointer-events: none;
}
.btn--gold {
  border: 1px solid rgba(255, 239, 181, .45);
  background: linear-gradient(135deg, #ebcf79 0%, #c89a3c 52%, #a87020 100%);
  box-shadow: 0 12px 28px -12px rgba(184,138,50,.8), inset 0 1px 0 rgba(255,255,255,.34);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(240,194,91,.78), inset 0 1px 0 rgba(255,255,255,.42);
}
.btn--ghost,
.btn--ghost-light {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost-light {
  border-color: rgba(240,217,143,.58);
  background: rgba(70, 8, 12, .16);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--ku-gold-light);
}
.btn:focus-visible {
  outline: 3px solid rgba(240,217,143,.9);
  outline-offset: 4px;
}

/* Header CTA: same pill radius and gold treatment as every other button on
   the site, just sized for the header bar rather than the hero. Replaces a
   legacy per-page inline-style override that gave it a mismatched square
   corner radius and its own one-off font stack. */
header.site .btn--gold {
  min-height: auto;
  padding: 0.6em 1.25em;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  header.site .btn--gold {
    padding: 0.55em 1em;
    font-size: 0.8rem;
  }
}

.band,
.section-alt {
  background-color: var(--ku-cream);
}

@keyframes ku-crest-float {
  0%, 100% { transform: translate3d(0, -50%, 0) rotate(-5deg) rotateY(-12deg); }
  50% { transform: translate3d(-10px, calc(-50% - 10px), 0) rotate(-2deg) rotateY(-4deg); }
}

@media (max-width: 900px) {
  .hero .crest-wm {
    width: min(520px, 96vw);
    right: -20%;
    opacity: 0.16;
  }
  .ku-webgl { width: 92vw; height: 62%; top: 32%; right: -23%; min-height: 0; opacity: 0.68; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .crest-wm { animation: none; }
}

/* Shared page framework */
body {
  background-color: var(--ku-cream);
}

main {
  position: relative;
  overflow: clip;
}

main > section:not(.hero) {
  position: relative;
}

.sec-head h2,
.section-head h2 {
  color: var(--ku-ink);
}

.sec-head .eyebrow::before,
.section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 10px 4px 0;
  background: var(--ku-gold);
}

.card,
.program-card,
.price-card,
.testimonial-card,
.course-card {
  border-color: rgba(139, 23, 29, 0.12);
  box-shadow: 0 18px 42px -35px rgba(57, 12, 15, 0.75);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.card:hover,
.program-card:hover,
.price-card:hover,
.testimonial-card:hover,
.course-card:hover {
  transform: translateY(-7px);
  border-color: rgba(199, 161, 74, 0.8);
  box-shadow: 0 25px 45px -30px rgba(57, 12, 15, 0.62);
}

.card .ic,
.program-card .ic,
.course-card .ic {
  color: var(--ku-crimson);
  background: linear-gradient(145deg, rgba(240, 217, 143, 0.42), rgba(251, 246, 234, 0.98));
  border: 1px solid rgba(199, 161, 74, 0.42);
}

.band-dark,
.cta-band,
.newsletter,
.footer-newsletter {
  background-image:
    radial-gradient(70% 120% at 100% 0%, rgba(240, 217, 143, 0.16), transparent 60%),
    linear-gradient(135deg, #1d2749, #101a36);
}

input,
textarea,
select {
  border-color: rgba(139, 23, 29, 0.2);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(199, 161, 74, 0.24);
  border-color: var(--ku-gold);
}

footer,
.site-footer {
  border-top: 3px solid var(--ku-crimson);
}

.ku-ready .reveal {
  transition-duration: 700ms;
  transition-timing-function: cubic-bezier(.2, .75, .2, 1);
}

.ku-frame {
  position: relative;
}

.ku-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(240, 217, 143, 0.34);
  border-radius: inherit;
  pointer-events: none;
}

.ku-crest-halo {
  position: absolute;
  right: -8%;
  top: 50%;
  z-index: -1;
  width: min(660px, 70vw);
  aspect-ratio: 1;
  border: 1px solid rgba(240, 217, 143, 0.22);
  border-radius: 50%;
  transform: translateY(-50%) rotateX(68deg) rotateZ(var(--ku-orbit, -12deg));
  transform-origin: 50% 50%;
  box-shadow: inset 0 0 80px rgba(240, 217, 143, 0.1);
  opacity: 0.7;
}

.ku-crest-halo::before,
.ku-crest-halo::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(240, 217, 143, 0.16);
  border-radius: inherit;
}

.ku-crest-halo::before { inset: 10%; }
.ku-crest-halo::after { inset: 23%; }

@media (max-width: 900px) {
  header.site .nav { min-height: 74px; }
  header.site .brand .medallion { width: 45px; height: 45px; }
  header.site .brand .medallion img { width: 40px; height: 40px; }
  .ku-crest-halo { right: -42%; opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .program-card,
  .price-card,
  .testimonial-card,
  .course-card { transition: none; }
  .card:hover,
  .program-card:hover,
  .price-card:hover,
  .testimonial-card:hover,
  .course-card:hover { transform: none; }
}

/* Liquid-glass page system */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60rem 32rem at -8% 8%, rgba(199, 161, 74, 0.12), transparent 68%),
    radial-gradient(52rem 34rem at 108% 52%, rgba(139, 23, 29, 0.08), transparent 64%);
}

.ku-glass-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(138deg, rgba(255, 253, 247, 0.82), rgba(246, 236, 216, 0.56)) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 50px -38px rgba(50, 10, 14, 0.72) !important;
  backdrop-filter: blur(16px) saturate(116%);
  -webkit-backdrop-filter: blur(16px) saturate(116%);
}

.ku-glass-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.55;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.76), transparent 36%, rgba(199, 161, 74, 0.09) 78%, transparent);
  pointer-events: none;
}

.ku-callout {
  position: relative;
  padding-left: clamp(1.2rem, 3vw, 2.15rem) !important;
  border-left: 3px solid var(--ku-gold) !important;
}

.ku-callout::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ku-gold);
  border-radius: 50%;
  top: 1.2rem;
  left: -7px;
  background: var(--ku-cream);
}

.ku-chip,
.badge,
.li-tag,
.cat {
  border-color: rgba(199, 161, 74, 0.45) !important;
  background: rgba(255, 253, 247, 0.65) !important;
  color: var(--ku-crimson) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.detail-hero,
.post-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(240, 217, 143, 0.24), transparent 60%),
    linear-gradient(132deg, #8b171d, #4f0d12) !important;
}

.detail-hero h1,
.detail-hero h2,
.post-hero h1,
.article-hero h1 {
  color: var(--ku-cream) !important;
}

.detail-hero .lead,
.post-hero .lead,
.article-hero .lead {
  color: rgba(255, 255, 255, 0.86) !important;
}

.related,
.faqs,
.faq,
.author,
.testimonial,
.quote,
.stat,
.prog,
.course-card,
.price-card {
  border-color: rgba(139, 23, 29, 0.12);
}

.faq summary {
  color: var(--ku-ink);
  font-weight: 700;
}

.faq[open] {
  border-color: rgba(199, 161, 74, 0.72);
  box-shadow: 0 18px 36px -32px rgba(50, 10, 14, 0.62);
}

.foot-brand .seal,
.site-footer .seal,
footer .seal {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(199,161,74,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

.social-ic,
.social-row a {
  border-color: rgba(199, 161, 74, 0.38) !important;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.social-ic:hover,
.social-row a:hover {
  transform: translateY(-3px);
  border-color: var(--ku-gold) !important;
  background: rgba(199, 161, 74, 0.12) !important;
}

.ku-ready .detail-hero,
.ku-ready .post-hero,
.ku-ready .article-hero,
.ku-ready .hero {
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
}

@media (max-width: 700px) {
  .ku-ready .detail-hero,
  .ku-ready .post-hero,
  .ku-ready .article-hero,
  .ku-ready .hero { min-height: auto; }
  .ku-glass-panel { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* Magnetic cursor (see ku-brand.js). Ring trails the pointer and grows /
   fills when it locks onto a link or button; a small dot marks the exact
   pointer position underneath. */
.ku-cursor-active {
  cursor: none;
}
.ku-cursor-active input,
.ku-cursor-active textarea,
.ku-cursor-active select {
  cursor: auto;
}
.ku-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid var(--ku-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease,
    margin 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.ku-cursor-ring--active {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(199, 161, 74, 0.14);
  border-color: var(--ku-gold-light);
}
.ku-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--ku-crimson);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
}
@media (pointer: coarse) {
  .ku-cursor-ring, .ku-cursor-dot { display: none; }
  .ku-cursor-active { cursor: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ku-cursor-ring, .ku-cursor-dot { display: none; }
  .ku-cursor-active { cursor: auto; }
}
