/* HDBA — public site design system
   Palette: Indigo Ink #1B2A4A, Oxblood #6B1E2B, Brass #B08D3E,
            Sandstone #EFE7D8, Charcoal #26241F, Paper #FBF8F2 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: #26241F;
  background: #EFE7D8;
  line-height: 1.55;
}
h1, h2, h3, .display {
  font-family: 'Lora', serif;
  color: #1B2A4A;
  line-height: 1.2;
  margin: 0 0 .6rem;
}
a { color: #6B1E2B; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 720px; }

/* ---- Top bar + nav ---- */
header.site-head {
  background: #1B2A4A;
  color: #e9e6dc;
}
.head-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.brand .seal {
  width: 48px; height: 48px; border-radius: 50%;
  flex-shrink: 0; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(176,141,62,.6);
}
.brand .name { font-family: 'Lora', serif; font-size: 1.05rem; line-height: 1.25; }
.brand .name small { display: block; font-family: 'Source Sans 3', sans-serif; font-size: .7rem; color: #b7bccb; font-weight: 400; }

nav.main-nav { display: flex; align-items: center; gap: 1.5rem; }
nav.main-nav a { color: #cfd3de; text-decoration: none; font-size: .9rem; white-space: nowrap; }
nav.main-nav a:hover { color: #fff; }
nav.main-nav a.nav-login {
  color: #1B2A4A; background: #B08D3E; padding: .45rem 1rem;
  font-weight: 600; font-size: .85rem; margin-left: .3rem;
}
nav.main-nav a.nav-login:hover { background: #c9a559; }

/* Grouped menus (About / Updates) so the bar fits on one line */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: .3rem; }
.nav-dropdown-toggle .caret { font-size: .6rem; transition: transform .15s ease; display: inline-block; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: -1rem; margin-top: .9rem;
  background: #1B2A4A; border: 1px solid rgba(176,141,62,.4);
  min-width: 195px; padding: .4rem 0; box-shadow: 0 14px 28px rgba(0,0,0,.3); z-index: 50;
}
.nav-dropdown-menu a { display: block; padding: .6rem 1.1rem; font-size: .87rem; }
.nav-dropdown-menu a:hover { background: #26385f; color: #fff; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown:hover .nav-dropdown-toggle .caret,
.nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }

/* Mobile hamburger */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: #e9e6dc; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #1B2A4A; border-top: 1px solid rgba(176,141,62,.4);
    padding: .5rem 0 1rem;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: .7rem 1.5rem; }
  nav.main-nav a.nav-login { margin: .6rem 1.5rem 0; text-align: center; }
  .nav-dropdown-menu { position: static; margin: 0; border: none; box-shadow: none; background: #16223c; padding-left: .5rem; }
  .head-inner { position: relative; }
}

/* thin brass divider used between minor sections */
.divider { border: none; border-top: 1px solid rgba(176,141,62,.4); margin: 0; }

/* Ajrak-inspired geometric trellis band — a nod to Sindh's block-print
   tradition, built from our own palette rather than a literal textile scan. */
.ajrak-band {
  border: none; margin: 0; height: 10px;
  background-color: #6B1E2B;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(239,231,216,.35) 7px 8px),
    repeating-linear-gradient(-45deg, transparent 0 7px, rgba(239,231,216,.35) 7px 8px),
    radial-gradient(circle at 10px 5px, #B08D3E 2.2px, transparent 2.6px);
  background-size: 20px 20px, 20px 20px, 20px 10px;
}
.ajrak-band-lg {
  border: none; margin: 0; height: 34px;
  background-color: #6B1E2B;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 13px, rgba(239,231,216,.3) 13px 15px),
    repeating-linear-gradient(-45deg, transparent 0 13px, rgba(239,231,216,.3) 13px 15px),
    radial-gradient(circle at 18px 17px, #B08D3E 5px, transparent 5.6px),
    radial-gradient(circle at 18px 17px, #1B2A4A 2px, transparent 2.4px);
  background-size: 36px 36px, 36px 36px, 36px 34px, 36px 34px;
}

/* ---- Hero ---- */
.hero { background: #1B2A4A; color: #e9e6dc; padding: 4.5rem 0 5rem; position: relative; overflow: hidden; }
.hero.hero-pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(176,141,62,.07) 22px 24px),
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(176,141,62,.07) 22px 24px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-block; color: #e9c98a; font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem;
  border: 1px solid rgba(176,141,62,.5); padding: .3rem .8rem;
}
.hero h1 { color: #fff; font-size: 2.5rem; max-width: 640px; }
.hero p.lead { color: #c7cbda; max-width: 560px; font-size: 1.05rem; }
.hero .cta { display: inline-flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---- Hero grid: copy on the left, rotating leadership spotlight on the right ---- */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-spotlight {
  background: rgba(251,248,242,.06); border: 1px solid rgba(176,141,62,.4);
  padding: 1.6rem 1.6rem 1.4rem; backdrop-filter: blur(2px);
}
.spotlight-tag {
  color: #e9c98a; font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 1rem;
}
.spotlight-stage { position: relative; min-height: 340px; }
.spotlight-slide {
  position: absolute; inset: 0; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}
.spotlight-slide.is-active {
  position: relative; opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}
.spotlight-photo {
  width: 160px; height: 190px; border-radius: 12px; object-fit: cover; margin: 0 auto 1rem;
  box-shadow: 0 0 0 3px rgba(176,141,62,.6), 0 14px 26px rgba(0,0,0,.4);
}
.spotlight-initials {
  display: flex; align-items: center; justify-content: center;
  background: #26385f; color: #e9c98a; font-family: 'Lora', serif; font-size: 2.4rem; font-weight: 700;
}
.spotlight-name { color: #fff; font-family: 'Lora', serif; font-size: 1.1rem; }
.spotlight-role { color: #e9c98a; font-size: .8rem; margin: .15rem 0 .8rem; }
.spotlight-quote { color: #c7cbda; font-size: .87rem; font-style: italic; max-width: 320px; margin: 0 auto; }
.spotlight-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1.1rem; }
.spotlight-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(176,141,62,.4); transition: background .3s ease; }
.spotlight-dots .dot.is-active { background: #B08D3E; }
.spotlight-link {
  display: block; text-align: center; margin-top: 1.2rem; color: #e9c98a;
  font-size: .82rem; text-decoration: none; border-top: 1px solid rgba(176,141,62,.3); padding-top: 1rem;
}
.spotlight-link:hover { color: #fff; }

/* ---- Leadership messages carousel (home page) ---- */
.leaders-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: 1.4rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x proximity;
}
.leaders-track .leader-card {
  scroll-snap-align: start; background: #FBF8F2; border: 1px solid #e3ddcd; border-top: 3px solid #B08D3E;
  padding: 1.6rem 1.4rem; text-align: center;
}
.leader-photo {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem;
  box-shadow: 0 0 0 3px rgba(176,141,62,.3);
}
.leader-photo.spotlight-initials { color: #6B1E2B; background: #e8dcc8; box-shadow: none; font-size: 1.3rem; }
.leaders-track h3 { font-size: 1rem; margin-bottom: 0; }
.leaders-track .role { color: #6B1E2B; font-size: .82rem; margin-bottom: .6rem; }
.leader-msg { font-size: .87rem; color: #52504a; min-height: 3.4em; }
.leader-link { font-size: .82rem; text-decoration: none; }
.btn { display: inline-block; background: #6B1E2B; color: #fff; padding: .7rem 1.4rem; text-decoration: none; font-size: .92rem; }
.btn:hover { background: #551824; }
.btn-ghost { background: transparent; border: 1px solid #B08D3E; color: #e9e6dc; }
.btn-ghost:hover { background: rgba(176,141,62,.15); }

/* ---- Stats strip ---- */
.stats-strip { background: #FBF8F2; border-bottom: 1px solid #e3ddcd; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 2rem 0; }
.stats-grid .stat { padding: .6rem 1rem; border-left: 1px solid #e3ddcd; }
.stats-grid .stat:first-child { border-left: none; }
.stats-grid .num { font-family: 'Lora', serif; font-size: 2rem; color: #6B1E2B; font-weight: 700; line-height: 1; }
.stats-grid .label { font-size: .8rem; color: #6b6a63; margin-top: .4rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0; } .stats-grid .stat:nth-child(3) { border-left: none; } }

/* ---- Quick access cards ---- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .grid-4 { grid-template-columns: 1fr; } }
.qcard {
  display: block; background: #FBF8F2; border: 1px solid #e3ddcd; border-top: 3px solid #B08D3E;
  padding: 1.6rem 1.4rem; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease;
}
.qcard:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(27,42,74,.12); }
.qcard .qicon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(107,30,43,.08); color: #6B1E2B; margin-bottom: 1rem; }
.qcard .qicon svg { width: 24px; height: 24px; }
.qcard h3 { font-size: 1rem; margin-bottom: .3rem; }
.qcard p { margin: 0; font-size: .85rem; color: #6b6a63; }

/* ---- Sections ---- */
section { padding: 3.2rem 0; }
section.alt { background: #FBF8F2; }
section.quick-links { background: #EFE7D8; }
.section-head { margin-bottom: 1.8rem; }
.section-head .kicker { color: #6B1E2B; font-size: .85rem; margin-bottom: .3rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.item { padding: 1.4rem 0; border-bottom: 1px solid #ddd4bd; }
.item:last-child { border-bottom: none; }
.item .date { color: #6B1E2B; font-size: .8rem; }
.item h3 { font-size: 1.1rem; margin: .2rem 0 .3rem; }
.item p { margin: 0; color: #52504a; font-size: .93rem; }

.bearer-card { text-align: left; }
.bearer-card .photo { width: 100%; aspect-ratio: 1; background: #d8d2c2; margin-bottom: .8rem; object-fit: cover; }
.bearer-card h3 { font-size: 1rem; margin-bottom: 0; }
.bearer-card .role { color: #6B1E2B; font-size: .85rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gallery-grid img { width: 100%; height: 150px; object-fit: cover; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Footer ---- */
footer.site-foot { background: #1B2A4A; color: #b7bccb; padding: 2.5rem 0; font-size: .87rem; }
footer.site-foot a { color: #cfd3de; }
footer.site-foot .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }

.breadcrumb { font-size: .85rem; color: #6b6a63; margin-bottom: .5rem; }
