/* =====================================================
   A1 Steels Header (SiteOrigin Layout Builder)
   Organized, Responsive, Production-Ready CSS
   ===================================================== */

/* site origin elements  */
.widget_siteorigin-panels-builder {
  width: 100%;
}

/* === FINAL: Figma-perfect floating header, no conflicts === */
.header {
  margin: 2.5rem 2.5rem 2.5rem 2.5rem !important;
  background: var(--color-secondary);
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  max-width: calc(100vw - 5rem) !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}
.header-widget-area,
.a1-header-row {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.a1-header-row {
  display: flex;
  align-items: center !important;
  justify-content: space-between !important;
  padding: clamp(0.6rem, 1vw, 1rem) clamp(0.8rem, 2vw, 1.5rem);
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}
.a1-header-logo {
  flex: 0 0 auto !important;
}
.menu-primary-menu-container {
  display: flex !important;
  flex: 1 1 0 !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* === LOGO === */
.a1-header-logo {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1rem);
}


.a1-header-logo-text {
  font-family: "scandia-web", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  letter-spacing: 0.01em;
}

/* === NAVIGATION === */
.a1-header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.a1-header-nav a {
  color: #fff;
  font-family: "scandia-web", sans-serif;
  font-weight: 500;
  font-size: clamp(0.75rem, 1vw, 1.1rem);
  text-decoration: none;
  transition: color 0.2s;
}

.a1-header-nav a:hover,
.a1-header-nav a:focus {
  color: var(--color-primary); /* Brand accent color */
}

/* === NAVIGATION: RESET DEFAULT LIST STYLES & HORIZONTAL LAYOUT === */
.a1-header-nav > .menu,
.a1-header-nav > ul.menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.a1-header-nav #menu-primary-menu > li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.a1-header-nav ul,
.a1-header-nav ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* DROPDOWN: Hide by default, show on hover */
.a1-header-nav ul.sub-menu {
  display: none !important;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--color-secondary);
  border-radius: 0 !important;
  box-shadow: none !important;
}

.a1-header-nav li.menu-item-has-children:hover > ul.sub-menu,
.a1-header-nav li.menu-item-has-children:focus-within > ul.sub-menu {
  display: block !important;
}

.a1-header-nav ul.sub-menu li {
  display: block;
  width: 100%;
}

.a1-header-nav ul.sub-menu a {
  display: block;
  padding: 0.75em 1.25em;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  background: none;
  transition: color 0.2s;
}

.a1-header-nav ul.sub-menu a:hover,
.a1-header-nav ul.sub-menu a:focus {
  color: #e74c3c;
}

/* Optional: Add caret for dropdowns */
.a1-header-nav li.menu-item-has-children > a::after {
  content: " ▼";
  font-size: 0.7em;
  margin-left: 0.3em;
  color: #fff;
}

/* === RESPONSIVE: ORGANIZED FOR DESKTOP SIZES === */
@media (max-width: 1200px) {
  .a1-header-row {
    padding-left: clamp(0.5rem, 2vw, 1rem);
    padding-right: clamp(0.5rem, 2vw, 1rem);
  }
  .a1-header-nav {
    gap: clamp(1rem, 2vw, 2rem);
  }
}

@media (min-width: 901px) {
  .header,
  .header-widget-area,
  .a1-header-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: 100vw !important;
  }
  .a1-header-nav > .menu,
  .a1-header-nav > ul.menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(1.5rem, 4vw, 3.5rem) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .menu-primary-menu-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #menu-primary-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(1.5rem, 4vw, 3.5rem) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    position: relative !important;
  }
  /* Dropdown menu: absolute, below parent, left-aligned, no header push */
  #menu-primary-menu > li.menu-item-has-children {
    position: relative !important;
  }
  #menu-primary-menu > li.menu-item-has-children > ul.sub-menu {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    min-width: 220px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    z-index: 1001 !important;
  }
  #menu-primary-menu > li.menu-item-has-children:hover > ul.sub-menu,
  #menu-primary-menu > li.menu-item-has-children:focus-within > ul.sub-menu {
    display: block !important;
  }
  #menu-primary-menu > li.menu-item-has-children > ul.sub-menu > li {
    width: 100% !important;
    display: block !important;
  }
  #menu-primary-menu > li.menu-item-has-children > ul.sub-menu a {
    display: block !important;
    padding: 0.75em 1.25em !important;
    white-space: nowrap !important;
  }
  #menu-primary-menu > li.menu-item-has-children > ul.sub-menu a:hover,
  #menu-primary-menu > li.menu-item-has-children > ul.sub-menu a:focus {
    color: var(--color-primary);
  }
}

@media (max-width: 900px) {
  .header,
  .header-widget-area,
  .a1-header-row {
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .a1-header-nav > .menu,
  .a1-header-nav > ul.menu {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .a1-header-logo img,
  .a1-header-logo .so-widget-image {
    max-width: 110px;
    height: clamp(18px, 4vw, 28px);
  }
  .menu-primary-menu-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #menu-primary-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 600px) {
  .header-widget-area {
    margin: clamp(2px, 1vw, 6px) 0 0 0;
  }
  .a1-header-row {
    flex-direction: column;
    align-items: stretch;
    padding: clamp(0.25rem, 2vw, 0.75rem);
  }
  .a1-header-logo {
    justify-content: center;
  }
  .a1-header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
  }
  .a1-header-logo img,
  .a1-header-logo .so-widget-image {
    max-width: 90px;
    height: clamp(14px, 6vw, 22px);
  }
}
/* specifically for ipad pro screen  */
@media (min-width: 901px) and (max-width: 1100px) {
  .a1-header-nav a {
    font-size: 0.6rem;
  }
}

@media (min-width: 1600px) {
  .a1-header-row {
    padding: clamp(0.8rem, 1.2vw, 1.5rem) clamp(1rem, 2.5vw, 3rem);
  }
}

/* =====================================================
   End Header Styles
   ===================================================== */