/* =========================================================
   Loftier Literacy — Redesign v5 (Bootstrap 5.3.3)
   Direction: Warm off‑white palette, dark “floating” nav,
   richer section banding, consistent media sizing.
   ========================================================= */

:root{
  /* Base */
  --ll-bg: #f3efe7;                 /* warm off‑white */
  --ll-bg-2: #e9e2d7;               /* slightly deeper */
  --ll-surface: rgba(255, 251, 244, .82);
  --ll-surface-solid: #fffaf3;
  --ll-ink: #101318;                /* charcoal */
  --ll-muted: #4b5563;
  --ll-muted-2: #6b7280;

  /* Brand */
  --ll-brand: #a13852;              /* cranberry */
  --ll-brand-2: #7d2940;
  --ll-accent: #c9a28a;             /* warm sand */

  /* Borders + shadow */
  --ll-border: rgba(16, 19, 24, .10);
  --ll-border-soft: rgba(16, 19, 24, .08);
  --ll-shadow: 0 22px 60px rgba(2, 6, 23, .16);
  --ll-shadow-soft: 0 12px 30px rgba(2, 6, 23, .10);

  --ll-radius: 22px;
}


body{
  color: var(--ll-ink);
  /* Navbar is sticky (not fixed) — do not offset the whole page */
  padding-top: 0;
  background:
    radial-gradient(1100px 760px at 10% -10%, rgba(161,56,82,.14), transparent 58%),
    radial-gradient(980px 720px at 92% 0%, rgba(201,162,138,.18), transparent 60%),
    radial-gradient(900px 680px at 45% 110%, rgba(16,19,24,.06), transparent 55%),
    linear-gradient(180deg, var(--ll-bg), var(--ll-bg-2));
  min-height: 100vh;
}
@media (max-width: 991.98px){
  body{ padding-top: 0; }
}


.ll-muted{ color: var(--ll-muted) !important; }
.ll-muted-2{ color: var(--ll-muted-2) !important; }
.ll-serif{ font-family: inherit; }

/* Skip link */
.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  padding: .55rem .75rem;
  background: var(--ll-ink);
  color: #fff;
  border-radius: 999px;
  z-index: 2000;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform .15s ease;
}
.skip-link:focus{ transform: translateY(0); }

/* =========================================================
   Navigation (new)
   - No white background
   - “Floating” pill frame
   - Prevent wrapping on desktop
   ========================================================= */

/* We no longer use the v4 topbar; keep class harmless if present */
.topbar{ display:none !important; }

