
/* Block-theme layout additions. */
.wp-site-blocks { overflow-x: clip; }
.vrbc-block-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 78px;
  overflow: visible;
  background: var(--vrbc-blue-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.admin-bar .vrbc-block-header { top: 32px; }
.vrbc-block-header-inner {
  position: relative;
  min-height: 78px;
  padding: 0 0 0 198px;
  gap: 30px;
  overflow: visible;
}

/* Desktop logo overhang: the logo is removed from the row flow and allowed
 * to extend below the dark navigation bar, matching the original theme. */
.vrbc-block-header .wp-block-site-logo,
.vrbc-block-header .wp-block-site-logo.vrbc-block-logo {
  position: absolute;
  top: 20px;
  left: 0;
  z-index: 110;
  width: 178px;
  margin: 0;
  flex: 0 0 auto;
}
.vrbc-block-header .wp-block-site-logo a {
  display: block;
}
.vrbc-block-header .wp-block-site-logo img {
  display: block;
  width: 178px !important;
  height: auto !important;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.24));
}
.vrbc-block-header .wp-block-navigation { flex: 1 1 auto; justify-content: center; }
.vrbc-block-header .wp-block-navigation-item__content,
.vrbc-block-header .wp-block-navigation-submenu__toggle {
  color: #fff;
  font-family: var(--vrbc-font-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.vrbc-block-header .wp-block-navigation__submenu-container {
  background: var(--vrbc-blue-dark) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.15) !important;
}
.vrbc-block-header .wp-block-button__link { white-space: nowrap; }

.vrbc-block-hero {
  min-height: 560px;
  align-items: center;
}
.vrbc-block-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(255,255,255,.35) 0%, rgba(6,46,99,.2) 50%, rgba(0,0,0,.28) 100%) !important;
  opacity: 1 !important;
}
.vrbc-block-hero-content { padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }
.vrbc-block-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--vrbc-blue);
  font-family: var(--vrbc-heading);
  font-size: var(--vrbc-text-hero);
  line-height: .92;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.vrbc-block-hero .vrbc-block-hero-text {
  max-width: 540px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,.62);
}
.vrbc-block-underline { width: 64px; height: 4px; margin: 16px 0 22px; background: var(--vrbc-green-bright); }

.vrbc-block-about { padding: clamp(54px, 7vw, 90px) 0; }
.vrbc-block-about .wp-block-heading,
.vrbc-block-partners .wp-block-heading { text-transform: uppercase; }
.vrbc-block-feature-grid { margin-top: clamp(36px, 6vw, 70px); }
.vrbc-block-feature-card {
  height: 100%;
  padding: 24px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6,46,99,.09);
  text-align: center;
}
.vrbc-block-feature-card .wp-block-heading { margin: 10px 0 6px; font-size: 1.45rem; }
.vrbc-block-feature-icon { font-size: 2.35rem; line-height: 1; }

