@font-face {
  font-family: "Rubik";
  src: url(/src/font/Rubik.ttf);
}

@font-face {
  font-family: "Oswald";
  src: url(/src/font/Oswald.ttf);
}

@font-face {
  font-family: "Roboto";
  src: url(/src/font/Roboto-Bold.ttf);
}

:root {
  /* colors */

  --white: #fff;
  --accent: #005252;
  --dark: #010006;
  --green: #00b800;
  --red: #ec0b43;
  --blue: #81cae9;
  --blue-2: #001a7f;

  --gradient: linear-gradient(90deg, rgba(243, 203, 81, 1) 0%, rgba(240, 210, 127, 1) 33%, rgba(168, 124, 45, 1) 66%, rgba(144, 97, 38, 1) 100%);
  --light-gradient: linear-gradient(270deg, rgba(129, 202, 233, 1) 0%, rgba(0, 26, 127, 1) 100%);
  --light-gradient--v: linear-gradient(180deg, rgba(129, 202, 233, 1) 0%, rgba(0, 26, 127, 1) 100%);

  /* font-sizes */
  --fs-900: clamp(5rem, 8vw + 1rem, 9.375rem);
  --fs-800: 4rem;
  --fs-750: 3.5rem;
  --fs-700: 3rem;
  --fs-650: 2.5rem;
  --fs-600: 2rem;
  --fs-550: 1.5rem;
  --fs-medium: clamp(0.875rem, 0.663vw + 0.72rem, 1.25rem);
  --fs-small: clamp(0.75rem, 1.875vw + 0.375rem, 1.125rem);
  --fs-nav: clamp(0.75rem, 1.326vw + 0.439rem, 1.5rem);

  /* font-families */
  --ff-serif: "Rubik", Helvetica, serif;
  --ff-sans-normal: "Rubik", Arial, sans-serif;
  --ff-oswald: "Roboto";
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-color: transparent transparent;
  scrollbar-width: 0px;
  scroll-behavior: smooth;
}

*::-webkit-scrollbar {
  width: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}

* {
  -ms-overflow-style: none;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
  margin: 0;
  padding: 0;
}

