/* 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;
}

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: 15px;
  background: linear-gradient(145deg, #fffdf7, #eadfca);
  box-shadow: 0 9px 20px -12px rgba(49, 10, 13, 0.75), inset 0 0 0 1px var(--ku-gold);
}

header.site .brand .medallion img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

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:hover,
header.site .nav-links a.active,
header.site .has-sub > button:hover {
  color: var(--ku-crimson);
  background: rgba(139, 23, 29, 0.06);
}

.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);
}

.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); }
}
