/* Reuse the Home hero layout; the eyebrow is About-specific. */
.contact-page .hero__eyebrow {
  color: #fff;
  font-size: calc(1rem - 2px);
}
/* Contact page only */
.contact-page {
  background: #fff;
  color: #111;
}

.contact-details {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.contact-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact-form-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
}
.contact-form-card h2,
.contact-info h2 {
  margin: 0 0 0.65rem;
  color: inherit;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.contact-form-card > p,
.contact-info > p {
  margin: 0 0 1.8rem;
  color: #666;
  line-height: 1.65;
}
.contact-form {
  display: grid;
  gap: 1.15rem;
}
.contact-form label,
.contact-form legend {
  display: grid;
  gap: 0.45rem;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}
.contact-form span {
  color: #a10e0e;
}
.contact-form input:not([type="radio"]):not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  padding: 0.72rem 0.85rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 400;
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #111;
  outline: 2px solid rgba(17, 17, 17, 0.16);
  outline-offset: 1px;
}
.contact-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-form legend {
  margin-bottom: 0.7rem;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
}
.contact-form__choices label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 400;
  white-space: nowrap;
}
.contact-form__choices input {
  accent-color: #111;
}
.contact-form__submit {
  justify-self: start;
  border: 1px solid #111;
  padding: 0.9rem 1.35rem;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}
