/* Contact hero text / photo and accounting icon repair ONLY.
   Do not apply to shared header/footer or any other content. */
body.contact-body .contact-page .contact-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 70%) minmax(0, 30%) !important;
  width: 100% !important;
  height: clamp(300px, 30.7vw, 370px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #f8fcfa !important;
  line-height: normal !important;
  isolation: isolate !important;
}
body.contact-body .contact-page .contact-hero-image {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: url("assets/contact-hero-photo-only.webp") center center / 100% 100% no-repeat !important;
}
body.contact-body .contact-page .contact-hero-image::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4%;
  background: linear-gradient(90deg, transparent, #f8fcfa 100%);
}
/* Cover the old printed caption with one clean HTML caption in its same area. */
body.contact-body .contact-page .contact-hero-image .contact-photo-caption {
  position: absolute !important;
  z-index: 3 !important;
  right: 1.5% !important;
  bottom: 6% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 47% !important;
  min-height: 67px !important;
  max-width: 435px !important;
  padding: 11px 15px !important;
  border-radius: 15px !important;
  background: #fafff8 !important;
  box-shadow: 0 1px 6px rgba(10,49,47,.10) !important;
  color: #153f36 !important;
  font: 600 clamp(12px,1.3vw,19px)/1.25 Arial,Helvetica,sans-serif !important;
  white-space: normal !important;
}
body.contact-body .contact-page .contact-hero-message {
  display: flex !important;
  position: relative !important;
  z-index: 4 !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 12px clamp(15px, 2.2vw, 30px) !important;
  background: #f8fcfa !important;
  text-align: center !important;
  overflow: visible !important;
}
body.contact-body .contact-page .contact-hero-message h1 {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #008583 !important;
  font-family: 'Dancing Script', 'Segoe Script', cursive !important;
  font-size: clamp(48px, 5vw, 76px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}
body.contact-body .contact-page .contact-message-stroke {
  display: block !important;
  width: 53% !important;
  height: 9px !important;
  margin: 3px 0 11px !important;
  border-top: 4px solid #f7d13d !important;
  border-radius: 50% !important;
  transform: rotate(-3deg) !important;
}
body.contact-body .contact-page .contact-hero-message h2 {
  display: block !important;
  margin: 0 0 12px !important;
  color: #077a7d !important;
  font: 800 clamp(18px, 2vw, 27px)/1.15 Arial,Helvetica,sans-serif !important;
  letter-spacing: .015em !important;
  white-space: normal !important;
}
body.contact-body .contact-page .contact-hero-message p {
  display: block !important;
  margin: 0 !important;
  max-width: 100% !important;
  color: #182b37 !important;
  font: 500 clamp(12px, 1.12vw, 15px)/1.43 Arial,Helvetica,sans-serif !important;
  overflow-wrap: break-word !important;
}
body.contact-body .contact-page .contact-message-heart {
  display: block !important;
  margin-top: 10px !important;
  font: 400 44px/1 Georgia,serif !important;
  color: #edbf14 !important;
}
/* Accounting situation gear: safe viewbox + no cropping of its linework. */
body.contact-body .contact-page .accounting-section h2 {
  overflow: visible !important;
}
body.contact-body .contact-page .accounting-section h2 svg {
  display: block !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  padding: 2px !important;
  overflow: visible !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
@media (max-width: 850px) {
  body.contact-body .contact-page .contact-hero {
    grid-template-columns: minmax(0,65%) minmax(0,35%) !important;
    height: 330px !important;
  }
  body.contact-body .contact-page .contact-hero-message h1 { font-size: clamp(42px, 6vw, 60px) !important; }
  body.contact-body .contact-page .contact-hero-message h2 { font-size: clamp(16px, 2vw, 22px) !important; }
  body.contact-body .contact-page .contact-hero-message p { font-size: 12px !important; }
  body.contact-body .contact-page .contact-hero-image .contact-photo-caption {
    width: 46% !important;
    min-height: 54px !important;
    padding: 8px 11px !important;
    font-size: clamp(11px, 1.45vw, 14px) !important;
  }
}
@media (max-width: 650px) {
  body.contact-body .contact-page .contact-hero {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  body.contact-body .contact-page .contact-hero-image {height: 235px !important;flex: 0 0 235px !important;}
  body.contact-body .contact-page .contact-hero-message {padding: 18px 22px 17px !important;}
  body.contact-body .contact-page .contact-hero-message h1 {font-size: 58px !important;}
  body.contact-body .contact-page .contact-hero-message h2 {font-size: 20px !important;}
  body.contact-body .contact-page .contact-hero-message p {font-size: 13px !important;max-width: 400px !important;}
  body.contact-body .contact-page .contact-hero-image .contact-photo-caption {
    right: 2% !important;
    bottom: 4% !important;
    width: 50% !important;
    min-height: 42px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
}
