/* Vegas Bulldog Mobile Header System */

/* Mobile Header (≤768px) */
.vb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  height: 60px;
  padding-top: max(8px, env(safe-area-inset-top));
  display: none; /* Hidden by default, shown on mobile */
}

.vb-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vb-header-logo {
  flex-shrink: 0;
}

.vb-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.vb-logo-icon {
  height: 32px;
  width: auto;
}

/* Mobile Header Actions */
.vb-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Phone Button */
.vb-phone-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bulldog-pink, #EB3471);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.vb-phone-button:hover {
  background: var(--bulldog-red, #D1232D);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(235, 52, 113, 0.3);
}

.vb-phone-button:focus {
  outline: 2px solid var(--bulldog-pink, #EB3471);
  outline-offset: 2px;
}

.vb-phone-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

/* Mobile Menu Toggle Button */
.vb-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.vb-menu-toggle:hover {
  background-color: rgba(235, 52, 113, 0.1);
}

.vb-menu-toggle:focus {
  outline: 2px solid var(--bulldog-pink, #EB3471);
  outline-offset: 2px;
}

.vb-hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--charcoal, #2C3E50);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* Hamburger Animation */
.vb-menu-toggle.active .vb-hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.vb-menu-toggle.active .vb-hamburger-line:nth-child(2) {
  opacity: 0;
}

.vb-menu-toggle.active .vb-hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Off-Canvas Drawer */
.vb-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 420px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease-in-out;
  z-index: 1001;
  overflow-y: auto;
  padding-top: env(safe-area-inset-top);
}

.vb-drawer.open {
  transform: translateX(0);
}

.vb-drawer-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vb-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(235, 52, 113, 0.1);
}

.vb-drawer-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal, #2C3E50);
  margin: 0;
}

.vb-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.vb-drawer-close:hover {
  background-color: rgba(235, 52, 113, 0.1);
}

.vb-drawer-close:focus {
  outline: 2px solid var(--bulldog-pink, #EB3471);
  outline-offset: 2px;
}

.vb-close-icon {
  width: 24px;
  height: 24px;
  color: var(--charcoal, #2C3E50);
}

.vb-drawer-body {
  flex: 1;
  padding: 20px;
}

/* CTA Buttons in Drawer */
.vb-drawer-cta {
  margin-bottom: 16px;
}

.vb-cta-primary {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--bulldog-pink, #EB3471);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 44px;
  box-sizing: border-box;
}

.vb-cta-primary:hover {
  background: var(--bulldog-red, #D1232D);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(235, 52, 113, 0.3);
}

.vb-drawer-phone {
  margin-bottom: 32px;
}

.vb-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: var(--bulldog-pink, #EB3471);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: 2px solid var(--bulldog-pink, #EB3471);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 44px;
  box-sizing: border-box;
}

.vb-cta-secondary:hover {
  background: var(--bulldog-pink, #EB3471);
  color: #ffffff;
}

.vb-phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Navigation Links */
.vb-drawer-nav {
  border-top: 1px solid rgba(235, 52, 113, 0.1);
  padding-top: 20px;
}

.vb-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vb-nav-list li {
  margin-bottom: 4px;
}

.vb-nav-link {
  display: block;
  padding: 14px 16px;
  color: var(--charcoal, #2C3E50);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-height: 44px;
  box-sizing: border-box;
}

.vb-nav-link:hover {
  background-color: rgba(235, 52, 113, 0.05);
  color: var(--bulldog-pink, #EB3471);
}

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

/* Backdrop */
.vb-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
}

.vb-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Body scroll lock */
body.vb-nav-open {
  overflow: hidden;
}

/* Legacy Desktop Header System (≥1025px) - DISABLED */
@media (min-width: 1025px) {
  /* Hide ALL legacy headers on desktop - new desktop header takes over */
  .vb-header,
  .vb-drawer,
  .vb-backdrop,
  .top-header,
  .navbar,
  .vb-desktop-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Legacy desktop header container - DISABLED */
  .vb-desktop-header {
    display: none !important;
  }

  .vb-desktop-header.is-scrolled {
    display: none !important;
  }

  /* Shared container */
  .vb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* Top utility bar */
  .vb-topbar {
    height: 32px;
    border-bottom: 1px solid #eeeeee;
  }

  .vb-topbar .vb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }

  .vb-phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--charcoal, #2C3E50);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .vb-phone-link:hover {
    color: var(--bulldog-pink, #EB3471);
  }

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

  .vb-phone-icon {
    width: 14px;
    height: 14px;
    color: currentColor;
  }

  .vb-quote-link {
    color: var(--bulldog-pink, #EB3471);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--bulldog-pink, #EB3471);
    border-radius: 4px;
    transition: all 0.2s ease;
    min-height: 24px;
    display: flex;
    align-items: center;
  }

  .vb-quote-link:hover {
    background: var(--bulldog-pink, #EB3471);
    color: #ffffff;
  }

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

  /* Main navigation bar */
  .vb-mainbar {
    height: 60px;
  }

  .vb-mainbar .vb-container {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: 24px;
    height: 100%;
  }

  /* Logo */
  .vb-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

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

  .vb-logo-img {
    height: 32px;
    width: auto;
  }

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

  .vb-nav-list {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .vb-nav-link {
    color: var(--charcoal, #2C3E50);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .vb-nav-link:hover {
    color: var(--bulldog-pink, #EB3471);
    background: rgba(235, 52, 113, 0.05);
  }

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

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

  /* Primary CTA button */
  .vb-cta-button {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--bulldog-pink, #EB3471);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }

  .vb-cta-button:hover {
    background: var(--bulldog-red, #D1232D);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 52, 113, 0.3);
  }

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

  /* Legacy body padding - DISABLED (new desktop header handles this) */
  /* body {
    padding-top: 92px;
  }

  #hero {
    margin-top: 0;
    padding-top: 0;
  } */
}

/* Responsive Rules */
@media (max-width: 768px) {
  /* Show mobile header, hide desktop headers */
  .vb-header {
    display: block;
  }

  .top-header,
  .navbar,
  .vb-desktop-header {
    display: none;
  }

  /* Adjust body padding for single header */
  body {
    padding-top: 60px;
  }

  /* Make mobile header logo 15% larger and ensure it overrides earlier rules */
  .vb-logo-icon {
    height: 37px !important; /* 32px * 1.15 ≈ 36.8px */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet: Hide mobile header and new desktop header, show legacy desktop headers */
  .vb-header,
  .vb-drawer,
  .vb-backdrop,
  .vb-desktop-header,
  .desktop-header-main {
    display: none !important;
  }
}

/* Icon color rules for CTA buttons */
.vb-cta-primary i,
.vb-cta-primary .icon,
.vb-cta-primary .vb-phone-icon {
  color: #ffffff;
}

.vb-cta-secondary i,
.vb-cta-secondary .icon,
.vb-cta-secondary .vb-phone-icon {
  color: var(--bulldog-pink, #EB3471);
}

.vb-cta-secondary:hover i,
.vb-cta-secondary:hover .icon,
.vb-cta-secondary:hover .vb-phone-icon {
  color: #ffffff;
}
