/* SWITZER FONT LOAD */
@font-face {
  font-family: "Switzer-Variable";
  src: url("../../assets/fonts/Switzer-Variable.woff2") format("woff2"),
    url("../../assets/fonts/Switzer-Variable.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* REDACTION FONT LOAD */
@font-face {
  font-family: "Redaction";
  src: url("../../assets/fonts/Redaction-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
}

/* BASICS */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

:root {
  --white: 255, 255, 255;
  --white-gray: 245, 245, 245;
  --gray: 191, 191, 191;
  --blue-whale: 25, 45, 49;
  --camel: 195, 161, 88;

  --h1-fz: clamp(4.8rem, 2.83072rem + 1.9231vw, 5.6rem);
  --h2-fz: clamp(3.6rem, 1.63072rem + 1.9231vw, 4.4rem);
  --h3-fz: clamp(3.2rem, 2.21536rem + 0.9615vw, 3.6rem);
  --h4-fz: clamp(2rem, 1.01536rem + 0.9615vw, 2.4rem);
  --h5-fz: clamp(1.6rem, 0.61536rem + 0.9615vw, 2rem);
  --paragraph-fz: clamp(1.4rem, 0.90768rem + 0.4808vw, 1.6rem);
  --small-fz: clamp(1.2rem, 0.70768rem + 0.4808vw, 1.4rem);

  --w-large: 124rem;
  --w-medium: 78rem;
}

body {
  width: 100vw;
  height: 100dvh;
  background: rgb(var(--white));
  color: rgb(var(--blue-whale));
  font-family: "Switzer-Variable";
  font-size: var(--paragraph-fz);
  font-weight: 400;
}

.blue {
  background: rgb(var(--blue-whale));
  border-bottom: 5px solid rgb(var(--camel));
  color: rgb(var(--white));
}

.no-overflow {
  overflow: hidden;
}

/* SECTIONS */

section {
  width: 100vw;
}

/* IMG */

img {
  display: block;
  width: 100%;
  height: auto;
}

/* FONT OPTIONS */

h1 {
  font-size: var(--h1-fz);
  text-transform: uppercase;
}

h2 {
  font-size: var(--h2-fz);
}

#slogan {
  font-weight: 400;
}

h3 {
  font-size: var(--h3-fz);
}

h4 {
  font-size: var(--h4-fz);
  font-weight: 400;
}

h5 {
  font-size: var(--h5-fz);
  font-weight: 400;
}

p,
a {
  font-size: var(--paragraph-fz);
}

a {
  display: inline-block;
  text-decoration: none;
  color: rgb(var(--blue-whale));
}

.blue-variant {
  color: rgba(var(--blue-whale), 0.75);
}

.text-small,
#contact a {
  color: rgb(var(--gray));
  font-size: var(--small-fz);
}

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

.redaction {
  font-family: "Redaction";
}

.underline {
  position: relative;
}

.underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(var(--camel));
}

h1 .underline::after {
  height: 2px;
}

.underline-hover::after {
  background: rgb(var(--blue-whale));
  transition: background 0.2s ease-out;
}

.underline-hover:hover::after {
  background: rgb(var(--camel));
}

.text-center.underline-fourth::after {
  left: 50%;
  transform: translateX(-50%);
  bottom: -1rem;
}

.underline-fourth::after {
  width: 25%;
  height: 4px;
}

.quote {
  position: relative;
  padding-left: 1rem;
}

.quote::after {
  content: "";
  width: 1px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgb(var(--camel));
}

.text-nowrap {
  text-wrap: nowrap;
}

.text-bold {
  font-weight: 700;
}

.text-uppercase {
  text-transform: uppercase;
}

/* WIDTH/HEIGHT OPTIONS */

.w-fit {
  width: fit-content;
}

.w-full {
  width: 100%;
}

.w-medium {
  max-width: var(--w-medium);
  width: 100%;
}

.w-large {
  max-width: var(--w-large);
  width: 100%;
  padding-inline: 10rem;
}

.h-full {
  height: 100%;
}

