/* ==========================================================================
   Header Component Styles
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-1, #2c2d2d);
  color: #ffffff;
  z-index: 1000;
  transform: translateY(0);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.home .site-header.is-scrolled{
    background-color: var(--color-1, #2c2d2d);
}

.site-header-spacer {
  /*width: 100%;*/
  display: none;
/*background-color: var(--color-1, #2c2d2d);*/
/*position: fixed;*/
}

.home .site-header{
    background: transparent;
}

@media (max-width: 990px) {
    .home .site-header{
        background-color: var(--black, #000);
    }
}

/* Header Container */
.site-header .header-container {
  max-width: 1440px;
  width: 95%;
  margin: 0 auto;
  padding: 0 15px;
}

/* --------------------------------------------------------------------------
   Top Contact Bar
   -------------------------------------------------------------------------- */
.header-top-bar {
  padding-top: 20px;
}

.header-top-contacts {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-top-contact-item {
  display: inline-flex;
  align-items: center;
}

.header-top-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffffa1 !important;
  font-family: var(--font-archivo), "Archivo", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1;
}

.header-top-contact-link:hover {
  color: #ffffff;
}

.header-top-contact-link svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Main Navigation Bar
   -------------------------------------------------------------------------- */
.header-main-bar {
  padding: 16px 0;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand Logo */
.header-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.header-logo-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   Desktop Navigation Menu
   -------------------------------------------------------------------------- */
.header-nav-desktop {
  display: flex;
  align-items: center;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-item {
  position: relative;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-family: var(--font-archivo), "Archivo", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  padding: 8px 0;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

/* Services Dropdown Toggle Indicator Arrow */
.header-dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.header-dropdown-arrow svg {
  display: block;
}

.header-nav-item.has-dropdown.is-open .header-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu Flyout */
.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: #07070733;
  backdrop-filter: blur(42.70000076293945px);
  -webkit-backdrop-filter: blur(42.70000076293945px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
  z-index: 1100;
}

.header-nav-item.has-dropdown.is-open .header-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header-dropdown-item {
  margin: 0;
}

.header-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  color: #ffffff;
  font-family: var(--font-archivo), "Archivo", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.header-dropdown-link:hover {
  color: var(--color-2, #f0eadc);
}

.header-dropdown-item-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.2s ease;
}

.header-dropdown-item-arrow svg {
  display: block;
}

.header-dropdown-link:hover .header-dropdown-item-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Header Actions (WhatsApp + Contact Us)
   -------------------------------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-shrink: 0;
}

/* WhatsApp Button */
.header-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  flex-shrink: 0;
}

.header-whatsapp-btn svg {
  display: block;
}

/* Contact Us Button using theme's regular primary-btn style */
.header-contact-btn.primary-btn {
  background-color: var(--color-2, #f0eadc) !important;
  color: #2c2d2d !important;
  padding: 6px 6px 6px 18px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-family:
    var(--font-clash-display), "Clash Display", sans-serif !important;
  font-size: 14px !important;
  min-width: 140px !important;
  gap: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: none !important;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
  flex-shrink: 0;
}

.header-contact-btn .btn-svg-container {
  width: 29px !important;
  height: 29px !important;
  background-color: #2c2d2d !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.header-contact-btn .btn-svg-container svg {
  width: 11px !important;
  height: 11px !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}

.header-contact-btn:hover svg {
  transform: rotate(45deg) !important;
}

/* --------------------------------------------------------------------------
   Mobile Hamburger & Offcanvas Drawer
   -------------------------------------------------------------------------- */
.header-hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  line-height: 0;
  z-index: 1200;
}

.header-hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.header-hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header-hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.header-hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile Drawer Overlay (Slides Right to Left)
   -------------------------------------------------------------------------- */
.header-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-1, #2c2d2d);
  z-index: 99999;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 24px 36px 24px;
  box-sizing: border-box;
}

.header-mobile-drawer.is-open {
  transform: translateX(0);
}

/* Mobile Top Row: Logo & Close 'X' Button */
.header-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 24px;
}

.header-mobile-top .header-logo-img {
  width: 100px;
  height: 25px;
  object-fit: contain;
}

.header-mobile-close-btn {
  background: none;
  border: none;
  padding: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.header-mobile-close-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.header-mobile-close-btn svg {
  display: block;
}

/* Mobile Navigation Links */
.header-mobile-nav {
  margin-top: 10px;
  margin-bottom: 32px;
}

.header-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.header-mobile-nav-item {
  margin: 0;
}

.header-mobile-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  font-family: var(--font-archivo), "Archivo", sans-serif;
  font-weight: 400;
  font-size: 20px;
  text-decoration: none !important;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1.2;
  text-align: left;
  opacity: 1 !important;
  transition: color 0.2s ease;
}

.header-mobile-nav-link:hover {
  color: var(--color-2, #f0eadc) !important;
}

/* Mobile Services Toggle & Arrow */
.header-mobile-service-toggle .header-dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.header-mobile-service-toggle .header-dropdown-arrow.is-open {
  transform: rotate(180deg);
}

.header-mobile-service-toggle .header-dropdown-arrow svg {
  display: block;
}

/* Mobile Dropdown Submenu */
.header-mobile-submenu {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 16px;
}

.header-mobile-submenu.is-open {
  display: flex;
}

.header-mobile-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 250px;
  color: #ffffff !important;
  font-family: var(--font-archivo), "Archivo", sans-serif;
  font-weight: 400;
  font-size: 20px;
  text-decoration: none !important;
  opacity: 1 !important;
  transition: color 0.18s ease;
}

.header-mobile-sublink:hover {
  color: var(--color-2, #f0eadc) !important;
}

.header-mobile-sublink-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.2s ease;
}

.header-mobile-sublink-arrow svg {
  display: block;
}

.header-mobile-sublink:hover .header-mobile-sublink-arrow {
  transform: translateX(3px);
}

/* Mobile Bottom Section: Contacts & Details */
.header-mobile-bottom {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.header-mobile-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
}

.header-mobile-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffffa1 !important;
  font-family: var(--font-archivo), "Archivo", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  line-height: 1;
  transition: color 0.2s ease;
}

.header-mobile-contact-link:hover {
  color: var(--color-2, #f0eadc) !important;
}

.header-mobile-contact-link svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/* Social Links from Options Page */
.header-mobile-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.header-mobile-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.header-mobile-social-link:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.header-mobile-social-icon {
  width: 24px !important;
  height: 24px !important;
  display: block;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .header-nav-desktop {
    display: none;
  }

  .header-hamburger-btn {
    display: flex;
  }

  .header-top-bar {
    display: none;
  }

  .header-actions .header-whatsapp-btn,
  .header-actions .header-contact-btn {
    display: none !important;
  }

  .header-main-bar {
    padding: 12px 0;
  }

  .header-logo-img {
    width: 100px !important;
    height: 25px !important;
    object-fit: contain;
  }
}
