/* =========================================================
   V36 CTL Main Header Match WordPress Health Hub
   This file intentionally makes the main PHP website header
   follow the same desktop sizing standard as the WordPress
   Health Hub theme, reducing the visual jump between sites.

   Reference standard:
   - Header width: min(1440px, calc(100% - 32px))
   - Header min-height: 74px
   - Header padding: 10px 14px
   - Logo width: 170px
   - Menu font-size: 14px
   - Book Now height: 52px
   ========================================================= */

@media (min-width: 761px) {
  body .site-header,
  header.site-header#siteHeader {
    position: fixed !important;
    top: 18px !important;
    left: 50% !important;
    right: auto !important;
    z-index: 999 !important;

    width: min(1440px, calc(100% - 32px)) !important;
    max-width: 1440px !important;

    min-height: 74px !important;
    height: auto !important;

    transform: translateX(-50%) !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;

    padding: 10px 14px !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.90) !important;
    box-shadow: 0 16px 48px rgba(13,86,117,.16) !important;
    backdrop-filter: blur(18px) saturate(1.05) !important;
    overflow: visible !important;
  }

  body.admin-bar .site-header,
  body.admin-bar header.site-header#siteHeader {
    top: 50px !important;
  }

  body .site-header .brand,
  body .site-header .brand-with-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    min-width: 170px !important;
    max-width: 190px !important;
    width: 170px !important;
    height: 50px !important;
  }

  body .site-header .brand-logo,
  body .site-header .custom-logo {
    display: block !important;
    width: 170px !important;
    max-width: 170px !important;
    height: auto !important;
    max-height: 44px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body .site-header .nav {
    position: static !important;
    flex: none !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 22px !important;

    width: auto !important;
    max-height: none !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
    white-space: nowrap !important;
  }

  body .site-header .nav a,
  body .site-header .nav li a,
  body .site-header .nav .menu-item a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-height: 40px !important;
    height: 40px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #5f7480 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -0.018em !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    transform: none !important;
    transition: color .2s ease, transform .2s ease !important;
  }

  body .site-header .nav a:hover,
  body .site-header .nav a.is-active,
  body .site-header .nav .current-menu-item > a {
    color: #16323f !important;
    background: transparent !important;
  }

  body .site-header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  body .site-header .header-actions .btn-primary,
  body .site-header .btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 52px !important;
    height: 52px !important;
    padding: 0 26px !important;
    border-radius: 999px !important;

    color: #ffffff !important;
    background: linear-gradient(135deg, #0878a4, #13b7a5) !important;
    box-shadow: 0 16px 42px rgba(8,120,164,.22) !important;

    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
  }

  body .mobile-menu-toggle {
    display: none !important;
  }

  body .container,
  body .blog-container {
    width: min(1440px, calc(100% - 32px)) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Keep the hero visually aligned after the smaller standardized header. */
  body .hero-scroll-stage {
    padding-top: 118px !important;
  }
}

/* Keep main PHP compact behavior consistent with WP theme. */
@media (max-width: 1180px) and (min-width: 761px) {
  body .site-header,
  header.site-header#siteHeader {
    width: calc(100% - 32px) !important;
    gap: 14px !important;
    padding: 10px 14px !important;
    min-height: 74px !important;
  }

  body .site-header .brand,
  body .site-header .brand-with-logo {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }

  body .site-header .brand-logo,
  body .site-header .custom-logo {
    width: 150px !important;
    max-width: 150px !important;
  }

  body .site-header .nav {
    gap: 16px !important;
  }

  body .site-header .nav a,
  body .site-header .nav li a,
  body .site-header .nav .menu-item a {
    font-size: 13px !important;
  }

  body .site-header .header-actions .btn-primary,
  body .site-header .btn-primary {
    min-height: 50px !important;
    height: 50px !important;
    padding: 0 22px !important;
    font-size: 16px !important;
  }
}

/* Mobile keeps the existing CTL main hamburger design, only normalize gutters. */
@media (max-width: 760px) {
  body .container,
  body .blog-container {
    width: calc(100% - 28px) !important;
    max-width: none !important;
  }

  body .site-header,
  header.site-header#siteHeader {
    width: calc(100% - 28px) !important;
    max-width: none !important;
  }
}
