/* www.elbamembers.org - the old Crio (BoldGrid) home page, rebuilt.
   Every value below was measured from the live page's computed styles (sandboxed Playwright,
   2026-10-26) at 320-1920px and on an emulated iPhone, and is re-checked by tests/bp.js +
   tests/bpdiff.py. Breakpoints are the old theme's (Bootstrap 3): xs < 768, sm 768-991,
   md 992-1199, lg >= 1200. Quirks of the old theme kept on purpose, because they set the layout:
   - content rows have no gutter below 992px and a 20px side margin from 992px;
   - sections are centred flex columns, so a phone-width container shrinks to its content
     (the contact form's container is narrower than the others on a phone);
   - the About cards are quarter-width columns between 992 and 1199px (col-md-3);
   - the header shows a menu button below 992px with no menu behind it (decoration here).
   Fonts are self-hosted copies from Google Fonts (not the old server). */

/* Open Sans is declared at 400 only, as on the old site: its bold text (form labels, strong) is
   the browser's synthetic bold, which is narrower than the real bold and sets the line breaks. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/open-sans.woff2) format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/raleway.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto.woff2) format("woff2"); }

:root {
  --color1: rgb(68, 108, 179);      /* header, cards, button, email box */
  --color2: rgb(32, 51, 86);        /* icon circles, footer, menu button lines */
  --color3: rgb(224, 224, 224);     /* phone/email strip */
  --heading: rgb(0, 0, 0);
  --text: rgb(51, 51, 51);
  --contact-heading: rgb(0, 0, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text); background: #fff;
}
#boldgrid-sticky-wrap { flex: 1 0 auto; display: flex; flex-direction: column; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { width: auto; height: auto; clip: auto; margin: 0; padding: 8px 12px; z-index: 100; background: #fff; color: #000; }
p { margin: 0 0 10px; }
h1, h2, h3, h4, .h1 {
  font-family: Raleway, sans-serif; font-weight: 400; text-transform: uppercase; color: var(--heading);
  overflow-wrap: break-word;
}
h1, .h1 { font-size: 36px; line-height: 39.6px; margin: 20px 0 10px; }
h2 { font-size: 30px; line-height: 33px; margin: 20px 0 10px; }
h3 { font-size: 24px; line-height: 26.4px; margin: 20px 0 10px; }
h4 { font-size: 18px; line-height: 19.8px; margin: 10px 0; }
a { color: inherit; text-decoration: none; }

