:root{
  --bg: #ffffff; 
  --bg2:#f7f8fb;
  --surface: #ffffff;
  --surface2:#f2f4f8;

  --text: #0f172a;     /* slate-900 */
  --muted:#334155;    /* slate-700 */
  --soft: #475569;     /* slate-600 */
  --border:#e2e8f0;    /* slate-200 */

  --brand:#6d28d9;     /* purple */
  --brand2:#c58b1b;    /* warm gold */
  --link:#4c1d95;

  --radius: 16px;
  --shadow: 0 14px 40px rgba(2,6,23,0.10);
  --max: 1120px;

  /* Footer (locked to the darker purple used on your other sites) */
  --footer-bg:#301334;
  --footer-border: rgba(255,255,255,0.14);
  --footer-text: rgba(255,255,255,0.92);
  --footer-link: rgba(255,255,255,0.82);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.55;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: var(--link); text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  border:0;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand{
  display:flex;
  align-items:center;
  gap: 0.85rem;
  min-width: 240px;
}

.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 6px;
  object-fit: contain;
}

.brand-text{ display:flex; flex-direction:column; gap:0.15rem; }
.brand-title{ font-weight: 750; letter-spacing: 0.2px; color: var(--text); }
.brand-subtitle{ font-size: 0.85rem; color: var(--soft); }

/* Nav
   Supports BOTH patterns:
   1) <nav class="nav"><a>...</a></nav>  (your current pattern)
   2) <ul class="nav-list"><li><a>...</a></li></ul> (older pattern)
*/
.nav{
  display:flex;
  align-items:center;
  gap: 1rem;
}

.nav a{
  display:inline-flex;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration:none;
  border: 1px solid transparent;
}

.nav a:hover{
  border-color: var(--border);
  background: #f8fafc;
  text-decoration:none;
}

.nav a.is-active{
  color: var(--text);
  border-color: rgba(109,40,217,0.25);
  background: rgba(109,40,217,0.08);
}

.nav-list{
  display:flex;
  align-items:center;
  gap: 0.7rem;
  list-style:none;
  padding:0;
  margin:0;
}

.nav-list a{
  display:inline-flex;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration:none;
  border: 1px solid transparent;
}

.nav-list a:hover{
  border-color: var(--border);
  background: #f8fafc;
  text-decoration:none;
}

.nav-list a.is-active{
  color: var(--text);
  border-color: rgba(109,40,217,0.25);
  background: rgba(109,40,217,0.08);
}

.nav-cta{ display:flex; align-items:center; }

.nav-toggle{
  display:none;
  border: 1px solid var(--border);
  background: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor:pointer;
}

.nav-toggle-lines{
  display:block;
  width: 18px;
  height: 2px;
  background: #111827;
  margin: 0 auto;
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: #111827;
}

.nav-toggle-lines::before{ top:-6px; }
.nav-toggle-lines::after{ top:6px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  text-decoration:none;
  cursor:pointer;
  box-shadow: 0 10px 25px rgba(2,6,23,0.08);
}

.btn:hover{ text-decoration:none; transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: linear-gradient(135deg, rgba(109,40,217,0.95), rgba(197,139,27,0.78));
  border-color: rgba(109,40,217,0.30);
  color: #ffffff;
}

.btn-secondary{
  background: rgba(197,139,27,0.10);
  border-color: rgba(197,139,27,0.35);
}

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  box-shadow: none;
}

.text-link{ font-weight: 700; }

/* Ensure external buttons sit nicely when used inline */
a.external.btn{ white-space:normal; }

/* Hero */
.hero{
  position:relative;
  padding: 3.2rem 0 2.2rem;
}

.hero-grid{
  display:grid;
  grid-template-columns: 59% 41%;  /* percentages only */
  gap: 1.6rem;
  align-items: start;
}

