/* ========= layout.css ========= */
/* sitewide structural layout: header, nav, hero shell, footer */

:root{
  --accent: #35E2FF;
  --bg: #0b0f1a;                 /* fall-back body bg if you use it elsewhere */
  --maxw: 1920px;
}


/* ===== Transparent header bar with Roo + nav links ===== */

.site-nav{
  position: sticky;
  top: 0;
  z-index: 2000;                 /* sit above hero/content */
  background: color-mix(in srgb, #0b0f1a 70%, transparent);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px clamp(16px, 6vw, 28px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

/* Roo icon */
.brand img{
  height: 26px; width: auto; display:block; filter: brightness(1.1);
}
.brand:hover img{
  filter: drop-shadow(0 0 8px var(--accent)) brightness(1.25);
}

/* Desktop nav links (right-aligned) */
.nav-links{
  display:flex; justify-content:flex-end; gap:28px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  color:#8fdcff; text-decoration:none; padding:6px 2px; border-radius:8px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight:500; letter-spacing:.2px;
  transition: color .15s ease, text-shadow .15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible{
  color: var(--accent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, white);
}
.nav-links a[aria-current="page"]{
  color:#fff; border-bottom:2px solid var(--accent); padding-bottom:4px;
}

/* Mobile toggle */
.nav-toggle{
  display:none; align-items:center; gap:8px;
  background:transparent; border:0; color:#cfe6f0;
  padding:6px 0px; border-radius:10px; font:inherit;
  margin-left: -30px;
}
.nav-toggle img{ height:22px; width:auto }
.nav-toggle span{ font-weight:600; letter-spacing:.3px }
.nav-toggle:focus-visible{ outline:2px solid var(--accent); outline-offset:3px }

/* Mobile panel (collapsed by default) */
.nav-panel{
  position: absolute;            /* anchor to .site-nav */
  top: 100%;
  left: 0px;
  right: 16px;
  display: none;                 /* hidden until open */
  z-index: 4000;                 /* higher than hero */
  background: rgba(10,14,24,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 0px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

.nav-panel a{
  color:#e7f7ff; text-decoration:none; padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav-panel a:last-child{ border-bottom:0 }
.nav-panel a:hover{ color: var(--accent) }

/* Show the panel without reflowing the page */
.site-nav.is-open .nav-panel{ display: block; }



/* ===== Responsive: mobile mode ===== */

@media (max-width: 900px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; align-items:center; gap:8px; }

@media (min-width: 901px){
  .nav-toggle{ display:none; }
  .nav-panel{ display:none !important; } /* never show on desktop */
}

  /* Smooth fade-out for Roo on mobile */
  .brand{
    opacity: 1;
    transition: opacity 0.25s ease;
  }
  .brand{ justify-self:start }

  /* Hide Roo when toggle appears */
  .site-nav.is-open .brand,
  .nav-toggle + .brand,
  .brand {
    opacity: 0;
    pointer-events: none;
  }
}

/* ===== Hero shell (content + visual) ===== */
.hero{
  position:relative;
  overflow: clip;
  padding: clamp(48px, 6vw, 72px) 0 clamp(36px, 4vw, 56px);
  margin-bottom: 0 auto;


}
.hero-grid{
  display:grid; gap:40px; align-items:center;
  grid-template-columns: 1.1fr .9fr;
  margin: 0 auto;
}
.hero-visual{ position:relative; min-height:300px; }
.hero-visual picture, .hero-visual img{ width:100%; height:auto; }





/* small typographic helpers */
#learn .eyebrow{
  display:inline-block;
  font-size:.85rem;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#8fdcff;
  margin-bottom:6px;
  opacity:.9;
}

/* well-being list + educator tip */
#learn .wellbeing-links{
  margin: 8px 0 14px;
  padding-left: 1.1em;
}
#learn .wellbeing-links li{ margin: 6px 0; line-height: 1.55; }

#learn .educator-tip{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(53,226,255,.06);
  border: 1px solid rgba(53,226,255,.18);
}





/* --- Well-being block polish --- */
#learn #wellbeing { 
  margin-top: 0px; 
  margin-bottom: -30px;
  font-size: 11pt; 
  
}

#learn .wellbeing-links{
  margin: 8px 0 14px;
  padding-left: 1.1em;
}
#learn .wellbeing-links li{ margin: 6px 0; line-height: 1.55; }

