@font-face {
  font-family: "Campton";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/campton/campton-book.woff") format("woff");
  src: url("../fonts/campton/campton-book.woff2") format("woff2");
}

@font-face {
  font-family: "Future-History";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/future-history/future-history.woff") format("woff");
  src: url("../fonts/future-history/future-history.woff2") format("woff2");
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

:root {
  --emblem-width: 45px;
  --base-font-size: 12px;
}

body {
  font-family: "Campton", sans-serif;
  font-size: var(--base-font-size);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
}

p {
  letter-spacing: 6%;
  margin: 0;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  background-image: url("../images/bg.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: auto 115%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(90, 49, 30, 0.55) 0%, rgba(90, 49, 30, 0.55) 100%);
    z-index: 1;
  }
}

.container {
  padding: 60px 40px;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  grid-template-columns: auto var(--emblem-width) auto;
  grid-template-rows: 1fr auto 1fr;
  height: 100%;
}

.top-row {
  display: grid;
  grid-template-columns: auto var(--emblem-width) auto;
  grid-column: 1 / -1;
  grid-row: 1;

  p {
    transform: translateY(calc(var(--emblem-width) / 5));
  }
}

.emblem {
  width: var(--emblem-width);
}

.website {
  text-align: right;
}

.logo {
  --logo-width: 294px;
  width: var(--logo-width);
}

.logo-and-appointment {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.address,
.opening-hours {
  align-self: end;
  grid-row: 3;

  a {
    &:hover {
      text-decoration: underline;
    }
  }
}

.opening-hours {
  grid-column: 2 / -1;
  text-align: right;
}

.btn {
  font-family: "Future-History", sans-serif;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 10px 20px;
  text-transform: uppercase;
  transition: border-color 0.3s ease;
  line-height: 1.5;

  &:hover {
    border-color: #fff;
  }
}

@media (min-width: 48rem) {
  :root {
    --emblem-width: 63px;
    --base-font-size: 16px;
  }

  .container {
    padding: 80px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo {
    --logo-width: 613px;
  }
}

@media (min-width: 64rem) {
  .wrap {
    background-position: center center;
    background-size: cover;
  }

  .logo {
    --logo-width: 743px;
  }
}
