/* ============================================================
   ventura-base (inline for test.php)
   Replaces: foundation.css, app.css, normalize.css, jQuery,
             foundation.min.js, modernizr.js
   ============================================================ */

/* --- Box-model baseline --- */
*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Fixed site header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background: #fffffe;
  border-bottom: 1px solid #ddd;
}

/* Offset body so content isn't hidden under fixed header */
body {
  padding-top: 2.8rem;
}

/* --- Nav container --- */
.site-header nav {
  display: flex;
  align-items: stretch;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* --- Hamburger button (hidden at desktop) --- */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.75rem 0.5rem;
  color: #5f716e;
  font: inherit;
  font-size: 1rem;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}

.hamburger-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
}
.hamburger-bars::before,
.hamburger-bars::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.hamburger-bars::before { top: -7px; }
.hamburger-bars::after  { top:  7px; }

/* --- Top-level nav list --- */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: stretch;
  flex: 1;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-menu > li > a,
.nav-menu > li > .nav-toggle {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  color: #5f716e;
  font-size: 1rem;
  font: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.nav-menu > li > a:hover,
.nav-menu > li > .nav-toggle:hover {
  background-color: #eee;
  color: #2182C2;
  text-decoration: none;
}

.nav-menu > li > a:focus,
.nav-menu > li > .nav-toggle:focus {
  outline: 2px solid #0645AD;
  outline-offset: -2px;
}

.nav-toggle::after {
  content: ' \25be';
  font-size: 0.8em;
  margin-left: 0.2em;
}

.nav-toggle[aria-expanded="true"]::after {
  display: inline-block;
  transform: rotate(180deg);
}

/* --- Submenus --- */
.nav-submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #eee;
  border: 1px solid #ccc;
  z-index: 200;
  margin: 0;
  padding: 0.25rem 0;
}

.nav-submenu[hidden] { display: none; }

.nav-submenu li a {
  display: block;
  padding: 0.55rem 1rem;
  color: #2182C2;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-submenu li a:hover {
  background: #d4d4d4;
  text-decoration: none;
}

.nav-submenu li a:focus {
  outline: 2px solid #0645AD;
  outline-offset: -2px;
}

/* --- Grid system (replaces Foundation .row / .small-X.columns) --- */
.row {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.row > * {
  min-width: 0;
}

.col-12 { flex: 0 0 100%; }
.col-6  { flex: 0 0 calc(50% - 0.75rem); }
.col-4  { flex: 0 0 calc(33.333% - 1rem); }

/* --- Sponsor logo grid (replaces .small-block-grid-8) --- */
.logo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0;
  margin: 1rem 0;
  width: 100%;
}

.logo-grid li a img {
  width: 100%;
  height: auto;
}

/* --- Banner image --- */
.banner img {
  width: 100%;
  height: auto;
}

/* --- Utility class used by Foundation on this page --- */
.text-center { text-align: center; }

/* ============================================================
   Mobile  (< 640px)
   ============================================================ */
@media screen and (max-width: 39.9375em) {

  body { padding-top: 3rem; }

  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fffffe;
    border-top: 1px solid #ddd;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu > li { display: block; }

  .nav-menu > li > a,
  .nav-menu > li > .nav-toggle {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    justify-content: space-between;
  }

  .nav-submenu {
    position: static;
    border: 0;
    background: #f5f5f5;
    padding: 0;
    min-width: 0;
  }

  .nav-submenu li a {
    padding-left: 2rem;
    white-space: normal;
  }

  .col-6,
  .col-4 { flex: 0 0 100%; }

  .logo-grid { grid-template-columns: repeat(4, 1fr); }

  .pushsides {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