.kicker{
  display:inline-block;
  font-size: 0.95rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

h1{
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.12;
  margin: 0.85rem 0 0.9rem;
}

.lead{
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1rem;
}

.hero-bullets{
  margin: 0.8rem 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-bullets li{ margin: 0.35rem 0; }

.cta-row{
  display:flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0.9rem 0 0.65rem;
}

.micro{
  color: var(--soft);
  font-size: 0.92rem;
}

.hero-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-card-inner{
  padding: 1.25rem 1.1rem;
}

.hero-card h2{
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.checklist{
  list-style:none;
  padding:0;
  margin:0;
}

.checklist li{
  padding-left: 1.4rem;
  margin: 0.55rem 0;
  position:relative;
  color: var(--muted);
}

.checklist li::before{
  content:"✓";
  position:absolute;
  left:0;
  color: rgba(197,139,27,0.95);
  font-weight: 900;
}

.hero-card-divider{
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* Sections */
.section{ padding: 2.4rem 0; }

.section-alt{
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head{ margin-bottom: 1.2rem; }

.section h2{ margin: 0 0 0.6rem; font-size: 1.7rem; }

.note{
  color: var(--soft);
  font-size: 0.95rem;
  border-left: 3px solid rgba(197,139,27,0.70);
  padding-left: 0.8rem;
  margin-top: 1rem;
}

.split{
  display:grid;
  grid-template-columns: 58% 42%;  /* percentages only */
  gap: 1.4rem;
  align-items: start;
}

.cards-3{
  display:grid;
  grid-template-columns: 33.333% 33.333% 33.333%; /* percentages only */
  gap: 1rem;
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.1rem;
  box-shadow: 0 12px 28px rgba(2,6,23,0.08);
}

.card h3{ margin: 0 0 0.6rem; font-size: 1.2rem; }
.card p{ color: var(--muted); margin: 0 0 0.8rem; }

.bullets{ margin: 0; padding-left: 1.1rem; color: var(--muted); }
.bullets li{ margin: 0.35rem 0; }

.banner{
  margin-top: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(197,139,27,0.35);
  background: linear-gradient(135deg, rgba(197,139,27,0.10), rgba(109,40,217,0.08));
  padding: 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}

.banner h3{ margin: 0 0 0.25rem; }
.banner p{ margin: 0; color: var(--muted); }

/* Constrain portrait imagery so it does not dominate */
.about-media img{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width:220px;
  width:100%;
  height:auto;
  object-fit: cover;
}

.about-links{
  display:flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-grid{
  display:grid;
  grid-template-columns: 60% 40%; /* percentages only */
  gap: 1.4rem;
  align-items: start;
}

.link-list{
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.mt{ margin-top: 1.1rem; }
.small{ color: var(--muted); font-size: 0.95rem; margin: 0.35rem 0; }

/* Footer (locked) */
.site-footer{
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--footer-bg) !important;
  color: var(--footer-text);
}

.site-footer a{ color: var(--footer-link); }
.site-footer a:hover{ color: #ffffff; text-decoration:none; }

.footer-grid{
  display:grid;
  grid-template-columns: 40% 30% 30%; /* percentages only */
  gap: 1.2rem;
  padding: 2rem 0 1.2rem;
}

.site-footer h4{
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: #ffffff;
}

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

.footer-links li{ margin: 0.35rem 0; }

.footer-bottom{
  border-top: 1px solid var(--footer-border);
  padding: 1rem 0 1.4rem;
}

.site-footer .small{ color: rgba(255,255,255,0.78); }

/* Safety fallback in case the footer class is missing in HTML */
footer{ background-color: var(--footer-bg) !important; }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 100%; }
  .split{ grid-template-columns: 100%; }
  .cards-3{ grid-template-columns: 100%; }
  .contact-grid{ grid-template-columns: 100%; }
  .footer-grid{ grid-template-columns: 100%; }

  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  .nav{
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display:none;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
  }

  /* Support either class name: .nav-open or .open */
  .nav.nav-open{ display:flex; }
  .nav.open{ display:flex; }

  .nav-list{ flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-cta{ width: 100%; }
  .nav-cta .btn{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto; }
  .btn:hover{ transform:none; }
}


/* ============================
   PAGE-SPECIFIC LAYOUT FIXES
   Move from index.html into CSS
   ============================ */

/* Prevent logo distortion */
.brand-logo{
  height:auto;
  object-fit:contain;
  flex:0 0 auto;
}

/* Two-column hero for index page */
.hero-inner{
  display:flex;
  gap:24px;
  align-items:flex-start;
}
.hero-main{
  flex: 1 1 0;
  min-width: 0;
}
.hero-card{
  flex: 0 0 360px;
  min-width: 320px;
}

/* Keep Beverly photo compact */
.bio-photo img{
  width:92px;
  height:92px;
  object-fit:cover;
  border-radius:999px;
  display:block;
}

/* Responsive stacking */
@media (max-width: 900px){
  .hero-inner{ display:block; }
  .hero-card{ margin-top: 18px; width:100%; }
}

/* Footer layout (if you are using footer-inner/footer-col on this page) */
.footer-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 18px 14px;
  display:flex;
  gap: 28px;
  justify-content: space-between;
  align-items:flex-start;
}

.footer-col{
  flex: 1 1 0;
  min-width: 220px;
}
.footer-col.middle{ flex: 0 0 260px; }
.footer-col.right{ flex: 0 0 320px; }

.footer-col h4{ margin:0 0 10px; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 12px 18px 14px;
  text-align:center;
  font-size: 0.95rem;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
}
.footer-links li{ margin: 8px 0; }

.address-block{
  margin-top: 8px;
  line-height: 1.5;
}

@media (max-width: 900px){
  .footer-inner{ display:block; }
  .footer-col{ margin-bottom: 18px; }
  .footer-col.middle,
  .footer-col.right{ width:100%; }
}


/* Feature image under H1 on the home page */
.feature-image-wrap{
  margin: 14px 0 16px;
}


.feature-image{
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  margin: 0; /* left aligned */
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===== About Beverly card (Home) ===== */
.hero-right{
  display:flex;
  flex-direction:column;
  gap: 1rem;
}

.about-card .about-grid{
  display:grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items:center;
}

.about-card .about-photo{
  display:flex;
  justify-content:center;
}

.about-card .round-photo{
  width:160px;
  height:160px;
  object-fit:cover;
  border-radius:50%;
  border:6px solid rgba(199, 159, 79, 0.95);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.about-card .mt0{ margin-top:0; }
 
@media (max-width: 980px){
  .hero-right{ gap: 0.9rem; }
}

@media (max-width: 720px){
  .about-card .about-grid{ grid-template-columns: 1fr; }
  .about-card .about-photo{ justify-content:flex-start; }
}


/* ===== DBHT Home additions ===== */
.hero-cover{
  margin: 1rem 0 0.2rem;
}

.hero-cover-img{
  width: 100%;
  height: auto;
  display: block;
  max-width: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-pathway{
  margin-top: 1.4rem;
}

.h2-tight{
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
}

/* 3-column program grid used on Home */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px){
  .grid-3{
    grid-template-columns: 1fr;
  }
}

/* ============================
   SCHEDULE TABLE (schedule.html)
   ============================ */

.schedule-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.schedule-table thead th{
  text-align: left;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface2);
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.schedule-table tbody td{
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.schedule-table tbody tr:last-child td{
  border-bottom: none;
}

/* Light row separation without harsh striping */
.schedule-table tbody tr:nth-child(even) td{
  background: rgba(15, 23, 42, 0.02);
}

/* Keep the "Time" column from wrapping oddly */
.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3){
  white-space: nowrap;
}

/* Mobile: make it horizontally scrollable instead of breaking layout */
@media (max-width: 720px){
  .schedule-table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table tr{
    width: 100%;
  }
}