.ll-nav{
  padding: 0;
  background: rgba(11, 18, 32, .78);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


.ll-nav .container-xl{
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Wrap the navbar content in a pill-like frame (added in v5 HTML) */
.nav-frame{
  /* v6: make the nav full-width (no floating pill) */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


/* Brand */
.navbar-brand{ min-width: 0; }
.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background:
    radial-gradient(18px 18px at 25% 30%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(135deg, var(--ll-brand), var(--ll-accent));
  box-shadow: 0 14px 28px rgba(161,56,82,.16);
  color: #fff;
  flex: 0 0 auto;
}
.brand-mark i{ font-size: 1.12rem; }
.brand-text{ display: inline-grid; line-height: 1.05; min-width: 0; }
.brand-name{ font-weight: 850; letter-spacing: -0.01em; color: rgba(255,255,255,.96); white-space: nowrap; }
.brand-tag{
  font-size: .85rem;
  color: rgba(255,255,255,.70);
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1200px){
  .brand-tag{ display: block; }
}

/* Links */
.ll-nav .navbar-nav{ flex-wrap: nowrap; }
.ll-nav .nav-link{
  border-radius: 999px;
  padding: .5rem .75rem;
  font-weight: 650;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
}
.ll-nav .nav-link:hover{ background: rgba(255,255,255,.08); color: #fff; }
.ll-nav .nav-link.active{ background: rgba(161,56,82,.24); color: #fff; }

/* Dropdown */
.ll-nav .dropdown-menu{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: var(--ll-shadow);
  padding: .35rem;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ll-nav .dropdown-item{
  border-radius: 12px;
  padding: .6rem .75rem;
  font-weight: 650;
  color: rgba(255,255,255,.90);
}
.ll-nav .dropdown-item:hover{ background: rgba(255,255,255,.10); }
.ll-nav .dropdown-item.active{ background: rgba(161,56,82,.28); color: #fff; }

/* Buttons */
.btn-cta{
  --bs-btn-bg: var(--ll-brand);
  --bs-btn-border-color: var(--ll-brand);
  --bs-btn-hover-bg: var(--ll-brand-2);
  --bs-btn-hover-border-color: var(--ll-brand-2);
  --bs-btn-active-bg: var(--ll-brand-2);
  --bs-btn-active-border-color: var(--ll-brand-2);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  border-radius: 999px;
  padding: .52rem .85rem;
  box-shadow: 0 18px 34px rgba(161,56,82,.18);
}
.btn-cta-alt{
  --bs-btn-color: rgba(255,255,255,.92);
  --bs-btn-border-color: rgba(255,255,255,.22);
  --bs-btn-hover-bg: rgba(255,255,255,.08);
  --bs-btn-hover-border-color: rgba(255,255,255,.34);
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  padding: .52rem .85rem;
}

/* Toggler */
.ll-nav .navbar-toggler{
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: .45rem .6rem;
}
.ll-nav .navbar-toggler-icon{
  filter: invert(1);
}

/* Mobile drawer theming (kept outside the nav to avoid clipping) */
.ll-mobile-nav{
  background: #0b1220;
  color: rgba(255,255,255,.90);
  border-left: 1px solid rgba(255,255,255,.12);
}
.ll-mobile-nav .text-muted{ color: rgba(255,255,255,.70) !important; }
.ll-mobile-nav .btn-close{ filter: invert(1); opacity: .85; }

/* Hide the inner scrollbar on mobile (still scrolls if needed) */
.ll-mobile-nav .offcanvas-body{
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge legacy */
}
.ll-mobile-nav .offcanvas-body::-webkit-scrollbar{ width: 0; height: 0; }

/* Mobile nav links */
.ll-mnav-link,
.ll-mnav-sublink{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .78rem .95rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 750;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.ll-mnav-link:hover,
.ll-mnav-sublink:hover{ background: rgba(255,255,255,.09); color:#fff; }
.ll-mnav-link.active,
.ll-mnav-sublink.active{
  background: rgba(161,56,82,.22);
  border-color: rgba(161,56,82,.35);
  color: #fff;
}

.ll-mnav-sublink{
  padding: .65rem .85rem;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(255,255,255,.035);
}

.ll-mnav-toggle{ cursor: pointer; }
.ll-mnav-toggle i{ transition: transform .18s ease; }
.ll-mnav-toggle[aria-expanded="true"] i{ transform: rotate(180deg); }

/* =========================================================
   Page heroes
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--ll-radius) + 10px);
  margin: 1.25rem auto 1.75rem;
  width: min(1320px, calc(100% - 2rem));
  background: linear-gradient(180deg, rgba(255,250,243,.94), rgba(243,238,231,.92));
  color: var(--ll-ink);
  border: 1px solid var(--ll-border);
  box-shadow: var(--ll-shadow);
}

/* Soft brand glow + subtle paper texture */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(920px 520px at 14% 18%, rgba(161,56,82,.18), transparent 62%),
    radial-gradient(980px 560px at 88% 10%, rgba(201,162,138,.22), transparent 62%),
    radial-gradient(820px 520px at 70% 110%, rgba(16,19,24,.08), transparent 58%),
    repeating-linear-gradient(
      135deg,
      rgba(16,19,24,.015) 0px,
      rgba(16,19,24,.015) 2px,
      transparent 2px,
      transparent 8px
    );
}

/* Photo lives mostly on the right side (mask fade) */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--ll-hero-photo);
  background-size: cover;
  background-position: center;
  opacity: .38;
  filter: saturate(1.06) contrast(1.04);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.95) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.95) 100%);
  transform: scale(1.02);
}

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

.hero .eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .78rem;
  border-radius: 999px;
  background: rgba(16,19,24,.06);
  border: 1px solid rgba(16,19,24,.10);
  color: rgba(16,19,24,.88);
  font-weight: 800;
  font-size: .92rem;
}
.hero .eyebrow i{ color: var(--ll-brand); }

.hero h1{ letter-spacing: -0.03em; }
.hero-lead{ font-size: 1.08rem; color: rgba(16,19,24,.74); }

/* Make “text-white-50” work on the new light hero */
.hero .text-white-50{ color: rgba(16,19,24,.64) !important; }
.hero .ll-divider{ background: rgba(16,19,24,.10) !important; }

/* Right-side feature panel */
.hero-card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(16,19,24,.10);
  border-radius: var(--ll-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--ll-shadow-soft);
}
.hero-card .icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background:
    radial-gradient(18px 18px at 25% 25%, rgba(255,255,255,.70), transparent 60%),
    linear-gradient(135deg, rgba(161,56,82,.14), rgba(201,162,138,.20));
  border: 1px solid rgba(16,19,24,.10);
  color: var(--ll-ink);
}

