/* ==========================================================================
   Aafiyah Healing - Custom Header & Footer Styles (Kajabi Encore Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- Global Header Styles --- */
.header {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(13, 19, 51, 0.08);
  position: relative;
  z-index: 999;
}

.header__content--desktop {
  padding: 16px 0;
}

.header__container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Header Logo */
.header .header__block--logo {
  order: 1 !important;
}

.header .ah-logo,
.header .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.header .logo__image {
  display: block;
  width: 54px;
  height: auto;
  object-fit: contain;
}

/* Header Navigation Menu */
.header .header__block--menu {
  order: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-grow: 1 !important;
}

.header .header__block--dropdown {
  order: 2 !important;
}

.header .link-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header a.link-list__link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3c4150;
  margin: 0 16px;
  padding: 6px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header a.link-list__link:hover,
.header a.link-list__link:focus,
.header a.link-list__link:active {
  color: #0b1f3b !important;
  text-decoration: none;
}

/* Header Call-to-Action (CTA) Pill Button */
.header .header__block--cta {
  order: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-left: 20px !important;
}

.header .header__block--user {
  order: 4 !important;
}

.header .ah-header-cta,
.header .header__cta-btn,
.header .header__block--cta .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background-color: #f1c40f !important;
  color: #0d1333 !important;
  border: 1px solid #f1c40f !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(241, 196, 15, 0.25);
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.header .ah-header-cta:hover,
.header .header__cta-btn:hover,
.header .header__block--cta .btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.35);
  color: #0d1333 !important;
  text-decoration: none !important;
}

.header .ah-header-cta:active,
.header .header__cta-btn:active,
.header .header__block--cta .btn:active {
  transform: translateY(0);
}

/* Header Hamburger Icon (Mobile) */
.header .hamburger {
  order: 5 !important;
  cursor: pointer;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .hamburger__slices {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header .hamburger__slice {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: #0d1333;
  transition: all 0.25s ease;
}

/* Mobile Header Layout */
@media (max-width: 767px) {
  .header__content--desktop {
    padding: 12px 0;
  }

  .header__container {
    padding: 0 20px;
    gap: 12px;
  }

  .header .logo__image {
    width: 46px;
  }

  .header .ah-header-cta,
  .header .header__cta-btn,
  .header .header__block--cta .btn {
    font-size: 12px !important;
    padding: 8px 16px !important;
  }

  .header__content--mobile {
    background-color: #ffffff;
    border-top: 1px solid rgba(13, 19, 51, 0.08);
    padding: 16px 24px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

  .header__content--mobile .link-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .header__content--mobile a.link-list__link {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin: 0;
    font-size: 15px;
    color: #3c4150;
    border-bottom: 1px solid rgba(13, 19, 51, 0.05);
    text-align: left;
    transition: color 0.2s ease;
  }

  .header__content--mobile a.link-list__link:hover,
  .header__content--mobile a.link-list__link:focus,
  .header__content--mobile a.link-list__link:active {
    color: #0b1f3b !important;
  }

  .header__content--mobile a.link-list__link:last-child {
    border-bottom: none;
  }
}

/* --- Global Footer Styles --- */
.footer {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f0f0e8 !important;
  border-top: 1px solid rgba(13, 19, 51, 0.08);
  color: #646b82;
}

.footer__content {
  padding: 26px 0;
}

.footer__container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Footer Left Branding (Logo + Copyright) */
.footer__branding {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer__branding .footer__block {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.footer .ah-logo,
.footer .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.footer .logo__image {
  width: 44px;
  height: auto;
  display: block;
}

.footer .footer-copyright {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #646b82;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Footer Right Navigation Links */
.footer__navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__navigation .footer__block {
  margin: 0;
}

.footer .link-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer a.link-list__link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #646b82;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin: 0 14px;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer a.link-list__link:hover,
.footer a.link-list__link:focus,
.footer a.link-list__link:active {
  color: #0b1f3b !important;
  text-decoration: none;
}

/* Mobile Footer Layout */
@media (max-width: 767px) {
  .footer__content {
    padding: 24px 0;
  }

  .footer__container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 16px;
  }

  .footer__branding {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer .logo__image {
    width: 38px;
  }

  .footer__navigation {
    width: 100%;
  }

  .footer .link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 10px 18px;
  }

  .footer a.link-list__link {
    margin: 0;
    font-size: 13.5px;
  }
}

/* Powered by link styling if enabled */
.powered-by {
  background-color: #f0f0e8 !important;
  text-align: center;
  font-size: 12px;
  padding: 10px 0;
}