.vrbc-block-prizes {
  position: relative;
  min-height: 390px;
}
.vrbc-block-prizes .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(6,46,99,.95) 0%, rgba(6,46,99,.88) 62%, rgba(6,46,99,.28) 100%) !important;
  opacity: 1 !important;
}
.vrbc-block-prizes .wp-block-heading { color: #fff; text-transform: uppercase; }
.vrbc-block-prize-columns { color: #fff; }
.vrbc-block-prize-card { padding-right: clamp(8px, 2vw, 30px); }
.vrbc-block-prize-card strong { font-family: var(--vrbc-heading); font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; }
.vrbc-block-prize-boat img { width: 100%; min-height: 290px; object-fit: cover; border-radius: 12px; }

.vrbc-block-partners { padding: clamp(48px, 7vw, 90px) 0; background: #fff; }
.vrbc-block-partner-gallery {
  margin-top: 38px !important;
  gap: clamp(22px, 4vw, 58px) !important;
  align-items: center;
}
.vrbc-block-partner-gallery .wp-block-image {
  min-height: 110px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid #e7ebef;
  border-radius: 12px;
  background: #fff;
}
.vrbc-block-partner-gallery img { max-height: 82px !important; width: auto !important; object-fit: contain !important; }

.vrbc-block-footer {
  background: var(--vrbc-blue-dark);
  color: #fff;
  font-size: .92rem;
}
.vrbc-block-footer-main { padding: 56px 0 48px; }
.vrbc-block-footer .wp-block-heading { color: #fff; text-transform: uppercase; font-size: 1.25rem; }
.vrbc-block-footer a { color: #fff; }
.vrbc-block-footer .wp-block-site-logo img { max-width: 150px; height: auto; }
.vrbc-block-footer .wp-block-navigation { align-items: flex-start; }
.vrbc-block-footer .wp-block-navigation-item__content { color: #fff; }
.vrbc-block-footer-facebook { margin-top: 24px; }
.vrbc-block-footer-bar { min-height: 38px; background: var(--vrbc-green); }

.vrbc-block-page-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  padding-top: clamp(70px, 9vw, 112px);
  padding-bottom: clamp(64px, 8vw, 96px);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(6,46,99,.93), rgba(6,46,99,.52)),
    url("../images/hero-river.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.vrbc-block-page-hero .wp-block-post-title {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
}
.vrbc-block-page-hero .vrbc-kicker { color: var(--vrbc-green-bright); }
.vrbc-block-page-hero .vrbc-block-underline {
  width: 64px;
  height: 4px;
  margin: 16px 0 22px;
  border: 0;
  background: var(--vrbc-green-bright);
  opacity: 1;
}
.vrbc-block-page-shell { padding: 0 0 80px; background: var(--vrbc-soft); }
.vrbc-block-page-card {
  position: relative;
  z-index: 2;
  margin-top: -42px !important;
  padding: clamp(28px, 5vw, 70px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(6,46,99,.14);
}

@media (max-width: 1120px) and (min-width: 901px) {
  .vrbc-block-header-inner { padding-left: 164px; gap: 20px; }
  .vrbc-block-header .wp-block-site-logo,
  .vrbc-block-header .wp-block-site-logo.vrbc-block-logo {
    top: 16px;
    width: 148px;
  }
  .vrbc-block-header .wp-block-site-logo img { width: 148px !important; }
}

@media (max-width: 900px) {
  .vrbc-block-header { min-height: 76px; }
  .vrbc-block-header-inner {
    min-height: 76px;
    padding: 8px 16px;
    flex-wrap: wrap !important;
  }
  .vrbc-block-header .wp-block-site-logo,
  .vrbc-block-header .wp-block-site-logo.vrbc-block-logo {
    position: relative;
    top: auto;
    left: auto;
    width: 118px;
  }
  .vrbc-block-header .wp-block-site-logo img { width: 118px !important; }
  .vrbc-block-header .wp-block-navigation { order: 3; width: 100%; justify-content: flex-end; }
  .vrbc-block-prizes .wp-block-columns { flex-wrap: wrap !important; }
  .vrbc-block-prizes .wp-block-column { flex-basis: 100% !important; }
}
@media (max-width: 782px) {
  .admin-bar .vrbc-block-header { top: 46px; }
}
@media (max-width: 600px) {
  .vrbc-block-header-inner { padding-left: 10px; padding-right: 10px; }
  .vrbc-block-header .wp-block-site-logo,
  .vrbc-block-header .wp-block-site-logo.vrbc-block-logo { width: 96px; }
  .vrbc-block-header .wp-block-site-logo img { width: 96px !important; }
  .vrbc-block-header .wp-block-buttons { display: none; }
  .vrbc-block-hero { min-height: 500px; }
  .vrbc-block-partner-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .vrbc-block-page-card { margin-left: 16px !important; margin-right: 16px !important; }
}

/* ==========================================================
 * 3.0.4 — Original designer home-page alignment
 * ========================================================== */

:root {
  /* The supplied design identifies Incised 901 BT as the accent face.
   * It is a commercial/system font, so Bebas Neue is the web-safe
   * fallback until a licensed webfont is installed. */
  --vrbc-font-accent: "Incised 901 BT", "Bebas Neue", "Arial Narrow", sans-serif;
}

/* Remove the global block gap only where the header meets the page hero. */
.wp-site-blocks > .wp-block-template-part:first-child + main,
.wp-site-blocks > header + main {
  margin-block-start: 0 !important;
}

/* Restore the original left-aligned hero composition. */
.vrbc-block-hero {
  min-height: 520px;
  margin-block-start: 0 !important;
  background-position: center right;
}

.vrbc-block-hero .wp-block-cover__inner-container {
  width: 100%;
}

.vrbc-block-hero .wp-block-cover__background {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.38) 0%,
      rgba(255,255,255,.25) 36%,
      rgba(0,0,0,.10) 100%
    ) !important;
  opacity: 1 !important;
}

.vrbc-block-hero-content {
  width: min(var(--vrbc-max), calc(100% - 100px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 120px 0 90px 76px !important;
  text-align: left !important;
}

/* A constrained Group makes each child centre itself. These overrides keep
 * the kicker, heading, underline, paragraph and button on one left edge,
 * matching the supplied designer layout. */
.vrbc-block-hero-content > * {
  width: auto;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.vrbc-block-hero-content .wp-block-buttons {
  justify-content: flex-start !important;
}

.vrbc-block-hero h1,
.vrbc-block-hero h1.wp-block-heading {
  max-width: 800px;
  font-family: var(--vrbc-heading) !important;
  font-size: clamp(52px, 6.7vw, 88px) !important;
  font-weight: 400;
  line-height: .95;
  letter-spacing: .045em;
  text-align: left !important;
}

.vrbc-block-hero .vrbc-kicker {
  max-width: 360px;
  font-family: var(--vrbc-heading) !important;
  font-size: clamp(16px, 2vw, 22px) !important;
  text-align: left !important;
}

.vrbc-block-hero .vrbc-block-hero-text {
  max-width: 360px;
  margin: 0 0 20px !important;
  font-family: var(--vrbc-body) !important;
  font-size: clamp(.9rem, .86rem + .14vw, 1rem) !important;
  line-height: 1.35;
  text-align: left !important;
}

.vrbc-block-hero .vrbc-block-underline {
  width: 32px;
  margin: 14px 0 18px !important;
  background: var(--vrbc-green) !important;
}

/* Use the darker logo green rather than the previous bright green. */
.wp-element-button,
.wp-block-button__link,
.vrbc-block-header .wp-block-button__link,
.vrbc-block-hero .wp-block-button__link,
.vrbc-block-prizes .wp-block-button__link {
  background-color: var(--vrbc-green) !important;
  font-family: var(--vrbc-font-accent) !important;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  background-color: #005f36 !important;
}

/* Navigation and buttons use the design's Incised-style accent.
 * Bebas Neue displays when Incised 901 BT is not installed or hosted. */
.vrbc-block-header .wp-block-navigation-item__content,
.vrbc-block-header .wp-block-navigation-submenu__toggle,
.vrbc-block-header .wp-block-button__link {
  font-family: var(--vrbc-font-accent) !important;
  font-size: clamp(1rem, .94rem + .16vw, 1.125rem);
  font-weight: 400;
  letter-spacing: .045em;
}

/* Match the original footer typography:
 * - headings: Bebas Neue
 * - menu links and information: Arial */
.vrbc-block-footer {
  font-family: var(--vrbc-body) !important;
  font-size: 14px;
}

/*
 * Footer headings use 18px by default, but only when the editor has not
 * assigned a WordPress font-size preset. The earlier 18px !important rule
 * prevented the S, M, L and XL controls from changing the block.
 */
.vrbc-block-footer .wp-block-heading:not(.has-small-font-size):not(.has-medium-font-size):not(.has-large-font-size):not(.has-x-large-font-size):not(.has-xx-large-font-size) {
  font-family: var(--vrbc-heading) !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
}

.vrbc-block-footer .wp-block-heading {
  font-family: var(--vrbc-heading) !important;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
}

/* Make the WordPress S/M/L/XL preset controls deterministic on both the
 * public page and inside the Site Editor iframe. */
.vrbc-block-footer .wp-block-heading.has-small-font-size {
  font-size: var(--wp--preset--font-size--small) !important;
}

.vrbc-block-footer .wp-block-heading.has-medium-font-size {
  font-size: var(--wp--preset--font-size--medium) !important;
}

.vrbc-block-footer .wp-block-heading.has-large-font-size {
  font-size: var(--wp--preset--font-size--large) !important;
}

.vrbc-block-footer .wp-block-heading.has-x-large-font-size {
  font-size: var(--wp--preset--font-size--x-large) !important;
}

.vrbc-block-footer .wp-block-heading.has-xx-large-font-size {
  font-size: var(--wp--preset--font-size--xx-large) !important;
}

.vrbc-block-footer p,
.vrbc-block-footer li,
.vrbc-block-footer .wp-block-navigation,
.vrbc-block-footer .wp-block-navigation-item,
.vrbc-block-footer .wp-block-navigation-item__content,
.vrbc-block-footer .wp-block-page-list,
.vrbc-block-footer .wp-block-pages-list__item,
.vrbc-block-footer .wp-block-pages-list__item__link {
  font-family: var(--vrbc-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.vrbc-block-footer .wp-block-navigation {
  gap: 0 !important;
}

@media (max-width: 900px) {
  .vrbc-block-hero-content {
    width: min(100% - 28px, var(--vrbc-max)) !important;
    padding: 72px 0 72px !important;
  }

  .vrbc-block-hero h1,
  .vrbc-block-hero h1.wp-block-heading {
    font-size: clamp(42px, 14vw, 62px) !important;
  }
}

@media (max-width: 600px) {
  .vrbc-block-hero .vrbc-block-hero-text {
    max-width: 300px;
  }
}

/* Site Editor canvas parity. */
.editor-styles-wrapper .vrbc-block-footer {
  background: var(--vrbc-blue-dark) !important;
  color: #fff !important;
}

.editor-styles-wrapper .vrbc-block-footer .wp-block-heading,
.editor-styles-wrapper .vrbc-block-footer a,
.editor-styles-wrapper .vrbc-block-footer p,
.editor-styles-wrapper .vrbc-block-footer li {
  color: #fff !important;
}

/* ==========================================================
 * 3.0.8 — Cumulative inner-page hero alignment correction
 * ========================================================== */

/*
 * The 3.0.7 footer/editor package was based on an earlier theme build and
 * restored the old flex + constrained inner-page hero. These final rules
 * deliberately come after all earlier hero declarations.
 */
.wp-site-blocks .vrbc-block-page-hero {
  display: block !important;
  min-height: 310px;
  padding: 0 !important;
}

/*
 * Supports:
 * 1. the corrected pattern using .vrbc-block-page-hero-content;
 * 2. old pattern copies already stored in the WordPress database;
 * 3. old alignwide/constrained Groups.
 */
.wp-site-blocks .vrbc-block-page-hero > .vrbc-block-page-hero-content,
.wp-site-blocks .vrbc-block-page-hero > .wp-block-group,
.wp-site-blocks .vrbc-block-page-hero > .alignwide,
.wp-site-blocks .vrbc-block-page-hero > .is-layout-constrained {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding:
    clamp(132px, 9vw, 154px)
    clamp(42px, 3vw, 58px)
    clamp(62px, 7vw, 86px) !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

/*
 * WordPress's constrained layout assigns auto side margins to every child.
 * Cancel those margins so the kicker, title and line share one left edge.
 */
.wp-site-blocks .vrbc-block-page-hero > .vrbc-block-page-hero-content > *,
.wp-site-blocks .vrbc-block-page-hero > .wp-block-group > *,
.wp-site-blocks .vrbc-block-page-hero > .alignwide > *,
.wp-site-blocks .vrbc-block-page-hero > .is-layout-constrained > * {
  width: auto !important;
  max-width: min(960px, calc(100vw - 84px)) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.wp-site-blocks .vrbc-block-page-hero .vrbc-kicker,
.wp-site-blocks .vrbc-block-page-hero .wp-block-post-title,
.wp-site-blocks .vrbc-block-page-hero h1,
.wp-site-blocks .vrbc-block-page-hero .vrbc-block-underline {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.wp-site-blocks .vrbc-block-page-hero .wp-block-post-title,
.wp-site-blocks .vrbc-block-page-hero h1 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wp-site-blocks .vrbc-block-page-hero .vrbc-block-underline {
  width: 64px !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  background: #086B44 !important;
}

/* The page shell should not introduce a gap before the first hero. */
.wp-site-blocks .vrbc-block-page-shell > .vrbc-block-page-hero:first-child {
  margin-block-start: 0 !important;
}

/* In the Site Editor iframe, use the same position. */
.editor-styles-wrapper .vrbc-block-page-hero {
  display: block !important;
  padding: 0 !important;
}

.editor-styles-wrapper .vrbc-block-page-hero > .vrbc-block-page-hero-content,
.editor-styles-wrapper .vrbc-block-page-hero > .wp-block-group,
.editor-styles-wrapper .vrbc-block-page-hero > .alignwide,
.editor-styles-wrapper .vrbc-block-page-hero > .is-layout-constrained {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding:
    clamp(132px, 9vw, 154px)
    clamp(42px, 3vw, 58px)
    clamp(62px, 7vw, 86px) !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .wp-site-blocks .vrbc-block-page-hero,
  .editor-styles-wrapper .vrbc-block-page-hero {
    min-height: 0;
  }

  .wp-site-blocks .vrbc-block-page-hero > .vrbc-block-page-hero-content,
  .wp-site-blocks .vrbc-block-page-hero > .wp-block-group,
  .wp-site-blocks .vrbc-block-page-hero > .alignwide,
  .wp-site-blocks .vrbc-block-page-hero > .is-layout-constrained,
  .editor-styles-wrapper .vrbc-block-page-hero > .vrbc-block-page-hero-content,
  .editor-styles-wrapper .vrbc-block-page-hero > .wp-block-group,
  .editor-styles-wrapper .vrbc-block-page-hero > .alignwide,
  .editor-styles-wrapper .vrbc-block-page-hero > .is-layout-constrained {
    padding: 72px 24px 62px !important;
  }

  .wp-site-blocks .vrbc-block-page-hero > * > *,
  .editor-styles-wrapper .vrbc-block-page-hero > * > * {
    max-width: 100% !important;
  }
}

