/* ==========================================================================
   Comprehensive Assessment Services (CAS) • Federal Blue Design System
   Matches original Donald Ghrist, LEP WordPress design faithfully in pure HTML5
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Montserrat:wght@400;500;600;700;800&family=Roboto+Condensed:wght@400;700;900&display=swap');

:root {
  /* Federal Blue Corporate Palette */
  --fed-dark: #1A4480;
  --fed-med: #205493;
  --fed-accent: #2E74B5;
  --fed-light: #F0F4F8;
  --fed-night: #112F4E;

  /* Header & Navigation Variables */
  --navy: #1A4480;
  --blue: #2E74B5;
  --blue-dark: #205493;
  --ink: #112F4E;
  --muted: #475569;
  --border: #DDE5EE;
  --bg: #ffffff;

  /* Global Content Tokens */
  --cas-bg-color: #ffffff;
  --cas-text-color: #111111;
  --cas-card-bg: #ffffff;

  /* Typography Stacks */
  --font-serif: 'Merriweather', Georgia, serif;
  --font-condensed: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   Base Resets & Global Styles
   ========================================================================== */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* Offset in-page jump targets for sticky header + sticky subnav */
section[id], div[id], [id] {
  scroll-margin-top: 110px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cas-bg-color);
  color: var(--cas-text-color);
  font-family: var(--font-serif);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fed-accent);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--fed-med);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   ⭐ STICKY SHRINK HEADER (Federal Blue + Text Logo)
   ========================================================================== */
.cas-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cas-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: padding 0.25s ease;
}

/* Two-Line Federal Text Logo */
.cas-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cas-brand img.cas-header-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
}

.cas-logo-text {
  display: flex;
  flex-direction: column;
}

.cas-logo-line1 {
  font-family: var(--font-condensed);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1;
}

.cas-logo-line2 {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--blue);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

/* Header Shrink on Scroll */
.cas-header.shrink .cas-wrap {
  padding: 8px 20px;
}
.cas-header.shrink .cas-logo-line1 {
  font-size: 21px;
}
.cas-header.shrink .cas-logo-line2 {
  font-size: 15px;
}

/* Desktop Navigation */
.cas-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cas-link,
.cas-menubtn {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  font-weight: 600;
  font-size: 15px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.cas-link:hover,
.cas-menubtn:hover {
  color: var(--blue-dark);
}

.cas-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cas-phone-pill:hover {
  background: #e2e8f0;
  color: var(--blue-dark);
  transform: translateY(-1px);
}

/* Dropdown Menus */
.cas-menu {
  position: relative;
}

.cas-dd {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  overflow: hidden;
  z-index: 1001;
}

.cas-dd a {
  display: block;
  padding: 10px 16px;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease, color 0.15s ease;
}

.cas-dd a:last-child {
  border-bottom: none;
}

.cas-dd a:hover {
  background: #F4F7FB;
  color: var(--fed-accent);
}

/* CTA Pill Button */
.cas-btn {
  background: var(--navy);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-condensed);
  font-size: 16px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(26, 68, 128, 0.25);
  white-space: nowrap;
}

.cas-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(26, 68, 128, 0.35);
}

.cas-btn-secondary {
  background: #ffffff;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-condensed);
  font-size: 16px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.cas-btn-secondary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* Hamburger & Mobile Menu */
.cas-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.cas-hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.cas-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.cas-mobile.active {
  display: flex;
}

.cas-mobile a {
  padding: 11px 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.cas-mobile a:hover {
  background: #F4F7FB;
  color: var(--fed-accent);
}

.cas-mobile details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 6px 0;
}

.cas-mobile summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--navy);
  list-style: none;
}

.cas-mobile summary::-webkit-details-marker {
  display: none;
}

.cas-mobile details a {
  padding-left: 24px;
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   🚀 CAS HERO SLIDER (Original Photographic 78vh Layout)
   ========================================================================== */
#casHero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  max-height: 840px;
  overflow: hidden;
  background: #112F4E;
}

