/* ==========================================================================
   Aafiyah Healing - Custom Header & Footer Styles for Kajabi
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADER BASE & DESKTOP
   -------------------------------------------------------------------------- */
.header {
  background-color: #FFFFFF !important;
  border-bottom: 1px solid #ECECEC;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1000;
  width: 100%;
}

.header.header--fixed {
  background-color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #E2E4E8;
}

.header__content--desktop {
  padding: 16px 0 !important;
}

.header__container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header Logo */
.header__block--logo {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  flex-shrink: 0;
}

.header__block--logo .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header__block--logo .logo__image {
  display: block;
  height: auto;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

/* Desktop Menu Links */
@media (min-width: 768px) {
  .header__block--menu {
    display: flex !important;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    margin: 0 28px 0 auto !important;
  }

  .header__block--menu .link-list {
    display: flex !important;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
  }

  .header__block--menu a.link-list__link {
    color: #0E0F3B !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 6px 0;
    margin: 0 !important;
    line-height: 1.4;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  .header__block--menu a.link-list__link:hover {
    color: #1BA3DD !important;
    text-decoration: none !important;
  }

  .header__content--mobile {
    display: none !important;
  }

  .hamburger {
    display: none !important;
  }
}

/* Header CTA Button */
.header__block--cta {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  flex-shrink: 0;
}

.header__block--cta .btn {
  background-color: #F1C40F !important;
  color: #0E0F3B !important;
  border: 1px solid #F1C40F !important;
  border-radius: 9999px !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap;
}

.header__block--cta .btn:hover {
  background-color: #E5B809 !important;
  border-color: #E5B809 !important;
  color: #0E0F3B !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(241, 196, 15, 0.4) !important;
}

.header__block--cta .btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   MOBILE HEADER (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .header__content--desktop {
    padding: 10px 0 !important;
  }

  .header__container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .header__block--logo {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .header__block--logo .logo__image {
    width: 76px !important;
    max-height: 34px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Hide desktop menu from top bar on mobile */
  .header__content--desktop .header__block--menu {
    display: none !important;
  }

  /* Show CTA button in mobile top bar */
  .header__block--cta {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 10px !important;
  }

  .header__block--cta .btn {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  /* Mobile Hamburger Icon */
  .hamburger {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    width: 22px !important;
    height: 16px !important;
    position: relative;
    cursor: pointer;
  }

  .hamburger__slices {
    width: 22px !important;
    height: 16px !important;
    position: relative;
  }

  .hamburger__slice {
    position: absolute;
    width: 100%;
    height: 2px !important;
    background-color: #0E0F3B !important;
    border-radius: 2px;
    transition: all 0.25s ease-in-out;
  }

  .hamburger--slice-1 { top: 0px !important; }
  .hamburger--slice-2, .hamburger--slice-3 { top: 7px !important; }
  .hamburger--slice-4 { top: 14px !important; }

  /* Hamburger opened animation */
  .hamburger--opened .hamburger--slice-1 {
    opacity: 0;
    transform: translateY(-6px);
  }
  .hamburger--opened .hamburger--slice-2 {
    transform: rotate(45deg);
  }
  .hamburger--opened .hamburger--slice-3 {
    transform: rotate(-45deg);
  }
  .hamburger--opened .hamburger--slice-4 {
    opacity: 0;
    transform: translateY(6px);
  }

  /* Mobile Dropdown Drawer */
  .header__content--mobile {
    display: none;
    background-color: #FFFFFF !important;
    border-top: 1px solid #ECECEC;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 8px 16px 20px !important;
  }

  .header--open .header__content--mobile,
  .header__content--mobile.is-active,
  .header__content--mobile[style*="display: block"] {
    display: block !important;
  }

  .header__content--mobile .link-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100%;
  }

  .header__content--mobile a.link-list__link {
    padding: 12px 8px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #0E0F3B !important;
    border-bottom: 1px solid #F4F5F7 !important;
    display: block !important;
    text-align: left !important;
    text-decoration: none !important;
  }

  .header__content--mobile a.link-list__link:last-child {
    border-bottom: none !important;
  }

  .header__content--mobile a.link-list__link:hover {
    color: #1BA3DD !important;
    background-color: #F8F9FA !important;
  }
}

/* --------------------------------------------------------------------------
   FOOTER BASE & DESKTOP
   -------------------------------------------------------------------------- */
.footer {
  background-color: #F0F0E8 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  padding: 0;
  width: 100%;
}

.footer__content {
  padding: 38px 0 !important;
}

.footer__container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
}

/* Footer Left: Logo + Copyright */
.footer__brand-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__brand-group .footer__block {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
}

.footer__brand-group .footer__block--logo .logo__image {
  max-height: 44px;
  width: auto;
  display: block;
}

.footer__brand-group .copyright {
  font-size: 14px !important;
  color: #5A6072 !important;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.4;
}

/* Footer Right: Navigation Links */
.footer__nav-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer__nav-group .block {
  background: transparent !important;
  padding: 0 !important;
}

.footer__nav-group .link-list {
  margin: 0 !important;
}

.footer__nav-group .link-list__links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap;
}

.footer__nav-group a.link-list__link {
  color: #5A6072 !important;
  font-size: 14px !important;
  font-weight: 400;
  text-decoration: none !important;
  transition: color 0.2s ease;
  margin: 0 !important;
  padding: 4px 0 !important;
  white-space: nowrap;
}

.footer__nav-group a.link-list__link:hover {
  color: #0E0F3B !important;
}

/* --------------------------------------------------------------------------
   FOOTER MOBILE (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .footer__content {
    padding: 30px 0 34px !important;
  }

  .footer__container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  .footer__brand-group {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100%;
  }

  .footer__brand-group .footer__block--logo .logo__image {
    max-height: 36px !important;
    width: auto !important;
  }

  .footer__brand-group .copyright {
    font-size: 13.5px !important;
    color: #5A6072 !important;
  }

  .footer__nav-group {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .footer__nav-group .link-list {
    width: 100% !important;
  }

  .footer__nav-group .link-list__links {
    display: grid !important;
    grid-template-columns: repeat(3, max-content) !important;
    column-gap: 22px !important;
    row-gap: 12px !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .footer__nav-group a.link-list__link {
    font-size: 13.5px !important;
    color: #5A6072 !important;
    display: block !important;
    text-align: left !important;
    white-space: nowrap !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   PRACTITIONER SEARCH & FILTER COMPONENT
   ========================================================================== */
.practitioner-search-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 32px auto 16px auto;
  padding: 0 16px;
  box-sizing: border-box;
  clear: both;
}

.practitioner-search-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search Box (Input Row) */
.practitioner-search-box {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(14, 15, 59, 0.08), 0 2px 8px rgba(14, 15, 59, 0.04);
  border: 1px solid #EAEAEA;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.practitioner-search-box:focus-within {
  border-color: #0E0F3B;
  box-shadow: 0 12px 35px rgba(14, 15, 59, 0.12), 0 0 0 3px rgba(241, 196, 15, 0.35);
}

.practitioner-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.practitioner-search-icon {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  pointer-events: none;
  transition: color 0.2s ease;
}

.practitioner-search-box:focus-within .practitioner-search-icon {
  color: #0E0F3B;
}

.practitioner-search-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 52px;
  font-family: inherit;
  font-size: 16px;
  color: #0E0F3B;
  background: #F8F9FB;
  border: 1.5px solid #E2E8F0;
  border-radius: 50px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.practitioner-search-input::placeholder {
  color: #8C94A6;
  font-size: 15px;
}

.practitioner-search-input:focus {
  background: #FFFFFF;
  border-color: #0E0F3B;
}

/* Clear button */
.practitioner-search-clear {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #E2E8F0;
  color: #4A5568;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.practitioner-search-clear:hover {
  background: #0E0F3B;
  color: #FFFFFF;
}

/* Quick Filter Pills */
.practitioner-filter-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #F0F2F5;
}

