@import "reset.css";
@import "editor.css";

@import url("https://fonts.googleapis.com/css2?family=Paytone+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
:root {
  --main-theme-color: #252729;
  --secondary-theme-color: #722f37;
  --white-filter: brightness(0) invert(1);
  --main-theme-color-filter: brightness(0) saturate(100%) invert(12%) sepia(10%) saturate(374%) hue-rotate(169deg)
    brightness(96%) contrast(90%);
  --secondary-theme-color-filter: brightness(0) saturate(100%) invert(23%) sepia(16%) saturate(2160%) hue-rotate(303deg)
    brightness(90%) contrast(91%);
  --base-font-color: #333;
  --font: "Open Sans", sans-serif;
  --headline-font: "Paytone One", sans-serif;
}

* {
  line-height: 1.25em;
}

html {
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16px;
  padding: 0;
  margin: 0;
}

.wrapper {
  width: 96%;
  padding: 0 2%;
  margin: 0 auto;
  max-width: 1440px;
}

.img-wrapper {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* header */

header {
  position: fixed;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
}

header .wrapper {
  display: grid;
  grid-template-areas:
    "logo contactbox"
    "logo menu";
  grid-auto-columns: min-content;
  grid-template-columns: auto 1fr;
  gap: 15px;
}

header .logo {
  grid-area: logo;
}

header .menu {
  grid-area: menu;
  align-self: start;
}

header .mobile-menu {
  grid-area: menu;
  display: none;
  align-self: start;
}

header .contact-box {
  grid-area: contactbox;
  display: flex;
  justify-content: end;
  gap: 20px;
  align-self: end;
  font-size: 0.875em;
}

header .contact-box a {
  color: var(--secondary-theme-color);
}

header .contact-box a:first-child {
  display: none;
}

header .contact-box a::before {
  filter: var(--secondary-theme-color-filter);
}

header .menu ul {
  display: flex;
  gap: 20px;
  justify-content: end;
}

header .menu a {
  font-family: var(--headline-font);
  text-transform: uppercase;
  color: var(--main-theme-color);
}

header .menu a:hover,
header .menu .current a {
  color: var(--secondary-theme-color);
}

/* header end */

/* headlines */

.headline {
  height: 354px;
  margin-bottom: 30px;
  background: url("img/headline-bg.jpg") no-repeat center top;
  position: relative;
}

.headline .wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.headline h1,
.headline p {
  text-align: center;
  color: #fff;
  font-size: 3.5em;
  font-family: var(--headline-font);
  text-transform: uppercase;
  letter-spacing: 10px;
}

.heading {
  font-size: 2.5em;
  font-family: var(--headline-font);
  text-transform: uppercase;
  color: var(--main-theme-color);
  margin-bottom: 30px;
}

.section-headline {
  font-size: 1.25em;
  font-family: var(--headline-font);
  margin-bottom: 20px;
}

/* headlines end */

/* buttons */

.button {
  height: 40px;
  padding: 0 20px;
  line-height: 40px;
  font-weight: bold;
  color: #fff;
  background: var(--secondary-theme-color);
  display: inline-block;
  border: 0 none;
  border-radius: 10px;
  font-size: 1.125em;
}

/* buttons end */

/* footer */

footer {
  background: var(--main-theme-color);
  color: #fff;
  padding: 50px 0;
}

footer,
footer a {
  color: #fff;
}

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

footer .menu li {
  margin-bottom: 10px;
}

footer .wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 100px;
}

footer .contact {
  position: relative;
}

footer .contact::after {
  width: 300px;
  height: 77px;
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: url("img/logo.png") no-repeat center center;
  background-size: 100%;
  filter: var(--white-filter);
}

footer .contact-box a {
  display: block;
  margin-bottom: 10px;
}

footer .contact-box a::before {
  filter: var(--white-filter);
}

.copyrights {
  padding: 20px 0;
  background: var(--secondary-theme-color);
  font-size: 0.75em;
}

.copyrights .wrapper {
  display: flex;
  justify-content: space-between;
}

.copyrights,
.copyrights a {
  color: #fff;
}

.copyrights a {
  margin-left: auto;
}

/* footer end */

/* home */

.intro {
  width: 100%;
  height: 100vh;
}

.intro video {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
}

.intro h1 {
  position: absolute;
  z-index: 1;
  bottom: 10%;
  font-size: 3.5em;
  text-transform: uppercase;
  font-family: var(--headline-font);
  color: var(--secondary-theme-color);
  background: rgba(255, 255, 255, 0.5);
  padding: 20px 35px;
  border-radius: 20px;
  box-sizing: border-box;
}

.intro h1 span {
  color: var(--main-theme-color);
  display: block;
}

.welcome-box {
  margin: 40px 0;
  display: flex;
  gap: 5%;
  align-items: center;
}

.welcome-box img {
  width: 30%;
  border-radius: 20px;
}

.welcome-box .content {
  width: 65%;
}

.welcome-box h2 {
  font-size: 1.75em;
  margin-bottom: 25px;
  text-transform: uppercase;
  color: var(--main-theme-color);
}

.welcome-box h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 5px;
  margin-top: 10px;
  background: var(--secondary-theme-color);
}