.cas-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.cas-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.cas-slide .content {
  max-width: 660px;
  background: rgba(17, 47, 78, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 36px 42px;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: heroFadeUp 0.8s ease-out;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.cas-slide h4 {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  color: #bde0fe;
  letter-spacing: 1.5px;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.cas-slide h1 {
  color: #ffffff !important;
  font-family: var(--font-condensed);
  font-size: 46px;
  font-weight: 900;
  margin: 0 0 14px 0;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cas-slide p {
  color: #ecf4ff;
  font-size: 17.5px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  font-family: var(--font-serif);
}

.cta-group {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-group a {
  background: var(--fed-accent);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-group a:hover {
  background: var(--fed-med);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cta-group a.secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #ffffff !important;
}

.cta-group a.secondary:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   📌 IN-PAGE STICKY SUB-NAV
   ========================================================================== */
#casNav {
  position: sticky;
  top: 60px;
  z-index: 990;
  background: var(--fed-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#casNav a {
  color: #ffffff;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  transition: all 0.2s ease;
}

#casNav a:hover {
  background: var(--fed-accent);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

#casMobileNavToggle,
#casMobileDrawer {
  display: none !important;
}

/* ==========================================================================
   🏛️ MAIN HOMEPAGE SECTIONS
   ========================================================================== */
.cas-section-wrapper {
  width: 100%;
}

.cas-section-wrapper.alt-bg {
  background: #F0F4F8;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.cas-section {
  padding: 68px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.cas-section-header {
  background: var(--fed-dark);
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.cas-section-header h2 {
  color: #ffffff !important;
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cas-section-wrapper.alt-bg .cas-section-header {
  background: var(--fed-accent);
}

.cas-divider {
  width: 100%;
  max-width: 1180px;
  height: 3px;
  background: linear-gradient(90deg, var(--fed-accent), var(--fed-med), var(--fed-accent));
  border-radius: 999px;
  margin: 30px auto;
  opacity: 0.75;
}

.cas-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}

.cas-flex > div {
  flex: 1 1 46%;
}

.cas-flex p {
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.cas-info {
  background: #ffffff;
  padding: 24px 28px;
  border-left: 6px solid var(--fed-accent);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  font-size: 15.5px;
  color: var(--fed-night);
}

.cas-info h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--fed-dark);
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
}

.cas-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cas-info ul li {
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.6;
}

.cas-info ul li:last-child {
  border-bottom: none;
}

/* Card Grids */
.cas-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.cas-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.cas-card h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--fed-dark);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
}

.cas-card p {
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
  margin: 0;
}

/* FAQ Items */
.cas-faq-section {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.cas-faq-item {
  padding: 20px 24px;
  border-radius: 8px;
  border-left: 5px solid var(--fed-accent);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cas-faq-item h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--fed-dark);
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 700;
}

.cas-faq-item p {
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   ⭐ SECTION 8: FINAL PHOTOGRAPHIC CALL TO ACTION
   ========================================================================== */
#cas-final-cta {
  position: relative;
  background: #112F4E url('/images/CAS-IEE-Helping-chidren-with-dis.webp') center/cover no-repeat;
  padding: 95px 20px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

#cas-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 68, 128, 0.82);
  backdrop-filter: brightness(0.85);
  -webkit-backdrop-filter: brightness(0.85);
  z-index: 1;
}

#cas-final-cta > * {
  position: relative;
  z-index: 2;
}

#cas-final-cta h2 {
  color: #ffffff !important;
  font-size: 44px;
  font-weight: 900;
  margin: 0 0 20px 0;
  font-family: var(--font-condensed);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

#cas-final-cta p {
  color: #e9f1ff !important;
  font-size: 19.5px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 35px auto;
  font-family: var(--font-serif);
}

#cas-final-cta .cas-btn {
  background: var(--fed-accent);
  color: #ffffff !important;
  padding: 15px 36px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

#cas-final-cta .cas-btn:hover {
  background: var(--fed-med);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   CAS GLOBAL FOOTER (Federal Blue)
   ========================================================================== */
.cas-footer {
  background: #f4f7fb;
  color: var(--ink);
  font-family: var(--font-serif);
  border-top: 1px solid #d9e2ec;
}

.footer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  gap: 36px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.footer-col h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 16px;
  color: var(--fed-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-col p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 9px 0;
}

.footer-col a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s ease;
  font-family: var(--font-sans);
}

.footer-col a:hover {
  color: var(--fed-dark);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 20px 20px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid #d9e2ec;
  background: #eef3f8;
  font-family: var(--font-sans);
}

/* ==========================================================================
   INTERIOR PAGE STYLES (Articles, Services, Guides, Contact)
   ========================================================================== */
.interior-hero {
  background: linear-gradient(135deg, var(--fed-night) 0%, var(--fed-dark) 100%);
  color: #ffffff;
  padding: 60px 20px 50px 20px;
  text-align: center;
}

.interior-hero h1 {
  font-family: var(--font-condensed);
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.interior-hero p {
  font-size: 18px;
  color: #ecf4ff;
  max-width: 800px;
  margin: 0 auto;
}

.interior-container {
  max-width: 1040px;
  margin: 50px auto 80px auto;
  padding: 0 20px;
}

.interior-container h2 {
  font-family: var(--font-condensed);
  color: var(--fed-dark);
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.interior-container h3 {
  font-family: var(--font-sans);
  color: var(--fed-med);
  font-size: 21px;
  margin-top: 30px;
  margin-bottom: 12px;
}

.interior-container p,
.interior-container li {
  font-size: 16.5px;
  line-height: 1.8;
  color: #2c3e50;
}

.interior-container ul,
.interior-container ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.interior-container li {
  margin-bottom: 8px;
}

.callout-box {
  background: #F0F4F8;
  border-left: 5px solid var(--fed-accent);
  padding: 24px;
  border-radius: 6px;
  margin: 32px 0;
}

.callout-box strong {
  color: var(--fed-dark);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .cas-nav {
    display: none;
  }
  .cas-hamburger {
    display: flex;
  }
  #casNav {
    display: flex !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 8px !important;
    padding: 10px 14px !important;
    top: 56px;
    scrollbar-width: none;
  }
  #casNav::-webkit-scrollbar {
    display: none;
  }
  #casNav a {
    flex-shrink: 0;
    scroll-snap-align: start;
    font-size: 13px;
    padding: 6px 12px;
  }
  #casMobileNavToggle,
  #casMobileDrawer {
    display: none !important;
  }
  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #casHero {
    height: 72vh;
    min-height: 520px;
  }
  .cas-slide {
    padding: 0 4%;
    justify-content: center;
    text-align: center;
  }
  .cas-slide .content {
    max-width: 95%;
    padding: 24px 20px;
    text-align: center;
  }
  .cas-slide h1 {
    font-size: 32px !important;
    line-height: 1.2;
  }
  .cas-slide p {
    font-size: 15.5px;
  }
  .cta-group {
    justify-content: center;
  }
  .cas-flex {
    flex-direction: column;
  }
  .cas-flex > div {
    flex: 1 1 100%;
  }
  #cas-final-cta h2 {
    font-size: 32px;
  }
  #cas-final-cta p {
    font-size: 17px;
  }
  .interior-hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .footer-wrap {
    grid-template-columns: 1fr;
  }
  .cas-logo-line1 {
    font-size: 22px;
  }
  .cas-logo-line2 {
    font-size: 15px;
  }
}

/* Header fit: keep nav on one line, collapse to hamburger before it can overflow */
.cas-wrap { max-width: 1360px; }
.cas-nav { gap: 18px; }
.cas-link, .cas-menubtn { white-space: nowrap; }
.cas-nav .cas-btn { padding: 9px 16px; font-size: 14.5px; }
@media (max-width: 1180px) {
  .cas-nav { display: none; }
  .cas-hamburger { display: flex; }
}
