@import url("styles/form_confirmation.css");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
  color: #1e293b;
  background-color: #ffffff;
}

body {
  font-size: 1.6rem;
  line-height: 1.6;
}

.max-width {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.4rem;
  padding-right: 2.4rem;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.container__navbar {
  height: 8rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px); /* Starts 40px to the left */
  }
  to {
    opacity: 1;
    transform: translateX(0); /* Lands in natural position */
  }
}

.fade-in-left {
  opacity: 0; /* Hidden before the animation starts */
  animation: fadeInLeft 2s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Animation duration and delay */
  will-change: transform, opacity; /* Optimizes GPU rendering */
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px); /* Starts 40px to the right */
  }
  to {
    opacity: 1;
    transform: translateX(0); /* Lands in natural position */
  }
}

.fade-in-right {
  opacity: 0; /* Hidden before the animation starts */
  animation: fadeInRight 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity; /* Optimizes GPU rendering */
}

.logo__img img {
  height: 7rem;
  width: auto;
  object-fit: contain;
}

.call__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #009647;
  color: #ffffff;
  padding: 1.1rem 2.2rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 150, 71, 0.25);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.call__btn:hover {
  background-color: #007d3b;
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.container__header {
  height: calc(95vh - 8rem);
  min-height: 520px;
  background:
    linear-gradient(
      90deg,
      rgba(11, 28, 56, 0.92) 0%,
      rgba(11, 28, 56, 0.8) 42%,
      rgba(11, 28, 56, 0.15) 100%
    ),
    url("../imgs/main-background.jpg") center right / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 8rem;
}

.hero__content {
  max-width: 58rem;
  color: #ffffff;
  animation-delay: 0.6s;
}

.header-1 {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.6rem;
  letter-spacing: -0.02em;
}

.hero__subtext {
  font-size: 2rem;
  font-weight: 300;
  color: #cbd5e1;
  margin-bottom: 3.2rem;
}

.btn-hero {
  display: inline-block;
  background-color: #00a851;
  color: #ffffff;
  padding: 1.6rem 3.2rem;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 168, 81, 0.35);
  transition: all 0.2s ease;
}

.btn-hero:hover {
  background-color: #008f44;
  transform: translateY(-2px);
}

/* ==========================================================================
   LEAD CAPTURE SECTION (SPLIT)
   ========================================================================== */
.second__container {
  background-color: #f8fafc;
  padding: 8rem 0;
}

.lead__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.header-2 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 2.8rem;
  letter-spacing: -0.02em;
}

.lead__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.lead__benefits li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.7rem;
  color: #475569;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.form__card {
  background-color: #ffffff;
  padding: 3.6rem;
  border-radius: 1.6rem;
  box-shadow:
    0 15px 35px -5px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.form__card form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1.4rem 1.6rem;
  font-size: 1.5rem;
  font-family: inherit;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.8rem;
  background-color: #ffffff;
  color: #1e293b;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input-group textarea {
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #009647;
  box-shadow: 0 0 0 3px rgba(0, 150, 71, 0.15);
}

.btn-submit {
  width: 100%;
  background-color: #009647;
  color: #ffffff;
  padding: 1.6rem;
  font-size: 1.7rem;
  font-weight: 700;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 150, 71, 0.3);
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #007d3b;
}

/* ==========================================================================
   PESTS SECTION (3-COLUMN GRID)
   ========================================================================== */
.third__container {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.section__header-center {
  text-align: center;
  margin-bottom: 5rem;
}

.header-section {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-subtext {
  font-size: 1.7rem;
  color: #64748b;
}

.pests__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}

.pest__card {
  background-color: #ffffff;
  border-radius: 1.6rem;
  padding: 3.6rem 2.8rem;
  text-align: center;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pest__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.1);
}

.pest__avatar {
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  border: 3px solid #22c55e;
  overflow: hidden;
  margin-bottom: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
}

.pest__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pest__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.2rem;
}

.pest__desc {
  font-size: 1.5rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2.4rem;
  flex-grow: 1;
}

