/* ==========================================================================
   Site Header & Navigation
   - Mobile-First Responsive Design (Clean Version)
   ========================================================================== */

/* --- 1. Base Styles (Mobile First) --- */

body {
  margin-top: 70px; /* Space for fixed header */
}

/* --- 2. Mobile Menu Toggle Button --- */

/* --- 3. Mobile Navigation Styles --- */

/* --- 4. Desktop Styles (min-width: 769px) --- */

@media (min-width: 769px) {
  body {
    margin-top: 80px;
  }

  /* Desktop dropdown styles */
  .menu-item-has-children {
    position: relative;
  }

  .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    min-width: 200px;
    border-radius: 6px;
    list-style: none;
    margin: 0;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
  }

  .sub-menu a {
    white-space: nowrap;
    padding: 0.75rem 1rem;
  }

  /* Show dropdown on hover */
  .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* --- 5. Accessibility & Screen Reader Support --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--dark-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1003;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* ===== HEADER STYLES (MOVED FROM INLINE) ===== */

/* Reset & Variables for Header */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header CTA Button */
.header-cta {
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--dark-orange)
  );
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
