* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "medium";
  font-size: 100%;
  font-weight: 400;
  color: var(--color);
}

:root {
  --background: #c7c2b4;
  --color: #3d3000;
  --highlight: #f04e23;
  --hover: #f1f0ed;
}

@font-face {
  font-family: "book";
  src: url(./fonts/book.otf);
}

@font-face {
  font-family: "medium";
  src: url(./fonts/medium.otf);
}

body {
  padding: 1rem;
  line-height: 1.4;
  background-color: var(--background);
  color: var(--color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

@media (max-width: 900px) {
  body {
    margin-bottom: 6rem;
  }
}

/* ======= GENERAL STYLES ======= */
a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: normal;
}

.text__upper {
  font-size: 0.95rem;
  text-transform: uppercase;
}

p + p {
  margin-top: 1rem;
}

/* ======= HEADER ======= */
.header {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 5rem;
  border: 1px solid var(--color);
  border-top: none;
  display: flex;
  text-transform: uppercase;
  font-size: 0.85rem;
  background-color: var(--background);
}

.header > div {
  flex: 0 0 50%;
  display: flex;
}

.header > div:nth-child(1) {
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  border-right: 1px solid var(--color);
}

.header > div > div {
  flex: 1;
  text-align: center;
  line-height: 5rem;
  border-left: 1px solid var(--color);
}

.header > div > div:first-child {
  border-left: none;
}

.header > div:nth-child(1) > div:nth-child(1) {
  flex: 0 0 45%;
}

.header span {
  color: var(--highlight);
}

.header__menu__link a {
  display: block;
  width: 100%;
  height: 100%;
}

@media (hover: hover) {
  .header__menu__link:hover {
    background-color: var(--hover);
  }
}

.header__menu__link a.active {
  background-color: var(--hover);
}

@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    z-index: 100;
    height: auto;
    border-bottom: none;
  }

  .header__top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(1rem + 1px);
    background-color: var(--background);
    z-index: 100;
  }

  .header > div {
    flex: 0 0 100%;
    border-bottom: 1px solid var(--color);
  }

  .header > div:nth-child(1) {
    border-right: none;
  }
}

@media (max-width: 550px) {
  .header > div:nth-child(1) {
    font-size: 1.25rem;
  }

  .header > div > div {
    flex: 1;
    text-align: center;
    line-height: 4rem;
    border-left: 1px solid var(--color);
  }

  .header > div:nth-child(1) > div:nth-child(1) {
    flex: 0 0 50%;
  }
}

/* ======= MAIN ======= */
.main {
  position: fixed;
  top: 6rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: calc(100dvh - 7rem);
  display: flex;
  border: 1px solid var(--color);
  border-top: none;
  border-bottom: none;
}

.main > div:nth-child(1) {
  flex: 0 0 50%;
  position: sticky;
  padding: 1rem 1rem 0;
  height: 100%;
  border-right: 1px solid var(--color);
}

@media (max-width: 900px) {
  .main {
    position: relative;
    margin-top: 4rem;
    flex-wrap: wrap;
    left: 0rem;
    right: 0rem;
    bottom: 0rem;
    display: block;
    height: auto;
  }

  .main > div:nth-child(1) {
    position: relative;
    border-right: none;
  }
}

@media (max-width: 550px) {
  .main {
    margin-top: 2rem;
  }
}

/* ======= GALLERY ======= */

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item.active {
  opacity: 1;
}

@media (max-width: 900px) {
  .gallery {
    height: 60dvh;
    margin-bottom: 1rem;
  }
}

@media (max-width: 550px) {
  .gallery {
    height: 55dvh;
    margin-bottom: 1rem;
  }
}
/* ======= CONTENT ======= */
.content {
  height: calc(100dvh - 7rem);
  overflow: hidden;
}
.content__scroll {
  height: calc(100dvh - 7rem);
  width: calc(100% + 1rem);
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .content {
    height: auto;
    overflow: visible;
    border-top: 1px solid var(--color);
  }

  .content__scroll {
    height: auto;
    width: 100%;
    overflow-y: visible;
  }
}

/* ======= SECTION ======= */
.section {
  border-bottom: 1px solid var(--color);
  font-size: 0.8rem;
  word-spacing: -0.1em;
}

.section__title {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--color);
  font-size: 0.85rem;
  padding: 1.75rem 2.25rem;
  background-color: var(--background);
  text-transform: uppercase;
}

.section__content + .section__title {
  border-top: 1px solid var(--color);
}