/* Buttons: keep nav version light-on-dark, but make hero outline button dark */
.hero .btn-cta-alt{
  --bs-btn-color: var(--ll-ink);
  --bs-btn-border-color: rgba(16,19,24,.18);
  --bs-btn-hover-bg: rgba(16,19,24,.06);
  --bs-btn-hover-border-color: rgba(16,19,24,.28);
  --bs-btn-hover-color: var(--ll-ink);
}

/* Stats */
.hero-stat{
  border-radius: 18px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(16,19,24,.10);
  box-shadow: 0 12px 26px rgba(2,6,23,.08);
}
/* =========================================================
   Sections + surfaces
   ========================================================= */
.ll-section{ padding: 3.25rem 0; }

.surface{
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius);
  box-shadow: var(--ll-shadow-soft);
}

.ll-card{
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius);
  box-shadow: var(--ll-shadow-soft);
}
.ll-card:hover{ box-shadow: var(--ll-shadow); }
.ll-card .icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items:center;
  background: rgba(161,56,82,.12);
  color: var(--ll-brand);
}

.ll-pill{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(11,18,32,.06);
  border: 1px solid rgba(11,18,32,.10);
  font-weight: 750;
  font-size: .92rem;
}

.ll-badge{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(201,162,138,.16);
  border: 1px solid rgba(201,162,138,.28);
  color: var(--ll-ink);
  font-weight: 850;
  font-size: .88rem;
}

.ll-divider{ height: 1px; background: rgba(11,18,32,.12); }

/* Section bands (previously missing) */
.ll-band{
  position: relative;
  padding: 3.25rem 0;
}
.ll-band::before{
  content:"";
  position:absolute;
  inset:0;
  opacity: 1;
  pointer-events:none;
}
.ll-band > .container{ position: relative; z-index: 1; }

.ll-band--plum::before{
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(161,56,82,.18), transparent 60%),
    radial-gradient(900px 520px at 100% 10%, rgba(201,162,138,.12), transparent 60%),
    linear-gradient(180deg, rgba(250,247,240,.65), rgba(250,247,240,.30));
}

.ll-band--copper::before{
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(201,162,138,.16), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(161,56,82,.10), transparent 60%),
    linear-gradient(180deg, rgba(250,247,240,.70), rgba(250,247,240,.35));
}