html,
body {
  position: relative;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html,
body,
main {
  position: relative;
  z-index: -10;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

p {
  line-height: 1.4;
}

/* make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* make forms elements easier to work with */
input,
button,
textarea,
select {
  font: inherit;
}

/* remove animations for people who have them turned off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button {
  cursor: pointer;
}

/* --------------------------  */
/* Utility Classes             */
/* --------------------------  */
.flex {
  display: flex;
  gap: var(--gap, 0.25rem);
}

.relative {
  position: relative;
}

.d-block {
  display: block;
}

.hidden {
  display: none;
}

.flow > *:where(:not(:first-child)) {
  margin-top: var(--flow-space, 1rem);
}

.container {
  padding: 4rem 2rem;
  margin-inline: auto;
  max-width: min(80rem, 95%);
}

@media (min-width: 768px) {
  .container {
    padding: 4rem;
  }
}

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

/* colors */
.bg-dark {
  background-color: var(--dark);
}
.bg-accent {
  background-color: var(--accent);
}
.bg-accent-2 {
  background-color: var(--accent-2);
}
.bg-accent-3 {
  background-color: var(--accent-3);
}
.bg-white {
  background-color: var(--white);
}

.text-black {
  color: #000;
}
.text-accent {
  color: var(--accent);
}
.text-accent-2 {
  color: var(--accent-2);
}
.text-white {
  color: var(--white);
}
.text-green {
  color: var(--green);
}
.text-red {
  color: var(--red);
}

/* typography */
.ff-serif {
  font-family: var(--ff-serif);
}
.ff-sans-normal {
  font-family: var(--ff-sans-normal);
}
.ff-oswald {
  font-family: var(--ff-oswald);
}

.letter-spacing-1 {
  letter-spacing: 4.75px;
}
.letter-spacing-2 {
  letter-spacing: 2.7px;
}
.letter-spacing-3 {
  letter-spacing: 2.35px;
}

.uppercase {
  text-transform: uppercase;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.justify {
  text-align: justify;
}

.bold {
  font-weight: 700;
}

.fs-900 {
  font-size: var(--fs-900);
}
.fs-800 {
  font-size: var(--fs-800);
}
.fs-700 {
  font-size: var(--fs-700);
}
.fs-650 {
  font-size: var(--fs-650);
}
.fs-600 {
  font-size: var(--fs-600);
}
.fs-550 {
  font-size: var(--fs-550);
}
.fs-medium {
  font-size: var(--fs-medium);
}
.fs-small {
  font-size: var(--fs-small);
}
.fs-nav {
  font-size: var(--fs-nav);
}

.fs-900,
.fs-800,
.fs-medium {
  line-height: 1.2;
}

body {
  position: relative;

  background: var(--light-gradient--v);
  background-size: 100% 100%;
}

.bg {
  background: var(--light-gradient--v);
  background-repeat: no-repeat;
  background-position: center;
  height: 100vh;
  width: 100vw;
  position: fixed;
  /* z-index usage is up to you.. although there is no need of using it because the default stack context will work. */
  z-index: -100;
}

.body__flex {
  display: flex;
  flex-direction: column;
}

.primary-header {
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  height: 100px;

  align-items: center;
  background: var(--light-gradient);
}

.mobile-nav-toggle {
  display: none;
}

/* button */
.btn {
  padding: 1rem 2rem;
  margin-inline: auto;

  font-family: var(--ff-serif);

  color: white;
  background: var(--blue-2);
  border: 0;
  border-radius: 20px;
}

.btn:hover {
  color: var(--dark);
  background: var(--blue);
}

.btn--x {
  width: clamp(25px, 4vw, 40px);
  height: clamp(25px, 4vw, 40px);
  margin-left: auto;

  background-image: url(/src/x-icon.png);
  background-color: transparent;
  background-size: cover;
  border: 0;
}

/* Navigation */
.primary-navigation {
  padding: 0;
  margin: 0;

  list-style: none;
  font-size: var(--fs-nav);
}

.primary-navigation li {
  position: relative;
  width: max-content;
}

.active {
  border-bottom: 2px solid white;
}

.primary-navigation a {
  text-decoration: none;
  font-weight: 400;
}

.primary-navigation a:visited,
.primary-navigation a {
  color: white;
  margin: 0 0 1rem;
}

.primary-navigation a:hover {
  border-bottom: 2px solid white;
}

button {
  margin: 0;
  padding: 0;
}

.header-logo {
  max-height: 100px;
  height: 100%;
  padding-block: 5px;
  padding-left: 2rem;
}

.header-link {
  max-height: 100px;
  color: var(--white);
  text-decoration: none;
}

.header-link h2 {
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0px 0px 10px var(--white);
  letter-spacing: 2px;
}

.logo {
  width: 100%;
  height: 100%;
  max-height: 100px;
  max-width: 50vw;

  object-fit: contain;
}

@media (min-width: 640px) {
  .logo {
    max-width: 33vw;
  }
}

@media (max-width: 40em) {
  .primary-navigation {
    --gap: 2em;

    position: fixed;
    z-index: 9998;
    inset: 0 0 0 30%;

    flex-direction: column;
    padding: min(40vh, 30rem) 2em;

    background: var(--light-gradient--v);
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
    transition: transform 350ms ease-in;
  }

  .active {
    border-bottom: 2px solid white;
  }

  .primary-navigation a:visited,
  .primary-navigation a {
    color: white;
    margin: 0 0 1rem;
  }

  .primary-navigation a:hover {
    border-bottom: 2px solid white;
  }

  .mobile-nav-toggle {
    display: block;
    position: relative;
    width: 2rem;
    margin-left: auto;
    margin-right: 2rem;
    aspect-ratio: 1;

    background-color: transparent;
    background-image: url("/src/menu-icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
    border: 0;
    z-index: 9999;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    position: fixed;
    right: 1rem;
    background-color: transparent;
    background-image: url("/src/x-icon.png");
    background-size: cover;
    filter: invert(100%);
    z-index: 9999;
  }
}

@media (min-width: 40em) {
  nav {
    margin-left: auto;
  }
  .primary-navigation {
    --gap: clamp(0.5rem, 1vw + 0.7rem, 3rem);
    padding-block: 2rem;
    padding-inline: clamp(1rem, 2.5vw, 3rem);
  }
  .header-logo {
    flex-shrink: 0;
  }
}

.top-menu {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  min-width: 200px;
  top: 20px;

  background-color: #26509f;
  opacity: 0;
  z-index: 9999;
}

.sub-menu-list {
  list-style: none;
  padding: 3rem 1rem 1.5rem;
}

.sub-menu-item {
  margin: 0;
}

.sub-menu-item a {
  display: block;
  min-width: 100%;
  font-family: var(--ff-serif);
}

.sub-menu-item:not(:last-child) {
  margin-bottom: 1rem;
}

.top-menu:hover .sub-menu,
.top-menu:focus-within .sub-menu {
  display: block;
  opacity: 1;
}

@media (min-width: 640px) {
  .sub-menu {
    top: 30px;
    left: 50%;

    transform: translateX(-50%);
  }
}

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  background-color: var(--blue);

  align-items: flex-end;
}

.hero::after {
  content: " ";
  position: absolute;
  width: 100vw;
  height: calc(100vh - 100px);
  top: 0;
  left: 0;

  background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 1) 100%);
}

.hero.service::after {
  background-image: none;
}

.hero__image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* @media (min-width: 1024px) {
  .hero__image img {
    object-position: 0 35%;
  }
} */

.hero__p {
  position: relative;
  width: 100%;
  max-width: min(80rem, 95%);
  margin-bottom: 15vh;
  margin-inline: auto;

  z-index: 1;
}

.hero__header {
  font-size: clamp(3rem, 1.768vw + 2.586rem, 4rem);
  font-weight: 500;
  text-align: center;
  text-shadow: 3px 3px 2px var(--blue-2);
  letter-spacing: 2px;
}

.service__header {
  text-shadow: 3px 3px 2px var(--blue-2);
}

.page-content {
  position: relative;
  margin: 4rem auto;

  z-index: -5;
}

.about-us {
  gap: 8rem;
  flex-direction: column;
}

.about-us__article {
  gap: 1rem;
  flex-direction: column;

  font-family: var(--ff-serif);
  font-size: var(--fs-medium);

  background-color: var(--white);
  box-shadow: 0px 0px 5px var(--dark);
}

.home .about-us__article {
  margin-top: 4rem;
}

.home .margin-t-none {
  margin-top: 0;
}

.about-us__article h2 {
  position: relative;
  display: block;
  width: fit-content;
  padding-bottom: 1rem;

  font-size: var(--fs-700);
  font-weight: 600;
  letter-spacing: 1px;
}

.about-us__article h2::after {
  content: " ";
  position: absolute;
  width: 100%;
  max-width: 100%;
  height: 5px;
  bottom: 10px;
  left: 0;

  background: var(--gradient);
}

.article__img {
  width: 100%;
  max-height: 720px;
  max-width: min(80rem, 95%);
  margin-block: 4rem 0;
  margin-inline: auto;

  object-fit: cover;
  box-shadow: 0px 0px 5px var(--dark);
  aspect-ratio: 16/9;
}

.double {
  width: fit-content;
  max-width: min(80rem, 95%);
  margin-inline: auto;
  box-shadow: 0px 0px 5px var(--dark);
}

.double .article__img,
.double .about-us__article {
  max-width: 100%;
  box-shadow: none;
}

#second__image {
  margin-block: 0;
}

