/* Contact controls stay independent of the shared visual theme. */
.header .header-inner { width: min(1360px, calc(100% - 40px)); }
.header .header-socials { gap: 6px; }
.header .header-socials a { width: 44px; height: 44px; }
.header .header-socials svg { width: 22px; height: 22px; }
.header-socials .contact-phone { color: #185cba; }
.header-socials .contact-whatsapp { color: #087b39; background: #effbf2; }
.header-socials .contact-email { color: #b34417; }
.header .header-socials a:focus-visible { outline: 3px solid #173a30; outline-offset: 3px; }
.header .header-socials a:hover { border-color: currentColor; }
.contact-error { display: block; color: #a12520; font-size: 14px; font-weight: 600; }
.contact-error:empty { display: none; }
.enquiry input[aria-invalid="true"] { border-color: #a12520; }
/* Six comfortably sized actions need their own row before navigation collapses. */
@media (max-width: 1400px) {
  .header .header-inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
  .header .header-socials { order: 5; flex-basis: 100%; justify-content: center; margin: 0; }
}
@media (max-width: 960px) {
  .header .header-inner { justify-content: space-between; }
  .header .brand { order: 1; }
  .header .menu { display: block; order: 2; margin-left: auto; min-height: 44px; }
  .header #navigation { display: none; top: 100%; }
  .header #navigation.open { display: flex; }
  .no-js .header #navigation { display: flex; position: static; order: 6; }
  .no-js .header .menu { display: none; }
}

/* Recognizable utilities: consistent geometry, accessible names and touch targets. */
.header .menu { width: 44px; height: 44px; flex-shrink: 0; padding: 10px; }
.header .menu .utility-icon,
.utility-control .utility-icon,
.quick-whatsapp svg {
  display: block; width: 22px; height: 22px; margin: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.header .menu .menu-close-mark { display: none; }
.header .menu[aria-expanded="true"] .menu-open-mark { display: none; }
.header .menu[aria-expanded="true"] .menu-close-mark { display: inline; }
.gallery-page .utility-control,
.story-controls .utility-control,
.mobile-actions .utility-control {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px;
  flex-shrink: 0; padding: 10px; text-decoration: none;
}
.story-controls .utility-control { color: var(--ink); border-radius: 8px; }
.story-controls .utility-control:hover { background: #edf3e8; }
.story-controls > div { flex-direction: row; gap: 8px; align-items: center; }
.header .menu:focus-visible,
.utility-control:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
#gallery-search::-webkit-search-cancel-button,
#story-search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* One calm contact surface: enquiry, direct actions and clinic location. */
.contact-section {
  background: linear-gradient(135deg, #edf3e8 0%, #f6f2e7 100%);
  border-block: 1px solid rgba(23, 58, 48, .12);
}
.contact-section .contact-grid {
  grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
  align-items: stretch; gap: clamp(40px, 6vw, 80px);
}
.contact-section .contact-copy h2 { max-width: 12ch; margin-bottom: 0; font-size: clamp(38px, 4.5vw, 60px); }
.contact-section .contact-copy .intro { max-width: 52ch; margin: 20px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact-enquiry-button { margin: 0 0 30px; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.contact-action {
  display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 58px;
  padding: 10px 12px; border: 1px solid rgba(23, 58, 48, .16); border-radius: 12px;
  color: var(--ink); background: rgba(255, 253, 247, .58); text-decoration: none;
}
.contact-action:hover { border-color: rgba(23, 58, 48, .42); background: rgba(255, 253, 247, .92); }
.contact-action:focus-visible { outline: 2px solid #2f6a58; outline-offset: 3px; }
.contact-action svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-action span { min-width: 0; }
.contact-action strong, .contact-action small { display: block; overflow-wrap: anywhere; }
.contact-action strong { font-size: 13px; }
.contact-action small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.contact-location { display: flex; flex-direction: column; padding: clamp(20px, 3vw, 30px); border: 1px solid rgba(23, 58, 48, .14); border-radius: 20px; background: rgba(255, 253, 247, .84); box-shadow: 0 16px 36px rgba(23, 58, 48, .07); }
.contact-location__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.contact-location__heading .eyebrow { margin: 3px 0 0; white-space: nowrap; }
.contact-location__intro { flex: 0 0 auto; }
.contact-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 11px;
  padding: 7px 12px 7px 9px;
  border: 1px solid rgba(23, 58, 48, .2);
  border-radius: 999px;
  color: var(--ink);
  background: #fffdf7;
  box-shadow: 0 4px 12px rgba(23, 58, 48, .08);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.contact-directions:hover { border-color: #4285f4; background: #f8fbff; }
.contact-directions:focus-visible { outline: 3px solid #4285f4; outline-offset: 3px; }
.contact-directions .google-maps-icon { display: block; width: 26px; height: 26px; flex: 0 0 26px; }
.contact-directions .map-red { fill: #ea4335; stroke: none; }
.contact-directions .map-yellow { fill: #fbbc04; stroke: none; }
.contact-directions .map-green { fill: #34a853; stroke: none; }
.contact-directions .pin-center { fill: #fff; stroke: none; }
.contact-section .address { margin: 0; font-size: 13px; line-height: 1.65; }
.contact-section .map { display: flex; flex: 1; flex-direction: column; margin-top: 0; }
.contact-section .map-embed { position: relative; flex: 1 1 240px; min-height: 240px; }
.contact-section .map iframe { display: block; width: 100%; height: 100%; min-height: 240px; border: 0; border-radius: 14px; background: #e3eadd; }
.contact-section .map-fallback {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  max-width: calc(100% - 24px);
  transform: translate(-50%, -100%);
  color: #153e34;
  pointer-events: none;
}
.contact-section .map-fallback__card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 200px;
  padding: 7px 11px 8px 8px;
  border: 2px solid #0b6b58;
  border-radius: 14px;
  background: rgba(255, 253, 247, .97);
  box-shadow: 0 8px 24px rgba(21, 62, 52, .28), 0 0 0 5px rgba(255, 253, 247, .72);
}
.contact-section .map-fallback__card img {
  display: block;
  flex: 0 0 66px;
  width: 66px;
  height: auto;
}
.contact-section .map-fallback__tip {
  width: 18px;
  height: 18px;
  margin-top: -10px;
  border-right: 2px solid #0b6b58;
  border-bottom: 2px solid #0b6b58;
  background: #fffdf7;
  box-shadow: 5px 5px 9px rgba(21, 62, 52, .16);
  transform: rotate(45deg);
}
.contact-section .map-fallback strong,
.contact-section .map-fallback small { display: block; }
.contact-section .map-fallback strong { font-size: 12px; }
.contact-section .map-fallback small { margin-top: 1px; color: #536d66; font-size: 10px; }
@media (max-width: 900px) {
  .contact-section .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-section .contact-copy h2 { max-width: none; }
}
@media (max-width: 420px) {
  .contact-actions { grid-template-columns: 1fr; }
  .contact-location__heading { display: block; }
  .contact-location__intro { margin-bottom: 18px; }
  .contact-section .map-embed,
  .contact-section .map iframe { min-height: 210px; height: 210px; }
  .contact-section .map-embed { flex-basis: 210px; }
  .contact-section .map-fallback,
  .contact-section .map-fallback__card { min-width: 186px; }
  .contact-section .map-fallback__card img { flex-basis: 58px; width: 58px; }
}

/* Shared enquiry dialog: one accessible interaction on every visitor page. */
body.enquiry-modal-open { overflow: hidden; }
.enquiry-modal { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: min(900px, calc(100dvh - 32px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink, #173a30); background: var(--paper, #fffdf7); box-shadow: 0 28px 90px rgba(10, 31, 25, .35); overflow: hidden; }
.enquiry-modal::backdrop { background: rgba(10, 31, 25, .72); backdrop-filter: blur(3px); }
.enquiry-modal__panel { max-height: min(900px, calc(100dvh - 32px)); padding: clamp(22px, 4vw, 42px); overflow-y: auto; overscroll-behavior: contain; }
.enquiry-modal__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.enquiry-modal__heading h2 { margin: 0; font-size: clamp(32px, 6vw, 56px); line-height: .98; }
.enquiry-modal__heading .eyebrow { margin: 0 0 8px; }
.enquiry-modal__close { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.enquiry-modal__intro { max-width: 54ch; }
.enquiry-modal .enquiry { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.enquiry-modal .fields { gap: 20px 18px; margin-top: 24px; }
.enquiry-modal .fields label { gap: 8px; }
.enquiry-modal .speaker-fields { grid-column: 1 / -1; }
.enquiry-modal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.enquiry-modal__cancel { border: 0; background: transparent; color: inherit; cursor: pointer; }
.enquiry-modal__status { min-height: 1.5em; margin: 16px 0 0; font-weight: 600; }
.enquiry-modal__fallback { padding: 16px; margin-top: 12px; border-left: 4px solid #a12520; background: #fff3ef; }
.enquiry-modal__fallback p { margin-top: 0; }
.enquiry-modal__success { padding: clamp(24px, 5vw, 56px) 0; outline: none; }
.enquiry-modal__success h3 { margin-top: 0; font-size: clamp(30px, 5vw, 48px); }
.enquiry-modal :focus-visible { outline: 2px solid #2f6a58; outline-offset: 2px; }
.enquiry-modal input:focus-visible,
.enquiry-modal select:focus-visible,
.enquiry-modal textarea:focus-visible {
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(47, 106, 88, .12);
}
@media (max-width: 620px) {
  .enquiry-modal { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .enquiry-modal__panel { max-height: 100dvh; padding: 24px 20px 36px; }
  .enquiry-modal .fields { grid-template-columns: 1fr; }
  .enquiry-modal .fields > *, .enquiry-modal .speaker-fields { grid-column: 1; }
  .enquiry-modal__actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .enquiry-modal { scroll-behavior: auto; }
}
