@font-face {
  font-family: "Inter";
  src: url(assets/fonts/Inter-VariableFont_opsz_wght.woff2) format("truetype");
  font-weight: 400 700;
}

:root {
  --primary-clr: #ff0000;
  --secondary-clr: #111;
}
/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.4;
  color: #333;
  background-color: #fff;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.2;
}

p:empty {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea {
  border: 1px solid #555;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;

  &:focus-visible {
    outline: 1px solid #333;
  }
}

/* Utilitiy classes */
.container {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.py-5 {
  padding-block: 3rem;
}

.btn {
  display: inline-block;
  background-color: #fff;
  color: var(--primary-clr);
  border: 1px solid;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 250ms ease;

  &:hover,
  &:focus-visible {
    background-color: var(--secondary-clr);
    color: #fff;
  }
}

/* Hero section styles */
.hero {
  position: relative;
  background: url(assets/imgs/hero-bg.jpg) no-repeat center/cover;
  place-content: center;
  padding-block: 50px;
  isolation: isolate;

  & > div {
    display: grid;
    align-items: center;

    gap: 2rem;
  }

  h1 {
    font-size: 3rem;
    color: #fff;
    text-align: center;
  }

  img {
    margin-inline: auto;
  }

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsla(0 0% 0% / 0.44);
    z-index: -1;
  }

  @media (width>768px) {
    & > div {
      grid-template-columns: 1fr 1fr;
    }

    h1 {
      font-size: 4.5rem;
      text-align: left;
    }

    img {
      margin-inline: 0;
    }
  }
}

.contact-form form {
  display: grid;
  gap: 1rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 30px;

  .form-group {
    display: grid;
    gap: 3px;
  }

  .form-group:has([required]) label::after {
    content: " *";
    color: var(--primary-clr);
  }

  button {
    background-color: var(--primary-clr);
    color: #fff;
  }
}

/* About Us styles */
.about-us {
  display: grid;
  gap: 2rem;
  align-items: center;
  text-align: center;

  h2 {
    color: var(--primary-clr);
    margin-bottom: 0.75rem;
  }

  p {
    margin-bottom: 1rem;
  }
  .about-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .btn {
    flex-grow: 1;
  }

  a:last-child {
    background-color: var(--secondary-clr);
    color: #fff;

    &:hover,
    &:focus-visible {
      background-color: var(--primary-clr);
      color: #fff;
    }
  }

  @media (width>768px) {
    grid-template-columns: 1fr 1fr;
  }
}

/* Services section styles */
.service-section {
  background-color: var(--secondary-clr);
  color: #fff;
  text-align: center;

  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;

    span {
      color: var(--primary-clr);
    }
  }

  & > div > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

.services {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.service-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 2rem;

  img {
    margin-inline: auto;
    margin-block-end: 1rem;
  }

  h3 {
    color: var(--primary-clr);
    margin-block-end: 0.5rem;
  }

  p {
    color: #333;
  }

  @media (width>768px) {
    width: 31%;
  }
}

.service-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;

  .btn {
    flex-basis: 250px;
  }

  a:last-child {
    background-color: var(--primary-clr);
    color: #fff;

    &:hover,
    &:focus-visible {
      background-color: var(--secondary-clr);
    }
  }

  @media (width<500px) {
    .btn {
      flex-basis: 100%;
    }
  }
}

/* Contact us styles */
.contact-us {
  display: grid;
  gap: 2rem;
  align-items: center;

  iframe {
    width: 100%;
    height: 300px;
    border: none;
  }

  h2 {
    color: var(--primary-clr);
    margin-bottom: 1rem;
  }

  ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
  }

  @media (width>768px) {
    grid-template-columns: 1fr 1fr;
  }
}

/* WhatsApp styles */
.whatsapp {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 9;
}

.whatsapp svg {
  background-color: #25D366;
  padding: .5rem;
  fill: #fff;
  border-radius: 50px;
  transition: transform 300ms;
  
  &:hover {
    transform: scale(1.075);
  }
}

/* Footer styles */
footer p {
  text-align: center;
  color: #fff;
  padding: 1rem 0;
  background-color: var(--primary-clr);
}
