/* WordPress menu bridge: preserves the approved header without changing page CSS. */
site-header,
.shared-header,
.shared-header .utility-bar,
.shared-header .main-nav { width: 100%; max-width: 100%; box-sizing: border-box; }
.shared-header { position: relative; z-index: 150; background: #fff; }
.home-page .shared-header { background: transparent; }
.shared-header .nav-inner,
.shared-header .home-navigation,
.shared-header .primary-menu { min-width: 0; }
.shared-header .home-logo { position: relative; z-index: 2; flex-shrink: 0; }
.shared-header .home-navigation { max-width: calc(100% - 120px); flex: 0 1 auto; }
.shared-header .primary-menu,
.shared-header .sub-menu { margin: 0; padding: 0; list-style: none; }
.shared-header .primary-menu { display: flex; width: auto; max-width: 100%; align-items: center; justify-content: flex-start; gap: clamp(.55rem, 1vw, 1.25rem); }
.shared-header .primary-menu > li { position: relative; }
.shared-header .menu-link-row { display: flex; align-items: center; }
.shared-header .menu-link-row > a { color: inherit; text-decoration: none; white-space: nowrap; }
.shared-header .primary-menu > li:not(.nav-appointment) > .menu-link-row > a { display: flex; height: 40px; align-items: center; border-bottom: 3px solid transparent; line-height: 1; }
.shared-header .primary-menu a:hover,
.shared-header .primary-menu .current-menu-item > .menu-link-row > a,
.shared-header .primary-menu .current-menu-ancestor > .menu-link-row > a { color: #047f9b; }
.shared-header .primary-menu .current-menu-item > .menu-link-row > a,
.shared-header .primary-menu .current-menu-ancestor > .menu-link-row > a { border-bottom-color: #047f9b; }
.shared-header .submenu-toggle { min-width: 24px; min-height: 24px; padding: 0 3px; border: 0; background: transparent; color: #062f4b; font: 700 14px/1 Arial,sans-serif; }
.shared-header .sub-menu { position: absolute; z-index: 160; top: calc(100% + 10px); left: 0; display: none; min-width: 205px; padding: 8px; border: 1px solid #d9e4e8; border-radius: 4px; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.15); }
.shared-header .sub-menu::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 10px; content: ""; }
.shared-header .sub-menu a { display: block; padding: 8px 10px; color: #15232b; font-size: .9rem; text-decoration: none; }
.shared-header .sub-menu a:hover,
.shared-header .sub-menu a:focus-visible { background: #edf8fb; color: #047f9b; }
.shared-header .menu-item-has-children:hover > .sub-menu,
.shared-header .menu-item-has-children:focus-within > .sub-menu,
.shared-header .menu-item-has-children[data-open="true"] > .sub-menu { display: block; }
.shared-header #services-submenu { left: 50%; width: 560px; max-width: none; grid-auto-flow: column; grid-template-rows: repeat(7,auto); grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 8px; transform: translateX(-50%); }
.shared-header .menu-item-has-children:hover > #services-submenu,
.shared-header .menu-item-has-children:focus-within > #services-submenu,
.shared-header .menu-item-has-children[data-open="true"] > #services-submenu { display: grid; }
.shared-header li.nav-appointment,
.shared-header li.nav-appointment:hover,
.shared-header li.nav-appointment:focus-within { min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; transform: none; }
.shared-header .nav-appointment > .menu-link-row > a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .9rem 1.5rem; border: 1px solid #c96f5b; border-radius: 10px; background: #c96f5b; box-shadow: 0 5px 14px rgba(0,0,0,.18); color: #fff !important; font-size: 1rem; font-weight: 700; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.shared-header .nav-appointment > .menu-link-row > a:hover { border-color: #a95443; background: #a95443; box-shadow: 0 8px 18px rgba(0,0,0,.24); color: #fff !important; transform: translateY(-2px); }
.shared-header .nav-appointment > .menu-link-row > a:focus-visible { outline: 3px solid #7f3f34; outline-offset: 3px; color: #fff !important; }

/* WordPress menu markup equivalents of the approved transparent homepage state. */
.home-page .shared-header:not(.is-scrolled) .primary-menu { color: #fff; }
.home-page .shared-header:not(.is-scrolled) .primary-menu .current-menu-item > .menu-link-row > a,
.home-page .shared-header:not(.is-scrolled) .primary-menu .current-menu-ancestor > .menu-link-row > a,
.home-page .shared-header:not(.is-scrolled) .primary-menu a:hover { color: #bfe6e5; }
.home-page .shared-header:not(.is-scrolled) .primary-menu .current-menu-item > .menu-link-row > a,
.home-page .shared-header:not(.is-scrolled) .primary-menu .current-menu-ancestor > .menu-link-row > a { border-bottom-color: #bfe6e5; }
.home-page .shared-header:not(.is-scrolled) .submenu-toggle,
.home-page .shared-header:not(.is-scrolled) .menu-icon { color: #fff; }
.home-page .shared-header:not(.is-scrolled) .sub-menu { color: #15232b; }
.custom-logo-link { display: contents; }
.custom-logo { width: 100%; height: 100%; object-fit: contain; }
.screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.td-appointment-form-wrap { width: 100%; }
.td-appointment-form { display: grid; gap: 1.5rem; }
.td-appointment-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.td-appointment-form label { min-width: 0; }
.td-appointment-form input,
.td-appointment-form select { min-height: 3.25rem; }
.td-appointment-form .appointment-submit { display: grid; justify-items: start; }
.td-appointment-form .appointment-submit-button { min-height: 3.4rem; padding: .9rem 1.5rem; border: 1px solid #c96f5b; border-radius: 10px; background: #c96f5b; box-shadow: 0 5px 14px rgba(0,0,0,.18); color: #fff; font-size: 1rem; font-weight: 700; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.td-appointment-form .appointment-submit-button:hover { border-color: #a95443; background: #a95443; box-shadow: 0 8px 18px rgba(0,0,0,.24); transform: translateY(-2px); }
.td-appointment-form .appointment-submit-button:focus-visible { outline: 3px solid #7f3f34; outline-offset: 3px; }
.td-appointment-form input:focus-visible,
.td-appointment-form select:focus-visible { outline: 3px solid var(--teal-650); outline-offset: 2px; }
.td-appointment-disclaimer { margin: 0; color: var(--muted); font-size: .9rem; }
.td-appointment-disclaimer a { font-weight: 800; }
.td-form-notice { margin-bottom: 1.25rem; padding: 1rem 1.15rem; border-left: 4px solid var(--teal-650); border-radius: .4rem; background: var(--teal-50); color: var(--teal-950); font-weight: 700; }
.td-form-notice-error { border-left-color: #a95443; background: #fff5f2; color: #6f3025; }
.td-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.home-page .appointment-panel .td-appointment-form label { color: #fff; }
.home-page .appointment-panel .td-appointment-disclaimer { color: #c9e3e9; }
.home-page .appointment-panel .td-appointment-disclaimer a { color: #fff; }

/* WordPress may retain paragraph/group wrappers after editor updates. They must
   not become extra grid items or override the approved 3/2/1 service layout. */
.service-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-strip-grid > p,
.service-strip-grid > .wp-block-group,
.service-strip-grid > .wp-block-group > .wp-block-group__inner-container { display: contents; }
.service-strip-grid .wp-block-image { margin: 0; }

/* The fixed/sticky header must clear the logged-in WordPress toolbar. */
body.admin-bar site-header { top: 32px; }

@media (max-width:1024px) {
  .service-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width:782px) {
  body.admin-bar site-header { top: 46px; }
}

@media (max-width:960px) {
  .shared-header .nav-inner { position: relative; }
  .shared-header .menu-toggle { position: absolute; z-index: 2; top: 50%; right: 0; display: grid; align-content: center; justify-content: center; transform: translateY(-50%); }
  .shared-header .home-navigation { position: absolute; z-index: 170; top: 100%; right: 0; left: 0; display: none; width: 100%; max-width: none; max-height: calc(100dvh - 168px); overflow-y: auto; overscroll-behavior: contain; align-items: stretch; padding: 16px; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.15); color: #15232b; font-size: 1rem; flex-direction: column; }
  .shared-header .home-navigation[data-open="true"] { display: flex; }
  .home-page .shared-header:not(.is-scrolled) .home-navigation[data-open="true"] .primary-menu { color: #15232b; }
  .home-page .shared-header:not(.is-scrolled) .home-navigation[data-open="true"] .submenu-toggle { color: #062f4b; }
  .shared-header .primary-menu { align-items: stretch; gap: 1.25rem; flex-direction: column; }
  .shared-header .primary-menu > li { width: 100%; }
  .shared-header .menu-link-row { justify-content: space-between; }
  .shared-header .submenu-toggle { min-width: 40px; min-height: 40px; border: 1px solid #d9e4e8; border-radius: 50%; }
  .shared-header .sub-menu,
  .shared-header #services-submenu { position: static; width: auto; min-width: 0; margin-top: 4px; padding: 4px 0 4px 14px; border: 0; border-left: 2px solid #d9e4e8; border-radius: 0; box-shadow: none; transform: none; }
  .shared-header .menu-item-has-children:hover > .sub-menu,
  .shared-header .menu-item-has-children:hover > #services-submenu { display: none; }
  .shared-header .menu-item-has-children:focus-within > .sub-menu,
  .shared-header .menu-item-has-children[data-open="true"] > .sub-menu,
  .shared-header .menu-item-has-children:focus-within > #services-submenu,
  .shared-header .menu-item-has-children[data-open="true"] > #services-submenu { display: block; }
  .shared-header .nav-appointment > .menu-link-row > a { width: 100%; }
}

@media (max-width:640px) {
  .service-strip-grid { grid-template-columns: minmax(0, 1fr); }
  .td-appointment-fields { grid-template-columns: 1fr; }
  .td-appointment-form .appointment-submit,
  .td-appointment-form .appointment-submit-button { width: 100%; }
}
