@charset "utf-8";

/* ================================================================
   Header & Footer Component Styles  –  VirtualizationWorks.com
   ================================================================ */

/* ----------------------------------------------------------------
   CSS VARIABLES
   ---------------------------------------------------------------- */
:root {
    --primary: #336699;
    --primary-soft: #e8f0f8;
    --primary-accent: #5aa0d0;
    --header-dark-bg: #1a2b3c;
    --text-primary: #1a1a1a;
    --text-muted: #6B7280;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* ================================================================
   SITE HEADER  –  mega-menu + mobile drawer
   ================================================================ */

/* ----------------------------------------------------------------
   SITE-HEADER WRAPPER
   ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.container-clean {
    position: relative;
    background-color: transparent !important;
    max-width: 1350px;
    margin-right: auto;
    margin-left: auto;
}

/* ----------------------------------------------------------------
   UTILITY BAR  (light variant only)
   ---------------------------------------------------------------- */
.header-utility {
    padding: 0.5rem 0;
}

.header-utility--light {
    background-color: var(--primary-soft);
    border-bottom: 1px solid #e6e9f0;
}

.header-utility--light a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.header-utility--light a:hover {
    opacity: 0.85;
    color: var(--text-primary);
}

.header-utility--light .header-search {
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: var(--radius-sm);
}

.header-utility--light .header-search input {
    background: transparent;
    color: var(--text-primary);
}

.header-utility--light .header-search input::placeholder {
    color: var(--text-muted);
}

.header-utility--light .header-search-icon {
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   SEARCH INPUT
   ---------------------------------------------------------------- */
.header-search {
    position: relative;
    max-width: 400px;
    flex: 1;
}

.header-search input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.header-search input:focus {
    outline: none;
}

.header-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ----------------------------------------------------------------
   MAIN HEADER BAR
   ---------------------------------------------------------------- */
.header-main {
    background: #fff;
    padding: 0.75rem 0;
}

.header-main--dark {
    background-color: var(--header-dark-bg);
}

.header-main--dark .header-logo img {
    height: 44px;
    filter: brightness(0) invert(1);
}

.header-main--dark .header-nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.header-main--dark .header-nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.header-main--dark .header-mobile-toggle span {
    background: #fff;
}

.header-main--dark .btn-header-cta {
    background: #fff;
    color: var(--primary);
    border: none;
    font-weight: 600;
}

.header-main--dark .btn-header-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

/* ----------------------------------------------------------------
   LOGO
   ---------------------------------------------------------------- */
.header-logo img {
    height: 44px;
    width: auto;
}

/* ----------------------------------------------------------------
   GRADIENT ACCENT LINE
   ---------------------------------------------------------------- */
.header-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-accent) 50%, var(--primary) 100%);
}

/* ----------------------------------------------------------------
   DESKTOP NAVIGATION
   ---------------------------------------------------------------- */
.header-nav {
    display: none;
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}

.header-nav-link svg {
    transition: transform 0.2s ease;
}

.header-nav-item:hover .header-nav-link svg {
    transform: rotate(180deg);
}

/* ----------------------------------------------------------------
   MEGA DROPDOWN
   ---------------------------------------------------------------- */
.header-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 600px;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  border: 1px solid #e6e9f0;
}

.header-nav-item:hover .header-mega {
  opacity: 1;
  visibility: visible;
}

.header-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.header-mega-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.header-mega-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e6e9f0;
}

.header-mega-item {
  padding: 0.6rem 0;
  line-height: 1.5;
}

.header-mega-title {
  display: block;
  font-weight: 500;
  color: var(--text-primary) !important;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-mega-title:hover {
  color: var(--primary) !important;
}

.header-mega-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.6;
}

.header-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e6e9f0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary) !important;
  text-decoration: none;
}

.header-mega-cta:hover {
  color: var(--primary-accent) !important;
}

.header-mega--narrow {
  min-width: 300px;
}

.header-mega--wide {
  min-width: 900px;
}

/* ----------------------------------------------------------------
   HEADER CTA BUTTON
   ---------------------------------------------------------------- */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* ----------------------------------------------------------------
   MOBILE TOGGLE
   ---------------------------------------------------------------- */
.header-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ----------------------------------------------------------------
   MOBILE OVERLAY
   ---------------------------------------------------------------- */
.header-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1045;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ----------------------------------------------------------------
   MOBILE DRAWER
   ---------------------------------------------------------------- */
.header-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-md);
  z-index: 1050;
  overflow-y: auto;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.header-mobile-menu.is-open {
  right: 0;
}

.header-mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e6e9f0;
}

.header-mobile-top .header-logo img {
  height: 32px;
}

.header-mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.header-mobile-nav {
  padding: 1rem;
  flex: 1;
}

.header-mobile-item {
  border-bottom: 1px solid #e6e9f0;
}

.header-mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  color: var(--text-primary) !important;
  font-weight: 500;
  text-decoration: none;
}

.header-mobile-link:hover {
  color: var(--primary) !important;
}

.header-mobile-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
}

.header-mobile-trigger svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.header-mobile-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.header-mobile-sub {
  display: none;
  padding-bottom: 1rem;
}

.header-mobile-sub.is-open {
  display: block;
}

.header-mobile-sub a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  text-decoration: none;
}

.header-mobile-sub a:hover {
  color: var(--primary) !important;
}

.header-mobile-ctas {
  padding: 1.5rem 1rem;
  border-top: 1px solid #e6e9f0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.header-mobile-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary) !important;
  font-weight: 500;
  text-decoration: none;
}

/* ----------------------------------------------------------------
   RESPONSIVE  –  show desktop nav at lg breakpoint
   ---------------------------------------------------------------- */
@media (min-width: 992px) {
  .header-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
  }

  .header-mobile-toggle {
    display: none;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE  –  show desktop nav at lg breakpoint
   ---------------------------------------------------------------- */
@media (min-width: 992px) {
    .header-nav {
        display: flex;
        align-items: stretch;
        gap: 0;
    }

    .header-mobile-toggle {
        display: none;
    }
}

/* ================================================================
   SITE FOOTER
   ================================================================ */
.site-footer {
    background-color: #1f1f20;
    color: #ffffff;
    padding: 3rem 48px 2rem 48px;
}

.site-footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.site-footer li {
    font-size: 0.9rem;
    color: #e3ecf7;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
}

.site-footer a:hover {
    text-decoration: underline;
    color: var(--primary-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1.5rem;
    margin-left: -48px;
    margin-right: -48px;
    padding-left: 48px;
    padding-right: 48px;
    color: #cfd8e3;
}