/* ============================================================
   HEADER.CSS — Sticky nav + Full Menu slide-down panel
   Dr. Sk. Sarfaraz Ahmed — Family Physician, Naturopath & Nutrition Specialist
   ============================================================ */

   .header-navbar {
    --hdr-navy: #2f3a2f;
    --hdr-blue: #6d8a63;
    --hdr-blue-light: #eaf2e8;
    --hdr-gray: #5a6b5a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    padding: 14px 0;
    background-color: transparent;
    transition:
      background-color 0.35s ease,
      padding 0.35s ease,
      box-shadow 0.35s ease,
      border-color 0.35s ease;
  }
  
  .header-navbar.header-scrolled,
  .header-navbar.header-menu-open {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(47, 58, 47, 0.08);
    border-bottom: 1px solid rgba(47, 58, 47, 0.08);
  }
  
  /* ── Inner Container ────────────────────────────────────── */
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  
  /* ── Logo ───────────────────────────────────────────────── */
  
  .header-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
  }
  
  .header-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--hdr-navy) 0%, var(--hdr-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }
  
  .header-logo-icon:hover {
    transform: scale(1.05);
  }
  
  .header-logo-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
  }
  
  .header-logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }
  
  .header-logo-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hdr-navy);
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
  }
  
  .header-logo-title {
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--hdr-blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s ease;
  }
  
  /* ── Transparent Top Navbar (Dark Hero Background Contrast) ── */
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-logo-icon {
    background: #6d8a63;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-logo-name {
    color: #ffffff;
  }
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-logo-title {
    color: #a8c99e;
  }
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-hamburger-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-hamburger-btn
    .hamburger-line {
    background-color: #ffffff;
  }
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #a8c99e;
  }
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-hamburger-btn:hover
    .hamburger-line {
    background-color: #a8c99e;
  }
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-cta-btn {
    background: #6d8a63;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  }
  
  .header-navbar:not(.header-scrolled):not(.header-menu-open):not(
      .header-light-theme
    )
    .header-cta-btn:hover {
    background: #57734e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }
  
  /* ── Light Navbar Variant (Profile, Blog & Light Background Pages) ── */
  
  .header-navbar.header-light-theme {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(47, 58, 47, 0.08);
    box-shadow: 0 4px 20px rgba(47, 58, 47, 0.06);
  }
  
  .header-navbar.header-light-theme .header-logo-name {
    color: #1e2a1e !important;
    font-weight: 700;
  }
  
  .header-navbar.header-light-theme .header-logo-title {
    color: #6d8a63 !important;
    font-weight: 600;
  }
  
  .header-navbar.header-light-theme .header-hamburger-btn {
    background: #eaf2e8 !important;
    border: 1px solid rgba(109, 138, 99, 0.35) !important;
  }
  
  .header-navbar.header-light-theme .header-hamburger-btn .hamburger-line {
    background-color: #1e2a1e !important;
  }
  
  .header-navbar.header-light-theme .header-hamburger-btn:hover {
    background: #dce8d9 !important;
    border-color: #6d8a63 !important;
  }
  
  .header-navbar.header-light-theme .header-hamburger-btn:hover .hamburger-line {
    background-color: #6d8a63 !important;
  }
  
  .header-navbar.header-light-theme .header-cta-btn {
    background: #6d8a63 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(109, 138, 99, 0.35) !important;
  }
  
  .header-navbar.header-light-theme .header-cta-btn:hover {
    background: #4d6845 !important;
    box-shadow: 0 6px 18px rgba(77, 104, 69, 0.45) !important;
  }
  
  /* ── Right Controls ─────────────────────────────────────── */
  
  .header-right-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
  }
  
  /* ── Hamburger Menu Trigger ──────────────────────────────── */
  
  .header-hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: #f4f7f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition:
      background-color 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease,
      box-shadow 0.25s ease;
    flex-shrink: 0;
    outline: none;
  }
  
  .header-hamburger-btn:hover {
    background: var(--hdr-blue-light);
    border-color: #c2d6bc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109, 138, 99, 0.15);
  }
  
  .header-hamburger-btn:focus-visible {
    outline: 2px solid var(--hdr-blue);
    outline-offset: 2px;
  }
  
  .header-hamburger-btn .hamburger-box {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .header-hamburger-btn .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: var(--hdr-navy);
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.25s ease,
      background-color 0.25s ease;
    transform-origin: center;
  }
  
  .header-hamburger-btn:hover .hamburger-line {
    background-color: var(--hdr-blue);
  }
  
  /* Open State (Morph to X) */
  .header-hamburger-btn[aria-expanded="true"] .hamburger-line.line-1 {
    transform: translateY(6px) rotate(45deg);
  }
  
  .header-hamburger-btn[aria-expanded="true"] .hamburger-line.line-2 {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .header-hamburger-btn[aria-expanded="true"] .hamburger-line.line-3 {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .header-hamburger-btn[aria-expanded="true"] {
    background: var(--hdr-blue-light);
    border-color: var(--hdr-blue);
  }
  
  .header-hamburger-btn[aria-expanded="true"] .hamburger-line {
    background-color: var(--hdr-blue);
  }
  
  /* ── CTA Button ─────────────────────────────────────────── */
  
  .header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6d8a63;
    color: #ffffff !important;
    font-family: "DM Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition:
      background-color 0.3s ease,
      transform 0.25s ease,
      box-shadow 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
  }
  
  .header-cta-btn:hover {
    background: #4d6845;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(109, 138, 99, 0.35);
  }
  
  /* ── Full Menu Panel ────────────────────────────────────── */
  
  .header-fullmenu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(16, 41, 77, 0.14);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .header-fullmenu-panel.header-panel-open {
    grid-template-rows: 1fr;
  }
  
  .header-fullmenu-panel-inner {
    overflow: hidden;
    min-height: 0;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  
  .header-fullmenu-inner {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    padding: 36px 0 44px;
  }
  
  .header-fullmenu-nav-card,
  .header-fullmenu-info-card {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
    transition-delay: 0s;
  }
  
  .header-panel-open .header-fullmenu-nav-card,
  .header-panel-open .header-fullmenu-info-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
  }
  
  /* ── Nav Card ───────────────────────────────────────────── */
  
  .header-fullmenu-nav-card {
    background: #ffffff;
    border: 1px solid #e9eef3;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(16, 41, 77, 0.05);
  }
  
  .header-fullmenu-nav-head {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .header-fullmenu-nav-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--hdr-blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-fullmenu-nav-icon svg {
    width: 20px;
    height: 20px;
    color: var(--hdr-blue);
  }
  
  .header-fullmenu-nav-title {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hdr-navy);
  }
  
  .header-fullmenu-nav-subtitle {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 0.85rem;
    color: var(--hdr-gray);
    margin-top: 2px;
  }
  
  .header-fullmenu-divider {
    border-top: 1px dashed #dce4ec;
    margin: 22px 0 26px;
  }
  
  .header-fullmenu-nav-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .header-fullmenu-col-label {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--hdr-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
  }
  
  .header-fullmenu-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .header-fullmenu-nav-link {
    display: block;
    padding: 9px 12px;
    margin-left: -12px;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--hdr-navy);
    text-decoration: none;
    transition:
      background-color 0.22s ease,
      color 0.22s ease;
  }
  
  .header-fullmenu-nav-link:hover,
  .header-fullmenu-nav-link.header-active {
    background-color: var(--hdr-blue-light);
    color: var(--hdr-blue);
  }
  
  /* ── Info Card ──────────────────────────────────────────── */
  
  .header-fullmenu-info-card {
    background: linear-gradient(160deg, #2f3a2f 0%, #465f43 50%, #233123 100%);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(47, 58, 47, 0.2);
  }
  
  .header-fullmenu-info-eyebrow {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
  }
  
  .header-fullmenu-info-text {
    font-family: "DM Sans", sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin: 6px 0 20px;
  }
  
  .header-fullmenu-info-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .header-fullmenu-info-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .header-fullmenu-info-contact svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ffffff;
  }
  
  .header-fullmenu-info-contact:hover {
    color: #ffffff;
    text-decoration: underline;
  }
  
  .header-fullmenu-info-cta {
    margin-top: auto;
    align-self: flex-start;
    background: #ffffff;
    color: #2f3a2f !important;
    font-family: "DM Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      background-color 0.25s ease;
  }
  
  .header-fullmenu-info-cta:hover {
    transform: translateY(-2px);
    background: #f4f7f2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }
  
  /* ── Tablet ─────────────────────────────────────────────── */
  
  @media (max-width: 991px) {
    .header-fullmenu-inner {
      grid-template-columns: 1fr;
    }
    .header-cta-btn {
      padding: 11px 18px;
      font-size: 0.78rem;
    }
  }
  
  /* ── Mobile ─────────────────────────────────────────────── */
  
  @media (max-width: 767px) {
    .header-navbar {
      padding: 14px 0;
    }
    .header-logo-title {
      display: none;
    }
    .header-fullmenu-nav-columns {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .header-fullmenu-nav-card,
    .header-fullmenu-info-card {
      padding: 24px;
      border-radius: 18px;
    }
    .header-fullmenu-inner {
      padding: 24px 0 32px;
      gap: 16px;
    }
    .header-right-controls {
      gap: 12px;
    }
    .header-hamburger-btn {
      width: 38px;
      height: 38px;
    }
  }
  
  @media (max-width: 480px) {
    .header-cta-btn {
      display: none;
    }
  }
  
  /* ── Mobile Drawer Overlay & Nav ────────────────────────── */
  
  .header-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(16, 41, 77, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 10000;
  }
  
  .header-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .header-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 36px rgba(16, 41, 77, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    overflow-y: auto;
  }
  
  .header-mobile-drawer.active {
    transform: translateX(0);
  }
  
  .header-mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--hdr-navy);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
    margin-bottom: 20px;
  }
  
  .header-mobile-close:hover {
    background-color: var(--hdr-blue-light);
    color: var(--hdr-blue);
  }
  
  .header-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .header-mobile-nav-item {
    width: 100%;
  }
  
  .header-mobile-nav-link {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hdr-navy);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }
  
  .header-mobile-nav-link:hover {
    background-color: var(--hdr-blue-light);
    color: var(--hdr-blue);
  }
  
  .header-mobile-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  