.article__img.chairs {
  object-position: center;
}

.article__2 {
  flex-direction: row;
  flex-wrap: wrap;
}

.article__2 h2 {
  width: 100%;
}

.article__p {
  max-width: 100%;
}

@media (min-width: 640px) {
  .article__p {
    max-width: 50%;
  }
}

.about-us__article ul {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-us__article li {
  flex: 1 calc(450px - 1rem);
  display: flex;
  padding-top: 1rem;
  gap: 1rem;
  flex-direction: column;
}

li h4 {
  font-weight: 600;
}

.list__img {
  min-width: 100px;
  min-height: 100px;
  object-fit: cover;
}

.top-div,
.bottom-div {
  flex-direction: column;
  gap: 1rem;

  color: white;
}

.top-div section,
.bottom-div section {
  display: flex;
  flex: 1 1 350px;
  flex-direction: column;
  gap: 1rem;

  background-color: #466ba3;
}

/* .top-div > section + section {
  margin-top: 1rem;
} */

/* @media (min-width: 1024px) {
  .top-div,
  .bottom-div {
    gap: 1rem;
  }
  .top-div > section + section {
    margin-top: 0rem;
  }
} */

.top-div section > h3,
.bottom-div section > h3 {
  font-weight: 600;
  text-align: center;
}

.bottom-div section {
  margin-top: 1rem;
  flex: 1 1 450px;
}

.top-div section > :is(h3, p),
.bottom-div section > :is(h3, p) {
  padding: 0 2rem;
}

.top-div section > p,
.bottom-div section > p {
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .top-div,
  .bottom-div {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.board {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
  gap: 4rem;

  background-color: var(--white);
}

@media (min-width: 1100px) {
  .board {
    grid-template-columns: 1fr 1fr;
  }
}

.about-us__board-header {
  position: relative;
}

.board__member {
  flex: 1 450px;
  display: flex;
  position: relative;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 2rem;
  height: 100%;

  font-size: var(--fs-medium);
  color: var(--dark);

  text-align: center;
}

.board__name {
  color: var(--dark);
  font-size: var(--fs-650);
  font-weight: 300;
}

.board__certs {
  font-size: var(--fs-600);
  font-weight: 300;
}

.board__member--portrait {
  width: 250px;
  height: 250px;
  margin-inline: auto;
  top: 0;
  left: 0;

  border-radius: 50%;
  object-fit: cover;
  object-position: bottom;
}

.board__member > p {
  font-size: var(--fs-600);
  font-weight: 600;
  text-align: center;
}

.read-more-button {
  width: fit-content;
  padding: 1rem 2rem;
  margin-top: auto;
  margin-inline: auto;

  color: var(--white);
  background-color: var(--blue-2);
  border: 0;
  border-radius: 5px;
  transition: 300ms;
}

.read-more-button:hover {
  color: var(--dark);
  background-color: var(--blue);
}

.board__bio {
  flex: 1;
  flex-direction: column;

  text-align: justify;
}

.board__bio p {
  padding-block-end: 2rem;
}

.contact-us {
  gap: 1.5rem;
  flex-direction: column;
  justify-content: space-between;
}

.contact--1 {
  min-width: 100%;
}

.contact--3 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: calc(50% - 1rem);

  text-align: center;
}

.contact--3 h3 {
  font-size: var(--fs-550);
  font-weight: 500;
}

.contact--3 a {
  font-size: var(--fs-550);
  color: var(--blue-2);
  text-decoration: none;
}

.contact--3 a:visited {
  font-size: var(--fs-550);
  color: var(--blue-2);
  text-decoration: none;
}

.contact-us p {
  font-size: var(--fs-550);
}

@media (min-width: 640px) {
  .contact-us {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

footer {
  margin-top: auto;
  /* background: linear-gradient(180deg, rgba(129, 202, 233, 1) 0%, rgba(129, 202, 233, 1) 30%, rgba(0, 26, 127, 1) 100%); */
}

.footer__section {
  position: relative;
  justify-content: space-between;
  min-width: min(80rem, 95vw);
  margin-inline: auto;
  padding: 2rem 1rem;
}

.footer__logo {
  position: relative;
  width: 166px;
  height: 100px;
  margin-left: 2rem;
  object-fit: cover;
}

/*   .footer__section::after {
      content: " ";
      position: absolute;
      width: calc(100vw / 4);
      min-height: 100%;
      top: 0;
      right: 100%;
  
      background-image: url(/src/globe-full.png);
      background-position: center;
      background-size: cover;
      opacity: .5;
  } */

footer ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-inline: clamp(1rem, 2.5vw, 3rem);
}

footer li {
  list-style: none;
  text-align: center;
}

footer a {
  height: 175px;
  font-size: var(--fs-550);
  font-family: var(--ff-sans-normal);
  font-weight: 600;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
}

footer a:visited {
  color: white;
}

.footer__section li > a:hover {
  border-bottom: 3px solid white;
}

@media (max-width: 768px) {
  .footer__section {
    flex-direction: column;
    --gap: 1rem;
  }

  .footer__logo {
    height: 175px;
  }
}

@media (min-width: 768px) {
  /* footer {
    background: var(--light-gradient);
  } */

  .footer__section {
    padding: 1rem 0rem;
  }

  footer a {
    height: 100px;
  }

  footer ul {
    flex-direction: row;
  }
}
