/* VisitBHV v5.4 density + responsive tuning */
:root {
  --vbhv-page-max: 1180px;
  --vbhv-readable-max: 880px;
  --vbhv-tight-section: clamp(3.25rem, 6vw, 5.5rem);
}

html, body { overflow-x: clip; }
body { text-rendering: optimizeLegibility; }

/* Stop the site from feeling like it is floating in oversized blank space. */
.hero {
  min-height: clamp(620px, 82vh, 760px) !important;
}
.hero-copy {
  padding-top: clamp(2.5rem, 7vh, 4.5rem) !important;
}
.hero h1 {
  max-width: 650px;
  font-size: clamp(4rem, 6.4vw, 7rem) !important;
}
.hero-lead {
  margin-top: 1rem !important;
  line-height: 1.62 !important;
}
.hero-actions { margin-top: 1.35rem !important; }

.section,
.visitbhv-page-section,
.vbhv-student-hero,
.vbhv-student-faq,
.vbhv-student-source-index,
.visitbhv-finder,
.visitbhv-resources,
.vbhv-planner {
  padding-top: var(--vbhv-tight-section) !important;
  padding-bottom: var(--vbhv-tight-section) !important;
}

.visitbhv-page-hero,
.vbhv-student-hero {
  padding-top: clamp(4.5rem, 9vw, 7rem) !important;
  padding-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

.vbhv-student-note,
.vbhv-student-nav,
.vbhv-student-start,
.vbhv-student-sections,
.vbhv-student-faq,
.vbhv-student-source-index,
.vbhv-planner,
.visitbhv-finder,
.visitbhv-resources {
  width: min(100% - 2rem, var(--vbhv-page-max)) !important;
}

.vbhv-student-card,
.vbhv-student-start,
.vbhv-student-note > div,
.vbhv-planner-builder,
.vbhv-planner-plan,
.vbhv-planner-attraction,
.visitbhv-resource-card {
  border-radius: 20px !important;
}

/* Student Life: more editorial, less bulky. */
.vbhv-student-start {
  margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
  padding: clamp(1.35rem, 3vw, 2.25rem) !important;
}
.vbhv-student-start h2 {
  font-size: clamp(2.65rem, 5.1vw, 4.65rem) !important;
}
.vbhv-student-sections { gap: 1rem !important; }
.vbhv-student-card {
  padding: clamp(1.2rem, 2.4vw, 1.85rem) !important;
}
.vbhv-student-card h2 {
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
}
.vbhv-student-intro,
.vbhv-student-plain p,
.vbhv-student-columns li {
  line-height: 1.55 !important;
}
.vbhv-student-columns { margin: .9rem 0 !important; }
.vbhv-student-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin: 1rem 0;
}
.vbhv-student-fact {
  padding: .85rem;
  border-radius: 16px;
  background: rgba(42,127,127,.08);
}
.vbhv-student-fact strong {
  display: block;
  color: #2a7f7f;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.vbhv-student-fact span {
  color: #0d1b2a;
  font-weight: 850;
}

/* Planner: make cards readable and less cramped on desktop. */
.vbhv-planner-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
}
.vbhv-planner-builder,
.vbhv-planner-plan { padding: clamp(1rem, 2vw, 1.35rem) !important; }
.vbhv-planner-attractions {
  grid-template-columns: repeat(2, minmax(250px, 1fr)) !important;
  gap: .8rem !important;
}
.vbhv-planner-attraction {
  min-height: auto !important;
  padding: .85rem !important;
}
.vbhv-planner-attraction strong,
.vbhv-planner-attraction span,
.vbhv-planner-attraction small,
.vbhv-planner-attraction p {
  word-break: normal !important;
  overflow-wrap: anywhere;
}

/* Language assist bar */
.vbhv-language-assist {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 9998;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 760px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .9rem .8rem 1rem;
  border-radius: 999px;
  background: rgba(13,27,42,.94);
  color: #fff;
  box-shadow: 0 18px 45px rgba(13,27,42,.18);
  backdrop-filter: blur(10px);
}
.vbhv-language-assist[hidden] { display: none !important; }
.vbhv-language-assist p { margin: 0; font-size: .88rem; line-height: 1.3; }
.vbhv-language-assist button {
  border: 0;
  border-radius: 999px;
  background: #2a7f7f;
  color: #fff;
  font-weight: 850;
  padding: .65rem .9rem;
  cursor: pointer;
}
.vbhv-language-assist .vbhv-lang-dismiss { background: rgba(255,255,255,.14); }

@media (min-width: 1300px) {
  .container,
  .site-container,
  .wrap,
  .vbhv-student-note,
  .vbhv-student-nav,
  .vbhv-student-start,
  .vbhv-student-sections,
  .vbhv-student-faq,
  .vbhv-student-source-index,
  .vbhv-planner { max-width: 1180px !important; }
}

@media (max-width: 1024px) {
  .hero { min-height: clamp(540px, 74vh, 690px) !important; }
  .hero h1 { font-size: clamp(3.3rem, 9vw, 5.8rem) !important; }
  .vbhv-planner-layout,
  .vbhv-student-start,
  .vbhv-student-columns,
  .vbhv-student-faq__grid,
  .vbhv-student-source-index__grid { grid-template-columns: 1fr !important; }
  .vbhv-planner-plan { position: static !important; }
  .vbhv-student-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --vbhv-tight-section: clamp(2.25rem, 9vw, 3.5rem); }
  .hero {
    min-height: auto !important;
    padding: 7rem 0 3.5rem !important;
  }
  .hero-copy { padding-top: 0 !important; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem) !important; line-height: .94 !important; }
  .hero-lead { font-size: .98rem !important; line-height: 1.55 !important; }
  .hero-actions { gap: .55rem !important; }
  .hero-actions .btn, .hero-actions a { min-height: 42px !important; padding-inline: .9rem !important; }
  .vbhv-student-note,
  .vbhv-student-card,
  .vbhv-student-columns,
  .vbhv-student-facts,
  .vbhv-planner-attractions,
  .vbhv-planner-rail-grid { grid-template-columns: 1fr !important; }
  .vbhv-student-card { gap: .8rem !important; }
  .vbhv-student-card__number { width: 48px !important; height: 48px !important; }
  .vbhv-language-assist { border-radius: 22px; align-items: flex-start; flex-direction: column; }
  .vbhv-language-assist div { display: flex; gap: .5rem; width: 100%; }
  .vbhv-language-assist button { flex: 1; }
}
