/* The Lannie D. Chesapeake Lighthouse — static rebuild */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 25px;
  color: #5f727f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
p { margin: 0; }
a { color: #00bcd4; text-decoration: none; transition: color .2s; }
a:hover { color: #384554; }
.black, a.black { color: #000; }
a .black { color: #000; }

.container {
  width: 100%;
  max-width: 1212px;
  margin: 0 auto;
  padding: 0 21px;
}

/* ---------- Header ---------- */
.header-spacer { height: 99px; }

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow .3s;
}
#site-header.shrink { box-shadow: 0 0 2px 0 rgba(56, 69, 84, .2); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 99px;
  padding: 0 37px;
  transition: height .3s;
}
#site-header.shrink .header-main { height: 79px; }

.site-logo { position: relative; display: block; width: 248px; line-height: 0; }
.site-logo img { display: block; }
.site-logo .logo-small { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
#site-header.shrink .logo-default { opacity: 0; }
#site-header.shrink .logo-small { opacity: 1; }

.primary-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.primary-navigation { margin-right: -17px; }
.primary-navigation li { position: relative; }
.primary-navigation li + li { margin-left: 6px; }
.primary-navigation li > a {
  display: block;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 700;
  line-height: 25px;
  text-transform: uppercase;
  color: #3c3950;
}
.primary-navigation li:hover > a { color: #00c0f5; }
.primary-navigation li.menu-item-search > a { padding: 0 3px 0 7px; display: flex; align-items: center; justify-content: center; width: 39px; height: 25px; }

.minisearch {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  margin-top: 37px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dfe5e8;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
#site-header.shrink .minisearch { margin-top: 27px; }
.menu-item-search.active .minisearch { opacity: 1; visibility: visible; transform: translateY(0); }
.minisearch form { position: relative; }
.minisearch .sf-input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 15px;
  font: 16px 'Montserrat', sans-serif;
  color: #5f727f;
  border: 1px solid #dfe5e8;
  border-radius: 4px;
  outline: none;
}
.minisearch .sf-submit {
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  color: #99a9b5;
  cursor: pointer;
}

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(500px, 40.3226vw);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero.jpg') center center / cover no-repeat;
  filter: contrast(1.2) saturate(1.35);
  animation: heroFade 1.5s ease-out both;
}
.hero { background: #e0f0fe; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero-grid {
  position: relative;
  width: min(1240px, 100vw);
  height: 100%;
  margin: 0 auto;
}
.hero-title {
  position: absolute;
  left: min(30px, 2.4194vw);
  top: min(79px, 6.371vw);
  width: min(554px, 44.677vw);
  margin: 0;
  font-size: min(60px, 4.8387vw);
  line-height: min(106px, 8.5484vw);
  font-weight: 700;
  color: #fff;
}
.hero-text {
  position: absolute;
  left: min(30px, 2.4194vw);
  top: min(206px, 16.613vw);
  width: min(557px, 44.919vw);
  font-size: min(32px, 2.5806vw);
  line-height: min(40px, 3.2258vw);
  font-weight: 400;
  color: #fff;
}

/* ---------- Our Work ---------- */
.section-heading {
  margin: 50px 0 52.8px;
  font-size: 48px;
  line-height: 1.35;
  font-weight: 400;
  color: #000;
  text-align: center;
}

.work-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -15px;
  padding-top: 23px;
}
.work-col {
  flex: 0 0 33.3333%;
  padding: 0 21px;
  text-align: center;
}
.work-col img { display: inline-block; }

/* ---------- Community / newsletter ---------- */
.community {
  margin-top: 107px;
  padding-top: 50px;
  background: #0d0230;
  height: 351px;
  overflow: hidden;
}
.community .container { max-width: 1212px; padding: 0 42px; }
.community-title {
  margin: 0 0 57.6px;
  font-size: 48px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.community-subtitle {
  margin: -60px 0 36px;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.community-form { margin-top: -50px; }
.community-form iframe { display: block; border: 0; }

/* ---------- Footer ---------- */
.site-footer { color: #99a9b5; background: #fff; padding-top: 1px; }
.footer-top { height: 35px; background: #efefef; max-width: 1212px; }
.footer-band { background: #efefef; padding: 20px 50px; }
.footer-band > .container { padding: 0; max-width: 1212px; }
.footer-cols { display: flex; margin: 0 3.5px 17.6px; padding: 2px 0 3px; }
.footer-col { flex: 0 0 33.3333%; padding: 35px 23.5px 0; min-height: 153px; }
.footer-bottom { display: flex; }
.footer-bottom-left { flex: 0 0 66.6667%; padding: 35px 21px 18px; }
.footer-bottom-right { flex: 0 0 33.3333%; padding: 35px 21px 18px; }

/* ---------- Inner pages (shared) ---------- */
.page-content { padding-bottom: 60px; }
.page-content.padded { padding-top: 35px; padding-bottom: 110px; }
.page-content p { margin: 0 0 17.6px; }
.raleway { font-family: 'Raleway', sans-serif; }

.styled-subtitle { font-size: 24px; line-height: 37px; font-weight: 300; color: #5f727f; }
.styled-subtitle p { margin: 0 0 26.4px; }

.text-block ul, .text-block ol { margin: 16px 0 17.6px; padding: 0 0 0 40px; }
.text-block ul li { position: relative; list-style: none; padding-bottom: 6px; }
.text-block ul li::before {
  content: ""; position: absolute; left: -12px; top: 12px;
  width: 3px; height: 3px; border-radius: 50%; background: #002b36;
}
.styled-subtitle ul li::before, ul.styled-subtitle li::before { top: 17px; }
.text-block ol { list-style: none; counter-reset: li; margin-top: 24px; }
.text-block ol li { position: relative; padding-bottom: 6px; }
.text-block ol li::before {
  content: counter(li); counter-increment: li;
  position: absolute; top: -4px; left: -2em; width: 2em; padding: 4px 0;
  font-weight: 700; text-align: center;
}

.gem-button {
  display: inline-block;
  height: 50px;
  padding: 0 25px;
  margin: 0 30px 30px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 50px;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  border-radius: 3px;
  transition: background-color .2s;
}
.gem-button:hover { color: #fff; background: #f26c54; }
.center { text-align: center; }
.center .gem-button { margin-right: 0; }

/* Our Mission */
.mission-title {
  margin: 40px 0 0;
  font-family: 'Raleway', sans-serif;
  font-size: 60px; line-height: 1.25; font-weight: 300;
  color: #000;
}
.mission-body { margin-top: 20px; }

/* Leadership */
.leadership-kicker { margin: 0; padding-top: 30px; font-size: 20px; line-height: 1.5; font-weight: 400; color: #000; }
.leadership-title { margin: 10px 0 40px; font-size: 30px; line-height: 1.4; font-weight: 400; color: #000; }
.team-grid { display: flex; flex-wrap: wrap; margin: 0 -7.5px; }
.team-grid > div { padding: 0 7.5px 35px; text-align: left; }
.team-grid.cols-3 > div { flex: 0 0 33.3333%; }
.team-grid.cols-4 > div { flex: 0 0 25%; }
.team-grid figure { margin: 0 0 22px; text-align: center; }
.team-grid img { display: inline-block; }
.team-grid p { color: #000; }
.team-grid a { color: #000; }
.team-grid a:hover { color: #00bcd4; }

/* ---------- Back to top ---------- */
.scroll-top-button {
  position: fixed;
  right: 40px;
  bottom: 35px;
  z-index: 50;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 6, 15, .5);
  color: #99a9b5;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.scroll-top-button.visible { opacity: 1; visibility: visible; }
.scroll-top-button:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1212px) {
  .community .container { padding: 0 21px; }
}

@media (max-width: 979px) {
  .header-spacer, .header-main { height: 79px; }
  .header-main { padding: 0 21px; }
  .site-logo, .site-logo img.logo-default { width: 200px; }
  .site-logo .logo-small { display: none; }
  #site-header.shrink .logo-default { opacity: 1; }

  .menu-toggle {
    display: block;
    position: relative;
    width: 32px; height: 24px;
    padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span {
    position: absolute; left: 4px; right: 4px; height: 3px;
    background: #3c3950;
    transition: transform .3s, opacity .3s;
  }
  .menu-toggle span:nth-child(1) { top: 3px; }
  .menu-toggle span:nth-child(2) { top: 10px; }
  .menu-toggle span:nth-child(3) { top: 17px; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .primary-navigation li + li { margin-left: 0; }
  .primary-navigation {
    margin-right: 0;
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #dfe5e8;
    box-shadow: 0 5px 10px rgba(56, 69, 84, .1);
  }
  .menu-open .primary-navigation { display: block; }
  .primary-navigation ul { flex-direction: column; align-items: stretch; }
  .primary-navigation li > a { padding: 15px 21px; border-bottom: 1px solid #dfe5e8; }
  .primary-navigation li.menu-item-search > a { display: none; }
  .minisearch {
    position: static; width: auto; margin: 0; border: 0;
    opacity: 1; visibility: visible; transform: none; padding: 15px 21px;
  }

  .section-heading { font-size: 36px; }
  .community-title { font-size: 36px; }
  .community-subtitle { font-size: 22px; margin-top: -45px; }
  .community { height: auto; padding-bottom: 30px; }

  .mission-title { font-size: 48px; }
  .team-grid.cols-4 > div { flex: 0 0 33.3333%; }
}

@media (max-width: 767px) {
  .hero { height: 360px; }
  .hero-grid { width: 100%; }
  .hero-title { left: 21px; top: 40px; width: calc(100% - 42px); font-size: 36px; line-height: 1.3; }
  .hero-text { left: 21px; top: 110px; width: calc(100% - 42px); font-size: 20px; line-height: 1.4; }

  .section-heading { font-size: 28px; margin-bottom: 30px; }
  .work-row { flex-direction: column; margin: 0; padding-top: 0; }
  .work-col { padding: 0 0 30px; }
  .work-col img { max-width: 300px; }
  .community { margin-top: 30px; }
  .community-title { font-size: 28px; letter-spacing: 1.4px; }
  .community-subtitle { font-size: 18px; margin-top: -40px; }

  .footer-band { padding: 20px 0; }
  .footer-cols, .footer-bottom { flex-direction: column; margin: 0; }
  .footer-col, .footer-bottom-left, .footer-bottom-right { flex: none; min-height: 0; padding: 20px 21px 0; }
  .footer-bottom-right { padding-bottom: 20px; }
  .scroll-top-button { right: 15px; bottom: 15px; }

  .mission-title { font-size: 40px; margin-top: 30px; }
  .styled-subtitle { font-size: 20px; line-height: 31px; }
  .team-grid.cols-3 > div, .team-grid.cols-4 > div { flex: 0 0 100%; }
  .gem-button { font-size: 16px; }
}
