/* ============================================================
   KueStream — Main Stylesheet
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: #1A1A1A; line-height: 1.65; background: #fff; padding-top: var(--nav-h); }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --crimson:     #8A2433;
  --crimson-dk:  #6e1c27;
  --gray:        #9C9C9C;
  --amber:       #FFFFFF;
  --amber-dk:    #8A2433;
  --text:        #1A1A1A;
  --light-bg:    #F5F5F5;
  --white:       #FFFFFF;
  --nav-h:       106px;
  --sh-sm:       0 4px 20px rgba(0,0,0,.08);
  --sh-md:       0 8px 30px rgba(0,0,0,.13);
  --sh-lg:       0 14px 44px rgba(0,0,0,.18);
}

/* ─── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.18; }
p { line-height: 1.72; }

/* ─── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #2b2b2b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
}

.nav-logo img {
  height: 128px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links li a {
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: opacity .2s;
}

.nav-links li a:not(.btn-login)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width .25s ease;
}
.nav-links li a:not(.btn-login):hover::after { width: 100%; }
.nav-links li a:not(.btn-login):hover { opacity: .82; }

.btn-login {
  background: var(--amber);
  color: var(--text) !important;
  padding: .5rem 1.3rem;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: .875rem !important;
  transition: background .2s ease !important;
}
.btn-login:hover { background: var(--crimson-dk) !important; color: #FFFFFF !important; opacity: 1 !important; }
.btn-login::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .875rem 2.25rem;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-amber {
  background: #FFFFFF;
  color: var(--crimson);
  border-color: #FFFFFF;
}
.btn-amber:hover {
  background: var(--crimson);
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(138,36,51,.25);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(138,36,51,.20);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 2.5rem 2rem;
}
.hero-full { min-height: calc(100vh - var(--nav-h)); }
.hero-half { min-height: 50vh; }
.hero.no-img { background: var(--crimson); }
.hero.no-img::before { display: none; }

.hero h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.85rem);
  letter-spacing: -.5px;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  line-height: 1.14;
}
.hero p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  opacity: .92;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5.5rem 1.5rem; }
.bg-light { background: var(--light-bg); }
.bg-crimson { background: var(--crimson); color: var(--white); }
.text-center { text-align: center; }
.text-crimson { color: var(--crimson); }
.text-gray { color: var(--gray); }

.section-title { font-size: clamp(1.55rem, 3vw, 2.35rem); margin-bottom: 1.15rem; }
.section-sub { font-size: 1.05rem; color: var(--gray); line-height: 1.75; max-width: 620px; }
.section-sub.center { margin: 0 auto; }

/* ─── Stats Bar ──────────────────────────────────────────────── */
.stats-bar { background: var(--white); padding: 3.25rem 1.5rem; border-bottom: 1px solid #EBEBEB; }
.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; flex: 1; min-width: 180px; max-width: 280px; }
.stat-icon { font-size: 2rem; color: var(--crimson); margin-bottom: .75rem; }
.stat-number { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--crimson); margin-bottom: .35rem; }
.stat-label { font-size: .88rem; color: var(--gray); line-height: 1.5; }
.stat-source { display: block; font-size: .72rem; color: #BBBBBB; margin-top: .4rem; font-style: italic; }

/* ─── Two-Column ─────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.two-col-img { width: 100%; height: 440px; object-fit: cover; border-radius: 8px; box-shadow: var(--sh-md); }
.col-content h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); margin-bottom: 1.25rem; }
.col-content p { font-size: 1.025rem; color: #444; margin-bottom: 1rem; line-height: 1.78; }
.col-content p.gray-note { font-size: .9rem; color: var(--gray); margin-top: 1.5rem; margin-bottom: 0; }
.col-content a.text-link { color: var(--crimson); font-weight: 600; border-bottom: 1.5px solid var(--crimson); transition: opacity .2s; }
.col-content a.text-link:hover { opacity: .7; }

/* ─── Feature Cards ──────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3.5rem; }
.card { background: var(--white); border-radius: 10px; padding: 2.25rem 2rem; box-shadow: var(--sh-sm); transition: transform .28s ease, box-shadow .28s ease; }
.card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.card-icon { font-size: 2.4rem; color: var(--crimson); margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; color: var(--crimson); margin-bottom: .75rem; }
.card p { font-size: .95rem; color: #555; line-height: 1.72; }

/* ─── Pullquote / CTA ────────────────────────────────────────── */
.pullquote-section {
  background: var(--crimson);
  color: var(--white);
  text-align: center;
  padding: 5.5rem 2rem;
}
.pullquote-section blockquote {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto .5rem;
  line-height: 1.22;
}
.pullquote-section .attribution { font-size: 1.05rem; opacity: .72; margin-bottom: 1.2rem; font-style: italic; }
.pullquote-section .cta-sub { font-size: 1.05rem; opacity: .88; margin-bottom: 2.25rem; }

/* ─── Home Steps Teaser ──────────────────────────────────────── */
.steps-row {
  display: flex;
  gap: 1rem;
  margin-top: 3.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.step-item { flex: 1; min-width: 145px; text-align: center; padding: 0 .5rem; }
.step-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-item h4 { font-size: .88rem; color: var(--crimson); margin-bottom: .45rem; line-height: 1.3; }
.step-item p { font-size: .8rem; color: var(--gray); line-height: 1.55; }
.see-more {
  display: inline-block;
  margin-top: 3rem;
  color: var(--crimson);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.see-more:hover { border-color: var(--crimson); }

/* ─── Footer ─────────────────────────────────────────────────── */
footer { background: var(--crimson); color: var(--white); }
.footer-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3.5rem;
}
.footer-brand-name { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; margin-bottom: .55rem; }
.footer-tagline { font-size: .875rem; opacity: .75; line-height: 1.6; }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a, .footer-col a { color: var(--white); font-size: .925rem; opacity: .82; transition: opacity .2s; }
.footer-col ul li a:hover, .footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-col p { font-size: .9rem; opacity: .82; line-height: 1.65; margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: .8rem;
  opacity: .55;
}

/* ─── About — Stat Block ─────────────────────────────────────── */
.stat-block { display: flex; flex-direction: column; gap: 1.75rem; }
.stat-block-item { text-align: center; padding: 1.75rem 1.5rem; border-radius: 8px; background: var(--light-bg); }
.stat-block-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--crimson);
  margin-bottom: .3rem;
  line-height: 1.2;
}
.stat-block-label { font-size: .88rem; color: var(--gray); line-height: 1.45; }

