/* ============================================================
   NAV.CSS — Site Navigation
   Retaining Wall Guys
============================================================ */

.sitenav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(250,248,242,0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sitenav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--slate);
}
.sitenav__logo span { color: var(--earth); }

.sitenav__logo-img {
  height: 76px;
  width: auto;
  display: block;
}

/* A small mark beside the wordmark — three flat bars, light to dark. */
.sitenav__mark {
  width: 15px;
  height: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.sitenav__mark span { flex: 1; }
.sitenav__mark .m1 { background: var(--base-rock); }
.sitenav__mark .m2 { background: var(--concrete); }
.sitenav__mark .m3 { background: var(--slate); }

.sitenav__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  row-gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.sitenav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.sitenav__links a:hover { color: var(--gold); }

.nav-call { color: var(--gold) !important; }

.sitenav__cta {
  background: var(--gold) !important;
  color: var(--offwhite) !important;
  padding: 10px 22px;
  font-weight: 600 !important;
  white-space: nowrap;
}
.sitenav__cta:hover {
  background: var(--gold-hover) !important;
  color: var(--offwhite) !important;
}

/* ── HAMBURGER TOGGLE (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sitenav__mobile-call {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold) !important;
  white-space: nowrap;
}

/* Full-width panel that drops from the header — plain link list, phone,
   and the site-visit CTA. No animation beyond a simple slide, and none
   at all if the visitor has reduced motion set. */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 199;
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
  padding: 88px 24px 32px;
  transform: translateY(-100%);
  transition: transform var(--transition-med);
}
.mobile-menu.open { display: block; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}
.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.mobile-menu__links a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--slate);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__call {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.mobile-menu__cta {
  display: block;
  text-align: center;
  width: 100%;
}

/* ── LAPTOP / SMALLER DESKTOP ──
   Between the mobile breakpoint and full desktop width, there isn't
   room for the logo + every nav link + both full-size CTA buttons on
   one row. Tighten spacing here first so most laptop widths (roughly
   1024–1400px) still render as a clean single row. flex-wrap above is
   the guaranteed fallback for anything narrower than this rule
   anticipates — wrapped items stack onto a new line instead of ever
   overlapping, no matter how narrow the window gets. */
@media (max-width: 1400px) {
  .sitenav { padding: 16px 28px; }
  .sitenav__links { gap: 14px 22px; }
  .sitenav__links a:not(.sitenav__cta) { font-size: 0.86rem; }
  .sitenav__cta { padding: 9px 16px; font-size: 0.84rem; }
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .sitenav { padding: 14px 16px; }
  .sitenav__links { display: none; }
  .nav-hamburger { display: flex; }
  .sitenav__mobile-call { display: block; }
  .sitenav__logo-img { height: 56px; }
}
@media (max-width: 420px) {
  .sitenav__logo { font-size: 0.98rem; }
  .sitenav__mobile-call { font-size: 0.76rem; }
}
