/* Layout: header, navigation, page hero, footer */

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 5px 0 10px;
  border-bottom: 2px solid var(--color-blue-light);
  background: var(--color-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__logo img {
  width: 150px;
}

/* Navigation */

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--color-blue);
  font: 700 16px/1 var(--font-body);
  text-transform: uppercase;
  cursor: pointer;
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.nav__toggle-bars {
  position: relative;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__toggle-bars::before { top: -8px; }
.nav__toggle-bars::after { top: 8px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bars {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 14px 15px;
  color: var(--color-blue);
  font-weight: 700;
  text-transform: uppercase;
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link[aria-current="page"] {
  color: var(--color-blue-light);
}

@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 10px var(--gutter);
    border-bottom: 2px solid var(--color-blue-light);
    background: var(--color-white);
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.3);
  }
  .nav__list.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-light);
  }
  .nav__list li:last-child .nav__link {
    border-bottom: 0;
  }
}

/* Page hero: full-width background image under the header */

.page-hero {
  height: 550px;
  background-color: var(--color-light);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media (max-width: 1120px) { .page-hero { height: 450px; } }
@media (max-width: 991px)  { .page-hero { height: 430px; } }
@media (max-width: 767px)  { .page-hero { height: 400px; } }
@media (max-width: 479px)  { .page-hero { height: 250px; } }

/* Footer */

.site-footer {
  padding: 25px 0;
  background: var(--color-dark);
  color: var(--color-light);
}

.site-footer a {
  color: var(--color-light);
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-blue-light);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
}

.site-footer__heading {
  margin: 0 0 15px;
  padding-top: 15px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.footer-nav {
  margin: 0;
  padding: 15px 0 0;
  list-style: none;
}
.footer-nav a {
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid rgba(238, 238, 238, 0.25);
  font-size: 15px;
}

.site-footer address {
  font-style: normal;
  font-weight: 300;
}
.site-footer address a {
  color: var(--color-blue-light);
}

.social {
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: transform 0.2s;
}
.social__link .icon {
  width: 24px;
  height: 24px;
}
.social__link:hover,
.social__link:focus-visible {
  transform: scale(1.1);
}
.site-footer .social__link,
.site-footer .social__link:hover {
  color: var(--color-white);
}
.social__link--fb { background: #3b5998; }
.social__link--ig { background: #c13584; }
.social__link--yt { background: #e62117; }

.site-footer__copy {
  padding: 15px 0;
  background: var(--color-darker);
  color: var(--color-light);
  font-size: 12px;
}

@media (max-width: 991px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .social {
    justify-content: flex-start;
    gap: 30px;
  }
}
