/*
 * AluminiumGlass
 * Homepage CSS
 */


/* =========================================================
   HERO
   ========================================================= */

.home-hero {
  padding: 75px 0 55px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7f8fa 100%
    );
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;

  text-align: center;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-block;

  margin-bottom: 10px;

  color: #667085;

  font-size: 13px;
  font-weight: 800;

  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 800px;

  margin: 0 auto 18px;

  font-size: clamp(34px, 5vw, 58px);

  line-height: 1.08;
  letter-spacing: -1.8px;

  color: #101828;
}

.hero-content h1 span {
  display: block;
}

.hero-description {
  max-width: 690px;

  margin: 0 auto 30px;

  color: #667085;

  font-size: 17px;
  line-height: 1.7;
}


/* =========================================================
   SEARCH
   ========================================================= */

.home-search {
  max-width: 900px;

  margin: 0 auto;

  padding: 8px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(0, 1fr)
    auto;

  gap: 7px;

  background: #fff;

  border: 1px solid #d0d5dd;
  border-radius: 14px;

  box-shadow:
    0 8px 30px rgba(16, 24, 40, .09);

  text-align: left;
}

.search-field {
  min-height: 58px;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 8px 13px;

  border-radius: 9px;

  background: #f9fafb;
}

.search-icon {
  font-size: 19px;
}

.search-field-content {
  flex: 1;
  min-width: 0;
}

.search-field-content label {
  display: block;

  margin-bottom: 2px;

  color: #667085;

  font-size: 11px;
  font-weight: 700;
}

.search-field-content input {
  width: 100%;

  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: #101828;

  font-size: 14px;
}

.search-field-content input::placeholder {
  color: #98a2b3;
}

.home-search-button {
  min-width: 115px;
  min-height: 58px;
}


/* =========================================================
   POPULAR
   ========================================================= */

.popular-searches {
  margin-top: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 8px;

  color: #667085;

  font-size: 13px;
}

.popular-label {
  font-weight: 700;
}

.popular-searches a {
  padding: 5px 9px;

  background: #fff;

  border: 1px solid #e4e7ec;
  border-radius: 999px;

  color: #475467;

  transition:
    background .18s ease,
    border-color .18s ease;
}

.popular-searches a:hover {
  background: #f2f4f7;
  border-color: #d0d5dd;
}


/* =========================================================
   TRUST
   ========================================================= */

.hero-trust {
  margin-top: 25px;

  display: flex;
  justify-content: center;
}

.trust-item {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  text-align: left;
}

.trust-icon {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #ecfdf3;
  color: #087443;

  font-weight: 800;
}

.trust-item strong,
.trust-item small {
  display: block;
}

.trust-item strong {
  font-size: 13px;
}

.trust-item small {
  color: #667085;
  font-size: 11px;
}


/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.home-section {
  padding: 70px 0;
}

.section-heading {
  margin-bottom: 30px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;
}

.section-heading.centered {
  display: block;

  text-align: center;
}

.section-heading h2 {
  margin: 0 0 7px;

  color: #101828;

  font-size: clamp(26px, 3vw, 36px);

  line-height: 1.2;
}

.section-heading p {
  margin: 0;

  color: #667085;

  font-size: 15px;
}

.section-link {
  flex-shrink: 0;

  color: #344054;

  font-size: 14px;
  font-weight: 800;
}

.section-link:hover {
  text-decoration: underline;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories-section {
  background: #fff;
}

.category-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;
}

