*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* fonts */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&family=Montserrat&display=swap');


html {
  font-size: 100%;
} /*16px*/

:root {
  /* colors */

  --primary-1: hsl(28, 83%, 88%);
  --primary-2: hsl(28, 83%, 78%);
  --primary-3: hsl(28, 83%, 68%);
  --primary-4: hsl(28, 83%, 58%);
  --primary-5: hsl(28, 83%, 48%);
  --primary-6: hsl(28, 83%, 40%);
  --primary-7: hsl(28, 83%, 32%);
  --primary-8: hsl(28, 83%, 24%);
  --primary-9: hsl(28, 83%, 16%);

  --secondary-0: hsl(145, 86%, 86%);
  --secondary-1: hsl(145, 86%, 70%);
  --secondary-2: hsl(145, 86%, 62%);
  --secondary-3: hsl(145, 86%, 58%);
  --secondary-4: hsl(145, 86%, 50%);
  --secondary-5: hsl(145, 86%, 41%);
  --secondary-6: hsl(145, 86%, 36%);
  --secondary-7: hsl(145, 86%, 30%);
  --secondary-8: hsl(145, 86%, 25%);
  --secondary-9: hsl(145, 86%, 19%);
  --secondary-10: hsl(145, 86%, 14%);

  /* grey */
  --grey-0: #f8fafc;
  --grey-1: #f1f5f9;
  --grey-2: #e2e8f0;
  --grey-3: #cbd5e1;
  --grey-4: #94a3b8;
  --grey-5: #64748b;
  --grey-6: #475569;
  --grey-7: #334155;
  --grey-8: #1e293b;
  --grey-9: #0f172a;
  /* rest of the colors */
  --black: #222;
  --white: #fff;
  --red-light: #f8d7da;
  --red-dark: #842029;
  --green-light: #d1e7dd;
  --green-dark: #0f5132;

  /* fonts  */
  --headingFont: 'Roboto', sans-serif;
  --bodyFont: 'Nunito', sans-serif;
  --ff-primary: 'Roboto', sans-serif;
  --ff-secondary: 'Montserrat', sans-serif;
  --smallText: 0.7em;
  /* rest of the vars */
  --backgroundColor: var(--grey-2);
  --textColor: var(--grey-9);
  --borderRadius: 0.25rem;
  --letterSpacing: 1px;
  --transition: 0.3s ease-in-out all;
  --max-width: 1120px;
  --fixed-width: 600px;

  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  background: var(--backgroundColor);
  font-family: var(--bodyFont);
  font-weight: 400;
  line-height: 1.75;
  color: var(--textColor);
}

p {
  margin-bottom: 1.5rem;
  max-width: 40em;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  margin-bottom: 1.38rem;
  font-family: var(--headingFont);
  font-weight: 400;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: var(--letterSpacing);
}

h1 {
  margin-top: 0;
  font-size: 3.052rem;
}

h2 {
  font-size: 2.441rem;
}

h3 {
  font-size: 1.953rem;
}

h4 {
  font-size: 1.563rem;
}

h5 {
  font-size: 1.25rem;
}

small,
.text-small {
  font-size: var(--smallText);
}

a {
  text-decoration: none;
}
ul {
  list-style-type: none;
  padding: 0;
}

.img:not(.nav-logo) {
  width: 100%;
  display: block;
  object-fit: cover;
}

/********** buttons **********/

.btn {
  cursor: pointer;
  color: var(--white);
  background: var(--primary-5);
  border: transparent;
  border-radius: 50px;
  letter-spacing: var(--letterSpacing);
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-1);
  transition: var(--transition);
  text-transform: capitalize;
  display: inline-block;
}
.btn:hover {
  background: var(--primary-7);
  box-shadow: var(--shadow-3);
}
.btn-hipster {
  color: var(--primary-5);
  background: var(--primary-2);
}
.btn-hipster:hover {
  color: var(--primary-2);
  background: var(--primary-7);
}
.btn-block {
  width: 100%;
}

/********** alerts **********/
.alert {
  padding: 0.375rem 0.75rem;
  margin-bottom: 1rem;
  border-color: transparent;
  border-radius: var(--borderRadius);
}

.alert-danger {
  color: var(--red-dark);
  background: var(--red-light);
}
.alert-success {
  color: var(--green-dark);
  background: var(--green-light);
}
/********** form **********/

.form {
  width: 90vw;
  max-width: var(--fixed-width);
  background: var(--white);
  border-radius: var(--borderRadius);
  box-shadow: var(--shadow-2);
  padding: 2rem 2.5rem;
  margin: 3rem auto;
}
.form-label {
  display: block;
  font-size: var(--smallText);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  letter-spacing: var(--letterSpacing);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.375rem 0.75rem;
  border-radius: var(--borderRadius);
  background: var(--backgroundColor);
  border: 1px solid var(--grey-2);
}

