/* Contacts page — template-pages/tmpl-contacts.php */

:root {
  --contacts-surface: #f5f5f2;
  --contacts-border: var(--color-border);
  --contacts-muted: #6f7268;
}

/* style eyebrow */

.contacts_eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-green);
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contacts_eyebrow::after {
  content: "";
  flex: 1;
  max-width: 90px;
  height: 1px;
  background-color: var(--color-green);
}

/*
 * The theme puts margin: 100px 0 on every <section> (60px under 768, 40px under
 * 500). Both sections here carry their own padding, so that margin only added a
 * 100px white strip between the grey block and the footer, and doubled the
 * offset under the fixed header.
 */
.contacts_hero,
.contacts_main {
  margin: 0;
}

/* style hero */

.contacts_hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
  padding-bottom: 60px;
}

/* No hero image uploaded yet — do not leave half the row empty. */
.contacts_hero-inner.is-text-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

/* Colour, font and uppercase come from .main_title in common.css. */
.contacts_hero-text h1 {
  /* Chevron height, in em — follows the h1 clamp() on its own. Tune here. */
  --title-arrow-height: 1em;
  margin: 25px 0;
  align-items: flex-start;
  line-height: 1.1;
}

/*
 * The chevron is drawn 19x53. Sizing it in em ties it to the heading's font
 * size, so it grows and shrinks with the title instead of staying at 53px.
 * aspect-ratio keeps the width in step; flex-shrink stops flex squashing it.
 */
.contacts_hero-text h1 svg {
  flex-shrink: 0;
  width: auto;
  height: var(--title-arrow-height);
  aspect-ratio: 19 / 53;
  /* Half-leading of line-height 1.1, so the chevron lines up with the caps. */
  margin-top: 0.05em;
}

.contacts_hero-text p {
  max-width: 520px;
  color: var(--contacts-muted);
}

.contacts_hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* style get in touch */

.contacts_main {
  padding: 60px 0;
  background-color: var(--contacts-surface);
}

.contacts_info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.contacts_info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px 30px;
  border: 1px solid var(--contacts-border);
  background-color: #fff;
}

.contacts_info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(107, 147, 87, 0.14);
}

.contacts_info-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts_info-label {
  color: var(--color-green);
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contacts_info-value {
  color: var(--color-dark-green);
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: clamp(1.125rem, 1.0428rem + 0.2768vw, 1.375rem);
  transition: 0.4s;
  word-break: break-word;
}

.contacts_info-value:hover {
  color: var(--color-green);
}

.contacts_info-note {
  color: var(--contacts-muted);
  font-size: 16px;
}

/* style map card */

.contacts_map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  margin-top: 20px;
  border: 1px solid var(--contacts-border);
  background-color: #fff;
}

.contacts_map-embed {
  min-height: 420px;
}

.contacts_map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.contacts_map-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 35px 40px;
}

.contacts_map-address {
  color: var(--color-dark-green);
  font-weight: 700;
}

.contacts_map-body h2 {
  color: var(--color-dark-green);
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: clamp(1.375rem, 1.2106rem + 0.5537vw, 1.875rem);
}

.contacts_map-body p {
  max-width: 520px;
  color: var(--contacts-muted);
  font-size: 16px;
}

.contacts_map-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  border-bottom: 2px solid var(--color-dark-green);
  padding-bottom: 3px;
  color: var(--color-dark-green);
  font-weight: 600;
  transition: 0.4s;
}

.contacts_map-link svg {
  width: 14px;
  height: 14px;
}

.contacts_map-link:hover {
  color: var(--color-green);
  border-color: var(--color-green);
}

/* adaptive */

@media (max-width: 1120px) {
  .contacts_info-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts_map {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 868px) {
  .contacts_hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

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

  .contacts_map-embed,
  .contacts_map-embed iframe {
    min-height: 300px;
  }

  .contacts_map-body {
    padding: 25px 30px;
  }
}

@media (max-width: 550px) {
  .contacts_info-item {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
}