.pest__link {
  font-size: 1.5rem;
  font-weight: 700;
  color: #009647;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pest__link:hover {
  color: #006831;
}

/* ==========================================================================
   SERVICE AREA SECTION
   ========================================================================== */
.service-area__section {
  background-color: #f8fafc;
  padding: 9rem 0;
  border-top: 1px solid #e2e8f0;
}

.service-area__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.service-area__heading {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.service-area__heading h2 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #0f172a;
}

.service__desc {
  font-size: 1.6rem;
  color: #64748b;
  margin-bottom: 2.8rem;
}

.location__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge {
  background-color: #e2e8f0;
  color: #334155;
  padding: 0.9rem 1.8rem;
  border-radius: 5rem;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.badge:hover {
  background-color: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   DARK FOOTER
   ========================================================================== */
.main-footer {
  background-color: #0c182b;
  color: #94a3b8;
  padding: 7rem 0 5rem 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 4rem;
}

.footer__logo img {
  height: 7rem;
  width: auto;
  margin-bottom: 1.8rem;
}

.footer__tagline {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #64748b;
}

.footer__title {
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #22c55e;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
}

.footer__contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact-item a:hover {
  color: #22c55e;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablets / Medium Screens (<= 992px) */
@media screen and (max-width: 992px) {
  .pests__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .lead__inner {
    grid-template-columns: 1fr;
    gap: 4.8rem;
  }

  .service-area__inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .header-1 {
    font-size: 4rem;
  }
}

/* Mobile Screens (<= 640px) */
@media screen and (max-width: 640px) {
  .container__navbar {
    height: 7rem;
    padding: 0 1.6rem;
  }

  .logo__img img {
    height: 6rem;
  }

  .call__btn {
    padding: 0.9rem 1.4rem;
    font-size: 1.4rem;
    gap: 0.6rem;
  }

  .call__btn svg {
    width: 16px;
    height: 16px;
  }

  .container__header {
    height: calc(100vh - 7rem);
    padding: 6rem 2rem;
    background:
      linear-gradient(
        180deg,
        rgba(11, 28, 56, 0.94) 0%,
        rgba(11, 28, 56, 0.88) 100%
      ),
      url("../imgs/main-background.jpg") center center / cover no-repeat;
    text-align: center;
  }

  .hero__content {
    margin: 0 auto;
  }

  .header-1 {
    font-size: 3.2rem;
  }

  .hero__subtext {
    font-size: 1.7rem;
    margin-bottom: 2.8rem;
  }

  .btn-hero {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
  }

  .second__container {
    padding: 5rem 0;
  }

  .header-2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .lead__benefits {
    margin-bottom: 2rem;
  }

  .form__card {
    padding: 2.4rem 1.8rem;
  }

  .third__container {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .header-section {
    font-size: 2.4rem;
  }

  .service-area__section {
    padding: 6rem 0;
  }

  .service-area__heading h2 {
    font-size: 2.6rem;
  }

  .badge {
    padding: 0.8rem 1.4rem;
    font-size: 1.3rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .main-footer {
    padding: 5rem 0 3rem 0;
  }
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-us__section {
  background-color: #ffffff;
  padding: 10rem 0;
  border-top: 1px solid #e2e8f0;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
}

.why-us__card {
  background-color: #ffffff;
  border-radius: 1.6rem;
  padding: 3.2rem 2.4rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.why-us__card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.08);
}

.why-us__icon-box {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 1.2rem;
  background-color: #dcfce7;
  color: #009647;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 1px solid #bbf7d0;
  flex-shrink: 0;
}

.why-us__icon-box svg {
  width: 2.6rem;
  height: 2.6rem;
}

.why-us__title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.why-us__desc {
  font-size: 1.5rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Tablet Portrait & Landscape (641px to 1024px) */
@media screen and (max-width: 1000px) {
  /* Tablet-specific styles go here */
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }
}

@media screen and (max-width: 500px) {
  /* Tablet-specific styles go here */
  .why-us__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 2.4rem;
  }
}