.form-row {
  margin-bottom: 1rem;
}

.form-textarea {
  height: 7rem;
}
::placeholder {
  font-family: inherit;
  color: var(--grey-4);
}
.form-alert {
  color: var(--red-dark);
  letter-spacing: var(--letterSpacing);
  text-transform: capitalize;
}
.form-alert-success {
  color: var(--green-dark);
}
/* alert */

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.loading {
  width: 6rem;
  height: 6rem;
  border: 5px solid var(--grey-4);
  border-radius: 50%;
  border-top-color: var(--primary-5);
  animation: spinner 0.6s linear infinite;
}
.loading {
  margin: 0 auto;
}
/* title */

.title {
  text-align: center;
}

.title-underline {
  background: var(--primary-5);
  width: 7rem;
  height: 0.25rem;
  margin: 0 auto;
  margin-top: -1rem;
}
/********** gloabl section styles **********/
.section {
  padding: 5rem 0;
}
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 {
  text-transform: uppercase;
}
.section-title span {
  color: var(--primary-5);
}
.section-center {
  width: 90vw;
  margin: 0 auto;
  max-width: var(--max-width);
}
@media screen and (min-width: 992px) {
  .section-center {
    width: 95vw;
  }
}

/*********** nav section **********/
.nav-logo {
  height: 4.5rem;
}
.bar {
  height: 3px;
  width: 30px;
  background: var(--secondary-8);
  margin: 5px 0;
  opacity: 0.8;
  transition: var(--transition);
}
.call-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-btn {
  background: transparent;
  border: 1px solid var(--primary-5);
  color: var(--primary-8);
}
.nav-btn:hover {
  /* color: var(--primary-1); */
  /* border: none; */
  background: transparent;
}
.hamburger {
  cursor: pointer;
}
.hamburger-open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background: linear-gradient(rgba(110, 110, 110, 0.2), rgba(110, 110, 110, 0.2)); */
  background: var(--white);
  box-shadow: var(--shadow-3);
  z-index: 2;
}
.nav-center {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
}
.nav-header {
  height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.nav-link {
  display: block;
  padding: 1rem 2rem;
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing);
  transition: var(--transition);
  color: var(--grey-10);
  cursor: pointer;
  font-size: 1rem;
}
.nav-link:hover {
  color: var(--primary-1);
  background: var(--primary-6);
  padding-left: 2.25rem;
}

.links-container {
  height: 0;
  overflow: hidden;
  transition: var(--transition);
}
.overlay {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.show-overlay {
  display: block;
}

/*********** hero section**********/
.hero-img {
  display: none;
}
.hero-center {
  max-height: 100vh; /*5 rem of nav*/
  text-align: center;
}
.hero-info {
  padding: 0.5rem;
  max-width: 80rem;
  margin-bottom: 2rem;
}
.hero-info h4 {
  border-radius: var(--borderRadius); /* background: var(--grey-500); */
  padding: 1rem; /* color: var(--white); */
}
.hero-header{
  margin-top: 25%;
  letter-spacing: 2px;
}
  .title-header {
    margin-top: 5rem;
  }
  .title-slogan {
    margin-right: auto;
    margin-left: auto;
  }

@media screen and (min-width: 992px) {
  .hamburger {
    display: none;
  }
  .hero-center{
    height: 100vh;
    display: grid;
    place-items: center;
  }
  .pg-hero-center{
    max-height: 30rem;
  }
  .nav-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  .nav-links {
    height: auto;
    display: flex;
    gap: 2rem;
    margin-right: 2rem;
  }
  .links-container {
    height: auto !important;
  }
  .nav-header {
    width: 40%;
    padding: 0 0;
    justify-content: space-between;
  }
  .nav-link {
    padding: 5px 10px;
    position: relative;
    border: none;
    /* background: var(--primary-1); */
  }
  .nav-link:hover {
    padding: 5px 10px;
    background: transparent;
    color: var(--grey-10);
    box-shadow: var(--shadow-3);
  }
  .nav-link::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: -5px;
    left: -5px;
    margin: 5px;
    border-top: 1px solid var(--primary-5);
    border-left: 1px solid var(--primary-5);
    transition: var(--transition);
  }
  .nav-link::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    bottom: -5px;
    right: -5px;
    margin: 5px;
    border-bottom: 1px solid var(--primary-5);
    border-right: 1px solid var(--primary-5);
    transition: var(--transition);
  }
  .nav-link:hover::before, 
  .nav-link:hover::after{
    height: 100%;
    width: 100%;
  }
  .hero-img {
    position: absolute;
    top: 0;
    display: initial;
    height: 30rem;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url('./images/hero-main.jpg') center/cover;
  }
    .about-hero-img {
      position: absolute;
      top: 0;
      display: initial;
      height: 30rem;
      width: 100%;
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('./images/hero-about.jpg') center/cover;
    }
    .service-hero-img {
      position: absolute;
      top: 0;
      display: initial;
      height: 30rem;
      width: 100%;
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('./images/hero-service.jpg') center/cover;
    }
  .hero-info {
    position: absolute;
    bottom: 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    margin-bottom: 0;
  }
    .hero-header {
      margin-top: 5rem;
    align-content: center;
    position: absolute;
    top: 5%;
    color: var(--white);
  }
}