.h-100 {
  height: 100dvh;
}

/* MARGINS OPTIONS */

.m-auto,
.text-center {
  margin: 0 auto;
}

.mt-large {
  margin-top: 10rem;
}

.mb-medium {
  margin-bottom: 5rem;
}

.mb-large {
  margin-bottom: 6.5rem;
}

.m-subtitle {
  padding-top: 10rem;
  margin-bottom: 10rem;
}

/* POSITIONS */

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

/* FLEX */

.flex,
.btn {
  display: flex;
}

.column {
  flex-direction: column;
}

/* FLEX OPTIONS */

.flex-wrap {
  flex-wrap: wrap;
}

.align-center,
.btn {
  align-items: center;
}

.justify-center,
.btn {
  justify-content: center;
}

.space-between {
  justify-content: space-between;
}

.gap-tiny {
  gap: 1rem;
}

.gap-small {
  gap: 2.5rem;
}

.gap-medium {
  gap: 5rem;
}

/* FORM */

form div {
  width: 100%;
}

label {
  position: absolute;
  top: 1.5rem;
  left: 0;
  opacity: 0.5;
  transition: all 0.2s ease-out;
}

input,
select,
textarea {
  width: 100%;
  font-family: "Switzer";
  display: inline-block;
  padding-block: 2.5rem 1rem;
  background: none;
  color: rgb(var(--white));
  border-bottom: 1px solid rgb(var(--white));
  transition: all 0.2s ease-out;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgb(var(--camel));
}

input:focus + label,
textarea:focus + label,
select:focus + label,
input:valid + label,
textarea:valid + label,
select:not(:empty) + label {
  top: 0;
  opacity: 1;
}

.mid-width {
  width: calc(50% - 1.25rem);
}

button {
  font-size: var(--paragraph-fz);
  padding: 1rem 2rem;
  background: rgb(var(--white));
  border: 1px solid rgb(var(--white));
  border-radius: 0.5rem;
  transition: all 0.2s ease-out;
}

button:hover {
  background: transparent;
  color: rgb(var(--white));
}

button.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 3.2rem;
  color: rgb(var(--white));
  background: rgb(var(--blue-whale));
  z-index: 10;
  border-bottom: 2px solid rgb(var(--camel));
  transition: top 0.8s ease;
}

header.scrolled {
  top: -110%;
}

header .logo {
  width: 13rem;
}

header a {
  color: rgb(var(--white));
}

li {
  list-style-type: none;
}

#langSelected {
  padding-right: 2rem;
}

#langSelected::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: url(../img/chevron-down.svg) center center no-repeat;
  width: 1.6rem;
  height: 1.6rem;
}

#langWrapper {
  padding-top: 3rem;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#langOptions {
  border-radius: 0.5rem;
  overflow: hidden;
  border: none;
  max-height: 0;
  transition: all 0.5s ease-in-out;
}

#langWrapper:hover #langOptions {
  border: 1px solid rgb(var(--white));
  max-height: 100rem;
}

#langOptions li {
  padding: 1rem 2rem;
  background: rgb(var(--blue-whale));
  transition: all 0.2s ease-out;
}

#langOptions li:hover {
  background: rgb(var(--white));
  color: rgb(var(--blue-whale));
}

/* BTN */

.btn,
.btn.invert:hover {
  background: rgb(var(--blue-whale));
  color: rgb(var(--white));
  padding: 1rem 2rem;
  border: 1px solid rgb(var(--white));
  border-radius: 0.5rem;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.btn.invert,
.btn:hover {
  background: rgb(var(--white));
  color: rgb(var(--blue-whale));
}

/* HERO */

#hero img {
  width: 50%;
}

/* CARDS */

.card {
  width: 100%;
  border: 1px solid rgb(var(--gray));
  border-radius: 1rem;
}

#whyUs .flex:nth-child(2) {
  flex-wrap: wrap;
}

#whyUs .card {
  width: calc(50% - 2.5rem);
}

