/* ============================================================
   header.css — site-wide header / navigation styles
   Link this from every page that includes the shared header.
   ============================================================ */

body::-webkit-scrollbar {
  display: none;
}

header {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  height: 85px;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  z-index: 1000;
}

.gold-line {
  margin-top: 55px;
  height: 0.8px;
  background: #b8a897;
  width: 100%;
  position: absolute;
  left: 0;
}

.header-left-group {
  position: absolute;
  left: 35%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.home-link {
  margin-bottom: 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 60px;
  transition: opacity 0.2s ease;
}

.home-link:hover {
  opacity: 0.8;
}

.home-link img {
  height: 38px;
  display: block;
}

.header-nav {
  display: flex;
  gap: 28px;
  height: 100%;
  margin-bottom: 12px;
  list-style: none;
  white-space: nowrap;
  align-items: center;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  height: 68px;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.3s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #b8a897;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.header-nav a:hover::after,
.header-nav a.active::after {
  transform: scaleX(1);
}

.header-nav a:hover,
.header-nav a.active {
  color: #b8a897;
}

.header-right {
  display: flex;
  margin-bottom: 15px;
  gap: 18px;
  position: absolute;
  right: 70px;
  align-items: center;
}

.header-right a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.header-right a:hover {
  color: #b8a897;
}

.rfq-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  border: 1.2px solid #fff;
  border-radius: 8px;
  padding: 6px 12px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25px;

  color: rgba(255, 255, 255, 0.9);
  background: transparent;

  cursor: pointer;

  position: relative;
  overflow: hidden;

  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    color 0.45s ease;
}

/* subtle metal underline */
.rfq-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;

  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.0),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.0)
  );

  transform: scaleX(0.4);
  transform-origin: left;

  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease;

  opacity: 0.65;
}

/* luxury light sweep */
.rfq-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );

  transform: skewX(-20deg);
}

.rfq-trigger:hover::before {
  animation: sweep 0.9s ease;
}

@keyframes sweep {
  from {
    left: -120%;
  }
  to {
    left: 140%;
  }
}

/* hover state */
.rfq-trigger:hover {
  color: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.55);

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(120, 255, 200, 0.08);
}

.rfq-trigger:hover::after {
  transform: scaleX(1);
  opacity: 0.9;
}

/* focus state */
.rfq-trigger:focus-visible {
  outline: none;
  color: rgba(255, 255, 255, 1);
}

/* breathing green dot */
.rfq-trigger-btn-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;

  background-color: #2ecc71;

  /* subtle glow */
  box-shadow:
    0 0 6px rgba(46, 204, 113, 0.45),
    0 0 12px rgba(46, 204, 113, 0.25);

  animation: dotBreath 2.8s ease-in-out infinite;
}

@keyframes dotBreath {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 5px rgba(46, 204, 113, 0.35),
      0 0 10px rgba(46, 204, 113, 0.2);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 10px rgba(46, 204, 113, 0.6),
      0 0 18px rgba(46, 204, 113, 0.35),
      0 0 28px rgba(46, 204, 113, 0.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 5px rgba(46, 204, 113, 0.35),
      0 0 10px rgba(46, 204, 113, 0.2);
    opacity: 0.75;
  }
}

  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.05);

  transform: translateY(-1px);
}


.rfq-trigger--nav {
  margin-bottom: 0;
  margin-top: 2rem;
  font-size: calc(14px * var(--font-scale));
  padding: 10px 28px;
}

.header-nav .mobile-only {
  display: none;
}

#mobile-toggle {
  display: none;
  color: #fff;
  font-size: calc(24px * var(--font-scale));
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  right: 20px;
  background: none;
  border: none;
}

/* ── Page-offset spacer ──────────────────────────────────────
   Place <div id="site-header"></div> as the first element in
   <body> on every page that uses the fixed header. It holds
   the space the fixed header sits over so content isn't hidden.
   ─────────────────────────────────────────────────────────── */
#site-header {
  height: var(--header-height);
  /* 85px desktop → 75px mobile (overridden below) */
  position: relative;
  z-index: 999;
}

/* ── Progressive compression (stage 1 — 1400 px) ────────────
   Gently tighten nav spacing and pull the right group inward. */
@media (max-width: 1400px) {
  .header-nav {
    gap: 20px;
  }

  .header-right {
    right: 50px;
    gap: 14px;
  }
}

/* ── Progressive compression (stage 2 — 1200 px) ────────────
   More aggressive: reduce font, letter-spacing, and offsets
   so the groups never collide before the hamburger kicks in. */
@media (max-width: 1200px) {
  .header-nav {
    gap: 12px;
  }

  .header-nav a {
    font-size: 12px;
    letter-spacing: 0.4px;
  }

  .header-right {
    right: 28px;
    gap: 10px;
  }

  .header-right a {
    font-size: 12px;
    letter-spacing: 0.4px;
  }

  .rfq-trigger {
    font-size: calc(10px * var(--font-scale));
    letter-spacing: 0.4px;
  }
}

/* ── Hamburger layout (tablet + mobile) ── */
@media (max-width: 1024px) {
  .header {
    padding: 0 20px;
    justify-content: space-between;
    /* height stays 85px down to 768px */
  }

  .gold-line {
    display: none;
  }

  .header-left-group {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .home-link {
    margin: 0;
    gap: 0;
    width: 100%;
  }

  .home-link img:last-child {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 28px;
  }

  .home-link img:first-child {
    height: 32px;
  }

  #mobile-toggle {
    display: block;
  }

  .header-right {
    display: none;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    z-index: 1000;
    gap: 0;
  }

  .header-nav.open {
    right: 0;
  }

  .header-nav a {
    height: 70px;
    font-size: calc(15px * var(--font-scale));
  }

  .header-nav .mobile-only {
    display: flex !important;
  }

  .rfq-trigger {
    font-size: calc(14px * var(--font-scale));
    letter-spacing: 0.4px;
  }

}

/* ── Mobile height (phone) ── */
@media (max-width: 768px) {
  .header {
    height: 75px;
  }

  #site-header {
    height: 75px;
  }
}