.category-card {
  min-height: 155px;

  display: flex;

  flex-direction: column;
  justify-content: center;

  padding: 20px;

  background: #fff;

  border: 1px solid #e4e7ec;
  border-radius: 13px;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.category-card:hover {
  transform: translateY(-3px);

  border-color: #cfd4dc;

  box-shadow:
    0 8px 22px rgba(16, 24, 40, .08);
}

.category-icon {
  margin-bottom: 12px;

  font-size: 29px;
}

.category-card h3 {
  margin: 0 0 5px;

  font-size: 17px;
}

.category-card p {
  margin: 0;

  color: #667085;

  font-size: 13px;
}


/* =========================================================
   REGISTER BUSINESS
   ========================================================= */

.business-register-section {
  background: #f7f8fa;
}

.register-card {
  padding: 40px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(250px, .8fr);

  gap: 40px;

  background: #fff;

  border: 1px solid #e4e7ec;
  border-radius: 16px;

  box-shadow:
    0 4px 15px rgba(16, 24, 40, .06);
}

.register-content h2 {
  margin: 0 0 12px;

  font-size: 31px;
  line-height: 1.2;
}

.register-content p {
  max-width: 700px;

  margin: 0 0 22px;

  color: #667085;

  line-height: 1.7;
}

.register-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.register-points {
  display: grid;

  grid-template-columns: 1fr;

  gap: 10px;

  align-content: center;
}

.register-point {
  padding: 15px;

  border: 1px solid #e4e7ec;
  border-radius: 10px;

  background: #f9fafb;
}

.register-point strong,
.register-point span {
  display: block;
}

.register-point strong {
  margin-bottom: 2px;

  font-size: 19px;
}

.register-point span {
  color: #667085;

  font-size: 13px;
}


/* =========================================================
   FEATURED BUSINESSES
   ========================================================= */

.featured-section {
  background: #fff;
}

.business-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.business-card {
  overflow: hidden;

  background: #fff;

  border: 1px solid #e4e7ec;
  border-radius: 14px;

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.business-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 8px 24px rgba(16, 24, 40, .09);
}

.business-card-cover {
  height: 145px;

  display: grid;
  place-items: center;

  background:
    linear-gradient(
      135deg,
      #f2f4f7,
      #e4e7ec
    );

  color: #667085;

  font-size: 28px;
}

.business-card-body {
  padding: 18px;
}

.business-card-title {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 7px;
}

.business-card-title h3 {
  margin: 0;

  font-size: 17px;
}

.verified-badge {
  flex-shrink: 0;

  padding: 4px 7px;

  border-radius: 999px;

  background: #ecfdf3;

  color: #087443;

  font-size: 10px;
  font-weight: 800;
}

.business-category {
  margin-bottom: 8px;

  color: #667085;

  font-size: 13px;
}

.business-location {
  margin-bottom: 12px;

  color: #475467;

  font-size: 13px;
}

.business-rating {
  margin-bottom: 15px;

  color: #475467;

  font-size: 13px;
}

.business-card-actions {
  display: flex;

  gap: 8px;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how-section {
  background: #f7f8fa;
}

.steps-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.step-card {
  position: relative;

  padding: 28px 20px;

  background: #fff;

  border: 1px solid #e4e7ec;
  border-radius: 14px;

  text-align: center;
}

.step-number {
  position: absolute;

  top: 15px;
  right: 17px;

  color: #98a2b3;

  font-size: 12px;
  font-weight: 800;
}

.step-icon {
  margin-bottom: 14px;

  font-size: 34px;
}

.step-card h3 {
  margin-bottom: 7px;

  font-size: 18px;
}

.step-card p {
  margin: 0;

  color: #667085;

  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   LOCATIONS
   ========================================================= */

.locations-section {
  background: #fff;
}

.location-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.location-card {
  padding: 17px;

  display: flex;

  align-items: center;

  gap: 11px;

  border: 1px solid #e4e7ec;
  border-radius: 12px;

  background: #fff;

  transition:
    background .18s ease,
    transform .18s ease;
}

.location-card:hover {
  background: #f9fafb;

  transform: translateY(-2px);
}

.location-icon {
  font-size: 22px;
}

.location-card strong,
.location-card span {
  display: block;
}

.location-card strong {
  font-size: 15px;
}

.location-card span {
  color: #667085;

  font-size: 12px;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
  background: #f7f8fa;
}

.about-content {
  max-width: 900px;
  margin: auto;
}

.about-content h2 {
  margin-bottom: 18px;

  font-size: clamp(27px, 4vw, 39px);

  line-height: 1.2;
}

.about-content p {
  color: #667085;

  line-height: 1.75;
}

.about-actions {
  margin-top: 24px;

  display: flex;

  flex-wrap: wrap;

  gap: 9px;
}


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

@media (max-width: 1000px) {

  .category-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .business-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .location-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}


@media (max-width: 760px) {

  .home-hero {
    padding: 50px 0 40px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .home-search-button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-block;

    margin-top: 12px;
  }

  .category-grid,
  .location-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .register-card {
    grid-template-columns: 1fr;

    padding: 27px;
  }

}


@media (max-width: 520px) {

  .home-section {
    padding: 50px 0;
  }

  .hero-content h1 {
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 15px;
  }

  .popular-searches {
    justify-content: flex-start;
  }

  .category-grid,
  .business-grid,
  .steps-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .business-grid {
    gap: 14px;
  }

  .register-actions,
  .about-actions {
    flex-direction: column;
  }

  .register-actions .ag-btn,
  .about-actions .ag-btn {
    width: 100%;
  }

}