:root {

  --color-primary: hsl(246, 100%, 15%);
  --color-secondary: hsl(276, 100%, 36%);
  --color-details: hsl(191, 98%, 36%);
  --color-bg-lighter: hsl(234, 100%, 99%);
  --color-bg-light: hsl(234, 100%, 98%);
  --color-bg-dark: hsl(240, 73%, 97%);
  --color-bg-darker: hsl(240, 75%, 94%);
  --color-bg-transparent: hsla(240, 100%, 97%, 0.852);
  --color-text: hsl(261, 78%, 9%);
  --color-text-light: hsl(0, 0%, 100%);

  --shadow-nav: 0 3px 4px hsla(240, 9%, 39%, 0.5);
  --shadow-card: 0px 0px 8px hsl(256, 33%, 74%);
  --shadow-item-green: 5px 5px 0 hsl(193, 48%, 74%);
  --shadow-item-purple: 5px 5px 0 hsl(253, 67%, 87%);

  --ff-headline: "Inter", "Helvetica", "Arial", sans-serif;
  --ff-main: "Inter", "Helvetica", "Arial", sans-serif;
  --fs-small: 0.8rem;
  --fs-regular: 1rem;

}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-VariableFont_opsz\,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

body {
  font-family: var(--ff-main);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--color-secondary);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--color-bg-lighter);
  box-shadow: var(--shadow-nav);
  z-index: 100;
}

.nav-right {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-lighter);
  padding: 4rem 2rem;
  height: 0;
  color: var(--color-secondary);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity .3s ease,
    height .3s ease,
    visibility .3s;
}

.nav-links {
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
}

.nav-links > li > a:focus-visible,
.dropdown-toggle:focus-visible,
.dropdown-menu a:focus-visible,
.menu-btn:focus-visible,
.language-switch:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
}

.nav-links li, .dropdown-toggle {
  border-bottom: solid 2px var(--color-bg-darker);
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 1.1rem;
}

li.dropdown {
  padding: 0;
}

.dropdown-menu > li:last-of-type {
  border-bottom: none;
}

.dropdown-menu {
  font-size: 1.15rem;
  display: flex;
  flex-direction: column;
}

.dropdown-menu > li {
  padding-left: 1.5rem;
}

.dropdown-toggle {
  width: 100%;
  text-align: left;
}

.dropdown-toggle svg {
  display: none;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.btn {
  border-radius: 100vw;
}

.menu-btn {
  padding: 0.5rem 1rem 0.5rem  0.9rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-light);
  background-color: var(--color-secondary);
}

.open-menu {
  display: block;
}

.close-menu {
  display: none;
}

.language-switch {
  color: var(--color-secondary);
  text-align: center;
}

.selection {
  font-weight: 700;
}

footer {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  text-align: center;
}

footer a, address {
  color: var(--color-text-light);
  font-style: normal;
}

.footer-columns {
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

footer ul, footer address, footer p {
  font-size: var(--fs-regular);
  font-weight: 300;
  line-height: 1.25;
}

footer ul, footer address {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;  
}

.privacy, .legal {
  padding: 8rem clamp(2rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background-color: var(--color-bg-light);
}

.legal section, .privacy section {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.privacy h1, .legal h1 {
  font-size: 2.5rem;
}

.privacy p, .legal p, .privacy li, .legal li {
  font-size: var(--fs-regular);
  font-weight: 350;
  line-height: 1.5;
}

.privacy h1, .privacy h2, .legal h1, .legal h2 {
  color: var(--color-primary);
}

.not-found {
  background-color: var(--color-bg-light);
  display: grid;
  place-items: center;
}

.not-found a {
  cursor: pointer;
}

.not-found header {
  position: absolute;
  top: 1rem;
  left: 2rem;
}

.not-found main {
  padding: 2rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 450px;
  text-align: center;
  gap: 0.75rem;
}

.not-found main img {
  width: 160px;
  height: auto;
}

.not-found h1 {
  margin: 0;
  color: var(--color-primary);
}

.not-found main > a:first-of-type {
  padding: 0.8rem 1.3rem;
  color: var(--color-text-light);
  background-color: var(--color-secondary);
  border-radius: 100vw;
  transition: all 0.2s ease;
  margin: 0.5rem 0;
}

.not-found main > a:first-of-type:hover {
  transform: scale(1.05);
}

.not-found main > p > a {
    color: var(--color-secondary);
    font-weight: 400;
}




@media (max-width: 767px) {

  .nav-right.active {
    opacity: 1;
    visibility: visible;
    height: calc(100dvh - 70px);
    overflow-y: auto;
  }

  body:has(.nav-right.active) {
    overflow: hidden;
  }

  .menu-btn.active .close-menu {
    display: block;
  }

  .menu-btn.active .open-menu {
    display: none;
  }

}




@media (min-width: 768px) {

  p {
    font-size: 1.1rem;
    font-weight: 300;
  }

  .menu-btn {
    display: none;
  }

  .navbar {
    align-items: center;
    padding: 0.75rem 2rem;
  }

  .nav-right {
    position: static;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    opacity: 1;
    visibility: visible;
    background-color: var(--color-bg-lighter);
    overflow: visible;
  }

  .nav-links {
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    font-size: var(--fs-regular);
  }

  .nav-links li, .dropdown-toggle {
    border-bottom: none;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-links > li > a, .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    border-radius: 100vw;
    transition: all 0.2s ease;
    color: var(--color-secondary);
    font-size: var(--fs-regular);
  }

  .nav-links > li > a:hover, .dropdown-toggle:hover {
    color: var(--color-text-light);
    background-color: var(--color-secondary);
    cursor: pointer;
  }

  .dropdown-toggle {
    width: auto;
    flex-direction: row;
    gap: 0.35rem;
    text-align: center;
  }

  .dropdown-toggle svg {
    display: block;
    transform: translateY(1px);
    transition: all 0.2s ease;
  }

  .dropdown-toggle svg path {
    fill: var(--color-secondary);
    transition: all 0.2s ease;
  }

  .dropdown-toggle:hover svg,
  .dropdown.open svg {
    transform: scaleY(-1);
  }

  .dropdown-toggle:hover svg path {
    fill: var(--color-text-light);
  }

  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    background: var(--color-bg-lighter);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    font-size: var(--fs-regular);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu a:hover {
    font-weight: 600;
  }

  .dropdown-menu > li {
    padding-left: 0;
    font-size: var(--fs-regular);
  }

  footer {
    padding: 6rem clamp(2rem, 8vw, 8rem) 4rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    text-align: left;
  }

  .footer-columns {
    width: clamp(700px, 80vw, 1100px);
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

}