/* HEADER/NAVIGATION BASE */
.header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(30, 57, 50, 0.08);
  position: relative;
  z-index: 1000;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4vw;
  gap: 2.2rem;
}
.header-logo {
  display: flex;
  align-items: center;
  min-width: 120px;
}
.header-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* NAVIGATION MENU */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex: 1 1 auto;
}
.header-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.header-nav li a {
  text-decoration: none;
  color: #1e3932;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0;
  transition: color 0.14s;
}
.header-nav li a:hover,
.header-nav li a:focus {
  color: #39a28d;
}

/* HEADER ICON BUTTONS (CALL/EMAIL/USER) */
.header-call-btns {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: flex-end;
  min-width: 120px;
  margin-left: 0;
}
.header-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #39a28d;
  background: #fff;
  border-radius: 0.5rem;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px 0 rgba(60,60,80,0.10);
  color: #39a28d;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 2101;
  font-size: 1.2rem;
  padding: 0;
}
.header-call-btn svg {
  width: 24px;
  height: 24px;
  stroke: #39a28d;
  fill: none;
  stroke-width: 2;
  display: block;
}
.header-call-btn:hover,
.header-call-btn:focus {
  background: #e6efeb;
  border-color: #1e3932;
  color: #1e3932;
}
.header-call-btn:hover svg,
.header-call-btn:focus svg {
  stroke: #1e3932;
}

/* HAMBURGER BUTTON */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  z-index: 2200;
  position: relative;
}
.header-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #1e3932;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.header-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.header-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive adjustments for header layout */
@media (max-width: 900px) {
  .header .container {
    padding: 0 2vw;
    gap: 1.2rem;
  }
}
@media (max-width: 700px) {
  .header .container {
    display: flex;
    height: 56px;
    padding: 0 1vw;
    gap: 0.5rem;
  }
  .header-logo {
    min-width: 90px;
  }
  .header-call-btns {
    min-width: 0;
    gap: 0.4rem;
  }
  .header-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 2000;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .header-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: fadeInMenu 0.3s;
  }
  @keyframes fadeInMenu {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .header-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100vw;
    align-items: center;
  }
  .header-nav li {
    width: 100vw;
    border-bottom: 1px solid #e6efeb;
    text-align: center;
    font-size: 1.25rem;
    background: none;
    padding: 1.3rem 0;
  }
  .header-nav li:last-child {
    border-bottom: none;
  }
  .header-nav li a {
    width: 100vw;
    display: block;
    color: #1e3932;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0;
  }
  .header-hamburger {
    display: flex;
  }
  .header-call {
    display: none;
  }
  /* Show call button inside menu when open */
  .header-nav.open + .header-call-mobile {
    display: flex;
  }
  .header-call-mobile {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2.5rem;
    width: 90vw;
    max-width: 400px;
    z-index: 2101;
    margin: 0;
    box-shadow: 0 4px 24px 0 rgba(60,60,80,0.10);
    justify-content: center;
    align-items: center;
    background: none;
  }
  body.menu-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
  }
}