/* Buttons from older markup */
.btn-ll{ 
  --bs-btn-bg: var(--ll-brand);
  --bs-btn-border-color: var(--ll-brand);
  --bs-btn-hover-bg: var(--ll-brand-2);
  --bs-btn-hover-border-color: var(--ll-brand-2);
  --bs-btn-active-bg: var(--ll-brand-2);
  --bs-btn-active-border-color: var(--ll-brand-2);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  border-radius: 999px;
  padding: .65rem 1rem;
  box-shadow: 0 18px 34px rgba(161,56,82,.18);
}
.btn-ll-outline{
  --bs-btn-color: var(--ll-ink);
  --bs-btn-border-color: rgba(11,18,32,.22);
  --bs-btn-hover-bg: rgba(11,18,32,.06);
  --bs-btn-hover-border-color: rgba(11,18,32,.34);
  --bs-btn-hover-color: var(--ll-ink);
  border-radius: 999px;
  padding: .65rem 1rem;
}

/* =========================================================
   Media (fix sizing)
   ========================================================= */
.ll-photo{
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius);
  overflow: hidden;
  box-shadow: var(--ll-shadow-soft);
}
.ll-photo img{
  display:block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ll-photo .p-3{
  background: rgba(250,247,240,.70);
  border-top: 1px solid var(--ll-border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ll-avatar{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.30);
}

/* Forms */
.form-control, .form-select{
  border-radius: 14px;
  border-color: rgba(11,18,32,.16);
  background: rgba(250,247,240,.92);
}
.form-control:focus, .form-select:focus{
  border-color: rgba(161,56,82,.55);
  box-shadow: 0 0 0 .25rem rgba(161,56,82,.16);
}

/* Dedicated “in memory” section */
.ll-dedication-bg{
  position: relative;
  overflow: hidden;
}
.ll-dedication-bg::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(161,56,82,.12), transparent 60%),
    radial-gradient(900px 520px at 95% 10%, rgba(201,162,138,.12), transparent 60%);
  opacity: 1;
  pointer-events:none;
}
.ll-dedication-bg > *{ position: relative; z-index: 1; }

.ll-quote{
  background: rgba(250,247,240,.92);
  border: 1px solid var(--ll-border);
  border-radius: 18px;
}

/* =========================================================
   Footer
   ========================================================= */
.ll-footer{
  background: #070b16;
  color: rgba(255,255,255,.86);
  border-top: 1px solid rgba(255,255,255,.12);
}
.ll-footer a{ color: rgba(255,255,255,.86); }
.ll-footer a:hover{ color: #fff; }

.footer-mark{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background:
    radial-gradient(18px 18px at 25% 30%, rgba(255,255,255,.50), transparent 60%),
    linear-gradient(135deg, var(--ll-brand), var(--ll-accent));
  box-shadow: 0 14px 28px rgba(161,56,82,.22);
}
.footer-mark span{ font-weight: 900; letter-spacing: .02em; color: #fff; }

/* =========================================================
   Bootstrap-missing fallback (kept)
   ========================================================= */
body.ll-no-bootstrap .navbar-toggler{
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: .5rem .65rem;
}
body.ll-no-bootstrap .navbar-toggler-icon{
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path stroke="black" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" d="M4 7h22M4 15h22M4 23h22"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path stroke="black" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" d="M4 7h22M4 15h22M4 23h22"/></svg>') no-repeat center / contain;
}

body.ll-no-bootstrap .offcanvas{
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: min(360px, 92vw);
  background: #0b1220;
  z-index: 1050;
  visibility: hidden;
  transition: right .2s ease;
  box-shadow: var(--ll-shadow);
}
body.ll-no-bootstrap .offcanvas.offcanvas-end{ right: -100%; left: auto; }
body.ll-no-bootstrap .offcanvas.show{ right: 0; visibility: visible; }
body.ll-no-bootstrap .offcanvas-header{ display:flex; align-items:center; justify-content:space-between; padding: 1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
body.ll-no-bootstrap .offcanvas-body{ padding: 1rem 1rem; }
body.ll-no-bootstrap .offcanvas-backdrop{ position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; z-index: 1040; transition: opacity .2s ease; }
body.ll-no-bootstrap .offcanvas-backdrop.show{ opacity: 1; }