.card__active {
  border-color: rgb(var(--camel));
  transform: scale(1.05);
}

.card__wrapper {
  padding: 2.5rem;
}

/* FAQ */

.faq-title {
  position: sticky;
  top: 10.2rem;
  left: 0;
  align-self: flex-start;
  width: 100%;
  max-width: 40%;
}

.faq-title div {
  padding: var(--small-padding);
}

.faq-title p {
  color: rgb(var(--white));
}

.faq-list,
.faq-item,
.faq-question,
.faq-answer {
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgb(var(--gray));
}

.faq-item:nth-child(1) {
  border-block: 1px solid rgb(var(--gray));
}

.faq-question {
  padding: 1.6rem 0;
}

.faq-icon {
  width: 3.2rem;
  height: 3.2rem;
  position: relative;
  padding: 0.8rem;
  background: var(--gradient-primary);
  transition: transform 0.2s ease-out;
}

.opened .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0.8rem 0 1.6rem;
  color: rgb(var(--black-gray));
}

.faq-answer-wrap {
  display: block;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer-wrap.opening,
.faq-answer-wrap.closing {
  transition: max-height 0.3s ease;
}

#faqContainer {
  border-radius: 1rem;
  padding: 2.5rem;
  background: rgb(var(--blue-whale));
  color: rgb(var(--white));
}

#faqContainer a,
#contact a {
  color: rgb(var(--white));
}

#faqContainer .underline-hover::after,
#contact .underline-hover::after {
  background: rgb(var(--white));
}

#faqContainer .underline-hover:hover::after,
#contact .underline-hover:hover::after {
  background: rgb(var(--camel));
}

/* FOOTER */

#footerWrap {
  margin: 0 auto;
  padding-block: 2.5rem;
  border-top: 1px solid rgb(var(--gray));
}

#footerWrap ul {
  gap: 0.25rem;
}

#footerWrap a {
  line-height: 2;
}

#footerWrap a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

@media screen and (max-width: 979px) {
  :root {
    --h1-fz: clamp(4rem, 3.50416rem + 1.3223vw, 4.8rem);
    --h2-fz: clamp(2.8rem, 2.30416rem + 1.3223vw, 3.6rem);
    --h3-fz: clamp(2rem, 1.50416rem + 1.3223vw, 2.8rem);
    --h4-fz: clamp(1.6rem, 1.352rem + 0.6612vw, 2rem);
    --h5-fz: clamp(1.4rem, 1.276rem + 0.3306vw, 1.6rem);
    --paragraph-fz: clamp(1.2rem, 1.076rem + 0.3306vw, 1.4rem);
    --small-fz: clamp(1rem, 0.876rem + 0.3306vw, 1.2rem);
  }

  header a.btn {
    display: none;
  }

  #hero img {
    width: 50%;
  }

  #hero .flex:nth-child(1) {
    flex-direction: column;
  }

  #hero .flex:nth-child(2) {
    align-items: center;
  }

  .w-large {
    padding-inline: 3.2rem;
  }

  .m-subtitle {
    padding-top: 3.2rem;
    margin-bottom: 3.2rem;
  }

  .mb-large {
    margin-bottom: 4.5rem;
  }

  .gap-medium {
    gap: 3.2rem;
  }

  .gap-small {
    gap: 1.6rem;
  }

  .gap-tiny {
    gap: 0.8rem;
  }

  #services .flex:nth-child(2),
  #whyUs .flex:nth-child(2) {
    flex-direction: column;
  }

  #whyUs .card {
    width: 100%;
  }

  .card__active {
    order: -1;
  }

  #faq .w-large.flex {
    flex-direction: column;
  }

  .faq-title {
    max-width: 100%;
    position: static;
  }

  .faq-question {
    padding: 0.8rem 0;
  }

  .faq-icon {
    width: 2.8rem;
    height: 2.8rem;
  }

  #slogan {
    font-size: var(--h3-fz);
    padding-inline: 3.2rem;
  }

  #footerWrap {
    flex-direction: column;
    gap: 2.4rem;
  }
}