/* ─── How It Works — Detailed Steps ─────────────────────────── */
.steps-detailed { max-width: 900px; margin: 0 auto; }
.step-detailed {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2.5rem;
  padding: 4rem 0;
  border-bottom: 1px solid #EBEBEB;
  align-items: start;
}
.step-detailed:last-child { border-bottom: none; }
.step-detailed:nth-child(even) { grid-template-columns: 1fr 100px; text-align: right; }
.step-detailed:nth-child(even) .step-num-large { order: 2; }
.step-detailed:nth-child(even) .step-d-content p { margin-left: auto; }

.step-num-large {
  font-family: 'Montserrat', sans-serif;
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--crimson);
  opacity: .15;
  line-height: 1;
  user-select: none;
}
.step-d-content h3 { font-size: 1.45rem; color: var(--crimson); margin-bottom: .9rem; }
.step-d-content p { font-size: 1rem; color: #444; line-height: 1.8; max-width: 600px; }

/* ─── Contact ─────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: start; }
.contact-form-wrap h2, .contact-info-wrap h2 { font-size: 1.6rem; color: var(--crimson); margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.35rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text); letter-spacing: .01em; }
.form-group input, .form-group textarea {
  padding: .8rem 1rem;
  border: 1.5px solid #DEDEDE;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: .975rem;
  color: var(--text);
  background: #FAFAFA;
  transition: border-color .22s, background .22s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--crimson); background: #fff; }
.form-group textarea { resize: vertical; min-height: 150px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #BBB; }
.form-success { display: none; background: #f0f7f0; border: 1.5px solid #4caf50; color: #2e7d32; padding: 1rem 1.25rem; border-radius: 6px; font-size: .95rem; }
.form-success.show { display: block; }

.contact-detail { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.cd-icon { font-size: 1.15rem; color: var(--crimson); margin-top: 3px; flex-shrink: 0; width: 22px; text-align: center; }
.cd-text { font-size: .975rem; line-height: 1.65; color: #444; }
.cd-text a { color: var(--crimson); transition: opacity .2s; }
.cd-text a:hover { text-decoration: underline; }
.contact-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #E8E8E8; font-size: .875rem; color: var(--gray); line-height: 1.65; }
.contact-note a { color: var(--crimson); font-weight: 600; }
.contact-note a:hover { text-decoration: underline; }

/* ─── What We Believe (About page) ──────────────────────────── */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}
.belief-item {
  padding: 2rem 1.75rem;
  border-left: 3px solid var(--crimson);
  background: var(--white);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--sh-sm);
}
.belief-item p { font-size: 1rem; color: #444; line-height: 1.78; }
.belief-anchor {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--crimson);
  font-size: 1.15rem;
}

