/* ---------------------------------------------------------------------------
   Home section 07 - areas we cover.

   Markup: components/home/AreasSection.tsx. Scoped under .gg-areas, and loaded
   after the theme stylesheets so nothing there can win on specificity.
--------------------------------------------------------------------------- */

.gg-areas {
  background: #fff;
  padding: 100px 0 110px;
}

.gg-areas__inner {
  max-width: 1330px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- centred header ------------------------------------------------------ */

.gg-areas__head {
  max-width: 880px;
  margin: 0 auto 52px;
  text-align: center;
}

/* Match home Services eyebrow (Elementor accent + theme default). */
.gg-areas__eyebrow {
  display: inline-block;
  margin: 0 0 4px;
  color: #D70005;
  font-family: "Inclusive Sans", Sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.5;
}

.gg-areas__title {
  margin: 0 0 20px;
  color: var(--secondary-color);
  font-family: "Inclusive Sans", Sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Second half of the heading carries the brand red, inline so it wraps with it. */
.gg-areas__title span {
  color: var(--primary-color);
}

.gg-areas__intro {
  margin: 0;
  color: #6b6b6b;
  font-size: 16px;
  line-height: 1.8;
}

/* --- cards beside the map ------------------------------------------------ */

.gg-areas__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.gg-areas__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.gg-areas__grid li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  background: #fff;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* The theme's hover language: fill with the brand red rather than a soft lift. */
.gg-areas__grid li:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: 0 10px 24px rgba(var(--primary-color-rgb), 0.22);
}

.gg-areas__grid li:hover h3 {
  color: #fff;
}

.gg-areas__grid li:hover .gg-areas__pin {
  background: #fff;
  color: var(--primary-color);
}

.gg-areas__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  font-size: 15px;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.gg-areas__grid h3 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}

/* --- coverage map -------------------------------------------------------- */

.gg-areas__map {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border-radius: 5px;
  background: var(--primary-color);
}

/* `contain` so the whole map is visible - it is never cropped to fill. */
.gg-areas__map img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

/* --- responsive ---------------------------------------------------------- */

@media screen and (max-width: 1199px) {
  .gg-areas {
    padding: 80px 0 90px;
  }
  .gg-areas__title {
    font-size: 36px;
  }
  .gg-areas__body {
    gap: 26px;
  }
}

@media screen and (max-width: 991px) {
  .gg-areas__body {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The map reads better straight after the intro on a narrow screen. */
  .gg-areas__map {
    order: 1;
  }
  .gg-areas__grid {
    order: 2;
  }
  .gg-areas__map img {
    max-height: 420px;
  }
}

@media screen and (max-width: 575px) {
  .gg-areas {
    padding: 60px 0 66px;
  }
  .gg-areas__title {
    font-size: 29px;
  }
  .gg-areas__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gg-areas__map {
    padding: 16px;
  }
}
