@import url('https://fonts.googleapis.com/css2?family=Changa:wght@300;400;500;600;700;800&display=swap');

.eco-hdr {
  --eco-navy: #0d2d58;
  --eco-green: #08733f;
  --eco-green-2: #15915a;
  --eco-blue: #1677a7;
  --eco-gold: #d9a73f;
  --eco-text: #17263b;
  --eco-muted: #69778a;
  --eco-white: #ffffff;
  --eco-line: rgba(13, 45, 88, 0.09);

  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Changa", sans-serif;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--eco-line);
  box-shadow: 0 10px 35px rgba(13, 45, 88, 0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.eco-hdr.dir-rtl {
  direction: rtl;
}
.eco-hdr.dir-ltr {
  direction: ltr;
}

.eco-hdr,
.eco-hdr *,
.eco-hdr *::before,
.eco-hdr *::after {
  box-sizing: border-box;
}

.eco-hdr a {
  text-decoration: none;
}

.eco-hdr button,
.eco-hdr a {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Top Bar */
.eco-hdr-top {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--eco-navy) 0%, #0d4160 50%, var(--eco-green) 100%);
}

.eco-hdr-top::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px);
  background-size: 20px 20px;
}

.eco-hdr-top-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  min-height: 38px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eco-hdr-message {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 500;
}

.eco-hdr-message-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #55d491;
  box-shadow: 0 0 0 6px rgba(85, 212, 145, 0.14);
}

.eco-hdr-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}

.eco-hdr-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.eco-hdr-contact a:hover {
  opacity: 0.78;
}

.eco-hdr-contact svg {
  width: 14px;
  height: 14px;
}

/* Main Header */
.eco-hdr-main {
  width: min(1240px, calc(100% - 40px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.eco-hdr-brand {
  position: relative;
  min-width: 185px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-hdr-logo-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(13, 45, 88, 0.08), inset 0 0 0 1px rgba(13, 45, 88, 0.06);
}

.eco-hdr-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 30deg, var(--eco-green), var(--eco-blue), var(--eco-gold), var(--eco-green));
  opacity: 0.18;
}

.eco-hdr-logo {
  width: 57px;
  height: 57px;
  object-fit: contain;
  display: block;
}

.eco-hdr-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.eco-hdr-name strong {
  color: var(--eco-navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.eco-hdr-name span {
  max-width: 115px;
  margin-top: 7px;
  color: var(--eco-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
}

/* Navigation */
.eco-hdr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.eco-hdr.dir-rtl .eco-hdr-nav {
  margin-right: auto;
  margin-left: 0;
}
.eco-hdr.dir-ltr .eco-hdr-nav {
  margin-left: auto;
  margin-right: 0;
}

.eco-hdr-link {
  position: relative;
  padding: 13px 11px;
  color: var(--eco-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}

.eco-hdr-link::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--eco-green), var(--eco-blue));
  transform: translateX(50%);
  transition: width 0.25s ease;
}

.eco-hdr-link:hover {
  color: var(--eco-green);
}

.eco-hdr-link:hover::before {
  width: calc(100% - 22px);
}

.eco-hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eco-hdr-phone {
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  display: grid;
  place-items: center;
  color: var(--eco-navy);
  border: 1px solid rgba(13, 45, 88, 0.1);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(13, 45, 88, 0.055);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.eco-hdr-phone:hover {
  color: var(--eco-green);
  border-color: rgba(8, 115, 63, 0.24);
  transform: translateY(-2px);
}

.eco-hdr-phone svg {
  width: 19px;
  height: 19px;
}

.eco-hdr-cta {
  position: relative;
  min-height: 48px;
  padding: 0 20px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--eco-green), var(--eco-green-2) 55%, var(--eco-blue));
  box-shadow: 0 14px 30px rgba(8, 115, 63, 0.2);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eco-hdr-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(20deg);
  transition: left 0.6s ease;
}

.eco-hdr-cta:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(8, 115, 63, 0.27);
}

.eco-hdr-cta:hover::before {
  left: 130%;
}