/* ─── Learning Tracks ────────────────────────────────────────── */
.tracks-wrap { max-width: 960px; margin: 0 auto; text-align: left; }
.tracks-group { margin-bottom: 2.5rem; }
.tracks-group-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.tracks-group-label.available { background: var(--crimson); color: var(--white); }
.tracks-group-label.coming-soon { background: #E8E8E8; color: #999; }
.tracks-grid { display: grid; gap: 1.25rem; }
.tracks-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tracks-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.track-card {
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  border-left: 4px solid transparent;
  box-shadow: var(--sh-sm);
}
.track-card.available { background: var(--white); border-left-color: var(--crimson); }
.track-card.coming { background: #F8F8F8; border-left-color: #DCDCDC; }
.track-card h4 { font-size: 1rem; margin-bottom: .45rem; }
.track-card.available h4 { color: var(--text); }
.track-card.coming h4 { color: #AAAAAA; }
.track-card p { font-size: .9rem; color: #555; line-height: 1.65; }
.track-coming-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #BBBBBB;
  background: #EBEBEB;
  padding: .2rem .55rem;
  border-radius: 3px;
  margin-bottom: .55rem;
}
.tracks-cta { text-align: center; margin-top: 2.75rem; }

.track-cert {
  font-size: .8rem;
  color: var(--crimson);
  font-weight: 600;
  margin-top: .65rem;
  margin-bottom: 0;
}
.track-cert i { margin-right: .3rem; }

.kca-tagline {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--crimson);
  font-weight: 600;
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--crimson);
}

.track-btn {
  display: inline-block;
  margin-top: 1rem;
  color: var(--crimson);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  border: 2px solid var(--crimson);
  padding: .45rem 1.1rem;
  border-radius: 4px;
  transition: background .2s ease, color .2s ease;
  letter-spacing: .01em;
}
.track-btn:hover {
  background: var(--crimson);
  color: #fff;
}

/* ─── Animations ─────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fd-1 { transition-delay: .1s; }
.fd-2 { transition-delay: .22s; }
.fd-3 { transition-delay: .36s; }
.fd-4 { transition-delay: .5s; }
.fd-5 { transition-delay: .64s; }

/* ─── Responsive — Tablet (≤960px) ──────────────────────────── */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .beliefs-grid { grid-template-columns: 1fr; }
  .tracks-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col-img { height: 320px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .stats-inner { gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3.5rem; }
  .step-item { flex: 1 0 28%; }
}

/* ─── Responsive — Mobile (≤768px) ──────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .hamburger { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--crimson);
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .3s ease;
    padding: 0 2.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    gap: 0;
  }
  .nav-links.open { max-height: 360px; padding: 1.5rem 2.5rem; gap: 1.1rem; }

  section { padding: 4rem 1.25rem; }
  .two-col-img { height: 260px; }

  .step-detailed {
    grid-template-columns: 70px 1fr !important;
    gap: 1.5rem;
    text-align: left !important;
  }
  .step-detailed:nth-child(even) .step-num-large { order: 0 !important; }
  .step-detailed:nth-child(even) .step-d-content p { margin-left: 0 !important; }
  .step-num-large { font-size: 3.5rem; }
  .step-item { flex: 1 0 45%; }

  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
  .footer-main > div:first-child { grid-column: auto; }
  .pullquote-section { padding: 4rem 1.25rem; }
  .tracks-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .step-item { flex: 1 0 100%; }
  .stats-inner { flex-direction: column; align-items: center; gap: 2rem; }
  .stat-item { max-width: 100%; }
  .tracks-grid-3 { grid-template-columns: 1fr; }
}