.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background: #333;
  transform: translateY(-1px);
}
.contact-form__captcha-note {
  margin: 0 !important;
  color: #777 !important;
  font-size: 0.75rem;
}
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
}
.contact-info__list {
  display: grid;
  gap: 1.6rem;
  margin: 2.4rem 0;
  padding: 0;
  list-style: none;
}
.contact-info__list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 1rem;
  align-items: start;
}
.contact-info__list svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info__phones {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-info__phones a {
  display: block;
  width: fit-content;
}
.contact-info__list strong,
.contact-social > strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}
.contact-info__list span,
.contact-info__list a {
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  text-decoration: none;
}
.contact-info__list a:hover,
.contact-social a:hover {
  opacity: 0.65;
}
.contact-social {
  margin-bottom: 2rem;
}
.contact-social > div {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}
.contact-social a {
  color: inherit;
}
.contact-social svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-social a:nth-child(2) svg,
.contact-social a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}
.contact-info__image {
  margin: 0;
  overflow: hidden;
  border-radius: 9px;
}
.contact-info__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}
.contact-map {
  position: relative;
  height: 330px;
  background: #eee;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.82) brightness(1.1);
}
.contact-map__card {
  position: absolute;
  top: 2rem;
  left: max(1.5rem, calc((100% - 1220px) / 2));
  max-width: 205px;
  padding: 1.25rem;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.contact-map__card p {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
}
.contact-map__card a {
  color: #fff;
  font-size: 0.78rem;
  text-decoration: none;
}
.contact-map__card a:hover {
  text-decoration: underline;
}
.contact-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.contact-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.67);
}
.contact-cta__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.contact-cta__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 230px;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.contact-cta h2 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}
.contact-cta__content > div > p:last-child {
  margin: 0;
  line-height: 1.65;
}
.contact-cta__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  border: 1px solid #fff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.2s ease;
}
.contact-cta__button:hover {
  background: #fff;
  color: #111;
}
body.dark-mode .contact-page {
  background: #121212;
  color: #f6f4ef;
}
.dark-mode .contact-form-card {
  border-color: #393939;
  background: #191919;
}
.dark-mode .contact-form-card > p,
.dark-mode .contact-info > p,
.dark-mode .contact-form__captcha-note {
  color: #b9b9b9 !important;
}
.dark-mode .contact-form input:not([type="radio"]):not([type="checkbox"]),
.dark-mode .contact-form select,
.dark-mode .contact-form textarea {
  border-color: #4b4b4b;
  background: #171717;
  color: #f6f4ef;
}
.dark-mode .contact-form select option {
  background: #171717;
}
.dark-mode .contact-form input:focus,
.dark-mode .contact-form select:focus,
.dark-mode .contact-form textarea:focus {
  border-color: #f6f4ef;
  outline-color: rgba(255, 255, 255, 0.18);
}
.dark-mode .contact-form__submit {
  border-color: #f6f4ef;
  background: #f6f4ef;
  color: #111;
}
.dark-mode .contact-form__submit:hover {
  background: #d8d6d0;
}
.dark-mode .contact-map iframe {
  filter: grayscale(1) invert(0.88) contrast(0.75);
}
@media (max-width: 800px) {
  .contact-hero {
    min-height: 580px;
  }
  .contact-details__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .contact-info {
    max-width: 600px;
  }
  .contact-cta__content {
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-map {
    height: 360px;
  }
  .contact-map__card {
    top: auto;
    bottom: 1.25rem;
  }
}
@media (max-width: 540px) {
  .contact-hero {
    min-height: 540px;
    padding-top: 6rem;
  }
  .contact-hero__media::after {
    background: rgba(0, 0, 0, 0.55);
  }
  .contact-form-card {
    padding: 1.25rem;
  }
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  .contact-form__choices {
    gap: 0.6rem 1rem;
  }
  .contact-map {
    height: 380px;
  }
  .contact-map__card {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
  .contact-cta__content {
    min-height: 280px;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
@media (max-width: 768px) {

  .contact-page .hero__content {
      justify-content: flex-end;
      align-items: center;
      text-align: center;
      width: 100%;
      margin-left: 0;
      padding: 8rem 1.5rem 3.5rem;

      /* Move Contact hero content to the same visual position */
      transform: translateY(-75px);
  }

  .contact-page .hero__eyebrow {
      margin-bottom: 1rem;
      font-size: .76rem;
      color: #fff;
  }

  .contact-page .hero__title {
      max-width: 330px;
      margin: 0 auto;
      font-size: 40px;
      line-height: 1;
      text-align: center;
  }

  .contact-page .hero__text {
      max-width: 300px;
      margin: 1rem auto 0;
      font-size: .95rem;
      line-height: 1.7;
      text-align: center;
  }

}

/* ==================================================
   Contact Modal
================================================== */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  min-height: 100vh;
  min-height: 100dvh;

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

  opacity: 0;
  visibility: hidden;

  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  cursor: pointer;
}

.contact-modal__dialog {
  position: relative;

  width: min(92vw, 500px);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  padding: 3rem 2rem;

  border-radius: 14px;

  background: #fff;

  text-align: center;

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);

  z-index: 2;

  transform: translateY(30px) scale(0.95);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.contact-modal.is-open .contact-modal__dialog {
  transform: translateY(0);
}

.contact-modal__icon {
  width: 72px;
  height: 72px;

  margin: 0 auto 1.5rem;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background: #111;

  color: #fff;

  font-size: 2rem;
}

.contact-modal--invalid .contact-modal__icon { background: #d97706; }
.contact-modal--captcha .contact-modal__icon { background: #2563eb; }
.contact-modal--error .contact-modal__icon { background: #dc2626; }

.contact-modal h3 {
  margin-bottom: 1rem;

  font-size: 2rem;
}

.contact-modal p {
  margin-bottom: 2rem;

  color: #666;

  line-height: 1.7;
}

.contact-modal__button {
  border: none;

  padding: 0.9rem 1.8rem;

  background: #111;

  color: #fff;

  cursor: pointer;

  border-radius: 5px;
}

.contact-modal__close {
  position: absolute;

  top: 14px;
  right: 16px;

  border: 0;

  background: transparent;

  font-size: 2rem;

  cursor: pointer;
}

.contact-modal__close:focus-visible,
.contact-modal__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body.dark-mode .contact-modal__dialog {
  background: #1b1b1b;

  color: #fff;
}

body.dark-mode .contact-modal p {
  color: #d0d0d0;
}

body.dark-mode .contact-modal__close {
  color: #fff;
}

@media (max-width: 640px) {
  .contact-modal__dialog {
    width: min(calc(100vw - 2rem), 500px);
    padding: 2rem 1.4rem;
  }

  .contact-modal h3 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-modal__dialog {
    transition: none;
  }
}
