/*==============================================================================
  theme/04-chrome.css
  CHROME — Hero area reset, sub-page spacing, sticky header / mobile nav
  Linked from templates/base.html in numbered order with the other theme modules.
==============================================================================*/

/* --------------------------------------------------------------------------
   HERO AREA RESET — Hide legacy template hero background image
   -------------------------------------------------------------------------- */
.hero_area {
  min-height: auto !important;
  background: var(--bg);
}

.hero_bg_box {
  display: none !important;
}

.header_top {
  display: none;
}

/* --------------------------------------------------------------------------
   SUB-PAGE SPACING — Consistent top/bottom padding on inner pages
   -------------------------------------------------------------------------- */
body.sub_page .layout_padding,
body.sub_page .about_section.layout_padding,
body.sub_page .contact_section.layout_padding,
body.sub_page .contact-page.layout_padding,
body.sub_page .team_section.layout_padding,
body.sub_page .service_section.layout_padding,
body.sub_page .video-library.layout_padding {
  padding-top: 40px;
  padding-bottom: 56px;
}

body.sub_page .procedure-detail__content,
body.sub_page .spec-detail__content {
  padding-top: 12px;
  padding-bottom: 56px;
}

body.sub_page .spec-detail__bar-wrap {
  padding-top: 12px;
  padding-bottom: 8px;
}

@media (min-width: 768px) {
  body.sub_page .layout_padding,
  body.sub_page .about_section.layout_padding,
  body.sub_page .contact_section.layout_padding,
  body.sub_page .contact-page.layout_padding,
  body.sub_page .team_section.layout_padding,
  body.sub_page .service_section.layout_padding,
  body.sub_page .video-library.layout_padding {
    padding-top: 36px;
  }

  body.sub_page .procedure-detail__content,
  body.sub_page .spec-detail__content {
    padding-top: 12px;
  }
}

@media (max-width: 767px) {
  body.sub_page .layout_padding,
  body.sub_page .about_section.layout_padding,
  body.sub_page .contact_section.layout_padding,
  body.sub_page .contact-page.layout_padding,
  body.sub_page .team_section.layout_padding,
  body.sub_page .service_section.layout_padding,
  body.sub_page .video-library.layout_padding {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  body.sub_page .procedure-detail__content,
  body.sub_page .spec-detail__content {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  body.sub_page .spec-detail__bar-wrap {
    padding-top: 10px;
    padding-bottom: 6px;
  }
}

/* --------------------------------------------------------------------------
   HEADER — Sticky top bar, desktop nav, mobile slide-in drawer
   -------------------------------------------------------------------------- */
.site-header {
  height: 76px;
  background: var(--text) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--page-max) !important;
  width: 100%;
  margin: 0 auto;
  height: 76px;
  padding: 0 var(--page-pad-x) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}

.site-header__logo {
  justify-self: start;
  display: flex;
  align-items: center;
  max-height: 100%;
}

.site-header__logo-swap {
  position: relative;
  display: inline-block;
  height: 60px;
}

.site-header__logo-img {
  height: 60px;
  width: auto;
  max-width: min(320px, 58vw);
  display: block;
  object-fit: contain;
}

.site-header__logo-img--alt {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
  pointer-events: none;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.kmpdc-navlink {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 120ms ease;
}

.kmpdc-navlink:hover,
.kmpdc-navlink:focus {
  color: var(--primary);
}

.kmpdc-navlink.is-active {
  color: #fff;
}

.nav-caret {
  width: 14px;
  height: 14px;
  opacity: 0.65;
}

.header-btn {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  height: 40px;
  padding: 0 18px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.header-btn--ghost {
  color: #fff;
  background: transparent;
}

.header-btn--ghost:hover {
  color: var(--primary);
}

.header-btn--primary {
  background: var(--primary);
  color: #fff;
}

.header-btn--primary:hover {
  color: #fff;
  background: var(--primary-hover);
  filter: none;
}

.site-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff;
  justify-self: end;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.site-header__menu-btn:hover,
.site-header__menu-btn:focus,
.site-header__menu-btn:focus-visible,
.site-header__menu-btn:active {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #fff;
}

.site-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
}

.site-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bg);
  border-radius: 0;
}

.site-header__backdrop {
  position: fixed;
  top: 76px;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(10, 37, 64, 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.site-header__backdrop.is-open {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

.site-header__backdrop[hidden] {
  display: none !important;
}

.site-header__mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  border: 0;
  border-right: 1px solid var(--border);
  box-shadow: 12px 0 40px rgba(10, 37, 64, 0.12);
  z-index: 110;
  transform: translateX(-105%);
  transition: transform 260ms ease;
  overflow-y: auto;
}

.site-header__mobile.is-open {
  transform: translateX(0);
}

.site-header__mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.site-header__mobile-title {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: #0a2540;
}

.site-header__mobile-close {
  width: 36px;
  height: 36px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0a2540;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.site-header__mobile-close:hover,
.site-header__mobile-close:focus,
.site-header__mobile-close:focus-visible,
.site-header__mobile-close:active {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #0a2540;
}

.site-header__mobile-close span {
  display: block;
  line-height: 1;
}

.site-header__mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 20px 28px;
}

.kmpdc-mobilelink {
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #0a2540;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.kmpdc-mobilelink:hover,
.kmpdc-mobilelink:focus {
  color: var(--primary);
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .site-header {
  background: var(--text) !important;
}

@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }

  .site-header__menu-btn,
  .site-header__mobile,
  .site-header__backdrop {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  :root {
    --page-pad-x: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --page-pad-x: 20px;
  }
}