#learn .educator-tip{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(53,226,255,.06);
  border: 1px solid rgba(53,226,255,.18);
}

/* Option B: one glass card split into two columns */
#learn .glass-split{
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 22px;
  border-radius: 14px;
  padding: clamp(16px, 2vw, 22px);
}
#learn .glass-split .wb-figure img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

@media (max-width: 900px){
  #learn .glass-split{
    grid-template-columns: 1fr;
  }
  #learn .glass-split .wb-figure{
    max-width: 520px;
    margin: 4px auto 0;
  }
}





/* ===== Footer (tight left padding, Rae pinned) ===== */
.site-footer{
  position: relative;
  overflow: hidden;
  color: #cfe6f0;
  max-width: 1920px;
  min-height: 450px;
  background:
    url("../assets/backgrounds/home-footer-bg.jpg") center bottom / cover no-repeat,
    var(--bg);
}

.footer-inner{
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin-right: 550px;

  /* reduced left padding for alignment */
  padding: clamp(36px, 5vw, 64px) clamp(10px, 10vw, 150px) clamp(24px, 3vw, 40px) clamp(10px, 8vw, 120px);

  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(360px, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
  text-align: left;
}

.footer-about h2,
.footer-contact h2{
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  color: #35E2FF;
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 12px;
}

.footer-inner p{
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: clamp(14px, 1.05vw, 17px);
  max-width: 60ch;
}

.footer-inner strong{ color:#fff; font-weight:700 }
.footer-inner a{
  color:#8fdcff; text-decoration:none;
  border-bottom:1px dashed rgba(143,220,255,.4);
}
.footer-inner a:hover{ color:#fff; border-bottom-color:transparent }

.umkc-logo{
  display:block;
  width:min(300px,70%);
  height:auto;
  margin-top:16px;
  margin-left:-12px; /* slight optical nudge */
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

/* Rae pinned bottom-right behind content */
.footer-rae{
  position:absolute;
  right:clamp(12px,5vw,64px);
  bottom:0;
  width:min(420px,38vw);
  height:auto;
  z-index:0;
  pointer-events:none;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.45));
}

/* Responsive: stack columns */
@media (max-width:980px){
  .footer-inner{
    grid-template-columns:1fr;
    text-align:center;
    padding: clamp(36px, 6vw, 64px) clamp(20px, 6vw, 40px);
    margin-right: 15px;
  }
  .footer-about h2,
  .footer-contact h2{ text-align:center }
  .footer-inner p{ margin-left:auto; margin-right:auto }

  .footer-rae{
    position:static;
    margin:16px auto 0;
    width:min(360px,80%);
    filter:drop-shadow(0 8px 16px rgba(0,0,0,.4));
  }
  .umkc-logo{
margin: 0 auto;
    width:min(260px,80%);
    text-align: center;
  }
}







/* Tweak these if you like */
:root{
  --glass-bg: rgba(11,15,26,.34);     /* translucent fill */
  --glass-brd: rgba(255,255,255,.08); /* subtle border */
  --glass-blur: 10px;                 /* blur amount */
}

/* Make the card itself “glass” */
.glass{
  position: relative;
  border-radius: 14px;
  overflow: hidden;            /* clip the pseudo to the radius */
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2.4vw, 26px);
  isolation: isolate;          /* keeps the blur effect contained */
}

/* The frosted layer lives behind the text */
.glass::before{
  content:"";
  position:absolute; inset:0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  z-index:-1;                  /* sit behind the content */
  will-change: backdrop-filter;
}

/* Slightly stronger glass on narrow screens for readability */
@media (max-width: 980px){
  .glass::before{
    background: rgba(11,15,26,.45);
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
  }
}

/* Fallback when backdrop-filter isn’t supported (older Firefox) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .glass::before{ background: rgba(11,15,26,.68); }
}







/* --- Mobile nav: blue roo + working panel --- */
.site-nav { position: relative; z-index: 50; }

/* hide mobile toggle on desktop */
.site-nav .nav-toggle { display: none; }

/* base look for the button */
.site-nav .nav-toggle {
  background: none;
  border: 0;
  color: #35E2FF; /* blue text */
  font-weight: 600;
  letter-spacing: .2px;
  gap: 8px;
  cursor: pointer;
}
.site-nav .nav-toggle img {
  width: 22px; height: 22px; display: block;
}

/* mobile */
@media (max-width: 900px) {
  .site-nav .nav-links { display: none; }   /* hide desktop links */
  .site-nav .nav-toggle { display: inline-flex; align-items: center; }

  .site-nav .nav-panel {
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    display: none;
    background: rgba(10,14,24,.92);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    backdrop-filter: blur(6px);
  }
  .site-nav .nav-panel.is-open { display: block; }

  .site-nav .nav-panel a {
    display: block;
    padding: 10px 12px;
    color: #cfe6f0;
    border-radius: 8px;
    text-decoration: none;
  }
  .site-nav .nav-panel a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
  }
}