.welcome-box p {
  line-height: 1.5em;
  margin-bottom: 30px;
  text-align: justify;
}

/* home end */

/* contact box */

.contact-box a::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 20px;
  width: 20px;
}

.contact-box a:first-child::before {
  background: url("img/map-marker.svg") no-repeat center center;
  background-size: 100%;
}

.contact-box a:nth-child(2)::before {
  background: url("img/phone.svg") no-repeat center center;
  background-size: 100%;
}

.contact-box a:last-child::before {
  background: url("img/mail.svg") no-repeat center center;
  background-size: 100%;
}

/* contact box end */

/* gallery */

.img-gallery {
  position: relative;
  margin-bottom: 30px;
}

.img-gallery a {
  position: absolute;
  width: 25%;
  transition: 0.2s ease transform;
  box-sizing: border-box;
  padding: 5px;
}

.img-gallery a:hover {
  transform: scale(1.1, 1.1);
  z-index: 1;
}

.img-gallery img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

/* gallery end */

/* contact */

.std-form {
  margin-bottom: 40px;
  --columns: 2;
  --hgap: 20px;
  --vgap: 5px;
  display: flex;
  flex-wrap: wrap;
  display: flex;
  flex-wrap: wrap;
  gap: var(--vgap) var(--hgap);
}

.std-form div {
  margin-bottom: 10px;
  box-sizing: border-box;
  width: calc(100 / var(--columns) * 1% - (var(--hgap) * (var(--columns) - 1) / var(--columns)));
}

.std-form .full {
  width: 100%;
}

.std-form input,
.std-form select,
.std-form textarea {
  background: #e1e1e1;
  color: var(--main-theme-color);
  box-sizing: border-box;
  border: 0 none;
  font-size: 0.9375em;
  padding: 10px 15px;
  font-weight: 600;
  display: block;
  width: 100%;
  border-radius: 10px;
}

.std-form input,
.std-form select {
  height: 40px;
}

.std-form input::placeholder,
.std-form textarea::placeholder {
  color: var(--main-theme-color);
}

.std-form input[type="checkbox"],
.std-form input[type="radio"] {
  display: none;
}

.std-form input[type="checkbox"] + label,
.std-form input[type="radio"] + label {
  padding-left: 30px;
  position: relative;
}

.std-form input[type="checkbox"] + label::before {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--main-theme-color);
  background: #fff;
  border-radius: var(--border-radius);
}

.std-form input[type="checkbox"]:checked + label::after {
  background: url("img/tick.svg") no-repeat center center;
  background-size: 80%;
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  z-index: 1;
  left: 1px;
  top: 0;
  filter: var(--main-theme-color-filter);
}

.std-form select {
  appearance: none;
  padding-right: 50px;
  background-image: url("img/dropdown.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px 15px;
}

.std-form select + svg {
  width: 20px;
  height: auto;
  fill: #fff;
  margin-top: -26px;
  float: right;
  margin-right: 10px;
  transform: rotate(90deg);
}

.std-form .submit-box {
  width: 100% !important;
}

.std-form textarea {
  height: 120px;
}

.map {
  position: relative;
  margin-bottom: 130px;
  top: 97px;
}

#map-canvas {
  height: 400px;
  margin-bottom: 40px;
}

.map .legend {
  position: absolute;
  z-index: 1;
  bottom: 30px;
  padding: 25px 30px;
  background: #fff;
  min-width: 200px;
  max-width: 350px;
  border-radius: 20px;
}

.map .legend .section-headline {
  color: var(--secondary-theme-color);
}

