/*
 * BIM for Bridges and Structures - static site styles.
 * Ported from the ConcreteCMS "aashto" theme (Foundation 5.5.3 base + main.css
 * + block templates). Layout grid: bootstrap-grid.min.css (Bootstrap 5).
 * Foundation's "medium" breakpoint is 641px (40.0625em); the custom .col-f-*
 * classes below reproduce it because no Bootstrap breakpoint matches.
 */

/* ---------- Fonts (self-hosted Montserrat, SIL OFL - see fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Foundation 5 base defaults the theme relies on ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { font-size: 100%; }
body {
  margin: 0;
  padding: 0;
  position: relative;
  background: #fff;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1.5;
}
div, ul, ol, li, h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; padding: 0; }
a { color: #007FA9; line-height: inherit; text-decoration: none; transition: background-color .15s, color .15s; }
a:hover, a:focus { color: #0078a0; }
a img { border: none; transition: all 300ms ease-in-out; }
a:hover img { opacity: .8; }
p { font-size: 1rem; font-weight: normal; line-height: 1.6; margin-bottom: 1.25rem; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 {
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1.4;
  margin-top: .2rem;
  margin-bottom: .5rem;
  text-rendering: optimizeLegibility;
}
h1 { font-size: 2.125rem; }
h2 { font-size: 1.6875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
.h3 { font-size: 1.375rem; }
ul, ol { font-size: 1rem; line-height: 1.6; list-style-position: outside; margin-bottom: 1.25rem; }
ul { margin-left: 1.1rem; }
em, i { font-style: italic; line-height: inherit; }
strong, b { font-weight: bold; line-height: inherit; }
sup { line-height: 0; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
button { font-family: inherit; }

@media (min-width: 40.0625em) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.3125rem; }
  h3, .h3 { font-size: 1.6875rem; }
  h4 { font-size: 1.4375rem; }
}

/* ---------- Layout helpers ---------- */
.row { --bs-gutter-x: 30px; }
.row.g-0 { --bs-gutter-x: 0; }
.wrap { width: 100%; max-width: 90%; margin: 0 auto; padding: 0 15px; }
.row--collapse { --bs-gutter-x: 0; }
@media (min-width: 40.0625em) {
  .col-f-5 { flex: 0 0 auto; width: 41.66667%; }
  .col-f-6 { flex: 0 0 auto; width: 50%; }
}
.spacer { display: block; }
.spacer-10 { height: 10px; }
.spacer-40 { height: 40px; }
.spacer-50 { height: 50px; }
.spacer-60 { height: 60px; }
.spacer-100 { height: 100px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Accessibility: skip link and focus ---------- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #013653;
  font-weight: bold;
  border: 2px solid #013653;
}
.skip-link:focus { left: 10px; color: #013653; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid #013653; outline-offset: 2px; }
.site-header :focus-visible,
.hero :focus-visible,
.announcement :focus-visible,
.panel :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #005A8C;
  box-shadow: 0 -2px 11px 0 rgba(0, 0, 0, .75);
}
.site-header__logo { display: block; margin-left: 20px; flex: none; }
.site-header__logo img { display: block; width: 150px; height: auto; margin-top: 15px; }
.site-nav { padding: 30px 40px 0 0; }
.site-nav ul { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; font-size: 0; }
.site-nav li { font-size: .91rem; line-height: 1.6; text-transform: uppercase; }
.site-nav a { color: #fff; transition: all 300ms ease-in-out; }
.site-nav a:hover, .site-nav a:focus { color: #94D1FF; }
.nav-toggle { display: none; }

@media only screen and (max-width: 960px) {
  .site-nav li { font-size: .63rem; }
}

@media only screen and (max-width: 640px) {
  .site-header { position: relative; }
  .site-header__logo img { width: auto; height: 30px; margin-top: 25px; }
  .site-nav { padding-right: 10px; }
  .site-nav ul { gap: 20px; }

  .js .site-nav { padding: 0; }
  .js .nav-toggle {
    display: block;
    width: 48px;
    height: 48px;
    margin: 16px 12px 0 0;
    padding: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle svg { display: block; width: 28px; height: 28px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .js .site-nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    gap: 0;
    background-color: #005A8C;
    box-shadow: 0 8px 11px -4px rgba(0, 0, 0, .6);
  }
  .js .site-nav ul.is-open { display: flex; }
  .js .site-nav li { font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .25); }
  .js .site-nav a { display: block; padding: 12px 20px; }
}

/* ---------- Home: hero ---------- */
.hero { position: relative; height: 470px; overflow: hidden; }
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: bottom center;
}
.hero .wrap { position: relative; }
.hero__cta { margin: 18% auto 0; text-align: center; }
.hero__cta a {
  padding: 20px 30px;
  font-size: 1.4em;
  background-color: #DB2C29;
  color: #fff;
  font-weight: bold;
  letter-spacing: 3px;
  border: 3px solid #fff;
  box-shadow: 0 0 14px 1px rgba(0, 0, 0, .75);
  transition: all 300ms ease-in-out;
}
.hero__cta a:hover, .hero__cta a:focus { color: #fff; background-color: #B11F1D; box-shadow: 0 0 7px 1px rgba(0, 0, 0, .75); }

/* ---------- Home: tagline band ---------- */
.tagline { position: relative; background-color: #CCE9FF; }
.tagline__text {
  margin: 25px 0 20px;
  text-align: center;
  font-size: 1.2em;
  line-height: 1.6;
  font-weight: bold;
  color: #005A8C;
  letter-spacing: 3px;
}
.tagline__icon-col { position: relative; }
.tagline__icon { position: absolute; top: -60px; width: 200px; margin: 0 auto; }

/* ---------- Home: announcement ---------- */
.announcement {
  padding: 56px 0 90px;
  text-align: center;
  background: #157DB7;
  background-image: linear-gradient(#a12a28 1%, #157DB7 50%);
}
.announcement h2 {
  margin: .2rem 0 18px;
  color: #fff;
  font-size: min(2.1rem, 7.5vw);
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 3px;
  text-shadow: 0 3px 3px #333;
}
.announcement p {
  display: block;
  width: 60%;
  margin: 8px auto;
  color: #fff;
  font-size: 1.1em;
  letter-spacing: 3px;
}
.announcement a { color: #fff; font-size: 1.2em; text-decoration: underline; }
.announcement a.announcement__btn {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 14px;
  background: #DB2C29;
  border: 2px solid #fff;
  font-size: 1.1em;
  font-weight: 700;
}
.announcement a.announcement__btn:hover, .announcement a.announcement__btn:focus { background-color: #B11F1D; }

/* ---------- Home: panels and roadmap ---------- */
.panels { text-align: center; }
.panel {
  position: relative;
  min-height: 60vh;
  padding: 70px 30px 30px 30px;
  background-size: cover;
  background-position: bottom center;
  transition: min-height .4s linear;
}
.panel--left { background-image: url("../images/bg-panel-left.jpg"); }
.panel--right { background-image: url("../images/bg-panel-right.jpg"); }
.panels.is-expanded .panel { min-height: 100vh; }
.panel__icon { position: absolute; top: -75px; left: 50%; width: 150px; margin-left: -75px; }
.panel h2, .roadmap h2 { margin-bottom: 25px; font-weight: bold; }
.panel h2, .panel p { color: #fff; }
.panel p, .roadmap p { margin-bottom: 20px; }
.js .panel__more:not(.is-open) { display: none; }

.smallredbtn {
  padding: 10px;
  color: #fff;
  font-size: .9em;
  font-weight: bold;
  letter-spacing: 3px;
  background-color: #DB2C29;
  border: 1px solid #fff;
  box-shadow: 0 0 14px 1px rgba(0, 0, 0, .75);
  transition: all 300ms ease-in-out;
}
.smallredbtn:hover, .smallredbtn:focus { color: #fff; background-color: #B11F1D; }
.panel__toggle { display: none; }
.js .panel__toggle {
  display: inline-block;
  position: relative;
  top: -9px;
  vertical-align: top;
  margin: 0;
  line-height: normal;
  cursor: pointer;
}

.roadmap {
  padding: 30px 6%;
  background-image: url("../images/bg-roadmap.jpg");
  background-size: cover;
  background-position: bottom center;
}
.roadmap h2, .roadmap p { color: #013653; }
.roadmap p { font-weight: bold; }
.roadmap__image { margin-bottom: 20px; }
.roadmap__image img {
  display: block;
  position: relative;
  width: 80%;
  max-width: 400px;
  margin: 0 auto;
  border: 15px solid #CCE9FF;
  box-shadow: 0 2px 15px 5px rgba(0, 0, 0, .48);
}
.roadmap p.btn-row { font-size: .9em; }
.btn-row .smallredbtn { font-size: 1em; }

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  height: 55px;
  padding-top: 15px;
  overflow: hidden;
  background-color: #3C3C3C;
  color: #fff;
  text-align: center;
}
.site-footer p { font-size: .8em; }

/* ---------- Interior pages: banner ---------- */
.page-banner { position: relative; padding-top: 160px; }
.page-banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 65%;
}
.page-banner__box {
  position: relative;
  top: 40px;
  width: 80%;
  margin: 0 auto;
  padding: 10px 3% 24px;
  text-align: center;
  background-color: #013653;
}
.page-banner__icon { position: absolute; top: -50px; left: 50%; width: 100px; margin-left: -50px; }
.page-banner h1 { margin-top: 60px; color: #fff; font-weight: bold; letter-spacing: 8px; }

.subbody { display: flow-root; margin: 100px 10% 0; padding: 0 15px; }

/* ---------- Placeholders for removed embeds (intentionally empty) ---------- */
.placeholder { display: block; }
.placeholder--calendar { height: 925px; margin-bottom: 20px; }
.placeholder--form { height: 1071px; margin-bottom: 20px; }

/* ---------- Calendar ---------- */
.event-list { display: flow-root; margin-bottom: 10px; }
.event-list p { margin: 0 0 20px; text-align: center; }

/* ---------- Knowledge base ---------- */
.topics { display: flex; flex-direction: row; align-items: center; gap: 15px; margin: 0; }
.topics h2 { margin: 0; font-size: 1.125rem; font-weight: bold; }
.topics ul { display: flex; flex-direction: row; align-items: center; gap: 20px; margin: 0; list-style: none; }
.topics a { padding: 8px 20px; color: #fff; background-color: #db2c29; border-radius: 4px; }
.topics a:hover, .topics a:focus { color: #fff; background-color: #980402; }
.topics a[aria-current="page"] { font-weight: bold; }

.cards { position: relative; display: flex; flex-direction: row; gap: 20px; margin: 0; list-style: none; line-height: 1.5; }
.cards > li { max-width: 33%; }
.card {
  margin-bottom: 30px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  box-shadow: 0 0 9px -1px #4F4F4F;
  transition: all .25s cubic-bezier(.645, .045, .355, 1);
}
.card:hover { box-shadow: 0 0 40px rgba(51, 51, 51, .1); transform: translateY(-15px); }
.card__img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.card__info { position: relative; min-height: 210px; padding: 20px 20px 40px 20px; background-color: #fff; }
.card__title { display: block; margin-bottom: 6px; color: #0060A7; font-size: 1.2em; font-weight: bold; }
.card__title:hover, .card__title:focus { color: #013653; }
.subbody .no-pages { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ---------- Resources ---------- */
.newresources h2 { position: relative; margin-bottom: 25px; color: #013653; font-size: 1.7em; font-weight: bold; }
.newresources h2::before { content: ""; position: absolute; bottom: -6px; display: block; width: 70px; height: 7px; background-color: #db2c29; }
.newresources ul { margin: 0; }
.newresources ul li { list-style: none; }

.doc-list ul { display: flex; flex-direction: column; flex-wrap: wrap; justify-content: space-between; align-items: stretch; }
.doc-list ul li { position: relative; flex: 1 0 30%; margin: 5px; padding: 8px 20px 12.56px 47px; line-height: 1.44; background-color: #fff; }
.doc-list ul li::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background-color: #005A8C; }
.doc-list ul li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #db2c29;
  transition: all 1s ease-in-out;
}
.doc-list ul li:hover::after { width: 100%; }
.doc-list ul li a { font-size: .9em; font-weight: bold; border-bottom: dotted 2px #fff; transition: all 200ms ease-in-out; }
.doc-list ul li a:hover { border-bottom: dotted 2px #db2c29; }
.doc-list ul li a::before {
  content: url("../images/icon-document.svg");
  content: url("../images/icon-document.svg") / "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background-color: #DB2C29;
}

.prezzies { margin: 20px 5px; padding: 20px 30px; background-color: #eee; border: dashed gray 2px; border-radius: 5px; }
.prezzies h3 { font-size: 1.2em; font-weight: bold; text-transform: uppercase; }
.prezzies li {
  position: relative;
  display: flex;
  height: 34px;
  margin-bottom: 20px;
  padding: 5px 10px 5px 50px;
  background-color: #fff;
  filter: drop-shadow(0 4.06044px 4.06044px rgba(0, 0, 0, .25));
  transition: all 200ms ease-in-out;
}
.prezzies li::before {
  content: url("../images/icon-presentation.svg");
  content: url("../images/icon-presentation.svg") / "";
  position: absolute;
  left: 0;
}
.prezzies li:hover { border-left: 4px #db2c29 solid; }
.prezzies li a { display: flex; align-items: center; font-size: .9em; font-weight: bold; }
.prezzies li a .pdate {
  margin-left: 10px;
  padding: 2px 14px;
  color: #000;
  font-size: .7em;
  font-weight: normal;
  background-color: #eee;
  border-radius: 30px;
}

.link-list { margin: 20px 5px; padding: 20px 30px; background-color: #F0F9FF; border: dashed gray 2px; border-radius: 5px; }
.link-list ul { display: flex; flex-direction: column; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.link-list ul li { position: relative; padding: 10px 0; border-bottom: dashed gray 1px; transition: all 300ms ease-in-out; }
.link-list ul li:hover { border-bottom: solid red 3px; }
.link-list ul li:last-of-type { border: none; }
.link-list ul li a { display: flex; align-items: center; gap: 20px; color: #005A8C; font-weight: bold; transition: all 400ms ease-in-out; }
.link-list ul li:hover a { color: #013653; }
.link-list ul li a::before {
  content: url("../images/icon-link.svg");
  content: url("../images/icon-link.svg") / "";
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
}

/* ---------- Theme breakpoints ---------- */
@media only screen and (max-width: 992px) {
  .announcement p { width: 100%; font-size: 1em; }
  .announcement a { font-size: 1.1em; }
}

@media only screen and (max-width: 960px) {
  p { font-size: .9em; }
  .tagline__text { font-size: .9em; letter-spacing: 2px; }
  .tagline__icon { top: -40px; }
  .hero { height: 300px; margin-top: 80px; }
  .panels p { margin-bottom: 10px; font-size: .8em; }
  .roadmap__image { margin-bottom: 10px; }
  .roadmap p.btn-row { font-size: .72em; }
  .prezzies li { height: auto; }
  .prezzies li a { flex-direction: column; justify-content: start; align-items: flex-start; }
  .prezzies li a .ptitle { margin-bottom: 10px; }
  .prezzies li a .pdate { margin: 0; }
}

@media only screen and (max-width: 900px) {
  .tagline__text { margin-top: 15px; }
  .tagline__icon { top: -30px; }
  .announcement { padding-top: 26px; }
  .placeholder--calendar { height: 958px; }
  .placeholder--form { height: 1061px; }
}

@media only screen and (max-width: 640px) {
  p { font-size: .8em; }
  .tagline { padding: 10px 0; }
  .tagline__text { margin: 0; font-size: .9em; }
  .tagline__icon-col { display: none; }
  .hero { margin-top: 0; height: 200px; }
  .hero__cta { margin-top: 20%; }
  .hero__cta a { padding: 15px 20px; font-size: 1.1em; border-width: 2px; }
  .panel { min-height: 70vh; padding-top: 30px; }
  .panels.is-expanded .panel { min-height: 120vh; }
  .panel__icon { position: relative; top: 0; left: 0; margin: 0 auto; }
  .placeholder--calendar { height: 978px; }
  .placeholder--form { height: 1138px; }

  /* Responsive fixes: the original overflows horizontally on small screens. */
  .topics { flex-wrap: wrap; }
  .topics ul { flex-wrap: wrap; gap: 12px; }
  .topics a { display: inline-block; }
  .cards { flex-direction: column; }
  .cards > li { max-width: 100%; }
  .page-banner h1 { letter-spacing: 4px; overflow-wrap: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}

@media print {
  .site-header { position: static; }
  .nav-toggle, .panel__toggle { display: none !important; }
  .js .panel__more { display: block !important; }
}