.eco-hdr-cta svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Menu Button */
.eco-hdr-menu-btn {
  display: none;
  width: 47px;
  height: 47px;
  padding: 0;
  border: 1px solid rgba(13, 45, 88, 0.1);
  border-radius: 15px;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.eco-hdr-menu-lines,
.eco-hdr-menu-lines::before,
.eco-hdr-menu-lines::after {
  width: 21px;
  height: 2px;
  display: block;
  border-radius: 10px;
  background: var(--eco-navy);
  transition: 0.25s ease;
}

.eco-hdr-menu-lines {
  position: relative;
}

.eco-hdr-menu-lines::before,
.eco-hdr-menu-lines::after {
  content: "";
  position: absolute;
}

.eco-hdr.dir-rtl .eco-hdr-menu-lines::before,
.eco-hdr.dir-rtl .eco-hdr-menu-lines::after {
  right: 0;
}

.eco-hdr.dir-ltr .eco-hdr-menu-lines::before,
.eco-hdr.dir-ltr .eco-hdr-menu-lines::after {
  left: 0;
}

.eco-hdr-menu-lines::before {
  top: -7px;
}

.eco-hdr-menu-lines::after {
  top: 7px;
}

.eco-hdr-menu-btn.is-open .eco-hdr-menu-lines {
  background: transparent;
}

.eco-hdr-menu-btn.is-open .eco-hdr-menu-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.eco-hdr-menu-btn.is-open .eco-hdr-menu-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 1070px) {
  .eco-hdr-main {
    gap: 18px;
  }

  .eco-hdr-brand {
    min-width: 165px;
  }

  .eco-hdr-link {
    padding-inline: 8px;
    font-size: 13px;
  }

  .eco-hdr-phone {
    display: none;
  }

  .eco-hdr-cta {
    padding-inline: 16px;
  }
}

@media (max-width: 890px) {
  .eco-hdr-top-inner,
  .eco-hdr-main {
    width: min(100% - 26px, 1240px);
  }

  .eco-hdr-top-inner {
    justify-content: center;
  }

  .eco-hdr-message {
    display: none;
  }

  .eco-hdr-contact {
    width: 100%;
    justify-content: center;
  }

  .eco-hdr-main {
    position: relative;
    min-height: 74px;
  }

  .eco-hdr-logo-wrap {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .eco-hdr-logo {
    width: 51px;
    height: 51px;
  }

  .eco-hdr-name strong {
    font-size: 19px;
  }

  .eco-hdr-menu-btn {
    display: flex;
  }

  .eco-hdr.dir-rtl .eco-hdr-menu-btn {
    margin-right: auto;
    margin-left: 0;
  }

  .eco-hdr.dir-ltr .eco-hdr-menu-btn {
    margin-left: auto;
    margin-right: 0;
  }

  .eco-hdr-actions {
    display: none;
  }

  .eco-hdr-nav {
    position: absolute;
    top: calc(100% + 11px);
    right: 0;
    left: 0;
    z-index: 100;
    margin: 0;
    padding: 13px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    border: 1px solid rgba(13, 45, 88, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 25px 65px rgba(13, 45, 88, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .eco-hdr-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .eco-hdr-link {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
  }

  .eco-hdr-link:hover {
    background: rgba(8, 115, 63, 0.065);
  }

  .eco-hdr-link::before {
    display: none;
  }

  .eco-hdr-mobile-cta {
    margin-top: 6px;
    min-height: 48px;
    display: inline-flex !important;
  }
}

@media (min-width: 891px) {
  .eco-hdr-mobile-cta {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .eco-hdr-top {
    display: none;
  }

  .eco-hdr-name span {
    display: none;
  }

  .eco-hdr-brand {
    min-width: auto;
  }

  .eco-hdr-name strong {
    font-size: 18px;
  }

  .eco-hdr-logo-wrap {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .eco-hdr-logo {
    width: 47px;
    height: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco-hdr *,
  .eco-hdr *::before,
  .eco-hdr *::after {
    transition: none !important;
    animation: none !important;
  }
}
