/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
 --first-color: hsl(0, 100%, 25%);
  --first-color-alt: hsl(0, 98%, 26%);
  --text-color: hsl(353, 16%, 32%);
  --white-color: hsl(60, 20%, 99%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 95%);

   /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Roboto Condensed", sans-serif;
  /* --second-font: "Roboto Condensed", sans-serif; */
  --biggest-font-size: 2.5rem;
  --bigger-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.25rem;
    --bigger-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

input,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  /* overflow-x: hidden; /*hides horizontal scrollbar*/
  /* overflow-y: hidden; hides vertical scrollbar */ 
}

input, 
textarea, 
button {
  outline: none;
  border: none;
}
input,select,label,textarea{
  font: inherit;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-regular);
  font-family: var(--second-font);
  line-height: 120%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 6rem 1rem;
  min-height: 550px;
}
.section__heading{
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  margin-bottom: 1rem;
}
.section__title {
  position: relative;
  width: 80%;
  text-align: center;
  font-size: var(--normal-font-size);
  margin-bottom: 1rem;
  color: var(--first-color);
}
.section__title::after{
    content: '';
    width: 10%;
    height: 2px;
    background-color: var(--first-color);
    position: absolute;
    left: 45%;
    bottom: -.5rem;
}
.section__title2{
  font-size: var(--bigger-font-size);
}
.main {
  overflow: hidden;
}
/*======================= BUTTON =========================*/

.button{
  display: inline-block;
  width: 15rem;
  background-color: var(--first-color);
  text-align: center;
  padding: .5rem 1rem;
  margin: .2rem;
  border-radius: 16px;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: box-shadow -4s;
}
.button:hover{
  box-shadow: 0 8px 24px hsla(140, 40%, 48%, .3);
}

/* =============== HEADER =============== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/* =============== NAV ===============*/ 
.nav {
  height: var(--header-height);
}
.nav__logo{
  font-size: var(--h2-font-size);
}
.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--first-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
.nav__menu::-webkit-scrollbar {
    width: 0;
  }
}

.nav__link {
  color: var(--first-color);
  background-color: var(--body-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  color: var(--first-color-dark);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}
.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}
.dropdown__link {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--first-color);
  color: var(--body-color);
  background-color: var(--first-color);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}
.dropdown__link i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover {
  background-color: var(--body-color);
  color: var(--first-color);
}

.dropdown__menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*======================= HOME =========================*/
.home__container{
  /* padding-top: 1rem; */
  width: 70%;
  margin: auto;
  row-gap: 2rem;
  }
.home__data{
  text-align: center;
}

.home__img{ 
  place-self: center;
  width: 280px;
  height: auto;
}

.home__title{
  font-size: var(--bigger-font-size);
  font-weight: bold;
  font-family: var(--body-font);
  color: var(--first-color);
  margin-bottom: .5rem;
  text-wrap: balance;
  }
.home__subtitle{
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
  margin-bottom: .5rem;
  }
.home__description{
  text-align: left;
  margin-bottom: 2rem;
  line-height: 1.5;
  }
/*======================= ABOUT =========================*/
.about__container{
  padding-top: 1rem;
  text-align: center;
  }
.about__title{
  font-size: var(--h3-font-size);
  font-family: var(--body-font);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  color: var(--first-color-alt);
  }
.about__description{
  margin-bottom: 1rem;
  line-height: 1.5;
  }
.about__img{
  place-self: center;
  width: 250px;
  height: auto;
  }
/*======================= SERVICES =========================*/

.services__container{
  padding-block: 1rem;
  display: grid;
  grid-template-columns: 350px;
  place-content: center;
  gap: 1rem;
}
.services__wrapper{
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgb(209, 213, 219) 0px 0px 0px 1px inset;
  border-radius: 16px;
  padding: 3px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}
