:root {
  --text: #c9caca;
  --panel: rgba(10, 20, 21, 0.88);
  --panel-border: rgba(201, 202, 202, 0.26);
  --button-border: rgba(201, 202, 202, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: #071112;
  font-family: "Open Sans", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 16, 17, 0.58), rgba(6, 16, 17, 0.7)),
    url("../assets/warehouse-construction-site.jpeg") center / cover no-repeat;
}

.landing__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(90deg, rgba(2, 8, 9, 0.62), rgba(7, 22, 23, 0.36), rgba(2, 8, 9, 0.72));
  pointer-events: none;
}

.landing__content {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(1120px, 100%);
  margin-top: -2vh;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(782px, 88vw);
  height: auto;
  margin: 0 auto;
}

.service-line {
  position: relative;
  left: 50%;
  width: calc(100vw - 48px);
  max-width: 1500px;
  margin: clamp(56px, 7vh, 96px) auto 0;
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(16px, 1.55vw, 24px);
  font-weight: 400;
  line-height: 1.16;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.intro {
  max-width: 860px;
  margin: 28px auto 0;
  color: var(--text);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.55;
}

.notify-button,
.notify-form button {
  color: var(--text);
  border: 1px solid var(--button-border);
  background: rgba(10, 28, 29, 0.42);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.notify-button {
  min-width: 184px;
  min-height: 58px;
  margin-top: 38px;
  padding: 16px 28px;
}

.notify-button:hover,
.notify-button:focus-visible,
.notify-form button:hover,
.notify-form button:focus-visible {
  border-color: #ffffff;
  background: rgba(201, 202, 202, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  padding: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.modal__panel h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  text-transform: uppercase;
}

.modal__panel p {
  margin: 16px 0 26px;
  font-size: 17px;
  line-height: 1.5;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.notify-form {
  display: grid;
  gap: 14px;
}

.notify-form input,
.notify-form textarea {
  width: 100%;
  padding: 0 16px;
  color: #172122;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 17px;
}

.notify-form input {
  min-height: 54px;
}

.notify-form textarea {
  min-height: 132px;
  padding-top: 14px;
  line-height: 1.45;
  resize: vertical;
}

.notify-form input:focus,
.notify-form textarea:focus {
  border-color: var(--text);
  outline: 2px solid rgba(201, 202, 202, 0.34);
  outline-offset: 2px;
}

.notify-form button {
  min-height: 54px;
  padding: 14px 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .landing {
    padding: 36px 20px;
    background-position: 58% center;
  }

  .landing__content {
    margin-top: 0;
  }

  .brand-logo {
    width: min(560px, 92vw);
  }

  .service-line {
    left: auto;
    width: 100%;
    margin-top: 48px;
    max-width: 100%;
    transform: none;
    white-space: normal;
  }

  .intro {
    margin-top: 22px;
  }

  .notify-button {
    min-width: 164px;
    min-height: 54px;
    margin-top: 32px;
  }

  .modal__panel {
    padding: 38px 22px 28px;
  }
}

@media (max-width: 440px) {
  .landing {
    padding-inline: 18px;
  }

  .service-line {
    font-size: 18px;
  }

  .intro {
    font-size: 16px;
  }

  .modal__panel h2 {
    font-size: 21px;
  }
}