.practitioner-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-tag:hover {
  background: #E2E8F0;
  color: #0E0F3B;
}

.filter-tag.active {
  background: #0E0F3B;
  color: #F1C40F;
  border-color: #0E0F3B;
  font-weight: 600;
}

/* Search Status Bar & Crisp Pill Counter */
.practitioner-search-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  margin-top: 12px;
}

.practitioner-search-count {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: #FFFFFF;
  color: #0E0F3B;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #EAEAEA;
  font-size: 14px;
}

/* Reset Kajabi block container when used as native block */
.block-type--practitioner_search {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.block-type--practitioner_search .block {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.count-num {
  font-weight: 700;
  color: #0E0F3B;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 13px;
}

/* Empty State */
.practitioner-search-empty {
  text-align: center;
  background: #FFFFFF;
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  padding: 48px 24px;
  margin: 24px auto;
  max-width: 600px;
  box-sizing: border-box;
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #0E0F3B;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 15px;
  color: #64748B;
  max-width: 440px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

.empty-desc strong {
  color: #0E0F3B;
}

.practitioner-reset-btn {
  background-color: #F1C40F !important;
  color: #0E0F3B !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3) !important;
}

.practitioner-reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(241, 196, 15, 0.45) !important;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .practitioner-search-wrapper {
    margin: 20px auto 10px auto;
    padding: 0 10px;
  }
  .practitioner-search-box {
    padding: 16px 14px;
    border-radius: 16px;
  }
  .practitioner-search-input {
    height: 46px;
    font-size: 14px;
    padding: 0 38px 0 42px;
  }
  .practitioner-search-input::placeholder {
    font-size: 13.5px;
  }
  .practitioner-search-icon {
    left: 12px;
  }
  .practitioner-search-clear {
    right: 10px;
    width: 26px;
    height: 26px;
  }
  .practitioner-filter-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .practitioner-filter-tags::-webkit-scrollbar {
    display: none;
  }
  .filter-tag {
    font-size: 12px;
    padding: 5px 12px;
    flex-shrink: 0;
  }
  .practitioner-filter-label {
    flex-shrink: 0;
  }
}

