@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap");

:root {
  --brand: #1877be;
  --brand-dark: #0f4f7c;
  --text: #1b1f24;
  --muted: #5b6773;
  --bg: #ffffff;
  --panel: #f6f8fb;
  --border: #e6e9ee;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}
/* Square logo box */
.brand__logo{
  width:45px;
  height:45px;
  display:block;
  object-fit:contain;
  border-radius:10px;
  background:#ffffff;
  padding:2px;
  box-shadow:0 1px 2px rgba(0,0,0,.10);
}

/* Text next to logo */
.brand__name{
  font-weight:700;
  line-height:1.1;
  font-size:16px;
}

.brand__meta{
  font-size:12px;
  line-height:1.2;
  opacity:.85;
  margin-top:2px;
}

.nav-toggle { display:none; }
.nav-toggle__btn {
  display:none;
  margin-left:auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.nav-toggle__btn span {
  display:block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  border-radius: 2px;
}

.site-nav {
  margin-left:auto;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
}
.site-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}
.site-nav a:hover {
  background: var(--panel);
  text-decoration:none;
}

.site-nav a.active,
.site-nav a[aria-current="page"]{
  background: var(--panel);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
}

/* ── Legal & Policies dropdown ─────────────────────────────── */

.dd-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dd-wrap button.nav-dd {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dd-wrap button.nav-dd:hover,
.dd-wrap.open button.nav-dd {
  background: var(--panel);
  text-decoration: none;
}
.dd-wrap button.nav-dd svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.dd-wrap.open button.nav-dd svg {
  transform: rotate(180deg);
}

.dd-wrap .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  box-shadow: var(--shadow);
}
.dd-wrap.open .dropdown {
  display: flex;
}

.dd-head {
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.dd-head h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.dd-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.1s, border-color 0.1s;
  cursor: pointer;
  color: var(--text);
}
.dd-item:hover {
  background: var(--panel);
  border-color: var(--border);
  text-decoration: none;
}

.dd-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.dd-icon.teal  { background: #E1F5EE; }
.dd-icon.blue  { background: #E6F1FB; }
.dd-icon.amber { background: #FAEEDA; }
.dd-icon.coral { background: #FAECE7; }
.dd-icon.green { background: #EAF3DE; }

.dd-item h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1px;
}
.dd-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.dd-footer {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}
.dd-footer a {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  transition: color 0.1s;
}
.dd-footer a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Mobile: flatten dropdown into stacked links ────────────── */
@media (max-width: 760px) {
  .dd-wrap {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
  .dd-wrap button.nav-dd {
    width: 100%;
    justify-content: space-between;
    padding: 8px 10px;
  }
  .dd-wrap .dropdown {
    position: static;
    transform: none;
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0 0 0 12px;
    box-shadow: none;
    background: transparent;
    border-left: 2px solid var(--border);
    margin-top: 4px;
    gap: 0;
  }
  .dd-wrap.open .dropdown {
    display: flex;
  }
  .dd-head { display: none; }
  .dd-footer { display: none; }
  .dd-item {
    padding: 6px 8px;
    border-radius: 8px;
    gap: 8px;
  }
  .dd-icon { display: none; }
  .dd-item h5 { font-size: 14px; }
  .dd-item p  { display: none; }
}

/* ── End dropdown ─────────────────────────────────────────── */

.hero {
  background: url("assets/img/banner/BHRVP_header_wide_1920x628.jpg") center/cover no-repeat;
  min-height: 420px;
  position: relative;
}
.hero__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.20));
  min-height: 420px;
  position: relative;
}
.hero__content {
  position: absolute;
  top: 10%;
  left: 15%;
  right: 5%;
  max-width: 60ch;
  color: #fff;
}
.hero h1 {
  margin:0 0 10px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: .2px;
}
.hero p {
  margin:0 0 18px;
  color: rgba(255,255,255,.92);
  max-width: 58ch;
}

.btn {
  display:inline-block;
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover { text-decoration:none; background: rgba(255,255,255,.10); }
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
}
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.page-hero {
  background: url("assets/img/banner/BHRVP_header_wide_1920x628.jpg") center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.page-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 16px;
}
.page-hero h1 {
  margin:0 0 6px;
  font-size: 26px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.page-hero p {
  margin:0;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 16px 44px;
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--text);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  overflow:hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.07);
}
.feature img {
  width:100%;
  height: 180px;
  object-fit: cover;
  display:block;
}
.feature .feature-body {
  padding: 12px 14px 14px;
}
.feature .feature-title {
  font-weight: 700;
  margin: 0 0 6px;
}
.muted { color: var(--muted); }

.gallery {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.gallery img {
  width:100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.embed-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.07);
}
.embed-wrap iframe {
  width:100%;
  height: 920px;
  border:0;
  display:block;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #0b1220;
  color: rgba(255,255,255,.88);
}
.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px;
  display:flex;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-title { font-weight: 700; margin-bottom: 6px; color:#fff; }
.footer-line { font-size: 13px; margin: 2px 0; }
.site-footer a { color: rgba(255,255,255,.92); }
.footer-small { font-size: 12px; color: rgba(255,255,255,.70); }

@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-toggle__btn { display:flex; }
  .hero__content {
    top: 8%;
    left: 8%;
    right: 8%;
  }
  .site-nav {
    display:none;
    width:100%;
    flex-direction: column;
    align-items:flex-start;
    gap: 6px;
    padding: 10px 0 6px;
  }
  .site-nav a { width:100%; }
  .nav-toggle:checked ~ .site-nav { display:flex; }
  .brand__meta { display:none; }
  .gallery { grid-template-columns: 1fr; }
  .embed-wrap iframe { height: 980px; }
}
