:root {
  --color-brand: #21be6d;
  --color-brand-dark: #1ea860;
  --color-dark: #111;
  --color-gray: #333;
  --color-white: #fff;
  --color-white-muted: rgb(255 255 255 / 80%);
  --color-border: rgb(255 255 255 / 20%);
  --color-error: #c03e56;
  --font-base: "Roboto", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --size-h1: clamp(2.2rem, 5vw, 4.5rem);
  --size-h2: clamp(1.8rem, 4vw, 3.5rem);
  --size-h3: clamp(1.6rem, 3vw, 3rem);
  --size-h4: clamp(1.2rem, 2vw, 1.5rem);
  --space: 2rem;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--color-brand);
}

body {
  color: var(--color-dark);
  font-family: var(--font-base);
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

p {
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin-inline: auto;
}

.section {
  padding-block: var(--space);
  overflow: hidden;
}

.section__title {
  margin-bottom: var(--space);
  color: var(--color-white);
  font-size: var(--size-h2);
}

.section--primary {
  color: var(--color-white);
  background: var(--color-brand);
}

.section--secondary {
  color: var(--color-white);
  background: var(--color-dark);
}

.section--tertiary {
  color: var(--color-white);
  background: var(--color-gray);
}

.button {
  display: inline-block;
  min-width: 120px;
  height: 48px;
  padding-inline: 24px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.button:disabled {
  opacity: .5;
  cursor: wait;
}

.button--primary {
  color: var(--color-white);
  background: var(--color-brand);
}

.button--primary:hover {
  background: var(--color-brand-dark);
}

.button--secondary,
.button--tertiary {
  color: var(--color-white);
  background: transparent;
}

.button--secondary {
  border-color: var(--color-brand);
}

.button--secondary:hover {
  background: rgb(33 190 109 / 20%);
}

.button--tertiary {
  border-color: var(--color-white);
}

.button--tertiary:hover {
  background: rgb(255 255 255 / 10%);
}

.header {
  height: 96px;
  background: var(--color-dark);
}

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

.header__logo {
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  text-decoration: none;
}

.header__menu {
  display: none;
  align-items: center;
  gap: 24px;
}

.header__menu-list {
  display: none;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.header__menu-list a {
  color: var(--color-white);
  line-height: 24px;
  text-decoration: none;
}

.header__menu-list a:hover {
  color: var(--color-brand);
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 96px);
  color: var(--color-white);
  background: rgb(0 0 0 / 60%) url("assets/images/hero_bg.jpeg") center top / cover no-repeat;
  background-blend-mode: multiply;
}

.hero__content {
  width: 100%;
}

.hero h1 {
  margin-bottom: var(--space);
  font-size: var(--size-h1);
  text-shadow: 0 15px 25px rgb(0 0 0 / 50%);
}

.hero p {
  margin-bottom: var(--space);
  color: var(--color-white-muted);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.services {
  text-align: center;
}

.services__list {
  display: grid;
  gap: var(--space);
  margin-bottom: var(--space);
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-item img {
  width: clamp(10rem, 50vw, 20rem);
  height: auto;
}

.service-item h3 {
  margin-bottom: 1rem;
  color: var(--color-white);
  font-size: var(--size-h4);
  font-weight: 300;
}

.service-item p {
  color: var(--color-white-muted);
}

.prices {
  text-align: center;
}

.prices__list {
  display: grid;
  gap: 1.5rem;
  margin-bottom: var(--space);
}

.price-item {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  text-align: left;
}

.price-item span {
  color: var(--color-brand);
  font-family: var(--font-heading);
}

.price-item i {
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.price-item strong {
  color: var(--color-white-muted);
  font-weight: 400;
  white-space: nowrap;
}

.about {
  position: relative;
}

.about__image {
  display: none;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: var(--space);
}

.about__content h3 {
  margin-bottom: 1rem;
  color: var(--color-dark);
  font-size: var(--size-h4);
}

.about__content p {
  font-weight: 300;
}

.about__content p:not(:last-child) {
  margin-bottom: 1rem;
}

.principles .section__title {
  text-align: center;
}

.principles__list {
  margin-bottom: var(--space);
  list-style: none;
}

.principles__list li {
  display: flex;
  align-items: center;
  gap: var(--space);
}

.principles__list li:not(:last-child) {
  margin-bottom: var(--space);
  padding-bottom: var(--space);
  border-bottom: 1px solid var(--color-border);
}

.principles__list span {
  flex-shrink: 0;
  color: var(--color-brand);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 300;
}

.principles__list p {
  color: var(--color-white-muted);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 300;
}

.contact-form {
  position: relative;
  background: linear-gradient(135deg, #f4d03f, #16a085);
}

.contact-form__image {
  display: none;
}

.contact-form__container {
  display: flex;
  justify-content: flex-end;
}

.contact-form__content {
  width: 100%;
}

.contact-form h2 {
  color: var(--color-dark);
  font-size: var(--size-h4);
}

.contact-form h2 span {
  display: block;
  margin-top: 1rem;
  color: var(--color-white);
  font-size: var(--size-h3);
  line-height: 1;
}

.contact-form__form {
  margin-block: 2rem;
}

.input {
  position: relative;
  margin-bottom: 2rem;
}

.input input {
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 2px solid var(--color-white-muted);
  outline: 0;
  color: var(--color-white);
  background: transparent;
  font: inherit;
  line-height: 1.5;
}

.input input:focus {
  border-color: var(--color-white);
}

.input label {
  position: absolute;
  inset: 0 auto auto 0;
  padding: 16px 0;
  color: var(--color-white-muted);
  line-height: 1.5;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .1s linear;
}

.input input:focus + label,
.input input:not(:placeholder-shown) + label {
  transform: translateY(-40%) scale(.8);
}

.input.is-invalid input {
  border-color: var(--color-error);
}

.input__error {
  min-height: 1rem;
  margin-top: .5rem;
  color: var(--color-error);
  font-size: .75rem;
}

.contact-form__disclaimer {
  color: rgb(17 17 17 / 80%);
  font-size: .9rem;
  line-height: 1.2;
}

.contact-form .button {
  margin-top: 2rem;
}

.form-message {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 4px;
  color: var(--color-white);
  font-size: .9rem;
  line-height: 1.2;
  box-shadow: 0 0 10px rgb(0 0 0 / 10%);
}

.form-message--success {
  background: var(--color-brand);
}

.form-message--error {
  background: var(--color-error);
}

.details h3 {
  color: var(--color-brand);
  font-size: var(--size-h4);
}

.details__list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.details__list h4 {
  color: var(--color-white-muted);
}

.details__list p,
.details__list a {
  color: var(--color-white);
  font-size: 1.2rem;
}

@media (min-width: 37.5em) {
  .header__container {
    justify-content: space-between;
  }

  .header__menu {
    display: flex;
  }
}

@media (min-width: 56.5625em) {
  .header__menu-list {
    display: flex;
  }

  .services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prices__list,
  .details__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__image,
  .contact-form__image {
    display: block;
    position: absolute;
    inset-block: 0;
    width: calc(50% - 2rem);
    background-repeat: no-repeat;
  }

  .about__image {
    right: 0;
    background: url("assets/images/about_bg.jpeg") center / cover;
  }

  .about__content {
    width: calc(50% - 2rem);
  }

  .contact-form__image {
    left: 0;
    background: url("assets/images/contact_form_bg.jpeg") left top / auto no-repeat;
  }

  .contact-form__content {
    width: 50%;
  }
}

@media (min-width: 77.5em) {
  .hero__content {
    width: 67%;
  }

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

@media (max-width: 37.49em) {
  .principles__list li {
    align-items: flex-start;
    gap: 1rem;
  }

  .principles__list span {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
