/* ================================================
   KB Estate Management — Page-level Section Layouts
   Full-section layouts used by specific pages
   (.services*, .about*, .teams, .areas*)
   ================================================= */

/* --------------------------------------------------
   SERVICES GRID — Service cards listing
   Used on services, why-us, clients, make-payment
   -------------------------------------------------- */
.services {
  padding: 4rem 1rem;
  background: var(--text-light);
}

.services__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--light-neutral);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: var(--stunning-pink);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card__icon {
  color: var(--stunning-pink);
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.6rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--stunning-pink);
  transition: var(--transition);
}

.service-card__link:hover {
  color: var(--primary-blue);
}

.services__header-cta {
  margin-bottom: 2rem;
}

.services__header-cta .btn--primary {
  display: inline-block;
}

/* --------------------------------------------------
   SERVICES INTRO — Two-column intro with stats
   Used on services, why-us, areas-we-cover, clients
   -------------------------------------------------- */
.services-intro {
  padding: 4rem 1rem;
  background: var(--light-neutral);
}

.services-intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-intro__top {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .services-intro__top {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.services-intro__content p {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.services-intro__content p:last-child {
  margin-bottom: 1.5rem;
}

.services-intro__visual {
  border-radius: var(--radius);
  overflow: hidden;
}

.services-intro__img {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
}

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

.services-intro__stat {
  text-align: center;
  padding: 1.5rem 0.75rem;
  background: var(--text-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.services-intro__stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--stunning-pink);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.services-intro__stat-label {
  font-size: 0.8rem;
  color: var(--text-dark);
  opacity: 0.7;
}

/* --------------------------------------------------
   SERVICES IMAGE BANNER — Full-width quote overlay
   Used on services and clients pages
   -------------------------------------------------- */
.services-banner {
  position: relative;
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.services-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.75), rgba(13, 110, 253, 0.6));
}

.services-banner__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 1rem;
  text-align: center;
}

.services-banner__quote {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  font-style: normal;
}

/* --------------------------------------------------
   SERVICES FEATURES — Inline feature list with icons
   Used on services, areas-we-cover, clients, get-a-quote
   -------------------------------------------------- */
.services-features {
  padding: 4rem 1rem;
  background: var(--text-light);
}

.services-features__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-features__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.services-features__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--light-neutral);
  border-radius: var(--radius);
  color: var(--primary-blue);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.services-features__item svg {
  flex-shrink: 0;
  color: var(--stunning-pink);
}

.services-features__item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* --------------------------------------------------
   SERVICES CTA — Dark gradient call-to-action
   Used on services, why-us, meet-the-teams,
   areas-we-cover, clients, rtm, case-studies
   -------------------------------------------------- */
.services-cta {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  text-align: center;
}

.services-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.services-cta__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.services-cta__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.services-cta .btn--primary {
  background: var(--text-light);
  color: var(--primary-blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.services-cta .btn--primary:hover,
.services-cta .btn--primary:focus-visible {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
  box-shadow: none;
}

/* --------------------------------------------------
   ABOUT — Story section
   Used on about and why-us pages
   -------------------------------------------------- */
.about-story {
  padding: 4rem 1rem;
  background: var(--text-light);
}

.about-story__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-story__img {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--secondary-blue), var(--stunning-pink));
  opacity: 0.15;
}

.about-story__text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.about-story__text p {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-story__inner {
    grid-template-columns: 1fr 1fr;
  }

  .about-story__img {
    height: 340px;
  }
}

.about-story .section-label {
  margin-bottom: 0.25rem;
}

.about-story .section-title {
  margin-bottom: 1rem;
}

/* --------------------------------------------------
   ABOUT — Intro section (Who We Are)
   Used on the about page
   -------------------------------------------------- */
.about-intro {
  padding: 4rem 1rem;
  background: var(--text-light);
}

.about-intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-intro__img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--secondary-blue), var(--stunning-pink));
  opacity: 0.12;
}

.about-intro__text {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-intro {
    padding: 5rem 1rem;
  }

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

  .about-intro__img {
    height: 360px;
  }
}

/* --------------------------------------------------
   TEAMS — Team member card grid
   Used on meet-the-teams page
   -------------------------------------------------- */
.teams {
  padding: 4rem 1rem;
  background: var(--text-light);
}

.teams__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.teams__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .teams__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .teams__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: var(--light-neutral);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.team-card__img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.team-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__body {
  padding: 1.5rem;
}

.team-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.2rem;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--stunning-pink);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.team-card__bio {
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.8;
  line-height: 1.6;
}

/* --------------------------------------------------
   AREAS — Location cards grid
   Used on areas-we-cover page
   -------------------------------------------------- */
.areas {
  padding: 4rem 1rem;
  background: var(--text-light);
}

.areas__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.areas__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .areas__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-card {
  background: var(--light-neutral);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.area-card:hover {
  border-color: var(--stunning-pink);
  box-shadow: var(--shadow-sm);
}

.area-card__icon {
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.area-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.area-card__count {
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.65;
  margin-top: 0.25rem;
}

/* --------------------------------------------------
   AREAS MAP — Map banner with gradient overlay
   Used on areas-we-cover page
   -------------------------------------------------- */
.areas-map {
  padding: 0 1rem 4rem;
  background: var(--text-light);
}

.areas-map__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.areas-map__visual {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .areas-map__visual {
    height: 420px;
  }
}

.areas-map__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.areas-map__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.7), rgba(13, 110, 253, 0.5));
}

.areas-map__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
}

.areas-map__label {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.areas-map__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}
