/* ============================================================
   header.css — Sticky header & navigation
   Jersey Shore Construction Supply Co.
   ============================================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--red);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 43, 43, 0.5));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.nav-logo-text span {
  color: var(--red);
}

/* ── Nav links ── */
nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--red);
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
  }

  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--black);
    border-top: 1px solid var(--steel);
    border-bottom: 2px solid var(--red);
    padding: 1.5rem;
    gap: 1.25rem;
    z-index: 99;
  }
}
