/* #require.css */

/**
 * TABLE OF CONTENT
 *
 * Custom properties..............Global variables
 * Reset..........................Removed browser default style
 * Typography.....................Typography style
 * Reused.........................Reused classes
 * Preloader......................Preload style
 * Header.........................Header style
 * Footer.........................Footer style
 * Media queries..................Responsive for all devices
 */

/* #CUSTOM PROPERTY */
:root {
  /* Colors */
  --maximum-yellow-red_a10: hsla(41, 99%, 64%, 0.1);
  --maximum-yellow-red_a40: hsla(41, 99%, 64%, 0.4);
  --maximum-yellow-red: hsl(41, 99%, 64%);
  --orange-red_a20: hsla(19, 100%, 55%, 0.2);
  --eerie-black: hsl(210, 11%, 15%);
  --orange-red: hsl(159.844, 100%, 75%);
  --orange-red: #006b74;
  --davys-gray: hsl(0, 0%, 33%);
  --light-gray: hsl(0, 0%, 80%);
  --white_a80: hsla(0, 0%, 100%, 0.8);
  --white_a75: hsla(0, 0%, 100%, 0.75);
  --white_a10: hsla(0, 0%, 100%, 0.1);
  --jet_a10: hsla(0, 0%, 22%, 0.1);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  --jet: hsl(0, 0%, 22%);

  /* Typos */
  --ff-jost: "Jost", sans-serif;

  --fs-45: 4.5rem;
  --fs-38: 3.8rem;
  --fs-32: 3.2rem;
  --fs-27: 2.7rem;
  --fs-26: 2.6rem;
  --fs-22: 2.2rem;
  --fs-20: 2rem;
  --fs-18: 1.8rem;
  --fs-17: 1.7rem;
  --fs-14: 1.4rem;
  --fs-12: 1.2rem;

  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;

  /* Spacing */
  --section-padding: 60px;

  /* Shadow */
  --shadow: 0 2px 2px hsla(0, 0%, 22%, 0.08);

  /* Border Radius */
  --radius-50: 50px;
  --radius-pill: 100px;
  --radius-circle: 50%;

  /* Transition */
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --transition-3: 0.5s;
  --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
}

/* #RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
span,
label,
button,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  width: 100%;
}

ion-icon {
  pointer-events: none;
}

address {
  font-style: normal;
}

html {
  font-family: var(--ff-jost);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--davys-gray);
  font-size: 1.6rem;
  line-height: 1.5;
  overflow: hidden;
}

body.loaded {
  overflow: visible;
}
:focus-visible {
  outline-offset: 4px;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 98%);
}
::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/* #TYPOGRAPHY */

/* Font-Size */
.headline-lg {
  font-size: var(--fs-45);
}
.headline-md {
  font-size: var(--fs-38);
}
.headline-sm {
  font-size: var(--fs-32);
}
.title-lg {
  font-size: var(--fs-27);
}
.title-md {
  font-size: var(--fs-26);
}
.title-sm {
  font-size: var(--fs-22);
}
.body-lg {
  font-size: var(--fs-20);
}
.body-md {
  font-size: var(--fs-18);
}
.body-sm {
  font-size: var(--fs-17);
}
.label-lg {
  font-size: var(--fs-14);
}
.label-md {
  font-size: var(--fs-12);
}

/* Font Weight */
.headline-lg,
.headline-md,
.headline-sm,
.title-lg,
.title-md .title-sm .label-lg .label-md {
  color: var(--jet);
  font-weight: var(--fw-600);
  line-height: 1.2;
}
.body-lg {
  font-weight: var(--fw-500);
}

/* #REUSED STYLE */
.container {
  padding-inline: 16px;
}
.section {
  padding-block: var(--section-padding);
}
.w-100 {
  width: 100%;
}
.section-title {
  margin-block-end: 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.nodisplay {
  display: none;
}
.text-center {
  text-align: center;
}
.image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

/* #PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--orange-red);
  display: grid;
  /* short-hand property for align-items and justify-items */
  place-items: center;
  z-index: 6;
}

.preloader.loaded {
  display: none;
}

.preloader-circle {
  height: 60px;
  width: 60px;
  border: 3px solid transparent;
  border-top-color: var(--black);
  border-radius: var(--radius-circle);
  animation: loading 1s linear infinite;
}
@keyframes loading {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(1turn);
  }
}

/* #HEADER */

