/* WeClinic unified header — responsive overrides + polish */

.wc-header {
  --wc-header-bg: #ffffff;
  --wc-header-ink: #1c2333;
  --wc-header-muted: #5f6b7a;
  --wc-header-accent: #ff6a1a;
  --wc-header-accent-2: #ff9800;
  --wc-header-border: rgba(28, 35, 51, 0.08);
  --wc-header-shadow: 0 8px 24px rgba(28, 35, 51, 0.08);
  position: relative;
  z-index: 1000;
}

.wc-header .header-area {
  position: relative;
  z-index: 1000;
}

/* main_clinic.js adds .sticky after the page scrolls */
.wc-header .main-header-area {
  position: relative;
  z-index: 1000;
  padding: 12px 0;
  background: var(--wc-header-bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.wc-header .main-header-area.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--wc-header-border);
  box-shadow: var(--wc-header-shadow);
  padding: 10px 0;
}

.wc-header__logo a {
  display: inline-flex;
  align-items: center;
}

.wc-header__logo img {
  display: block;
  width: auto;
  max-width: 160px;
  height: 48px;
  object-fit: contain;
}

.wc-header .main-menu {
  text-align: center;
  padding: 0;
}

.wc-header .main-menu ul li {
  margin: 0 8px;
}

.wc-header .main-menu ul li a {
  color: var(--wc-header-muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.wc-header__caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.wc-header .main-menu ul li a::before {
  background: linear-gradient(90deg, var(--wc-header-accent), var(--wc-header-accent-2));
  height: 2px;
  bottom: 2px;
}

.wc-header .main-menu ul li a:hover,
.wc-header .main-menu ul li a.active {
  color: var(--wc-header-ink);
}

.wc-header .main-menu ul li .submenu {
  top: calc(100% + 12px);
  border-radius: 10px;
  border: 1px solid var(--wc-header-border);
  box-shadow: var(--wc-header-shadow);
  padding: 8px 0;
  width: 210px;
  transition: opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease;
}

.wc-header .main-menu ul li:hover > .submenu {
  top: calc(100% + 8px);
}

.wc-header .main-menu ul li .submenu li a {
  padding: 10px 16px;
  color: var(--wc-header-ink);
  font-weight: 500;
}

.wc-header .main-menu ul li .submenu li a:hover {
  color: var(--wc-header-accent);
  background: rgba(255, 106, 26, 0.06);
}

.wc-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.wc-header .Appointment .book_btn {
  margin-left: 0;
}

/* Extra specificity is intentional: style.css has a deeply nested legacy rule. */
.wc-header .header-area .main-header-area .Appointment .book_btn a.wc-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wc-header-accent) 0%, var(--wc-header-accent-2) 100%);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap !important;
  word-break: keep-all;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 106, 26, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wc-header .header-area .main-header-area .Appointment .book_btn a.wc-header__cta:hover {
  background: linear-gradient(135deg, var(--wc-header-accent) 0%, var(--wc-header-accent-2) 100%);
  color: #fff !important;
  border: none;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 106, 26, 0.34);
  text-decoration: none;
}

.wc-header__cta:focus-visible {
  outline: 2px solid var(--wc-header-accent);
  outline-offset: 3px;
}

.wc-header__brand-col {
  flex: 0 0 auto;
  max-width: none;
}

.wc-header__actions-col {
  flex: 1 1 auto;
  max-width: none;
}

@media (min-width: 992px) {
  .wc-header__actions-col {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }

  .wc-header .Appointment .book_btn {
    flex-shrink: 0;
  }

  .wc-header .header-area .main-header-area .Appointment .book_btn a.wc-header__cta {
    white-space: nowrap !important;
    flex-shrink: 0;
    width: auto;
    max-width: none;
  }
}

/* Mobile menu: plain icon, no heavy box */
.wc-header .mobile_menu {
  position: relative;
  width: auto;
  right: auto;
  z-index: 1001;
  flex: 0 0 auto;
}

.wc-header .slicknav_menu {
  background: transparent;
  padding: 0;
}

.wc-header .slicknav_menu .slicknav_menutxt {
  display: none !important;
}

