/* Desktop Header - Isolated Implementation (≥1025px Only) */

/* Hide desktop header by default on mobile and tablet */
.desktop-header-main {
  display: none;
}

/* Desktop Header Styles (≥1025px) */
@media (min-width: 1025px) {
  /* Show desktop header, hide all other headers */
  .desktop-header-main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 18vh; /* 18vh requirement */
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
  }

  /* Hide all other header implementations on desktop */
  .top-header,
  .vb-desktop-header,
  .vb-header,
  .navbar,
  .vb-drawer,
  .vb-backdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Desktop header container */
  .desktop-header-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Top row: Phone and Quote Button - Full width background */
  .desktop-header-top-row {
    background: var(--charcoal, #231F20);
    border-bottom: 1px solid rgba(235, 52, 113, 0.1);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  /* Top row content container */
  .desktop-header-top-row-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 32px 8px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Bottom row: Logo and Navigation */
  .desktop-header-bottom-row {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 32px 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Phone contact section */
  .desktop-header-contact {
    display: flex;
    align-items: center;
  }

  .desktop-header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .desktop-header-phone:hover {
    color: #ffffff;
    background: var(--bulldog-pink, #EB3471);
    border-color: var(--bulldog-pink, #EB3471);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 52, 113, 0.3);
  }

  .desktop-header-phone:focus {
    outline: 2px solid var(--bulldog-pink, #EB3471);
    outline-offset: 2px;
    border-radius: 6px;
  }

  .desktop-header-phone-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
  }

  .desktop-header-phone-text {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
  }

  /* Logo section */
  .desktop-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .desktop-header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
  }

  .desktop-header-logo-link:hover {
    transform: scale(1.02);
  }

  .desktop-header-logo-link:focus {
    outline: 2px solid var(--bulldog-pink, #EB3471);
    outline-offset: 4px;
    border-radius: 8px;
  }

  .desktop-header-logo-img {
    height: 48px;
    width: auto;
  }

  /* Navigation menu */
  .desktop-header-nav {
    display: flex;
    justify-content: center;
  }

  .desktop-header-nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .desktop-header-nav-link {
    color: var(--charcoal, #2C3E50);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    position: relative;
  }

  .desktop-header-nav-link:hover {
    color: var(--bulldog-pink, #EB3471);
    background: rgba(235, 52, 113, 0.08);
    transform: translateY(-1px);
  }

  .desktop-header-nav-link:focus {
    outline: 2px solid var(--bulldog-pink, #EB3471);
    outline-offset: 2px;
  }

  .desktop-header-nav-link[aria-current="page"] {
    color: var(--bulldog-pink, #EB3471);
    background: rgba(235, 52, 113, 0.1);
  }

  /* Primary CTA button */
  .desktop-header-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .desktop-header-cta-button {
    height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    background: var(--bulldog-pink, #EB3471);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(235, 52, 113, 0.2);
  }

  .desktop-header-cta-button:hover {
    background: var(--bulldog-red, #D1232D);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 52, 113, 0.4);
  }

  .desktop-header-cta-button:focus {
    outline: 2px solid var(--bulldog-pink, #EB3471);
    outline-offset: 3px;
  }

  .desktop-header-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(235, 52, 113, 0.3);
  }

  /* Adjust body padding for desktop header */
  body {
    padding-top: 18vh !important; /* Match header height */
  }

  /* Ensure hero section starts immediately after header */
  #hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Scrolled state */
  .desktop-header-main.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }
}

/* Tablet styles (769px-1024px) - Keep existing headers */
@media (min-width: 769px) and (max-width: 1024px) {
  .desktop-header-main,
  .desktop-header-main *,
  .desktop-header-container,
  .desktop-header-contact,
  .desktop-header-logo,
  .desktop-header-nav,
  .desktop-header-cta {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
  }
}

/* Mobile styles (≤768px) - Keep existing headers */
@media (max-width: 768px) {
  .desktop-header-main,
  .desktop-header-main *,
  .desktop-header-container,
  .desktop-header-contact,
  .desktop-header-logo,
  .desktop-header-nav,
  .desktop-header-cta {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
  }
}
