/* ============================================================
   CONTACT PAGE — Hero (form + photo card)
   ============================================================ */
.contact-hero {
  background: var(--clr-bg-cream);
  padding-top: 2.25rem;
  padding-bottom: 6.3125rem;
}

/* Card: flex row, 20px inner padding on all sides */
.contact-hero__card {
  display: flex;
  background: #ffffff;
  border-radius: 0.75rem; /* 12px */
  padding: 1.25rem;       /* 20px */
  gap: 16px;
}

/* Left col: photo fills the column, caption overlays bottom via CSS grid */
.contact-hero__left {
  flex: 1;
  max-height: 40rem; /* cap photo height — prevents image intrinsic height from inflating card */
  border-radius: 0.75rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.contact-hero__photo {
  grid-area: 1 / 1 / 3 / 2; /* spans all rows → full height */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-hero__caption {
  grid-area: 2 / 1 / 3 / 2; /* bottom row, same column → overlays photo */
  z-index: 1;
  padding: 2rem; /* 32px */
  max-width: 27.6875rem; /* 443px */
  font-size: 2rem;       /* 32px */
  font-weight: 500;
  color: var(--clr-text-dark);
  line-height: 1.1;
}

/* Right col: form card */
.contact-hero__right {
  flex: 1;
  background: var(--clr-bg-cream);
  border-radius: var(--radius-md); /* 9px */
  padding: 2rem;
  display: flex;
  flex-direction: column;
    justify-content: space-between;
  gap: 2rem; /* consistent gap between title and form instead of space-between */
}

.contact-hero__title {
  font-size: 3.5rem;          /* 56px */
  font-weight: 600;
  color: var(--clr-text-dark);
  line-height: 1.071;
  letter-spacing: -0.1875rem; /* -3px */
}




/* ============================================================
   CONTACT PAGE — Service Areas
   ============================================================ */
.contact-areas {
  background: #fafcfa;
  height: 62.1875rem; /* 995px — matches design frame */
}

.contact-areas__inner {
  position: relative;
  max-width: var(--max-width);
  margin-inline: auto;
  height: 100%;
}

/* Head row: title (left) + cities panel (right) — absolutely positioned */
.contact-areas__head {
  position: absolute;
  top: 7.5rem;           /* 120px */
  left: var(--pad-side); /* 46px */
  right: var(--pad-side);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.contact-areas__title-wrap {
  flex: 0 0 39.375rem; /* 630px */
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 24px */
}

.contact-areas__title {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--clr-text-dark);
  line-height: 1.071;
  letter-spacing: -0.1875rem; /* -3px */
}

.contact-areas__desc {
  max-width: 35.75rem; /* 572px */
  font-size: 1rem;
  color: #5b5b5b;
  line-height: 1.3;
}

/* Cities panel — right side, overlaps top of map */
.contact-areas__cities-panel {
  flex: 0 0 29.8125rem; /* 477px */
  z-index: 1;
  background: var(--clr-bg-cream);
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--clr-divider);
  padding: 1.5rem; /* 24px */
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* 16px */
	margin-right: 24px;
}

/* Each city item */
.contact-city {
  width: 12.5rem; /* 200px */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-city__row {
  display: flex;
  align-items: center;
  gap: 2.25rem; /* 36px */
}

.contact-city__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fafcfa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-city__icon svg { display: block; }

.contact-city__name {
  font-size: 1rem;
  color: #5b5b5b;
  line-height: 1.3;
}

.contact-city__divider {
  height: 1px;
  background: #e4e4e4;
}

/* Map — absolute, below the head row */
.contact-areas__map {
  position: absolute;
  top: 23.0625rem; /* 369px */
  left: var(--pad-side);
  right: var(--pad-side);
  height: 31.625rem; /* 506px */
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-areas__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ============================================================
   CONTACT PAGE — Responsive: Hero
   ============================================================ */

@media (max-width: 80rem) {
  .contact-hero {
    padding-bottom: 4rem;
  }

  .contact-hero__title {
    font-size: 2.75rem;
    letter-spacing: -0.125rem;
  }
}

/* Stack card columns vertically at tablet */
@media (max-width: 64rem) {
  .contact-hero__card {
    flex-direction: column;
  }

  .contact-hero__left {
    flex: none;
    height: 22rem; /* cap photo height when stacked */
  }

  .contact-hero__title {
    font-size: 2.25rem;
    letter-spacing: -0.075rem;
  }
}

@media (max-width: 48rem) {
  .contact-hero {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
  }

  .contact-hero__inner.container {
    padding-inline: 1rem;
  }

  .contact-hero__card {
    padding: 0.75rem;
  }

  .contact-hero__left {
    height: 16rem;
  }

  .contact-hero__right {
    padding: 1.25rem;
  }

  .contact-hero__title {
    font-size: 1.75rem;
    letter-spacing: -0.05rem;
  }

}


/* ============================================================
   CONTACT PAGE — Responsive: Areas
   ============================================================ */

/* Switch to flow layout below 1280px */
@media (max-width: 80rem) {
  .contact-areas {
    height: auto;
    padding-block: 5rem;
  }

  .contact-areas__inner {
    height: auto;
    padding-inline: var(--pad-side);
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .contact-areas__head {
    position: static;
    flex-wrap: wrap;
    gap: 2.5rem;
  }

  .contact-areas__title-wrap {
    flex: 1 1 20rem;
  }

  .contact-areas__cities-panel {
    flex: 1 1 20rem;
  }

  .contact-areas__map {
    position: static;
    height: 25rem;
    border-radius: var(--radius-md);
  }
}

/* Tablet — stack title and cities vertically */
@media (max-width: 64rem) {
  .contact-areas__head {
    flex-direction: column;
  }

  .contact-areas__title-wrap,
  .contact-areas__cities-panel {
    flex: none;
    width: 100%;
  }

  .contact-areas__cities-panel {
    justify-content: flex-start;
  }

  .contact-areas__title {
    font-size: 2.75rem;
  }
}

/* Mobile */
@media (max-width: 48rem) {
  .contact-areas {
    padding-block: 3.75rem;
  }

  .contact-areas__inner {
    gap: 2rem;
  }

  .contact-areas__title {
    font-size: 2rem;
    letter-spacing: -0.05rem;
  }

  .contact-areas__cities-panel {
    gap: 0.75rem;
  }

  .contact-city {
    width: 100%;
  }

  .contact-areas__map {
    height: 18rem;
  }
}