/* mobile panel sits above page content */
.site-nav { position: sticky; z-index: 100; }       /* already sticky—just be sure z is set */
.nav-panel{
  position: absolute;   /* anchor to .site-nav */
  top: 100%;
  left: 0; right: 0;
  z-index: 1000;        /* higher than any hero bits */
}

@media (max-width: 900px) {
  .site-nav.is-open .nav-panel {
    z-index: 9999;
    position: relative;
  }
}



.btn { 

  z-index: 2500;

 }





 /* === START: Learn More (single source of truth) =================== */

/* Two-column rows */
#learn section.two-col{
  display: grid;
  grid-template-columns: 1.1fr 1fr;         /* text a bit wider than image */
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
  margin: 0;
  padding: 0;
}
#learn section.two-col + section.two-col{
  margin-top: clamp(16px, 2.2vw, 28px);      /* tighter gap between rows */
}
#learn .two-col > *{ min-width: 0; }         /* prevent overflow */

/* Images */
#learn .two-col figure{ margin: 0; place-self: center; }
#learn .two-col figure img{
  display: block;
  width: 100%;
  height: auto;
  max-width: min(520px, 42vw);               /* cap size so they don’t dwarf text */
  border-radius: 16px;
}

/* Text rhythm */
#learn .two-col h2, 
#learn .two-col h3{ margin: 0 0 clamp(8px, 1.2vw, 12px); }
#learn .two-col .prose > *:last-child{ margin-bottom: 0 !important; }

/* Put the Educator row (2nd two-col) image on the LEFT on desktop+ */
@media (min-width: 900px){
  #learn section.two-col:nth-of-type(2) figure{ order: 1; }
  #learn section.two-col:nth-of-type(2) .prose { order: 2; }
}

/* Mobile/tablet: stack, image first */
@media (max-width: 900px){
  #learn section.two-col{ grid-template-columns: 1fr; }
  #learn .two-col figure{ margin: 0 auto 12px; }
  #learn .two-col > *{ order: initial; }
}

/* Nudge the Well-Being card closer to the section above */
#learn .wellbeing,
#learn #wellbeing,
#learn .well-card{
  margin-top: clamp(12px, 1.6vw, 18px);
}

/* === END: Learn More ============================================= */



/* === Restore wrapper padding for Learn More section === */
#learn {
  padding: clamp(24px, 4vw, 60px) clamp(20px, 6vw, 80px);
  max-width: 1200px;
  margin-inline: auto;
}

/* Slightly tighten on smaller screens */
@media (max-width: 768px) {
  #learn {
    padding: clamp(16px, 5vw, 32px);
  }
}