.services__wrapper h3{
  font-weight: bold;
  color: var(--first-color);
  text-align: center;
}
.services_box{
  padding-inline: 1rem;
}
.services_img{
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.services_button{
  display: inline-block;
  background-color: var(--first-color);
  text-align: center;
  padding: .5rem 1rem;
  margin: .5rem;
  border-radius: 16px;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: box-shadow -4s;
}

/*======================= SERVICES =========================*/
.whychoose__container{
  padding-block: 1rem;
  display: grid;
  grid-template-columns: 350px;
  place-content: center;
  gap: 1rem;
}
.whychoose__wrapper{
  border-radius: 16px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  text-align: center;
}
.whychoose__wrapper h3{
  font-weight: bold;
  color: var(--first-color);
  text-align: center;
}

/*======================= FAQs =========================*/
.faqs__content{
  margin: 2.5rem 0 0;
}
.faqs__title{
  font-size: var(--h1-font-size);
  font-family: var(--body-font);
  margin-bottom: 1rem;
}
.accordion{
  margin: 0rem 0 0;
}
.accordion__item{
  background-color: var(--container-color);
  margin: 1rem 0;
  border-radius: 0.5rem;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgb(209, 213, 219) 0px 0px 0px 1px inset;
}
.accordion__item-header{
  padding: 0.5rem 3rem 0.5rem 1rem;
  min-height: 3.5rem;
  line-height: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}
.accordion__item-header::after{
  content: "\002B";
  font-size: var(--normal-font-size);
  position: absolute;
  right: 1rem;
}
.accordion__item-header.active::after{
  content: "\2212";
}
.accordion__item-body{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}
.accordion__item-body-content{
  padding: 1rem;
  line-height: 1.5;
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent, var(--first-color), transparent) 1;
}
.faqs__orderedList{
  padding-inline: 1rem;
}
/*======================= CTA =========================*/


/*======================= FOOTER =========================*/
.footer {
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 3rem 1.5rem;
  bottom: 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1 1 300px;
}

.footer-column h4 {
  font-size: var(--normal-font-size);
  margin-bottom: 1rem;
  color: var(--white-color);
  border-bottom: 2px solid #555;
  padding-bottom: 0.5rem;
}

.footer-column p,
.footer-column a {
  font-size: var(--normal-font-size);
  color: var(--white-color);
  text-decoration: none;
  margin: 0.5rem 0;
  display: block;
}

.footer-column a:hover {
  color: var(--text-color-light);
}

.social-icons a {
  display: inline-block;
  margin-right: 1rem;
  font-size: var(--normal-font-size);
  color: var(--white-color);
  transition: color 0.3s;
}

/* ============== BREAKPOINTS ================== */
/* For Small Screen */
@media screen and (max-width: 320px){
  .container{
    margin-inline: 1rem;
  }
  .home__title, .about__title{
    font-size: 2.5rem;
  }
  .nav__link {
    padding-inline: 1rem;
  }
}
/* For Medium Screen */
@media screen and (min-width: 576px){
  .home__container, .about__container, .services__container, .whychoose__container{
    grid-template-columns: 380px;
    justify-content: center;
  }
}
@media screen and (min-width: 768px){
  .home__container, .about__container, .services__container, .whychoose__container{
    grid-template-columns: repeat(2, 350px);
    align-items: center;
  }
  .home__data, .about__data{
    text-align: initial;
  }
  .about{
    background: none;
  }
  .faqs__container{
    grid-template-columns: repeat(2, 1fr);
  }
}
/* For Large Screens */
@media screen and (min-width: 1150px){
  .container{
    margin-inline: auto;
  }
  .section{
    padding-block: 6rem 2rem;
  }
  .section__title{
    margin-bottom: 1rem;
  }
  .nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
  }
  .dropdown__item{
    position: relative;
  }
  .dropdown__menu { 
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }
  .dropdown__link {
    width: 300px;
    padding: 1rem 1rem 1rem 1.5rem;
    color: var(--body-color);
    background-color: var(--first-color);
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-weight: var(--font-semi-bold);
    transition: background-color .3s;
  }
  .dropdown__link:hover {
    background-color: var(--body-color);
    color: var(--first-color);
    }
  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 3.5rem;
    pointer-events: initial;
    transition: top .3s;
  }
  .home__container{
    grid-template-columns: 700px 300px;
    column-gap: 1rem;
  }
  .home__title{
    margin-bottom: 1.5rem;
  }
  .home__description{
    padding-right: 5rem;
    margin-bottom: 3rem;
  }
  .about__container{
    grid-template-columns: 400px 600px;
    text-align: center;
  }
  .services__container, .whychoose__container{
    grid-template-columns: repeat(3, 350px);
  }
}