/*===== IMPORT FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,600;0,700;1,700&display=swap");

/*===== VARIABLES =====*/

:root {
  --brown-primary: #4f1a00;
  /*--orange-primary: #ee5512;*/
  --text-color: #676977;
  --vast-background: #f4f5f8;
  --heading-font: "Poppins", sans-serif;
  --paragraph-font: "Barlow", sans-serif;
}

/*===== RESETS =====*/

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--paragraph-font);
}

.for-overflow {
  overflow-x: hidden;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

/*===== UTILITY CLASSES =====*/

.container {
  /*width: 85%;*/
  width: 1200px;
  max-width: 1200px;
  margin-inline: auto;
}

@media (max-width: 1250px) {
  .container {
    width: 95%;
  }
}

.section-padding {
  padding-block: 6rem;
}

.section-heading {
  font-size: 2rem;
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--brown-primary);
  text-transform: uppercase;
}

/*===== HEADER STYLES =====*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  border-bottom: thin solid white;
  z-index: 100;
  /*transition: all 300ms ease-in;*/
}

header.sticking {
  background: white;
  animation-fill-mode: both;
  animation-duration: 0.5s;
  animation-name: stickTransition;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

@keyframes stickTransition {
  0% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  padding: 0.75rem 0;
}

header .logo img {
  width: 135px;
}

header .container ul {
  display: flex;
  gap: 2rem;
}

header .container ul li a {
  color: white;
  text-transform: capitalize;
  text-decoration: none;
  position: relative;
  padding: 2rem 1rem;
  transition: all 300ms ease;
}

header.sticking .container ul li a {
  color: #000028;
}

header .container ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  transition: width 300ms ease;
  background-color: var(--brown-primary);
  bottom: -2px;
  left: 0;
}

header .container ul li a:hover,
header .container ul li a.active-tab {
  color: var(--brown-primary);
}

header .container ul li a:hover::after,
header .container ul li a.active-tab::after {
  width: 100%;
}

header.sticking .container ul li a:hover::after,
header.sticking .container ul li a.active-tab::after {
  width: unset;
}

@media (max-width: 1150px) {
  header {
    border: none;
    position: absolute;
  }

  header .container {
    border-bottom: thin solid white;
    position: relative;
  }

  .burger-menu {
    position: absolute;
    top: 35px;
    right: 14px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 20px;
    height: 17px;
    cursor: pointer;
    transition: -webkit-transform 330ms ease-out;
    transition: transform 330ms ease-out;
    transition: transform 330ms ease-out, -webkit-transform 330ms ease-out;
    cursor: pointer;
  }

  .line-menu.first-line {
    -webkit-transform-origin: right;
    transform-origin: right;
    transition: -webkit-transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57), -webkit-transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  }

  .line-menu {
    width: 100%;
    height: 1px;
    background-color: #fff;
    border-radius: 0px;
  }

  .line-menu.last-line {
    -ms-flex-item-align: end;
    align-self: flex-end;
    -webkit-transform-origin: left;
    transform-origin: left;
    transition: -webkit-transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57), -webkit-transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  }

  .line-menu.line-half {
    width: 50%;
  }

  header .container input:checked ~ .burger-menu {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  header .container input:checked ~ .burger-menu .line-menu.first-line {
    -webkit-transform: rotate(-90deg) translateX(3px);
    transform: rotate(-90deg) translateX(3px);
  }

  header .container input:checked ~ .burger-menu .line-menu.last-line {
    -webkit-transform: rotate(-90deg) translateX(-3px);
    transform: rotate(-90deg) translateX(-3px);
  }

  header .container ul {
    position: absolute;
    width: 95vw;
    left: 0;
    top: 100%;
    background: white;
    flex-direction: column;
    padding-block: 1.25rem;
    overflow: hidden;
    clip-path: inset(0 0 100% 0); /* Start with the bottom clipped */
    opacity: 0;
    transition: clip-path 0.4s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.5s ease-in-out;
    will-change: clip-path, opacity; /* Optimize performance */
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
  }

  header .container input:checked ~ ul {
    clip-path: inset(0 0 0 0); /* Fully visible */
    opacity: 1;
  }

  header .container ul li a {
    color: #000028;
  }

  header .container ul li a:hover::after,
  header .container ul li a.active-tab::after {
    width: 0;
  }
}
