/* Fonts */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Variables */
:root {
  --primary-color: #013b8c;
  --hover: rgb(0, 44, 105);
  --active: rgb(0, 40, 97);
  --background-color: rgba(1, 60, 142, 0.1);
  --text-primary: #000;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --max-radius: 999px;
  --transition: all 0.16s ease-in;
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
}

.no-scroll {
  overflow: hidden;
}

section {
  padding: 48px 0;
}

h2 {
  padding: 0 16px;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 32px;
  width: 100%;
  text-align: center;
}

@media screen and (min-width: 600px) {
  section {
    padding: 80px 64px;
  }

  h2 {
    font-size: 36px;
    margin-bottom: 64px;
  }
}

@media screen and (min-width: 1280px) {
  section {
    padding: 80px 120px;
  }

  h2 {
    font-size: 36px;
    margin-bottom: 64px;
  }
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
}

/* Navbar */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0px 120px;
  color: white;
  background-color: rgba(1, 60, 142, 1);
}

nav.sticky {
  position: absolute;
  top: 0;
  left: 0;
  backdrop-filter: blur(24px);
  background-color: rgba(1, 60, 142, 0.5);
}

nav h1 a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
}

nav h1 img {
  width: 100%;
}

nav .links {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav .links a {
  font-size: 16px;
  color: #fff;
}

nav .links li a:hover {
  text-decoration: underline;
}

nav .links li:first-child button {
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

nav .links li:first-child button.active {
  background-color: var(--hover);
}

nav .links li:first-child button:hover {
  background-color: var(--hover);
}

nav .links li:last-child button {
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: #fff;
  border: none;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  transition: var(--transition);
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  -ms-transition: var(--transition);
  -o-transition: var(--transition);
}

nav .links li:last-child button:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

nav .links li:last-child button:active {
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

nav .burger {
  display: none;
  z-index: 5;
}

nav .burger :last-child {
  display: none;
}

nav .burger.toggled :last-child {
  display: block;
}

nav .burger.toggled :first-child {
  display: none;
}

nav .mobile-links {
  position: fixed;
  right: 0px;
  top: 0px;
  display: none;
  height: 100vh;
  width: 100%;
  padding: calc(44px + 24px + 16px) 16px 64px;
  backdrop-filter: blur(24px);
  background-color: rgba(173, 199, 235, 0.97);
  /* background-color: #cfdbea; */
}

nav .mobile-links li {
  display: flex;
}

nav .mobile-links li a,
nav .mobile-links li button {
  width: 100%;
  padding: 16px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: var(--max-radius);
  -webkit-border-radius: var(--max-radius);
  -moz-border-radius: var(--max-radius);
  -ms-border-radius: var(--max-radius);
  -o-border-radius: var(--max-radius);
}

nav .mobile-links li a:hover,
nav .mobile-links li:not(:last-child) button:hover {
  background-color: rgba(255, 255, 255, 0.75);
}

nav .mobile-links li:last-child {
  margin-top: auto;
}

nav .mobile-links li:last-child button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  color: #fff;
  transition: var(--transition);
}

nav .mobile-links li:last-child button:hover {
  background-color: var(--hover);
}

@media screen and (min-width: 601px) and (max-width: 1279px) {
  nav.sticky {
    padding: 0px 64px;
  }

  nav .mobile-links {
    padding: calc(16px + 75px) 64px 32px;
  }
}

@media screen and (max-width: 1279px) {
  nav {
    padding: 0px 64px;
  }

  nav .logo img {
    width: 100%;
    height: auto;
  }

  nav .links {
    display: none;
  }

  nav .burger {
    display: block;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  nav.sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

  nav.sticky .mobile-links {
    right: -0px;
    top: -0px;
    width: 100%;
  }

  nav .mobile-links.visible {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

@media screen and (max-width: 600px) {
  nav {
    top: 0px;
    left: 0px;
    right: 0px;
    width: auto;
    padding: 0px 16px;
  }

  nav.sticky {
    padding: 0px 16px;
  }
}

/* Footer */
footer > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 24px 16px;
  color: #fff;
  background-color: var(--primary-color);
}

footer > div > div:first-child h2 {
  max-width: 80%;
  margin-bottom: 24px;
  padding: 0;
  font-size: 36px;
  font-weight: 600;
  text-align: left;
}

footer > div > div:first-child > div {
  display: flex;
  gap: 16px;
}

footer > div > div:first-child > div button,
footer > div > div:first-child > div a {
  padding: 8px 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-color);
  background-color: #fff;
  border: none;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  transition: var(--transition);
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  -ms-transition: var(--transition);
  -o-transition: var(--transition);
}

footer > div > div:first-child > div button {
  color: var(--primary-color);
  background-color: #fff;
  border: none;
}

footer > div > div:first-child > div button:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

footer > div > div:first-child > div button:active {
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

footer > div > div:first-child > div a {
  color: #fff;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

footer > div > div:first-child > div a:hover {
  background-color: var(--hover);
}

footer > div > div:first-child > div a:active {
  background-color: var(--active);
}

footer > div > div:nth-child(2) {
  display: flex;
  gap: 16px;
}

footer > div > div:nth-child(2) > div {
  width: 100%;
}

footer > div > div:nth-child(2) > div h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

footer > div > div:nth-child(2) > div li {
  margin-bottom: 4px;
}

footer > div > div:nth-child(2) > div a {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

footer > div > div:nth-child(2) > div a:hover {
  text-decoration: underline;
}

footer > p {
  padding: 8px 12px;
  font-size: 16px;
  text-align: center;
  color: #fff;
  background-color: #387400;
}

@media screen and (min-width: 600px) {
  footer > div {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 48px 64px;
  }

  footer > div > div:first-child {
    flex: 1;
    align-self: flex-start;
  }

  footer > div > div:nth-child(2) {
    flex: 1;
  }

  footer > div > div:nth-child(2) > div h3 {
    font-size: 20px;
  }

  footer > div > div:nth-child(2) > div a {
    font-size: 18px;
  }

  footer > p {
    padding: 12px 16px;
    font-size: 18px;
  }
}

@media screen and (min-width: 1280px) {
  footer > div {
    padding: 48px 120px;
  }

  footer > p {
    padding: 16px 120px;
    font-size: 18px;
  }
}

/* Form inputs */
label:not(label[for="email"])::after {
  content: " *";
  color: rgb(255, 100, 100);
}

/* Dropdown menu */
.language-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  text-align: center;
  cursor: pointer;
}

.dropdown-toggle span:nth-child(2) {
  margin-right: auto;
}

.dropdown-toggle span:last-child {
  transition: transform 0.3s ease;
}

.dropdown-toggle.active span:last-child {
  transform: rotateX(180deg);
}

.dropdown-menu {
  z-index: 10;
  position: absolute;
  display: none;
  right: 0;
  left: 0;
  margin-top: 12px;
  padding: 6px;
  min-width: 140px;
  background: white;
  /* border: 2px solid var(--primary-color); */
  border-radius: 16px;
  list-style: none;
}

.dropdown-menu li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
}

.dropdown-menu li:first-child {
  margin-bottom: 6px;
}

.dropdown-menu li:hover {
  background-color: #ebf1fa;
}