/*********** about section **********/
.about{
  background: var(--secondary-0);
}
.about-info{
  margin-bottom: 2rem;
}
.about-photo{
  max-height: 25rem;
  max-width: 30rem;
  border-radius: var(--borderRadius);
}

@media screen and (min-width:768px){
  .about-center{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;

  }
}
/*********** service section **********/
.all-services {
  text-align: center;
  margin-bottom: 2rem;
}
.all-services p{
  margin-left: auto;
  margin-right: auto;
}
.service-card{
  background: var(--white);
  margin-bottom:2rem;
  box-shadow: var(--shadow-2);
  transition: var(--transition);
}
.service-card:hover{
  box-shadow: var(--shadow-4);
  transform: scale(1.02);
}
.service-info{
  padding: 1rem;
}
.service-photo{
  height: 15rem;
  object-fit: cover;
  object-position: top;
}
.service-info h4{
  letter-spacing: 4px;
  font-family: var(--ff-secondary);
}
.service-info p{
  color: var(--grey-5);
}
@media screen and (min-width:768px){
  .services-center{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}
@media screen and (min-width: 1200px){
  .services-center{
    grid-template-columns: repeat(3, 1fr);
  }
}

/*********** contact section **********/
.contact {
  background: var(--grey-1);
}
.contact-form,
.contact-info {
  margin: 1rem 0;
}
.contact-text {
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 2px;
}
.contact-form {
  background: var(--white);
  border-radius: var(--borderRadius);
  text-align: center;
  box-shadow: var(--shadow-1);
  transform: var(--transition);
  max-width: 35rem;
}
.contact-form:hover {
  box-shadow: var(--shadow-4);
}
.contact-form h3 {
  padding-top: 1.25rem;
  color: var(--grey-5);
}

.form-group {
  padding: 1rem 1.5rem;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  margin-bottom: 1.25rem;
  background: var(--grey-10);
  border-radius: var(--borderRadius);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing)
}
/* form control override */
.form-control::placeholder {
  font-family: var(--ff-primary);
  color: var(--grey-4);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing)
}
.submit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border-bottom-right-radius: var(--borderRadius);
  border-bottom-left-radius: var(--borderRadius);
}
.address-text{
  display: flex;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .contact-center{
    display: flex;
  }
  .contact-info, .contact-form{
    flex: 1 1 auto;
  }
}

/* footer */
.footer{
  background: var(--grey-9);
  text-align: center;
  padding: 2rem;
}
.footer-links, .footer-icons{
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-link{
  color: var(--white);
  text-transform: capitalize;
  font-size: 1rem;
  margin-right: 1rem;
  letter-spacing: var(--spacing);
  transition: var(--transition);
}
.footer-icon{
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--primary-8);
  transition: var(--transition);
}
.footer-icon:hover, .footer-link:hover{
  color: var(--primary-5);
}
.copyright{
  text-transform: capitalize;
  letter-spacing: var(--spacing);
  color: var(--white);
  margin: 0 auto;
}
.arrow{
  position: relative;
  width: 3px;
  height: 12px;
  background: var(--white) ;
}

.top-link {
  font-size: 1.25rem;
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  animation: bounce 2s ease-in-out infinite;

  visibility: hidden;
  z-index: -100;
}
.show-link {
  visibility: visible;
  z-index: 100;
}
.arrow::before{
  content: '';
  position: absolute;
    width: 3px;
  height: 10px;
  background: var(--white);
  transform: rotate(45deg) translateX(-4px);
}
.arrow::after{
  content: '';
  position: absolute;
    width: 3px;
  height: 10px;
  background: var(--white);
  transform: rotate(-45deg) translateX(4px);
}


@keyframes bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

/********** about page **********/
.about-pg-card{
  margin-bottom: 2rem;
  } 
  .about-info-pg{
    border: 5px solid var(--white);
    padding: 2rem;
    margin-bottom: 0;
  }
  .about-info-pg h4{
    text-align: center;
  }
@media screen and (min-width:768px){
  .about-pg-card{
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  .about-pg-card:nth-child(2){
    flex-direction: row-reverse;
  }
}
/********** services page **********/
.services-container{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.service-info-pg ul li{
  margin-left: 2rem;
  /* list-style: circle; */
}
.service-info-pg h4{
  text-align: center;
}

@media screen and (min-width:650px) {
  .gallery-center{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (min-width:992px) {
  .gallery-center{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width:1200px) {
  .gallery-center{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}