/* contact end */

/* offer */

.offer {
  margin-top: -30px;
}

.offer a {
  padding: 50px 0;
  display: block;
}

.offer a:nth-child(odd) {
  background: #f1f1f1;
}

.offer a .wrapper {
  display: grid;
  grid-template-areas:
    "img title"
    "img content";
  grid-template-columns: 40% 55%;
  grid-template-rows: auto 1fr;
  grid-auto-rows: min-content;
  gap: 20px 5%;
}

.offer a:nth-child(even) .wrapper {
  grid-template-areas:
    "title img"
    "content img";
  grid-template-columns: 55% 40%;
}

.offer .img {
  grid-area: img;
  position: relative;
  display: flex;
  align-items: center;
}

.offer .img img {
  display: block;
  width: 100%;
}

.offer .img span {
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 15px;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  border-radius: 0 0 20px 0;
  color: var(--secondary-theme-color);
  font-weight: bold;
}

.offer h3 {
  grid-area: title;
  font-size: 2.5em;
  font-family: var(--headline-font);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--main-theme-color);
}

.offer .ed {
  grid-area: content;
}

/* offer end */

/* media queries */

@media screen and (max-width: 1200px) {
  .intro h1 {
    font-size: 2.5em;
    width: 96%;
    text-align: center;
  }

  .img-gallery a {
    width: 33.3333%;
  }
}

@media screen and (max-width: 850px) {
  header .contact-box a::before {
    width: 25px;
    height: 25px;
  }

  header .contact-box span {
    display: none;
  }

  .menu {
    display: none;
  }

  header .mobile-menu {
    display: block;
    justify-self: end;
  }

  .mobile-menu img {
    filter: var(--secondary-theme-color-filter);
    width: 25px;
    height: auto;
    cursor: pointer;
  }

  .mobile-menu nav {
    display: block;
    position: fixed;
    z-index: 10;
    right: 0;
    top: 0;
    background: var(--main-theme-color);
    padding: 40px 25px 20px 25px;
    height: 100vh;
    box-sizing: border-box;
    border-radius: 20px 0 0 20px;
    width: 250px;
    transform: translateX(100%);
    transition: transform ease 0.4s;
  }

  .mobile-menu.open nav {
    transform: none;
  }

  .mobile-menu nav .close {
    position: absolute;
    z-index: 1;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: url("img/close.svg") no-repeat center center;
    background-size: 30px 30px;
    filter: brightness(0) invert(1);
    border-radius: 50%;
    border: 1px solid #fff;
    padding: 5px;
  }

  .mobile-menu nav li {
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
    margin-bottom: 10px;
    font-size: 1.125em;
  }

  .mobile-menu nav li:last-child {
    margin-bottom: 0;
    border-bottom: 0 none;
    padding-bottom: 0;
  }

  .mobile-menu nav a {
    color: #fff;
  }

  .welcome-box img {
    display: none;
  }

  .welcome-box .content {
    width: 100%;
  }

  footer .wrapper {
    display: block;
  }

  footer .contact {
    position: relative;
    text-align: center;
    padding-top: 100px;
  }

  footer .contact::after {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -150px;
    transform: none;
  }

  .offer a .wrapper {
    grid-template-columns: 100% !important;
    grid-template-areas: "title" "img" "content" !important;
    text-align: center;
  }

  .offer .img {
    display: block;
    padding: 0 30px;
  }

  .img-gallery a {
    width: 50%;
  }
}

@media screen and (max-width: 768px) {
  .intro h1 {
    font-size: 1.5em;
    padding: 15px 20px;
  }
}

@media screen and (max-width: 550px) {
  .map .legend {
    position: static;
    padding: 0;
  }

  .map .legend .section-headline {
    color: var(--main-theme-color);
  }

  .std-form div {
    width: 100%;
  }

  .img-gallery a {
    width: 100%;
  }
}

@media screen and (max-width: 460px) {
  header .logo img {
    width: 230px;
  }

  .copyrights .wrapper,
  .copyrights .wrapper > * {
    display: block;
    text-align: center;
  }

  .copyrights span {
    margin-bottom: 10px;
  }

  .headline {
    height: 250px;
  }

  .headline h1,
  .headline p {
    font-size: 2.25em;
    margin-top: 40px;
  }

  .offer .img {
    padding: 0;
  }
}

/* media queries end */