.header .btn {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding-block: 16px;
  z-index: 4;
  transition: var(--transition-1);
}
.header.active {
  border-bottom: 1px solid var(--black);
  box-shadow: var(--shadow);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
}
.nav-toggle-btn {
  color: var(--jet);
  font-size: 3.8rem;
}
.navbar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100vh;
  /* background-color: var(--white); */

  transition: 0.25s var(--cubic-out);
  transition-delay: 0.15s;
  transform: scaleX(0);
  transform-origin: left;
  visibility: hidden;
}
.navbar.active {
  transform: scaleX(0.75);
  visibility: visible;
  transition-duration: 0.5s;
  transition-delay: 0s;
  border-right: 0.5px solid var(--jet);
  background-color: rgba(255, 255, 255, 0.85);
}
.navbar > * {
  opacity: 0;
  transition: var(--transition-1);
}
.navbar.active > * {
  opacity: 1;
  transition-delay: 0.4s;
}
.navbar-item {
  transition: 0.25s ease-in;
}
.navbar-item:not(:last-child) {
  border-block-end: 1px solid var(--jet_a10);
}
.navbar-item:hover {
  /* border: 0.5px solid var(--orange-red); */
  backdrop-filter: blur(7px);
}

.navbar-link {
  text-align: center;
  letter-spacing: 3px;
  padding: 16px 15px;
  transition: var(--transition-1);
}
/* focus visible is used to  apply styles when it receives focus via keyboard or any other non-mouse input device*/
.navbar-link:is(:hover, :focus-visible, .active) {
  color: var(--orange-red);
}
/* #FOOTER */
.footer {
  background-color: var(--jet);
  color: var(--white_a75);
  border-block-start: 1px solid var(--white_a10);
  padding-block: 18px;
}
.social-list {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-block-end: 15px;
}

.social-link {
  font-size: 1.8rem;
  transition: var(--transition-1);
}

.social-link:is(:hover, :focus-visible) {
  color: var(--orange-red);
}

/* #MEDIA QUERIES */

/* Mediaquery for larger than 575px screen */
@media (min-width: 575px) {
  .title-lg {
    --fs-27: 3.5rem;
  }
}

/* Mediaquery for larger than 768px screen */
@media (min-width: 768px) {
  /* TYPOGRAPHY */
  .headline-lg {
    --fs-45: 6rem;
  }
  .headline-md {
    --fs-38: 4.5rem;
  }
  .title-md {
    --fs-26: 3.2rem;
  }

  /* REUSED STYLE */
  .section {
    --section-padding: 100px;
  }
  .section-title {
    margin-block-end: 40px;
  }

  /* FOOTER */
  .footer {
    padding: 25px;
  }
  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .social-list {
    margin-block-end: 0;
  }
}

/* Mediaquery for larger than 992px screen */
@media (min-width: 992px) {
  /* TYPOGRAPHY */
  .headline-md {
    --fs-38: 5rem;
  }
  .title-lg {
    --fs-27: 4rem;
  }
  .title-sm {
    --fs-22: 2.4rem;
  }

  /* REUSED STYLE */
  .section-title {
    margin-block-end: 60px;
  }

  /* HEADER */
  .nav-toggle-btn {
    display: none;
  }
  .navbar,
  .navbar.active,
  .navbar > * {
    all: unset;
    display: block;
  }
  .navbar-list {
    display: flex;
  }
  .navbar-item:not(:last-child) {
    border-block-end: none;
  }
  .navbar-link {
    position: relative;
  }
  .navbar-link::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    -webkit-transform: translateX(-50%) scaleX(0);
    -moz-transform: translateX(-50%) scaleX(0);
    -ms-transform: translateX(-50%) scaleX(0);
    -o-transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 80%;
    height: 2px;
    background-color: var(--orange-red);
    transition: var(--transition-1);
    -webkit-transition: var(--transition-1);
    -moz-transition: var(--transition-1);
    -ms-transition: var(--transition-1);
    -o-transition: var(--transition-1);
  }
  .navbar-link:is(:hover, :focus-visible, .active)::after {
    transform: translateX(-50%) scaleX(1);
    -webkit-transform: translateX(-50%) scaleX(1);
    -moz-transform: translateX(-50%) scaleX(1);
    -ms-transform: translateX(-50%) scaleX(1);
    -o-transform: translateX(-50%) scaleX(1);
    -webkit-transform: translateX(-50%) scaleX(1);
    transform-origin: left;
  }
  .header .btn {
    display: block;
  }
}