.wc-header .slicknav_btn {
  display: inline-flex;
  float: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  top: 0 !important;
  right: 0 !important;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  position: relative;
  z-index: 1002;
  transition: opacity 0.2s ease;
}

.wc-header .slicknav_btn:hover,
.wc-header .slicknav_btn:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none;
  opacity: 0.75;
  outline: none;
}

.wc-header .slicknav_btn.slicknav_open {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.wc-header .slicknav_menu .slicknav_icon {
  display: block;
  float: none;
  position: relative;
  width: 20px;
  height: 14px;
  margin: 0 !important;
}

.wc-header .slicknav_icon-bar {
  position: absolute !important;
  left: 0;
  top: 50%;
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 !important;
  margin-top: -1px !important;
  background: var(--wc-header-ink) !important;
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

/* Closed: three evenly spaced bars from shared center */
.wc-header .slicknav_icon-bar:nth-child(1) {
  transform: translateY(-6px);
}

.wc-header .slicknav_icon-bar:nth-child(2) {
  transform: translateY(0);
  opacity: 1;
}

.wc-header .slicknav_icon-bar:nth-child(3) {
  transform: translateY(6px);
}

/* Open: clean centered X */
.wc-header .slicknav_btn.slicknav_open .slicknav_icon-bar {
  background: var(--wc-header-ink) !important;
}

.wc-header .slicknav_btn.slicknav_open .slicknav_icon-bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.wc-header .slicknav_btn.slicknav_open .slicknav_icon-bar:nth-child(2) {
  opacity: 0;
  transform: translateY(0) scaleX(0);
}

.wc-header .slicknav_btn.slicknav_open .slicknav_icon-bar:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.wc-header .slicknav_nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: min(320px, calc(100vw - 24px));
  margin: 0;
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--wc-header-border);
  border-radius: 14px;
  box-shadow: var(--wc-header-shadow);
  z-index: 1002;
}

/* SlickNav's jQuery height animation can stall on older pages with busy scripts. */
body.wc-nav-open .wc-header .slicknav_nav {
  height: auto !important;
  max-height: calc(100vh - 90px);
  padding: 10px 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.wc-header .slicknav_nav a,
.wc-header .slicknav_nav .slicknav_row {
  color: var(--wc-header-ink);
  padding: 12px 18px;
  margin: 0;
  border-radius: 0;
  font-weight: 600;
}

.wc-header .slicknav_nav a:hover,
.wc-header .slicknav_nav .slicknav_row:hover {
  background: rgba(255, 106, 26, 0.08);
  color: var(--wc-header-accent);
}

.wc-header .slicknav_nav .slicknav_open > a,
.wc-header .slicknav_nav a.active {
  color: var(--wc-header-accent);
}

/* Tablet / mobile */
@media (max-width: 991px) {
  .wc-header .main-header-area,
  .wc-header .main-header-area.sticky {
    padding: 10px 0;
  }

  .wc-header__row {
    flex-wrap: nowrap;
  }

  .wc-header__logo img {
    max-width: 120px;
    height: 36px;
  }

  .wc-header__actions {
    gap: 6px;
  }

  .wc-header .header-area .main-header-area .Appointment .book_btn a.wc-header__cta {
    padding: 9px 12px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(255, 106, 26, 0.22);
  }
}

@media (max-width: 575px) {
  .wc-header__logo img {
    max-width: 108px;
    height: 32px;
  }

  .wc-header .header-area .main-header-area .Appointment .book_btn a.wc-header__cta {
    padding: 8px 10px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .wc-header .slicknav_btn {
    width: 36px;
    height: 36px;
  }

  .wc-header .slicknav_menu .slicknav_icon,
  .wc-header .slicknav_icon-bar {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-header .main-header-area,
  .wc-header__cta,
  .wc-header .main-menu ul li a,
  .wc-header .main-menu ul li .submenu {
    transition: none;
  }
  .wc-header__cta:hover {
    transform: none;
  }
}

/* Prevent background scroll while mobile nav is open */
body.wc-nav-open {
  overflow: hidden;
}
