header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
header.is-scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
header.is-scrolled .header-inner {
  padding: 14px 60px;
}

.header-inner {
  max-width: 1800px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 60px 90px;
  box-sizing: border-box;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-link img {
  display: block;
  height: clamp(30px, 3.5vw, 64px);
  width: auto;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease,
    opacity 0.25s ease;
}

header.is-scrolled .logo-link img {
  height: clamp(32px, 4.5vw, 42px);
}

.logo-link:hover img {
  opacity: 0.7;
  transform: scale(1.03);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.nav ul {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  color: #333;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ff7f00;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.header-cta {
  display: flex;
  gap: 20px;
}

.nav a:hover {
  color: #ff7f00;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  z-index: 1200;
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;

  top: 50%;
  transform: translateY(-50%);

  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
  transform: translateY(-50%) translateY(-8px);
}

.hamburger span:nth-child(2) {
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  transform: translateY(-50%) translateY(8px);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg);
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.header-btn.btn-contact {
  background-color: #04c68c;
}

.header-btn.btn-estimate {
  background-color: #f85353;
}

.header-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

@media (max-width: 1440px) {
  .nav a {
    font-size: 10px;
  }
  .header-btn {
    font-size: 10px;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 50px 70px;
  }
  header.is-scrolled .header-inner {
    padding: 16px 20px;
  }
  .hamburger {
    display: block;
    position: fixed;
    top: 60px;
    right: 80px;
    margin: 0;
    transform: translate(0, 0);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease,
      opacity 0.25s ease;
  }
  header.is-scrolled .hamburger {
    transform: translate(20px, -38px);
  }
  .header-right {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .header-right.is-open {
    transform: translateX(0);
  }
  .nav ul {
    flex-direction: column;
    gap: 50px;
    align-items: center;
  }

  .nav a {
    font-size: 28px;
  }
  .header-cta {
    align-items: center;
    flex-direction: column;
    gap: 50px;
  }

  .header-btn {
    padding: 24px 24px;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .header-inner {
    padding: 50px 40px;
  }
  .hamburger {
    right: 40px;
  }
  .nav a {
    font-size: 22px;
    gap: 32px;
  }
  .header-btn {
    font-size: clamp(14px, 3vw, 16px);
    gap: 32px;
    width: 80%;
  }
}