/* ---- Grid (Bootstrap 3 sizes; rows are flex, as in the old theme) ---- */
.container { margin: 0 auto; padding: 0 15px; max-width: 100%; }
@media (min-width: 768px) { .container { width: 750px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
.row { display: flex; flex-wrap: wrap; }
[class*="col-"] { position: relative; min-height: 1px; padding: 0 15px; flex: 0 0 auto; width: 100%; }
.col-xs-12 { width: 100%; }
@media (min-width: 768px) {
  .col-sm-1 { width: 8.33333333%; } .col-sm-4 { width: 33.33333333%; } .col-sm-6 { width: 50%; }
  .col-sm-10 { width: 83.33333333%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-md-1 { width: 8.33333333%; } .col-md-2 { width: 16.66666667%; } .col-md-3 { width: 25%; }
  .col-md-5 { width: 41.66666667%; } .col-md-6 { width: 50%; } .col-md-7 { width: 58.33333333%; }
  .col-md-8 { width: 66.66666667%; } .col-md-10 { width: 83.33333333%; } .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
  .col-lg-1 { width: 8.33333333%; } .col-lg-2 { width: 16.66666667%; } .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.33333333%; } .col-lg-5 { width: 41.66666667%; } .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.66666667%; } .col-lg-10 { width: 83.33333333%; } .col-lg-12 { width: 100%; }
}

/* ---- Header ---- */
#masthead { position: relative; display: flex; flex-direction: column; padding: 7px 0 21px; background: var(--color1); color: #fff; }
.site-header .boldgrid-section { display: flex; flex-direction: column; align-items: center; }
.site-header .container { width: 100%; padding: 0 30px; }
.site-header [class*="col-"] { padding: 0; }
.site-branding { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 15px 10px; }
.custom-logo-link { display: block; margin: 15px 0; }
.custom-logo { display: block; width: 102px; height: 169px; }
.site-title { display: flex; min-width: 0; max-width: 100%; margin: 10px 0; font: 36px/39.6px Raleway, sans-serif; }
.site-title a { display: block; min-width: 0; max-width: 100%; font: 400 60px/66px Roboto, sans-serif; color: #fff; text-transform: none; }
/* The old header kept its phone padding up to 768px inclusive (one px past the grid's 767). */
@media (min-width: 769px) {
  .site-header .container { width: 750px; padding: 0 15px; }
  .site-header [class*="col-"] { padding: 0 15px; }
  .site-branding { padding: 0 0 10px; }
}
@media (min-width: 992px) { .site-header .container { width: 970px; } }
@media (min-width: 1200px) { .site-header .container { width: 1170px; } }

/* The old menu button: shown below 992px, does nothing (there was never a menu). */
.main-menu-btn { display: flex; justify-content: center; align-items: center; padding: 6px 3px 3px; }
.hamburger { width: 70px; height: 60px; padding: 15px; }
.hamburger-box { position: relative; display: block; width: 40px; height: 24px; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  position: absolute; left: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--color2); content: "";
}
.hamburger-inner { bottom: 0; }
.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { top: -20px; }
@media (min-width: 768px) { .main-menu-btn { margin-top: -14px; } }
@media (min-width: 992px) { .main-menu-btn { display: none; } }

/* ---- Content ---- */
.site-content { display: flex; flex-direction: column; font-family: "Open Sans", sans-serif; line-height: 28px; }
.site-content .boldgrid-section { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px; }
.site-content .row, .site-content [class*="col-"] { min-height: 30px; }
@media (min-width: 992px) { .site-content .row { margin: 0 20px; } }

.sec-hero { background: url(img/hero.jpg) 50% 0 / cover fixed; }
.row-hero { padding: 40px 0 125px; }
.hero-box { padding: 56px; background: rgba(0, 0, 0, 0.8); color: #fff; }
.hero-box h2 { margin: 10px 0; color: #fff; }
.hero-box p { margin: 20px 0; }

.row-cards { position: relative; z-index: 1; background: var(--color1); color: #fff; box-shadow: rgba(0, 0, 0, 0.34) 0 10px 9px 0; }
.card { padding: 42px 28px 28px; text-align: center; }
.card-icon { display: flex; justify-content: center; }
.fa-i { display: block; padding: 25px; border-radius: 50px; background: var(--color2); color: #fff; font-size: 33px; line-height: 33px; }
.fa-svg { display: block; width: auto; height: 1em; }
.card h4 { margin: 20px 0 10px; color: #fff; }

.row-contact-head { padding-top: 50px; }
.sec-contact h2 { margin-bottom: 25px; text-align: center; color: var(--contact-heading); }
.row-contact-form { padding-bottom: 35px; }

/* ---- Contact form: WPForms (classic) look ---- */
.wpforms-container { margin: 24px 0; }
.wpforms-form { position: relative; }
.wpforms-field { padding: 5px 0; }
.wpforms-field-label { display: block; margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 20.8px; }
.wpforms-required-label { font-weight: 400; color: #f00; }
.wpforms-form input, .wpforms-form textarea {
  display: block; width: 100%; margin: 0; padding: 6px 10px; border: 1px solid #ccc; border-radius: 2px;
  background: #fff; color: var(--text); font: 16px/20.8px "Open Sans", sans-serif;
}
.wpforms-form input.wpforms-field-medium { max-width: 60%; }
.wpforms-form textarea.wpforms-field-medium { height: 120px; min-height: 38px; resize: vertical; }
@media (max-width: 600px) { .wpforms-form input.wpforms-field-medium { max-width: 100%; } }
.wpforms-form input:focus, .wpforms-form textarea:focus { outline: none; border-color: #999; }
.wpforms-form input.wpforms-error, .wpforms-form textarea.wpforms-error { border: 1px solid #c00; }
.wpforms-form label.wpforms-error { display: block; color: #900; font-size: 15px; line-height: 1.3; margin-top: 4px; }
.wpforms-submit-container { position: relative; padding: 10px 0 0; }
.wpforms-submit {
  display: inline-block; height: 40px; padding: 0 40px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--color1); color: #fff; font: 14px/40px "Open Sans", sans-serif; vertical-align: middle;
}
.wpforms-submit:hover, .wpforms-submit:focus { filter: brightness(0.9); }
.wpforms-submit:disabled { opacity: 0.7; cursor: wait; }
.wpforms-status { margin: 12px 0 0; color: #900; font-size: 15px; line-height: 1.3; }
.wpforms-status--invalid { display: none; }
/* WPForms replaces the form with its confirmation box. */
.wpforms-status--sent { margin: 0 auto 24px; padding: 15px; border: 1px solid #b4d39b; background: #e0ffc7; color: var(--text); font-size: 16px; line-height: 1.5; }

/* ---- Phone and email strip ---- */
.sec-details { background: var(--color3); }
/* The old strip's slider script gave its container a set width: full width on phones too. */
.sec-details > .container { width: 100%; }
@media (min-width: 768px) { .sec-details > .container { width: 750px; } }
@media (min-width: 992px) { .sec-details > .container { width: 970px; } }
@media (min-width: 1200px) { .sec-details > .container { width: 1170px; } }
.detail { text-align: center; }
.detail-email { background: var(--color1); color: #fff; }
.detail-slide { margin-bottom: 50px; }
.detail-pad { padding: 14px 28px; }
.detail h3, .detail h4 { color: inherit; }
.detail h3 { margin: 20px 0 10px; }
.detail .detail-head { margin-top: 0; }
.detail h4 { margin: 10px 0; }

/* ---- Footer ---- */
.site-footer { display: flex; flex-direction: column; align-items: center; padding: 7px 0 14px; background: var(--color2); color: #fff; }
/* Below 768px the footer's container shrinks to its text, as the old one did. */
.site-footer .container { width: auto; }
@media (min-width: 768px) { .site-footer .container { width: 750px; } }
@media (min-width: 992px) { .site-footer .container { width: 970px; } }
@media (min-width: 1200px) { .site-footer .container { width: 1170px; } }
.footer-copy { margin: 0; padding: 25px 20px 36px; }
.footer-copy span, .footer-thanks span { display: block; font: 14px/28px "Open Sans", sans-serif; text-align: center; }
.footer-thanks { display: flex; flex-direction: column; margin: 0; padding: 0 20px; }
.footer-thanks span { padding: 13px 0; }
@media (min-width: 768px) { .footer-thanks { flex-direction: row; justify-content: center; } }