@media (max-width: 900px) {
  .content__scroll {
    overflow: visible;
  }
  .section__title {
    top: 11rem;
  }
}

@media (max-width: 500px) {
  .section__title {
    top: 9rem;
    padding: 1.75rem 1.25rem;
  }
}
/* ======= SECTION * TEXT ======= */

.section__text {
  padding: 2rem 4rem 2rem 2.25rem;
}

@media (max-width: 900px) {
  .section__text {
    padding: 2rem;
  }
}

@media (max-width: 550px) {
  .section__text {
    padding: 1.25rem;
  }
}

/* ======= SECTION * LIST ======== */
.section__list {
  list-style: none;
}

.section__list__item {
  display: flex;
}

.section__list__item + .section__list__item {
  border-top: 1px solid var(--color);
}

.section__list__title {
  flex: 0 0 70%;
  padding: 0.25rem 1rem;
  border-right: 1px solid var(--color);
  text-transform: uppercase;
  font-size: 3rem;
  letter-spacing: 0.05em;
}

.section__list__title img {
  display: inline-block;
  height: 100%;
  width: auto;
  vertical-align: middle;
}

.section__list__link {
  flex: 1;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.5;
}

.section__list__link.active {
  opacity: 1;
}

.section__list__link a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.section__list__link.active a {
  pointer-events: all;
}

@media (hover: hover) {
  .section__list__link.active a:hover {
    background-color: var(--hover);
  }
}

@media (max-width: 550px) {
  .section__list__title {
    font-size: 1.85rem;
    padding: 0.5rem 1rem;
  }
  .section__list__title img {
    height: 2.5rem;
    width: auto;
    vertical-align: middle;
    margin-right: 0.3rem;
  }
  .section__list__link {
    font-size: 0.85rem;
  }
}

/* ======= SECTION * FORM ======== */

.section__form {
  padding: 2rem 2.25rem;
}

.section__form__flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section__form__flex > * {
  width: calc(50% - 0.5rem);
}

.section__form input {
  border: 1px solid var(--color);
  padding: 1rem 1.5rem;
  background: transparent;
  font-size: 0.85rem;
}

.section__form input::placeholder {
  color: var(--color);
}

.section__form textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--color);
  padding: 1rem 1.5rem;
  background: transparent;
  font-size: 0.85rem;
}

.section__form textarea::placeholder {
  color: var(--color);
}

.section__form select {
  display: block;
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--color);
  padding: 1rem 1.5rem;
  background: transparent;
  font-size: 0.85rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/9/9d/Arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.85rem;
}

.section__form button {
  display: block;
  margin-top: 1rem;
  border: 1px solid var(--color);
  padding: 1rem 1.5rem;
  background: transparent;
  font-size: 0.85rem;
  font-family: "medium";
  font-weight: 400;
}

@media (hover: hover) {
  .section__form button:hover {
    background-color: var(--hover);
    cursor: pointer;
  }
}

.section__form__status {
  display: block;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: transparent;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .section__form__status {
    padding: 0;
  }
}

@media (max-width: 550px) {
  .section__form {
    padding: 1.25rem;
  }
  .section__form__flex > * {
    width: 100%;
  }
  .section__form input {
    padding: 1rem;
  }
  .section__form textarea {
    padding: 1rem;
  }

  .section__form select {
    padding: 1rem;
  }
}

/* ======= SECTION * PARTNERS ======== */
.section__partners {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1px -1px 0;
}

.section__partners > div {
  flex: 0 0 calc(100% / 3);
  padding: 2rem;
  text-align: center;
  border-right: 1px solid var(--color);
  border-bottom: 1px solid var(--color);
}

.section__partners > div img {
  display: block;
  width: 100%;
  margin: auto;
}

@media (max-width: 550px) {
  .section__partners > div {
    flex: 0 0 calc(100% / 2);
  }
}

/* ======= COOKIES ======== */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 19rem;
  background: var(--color);
  padding: 1rem;
  font-size: 0.75rem;
}

@media (max-width: 550px) {
  .cookie-banner {
    font-size: 0.85rem;
    left: 1rem;
    width: calc(100% - 2rem);
  }
}
.cookie-banner p {
  color: var(--background);
}

.cookie-banner__buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner button {
  flex: 1;
  background: var(--background);
  border: none;
  padding: 0.7rem 0.5rem;
  font-weight: bold;
  cursor: pointer;
  font-weight: 400;
  margin-top: 1rem;
  text-transform: uppercase;
}

.cookie-banner button:hover {
  background: var(--hover);
}
