
/* ==========================================
   INNES REDMOND
   SHARED HEADER & FOOTER CSS
   Full replacement
   ========================================== */

:root {
  --content-max-width: 1300px;
  --content-padding: clamp(20px, 3vw, 32px);
}

/* HEADER */
.nav {
  height: 82px;
  padding: 8px max(
    var(--content-padding),
    calc((100% - var(--content-max-width)) / 2 + var(--content-padding))
  );

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;

  box-shadow: 0 3px 18px #12382209;
  box-sizing: border-box;
}

/* LOGO CONTAINER */
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  flex: 0 0 220px;
  width: 220px;
  height: 64px;

  min-width: 0;
  overflow: hidden;
}

/* LOGO IMAGE */
.brand img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: left center;
}

/* DESKTOP NAVIGATION */
.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}

.links > a {
  position: relative;
  display: flex;
  align-items: center;

  margin: 0;
  padding: 0;
  line-height: 1.5;
  white-space: nowrap;
}

.links a:hover,
.links .active {
  color: var(--green);
}

/* ACTIVE PAGE INDICATOR */
.links .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;

  height: 2px;
  background: var(--orange);
}

/* MOBILE MENU BUTTON */
.menu {
  display: none;
}

/* FOOTER */
footer > .wrap.foot {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
  box-sizing: border-box;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.foot img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.foot div {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.foot span {
  font: italic 19px Georgia, serif;
  color: var(--green);
}

/* TABLET */
@media (min-width: 681px) and (max-width: 1150px) {
  .nav {
    gap: 20px;
  }

  .brand {
    flex-basis: 180px;
    width: 180px;
    height: 58px;
  }

  .links {
    gap: 18px;
  }
}

/* SMALL TABLETS */
@media (min-width: 681px) and (max-width: 800px) {
  .brand {
    flex-basis: 145px;
    width: 145px;
    height: 52px;
  }

  .links {
    gap: 12px;
    font-size: 12px;
  }
}

/* MOBILE */
@media (max-width: 680px) {
  :root {
    --content-padding: 20px;
  }

  .nav {
    height: 70px;
    gap: 15px;
    padding: 6px 20px;
  }

  .brand {
    flex: 0 0 175px;
    width: 175px;
    height: 54px;
  }

  .brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .menu {
    display: block;
    border: 0;
    background: none;
    font-size: 24px;
    margin-left: auto;
    cursor: pointer;
  }

  .links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;

    max-height: calc(100dvh - 70px);
    overflow-y: auto;

    padding: 20px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;

    text-align: center;
    box-shadow: 0 10px 20px #0002;
  }

  .links.open {
    display: flex;
  }

  .links > a {
    justify-content: center;
  }

  .foot {
    flex-direction: column;
    text-align: center;
  }

  .foot div {
    flex-wrap: wrap;
    justify-content: center;
  }

  .foot span {
    font-size: 15px;
  }
}
