/* ============================================================
   BUILDER HUSTLE — UNIFIED SITE HEADER & FOOTER
   Applied universally across all pages for 100% visual consistency
   ============================================================ */

.site-header,
header.site-header,
header.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line, #e4e4e7);
  padding: 0;
  width: 100%;
}

.header-inner,
.head-inner {
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--ink, #09090b);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand:hover,
.brand:hover {
  text-decoration: none;
  color: var(--ink, #09090b);
}

.brand-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-dot,
.logo-dot,
.brand::after {
  display: none !important;
}

/* Desktop Navigation */
.header-nav,
.desktop-nav,
nav.nav {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 920px) {
  .header-nav,
  .desktop-nav,
  nav.nav {
    display: flex;
  }
}

.header-nav a,
.desktop-nav a,
nav.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary, #52525b);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.header-nav a:hover,
.desktop-nav a:hover,
nav.nav a:hover {
  color: var(--ink, #09090b);
  background: var(--surface-muted, #f4f4f5);
  text-decoration: none;
}

.header-nav a.active,
.header-nav a[aria-current="page"],
.desktop-nav a.active,
.desktop-nav a[aria-current="page"],
nav.nav a[aria-current="page"],
nav.nav a.active {
  color: var(--ink, #09090b);
  background: var(--surface-muted, #f4f4f5);
  font-weight: 600;
  text-decoration: none;
}

/* Header Action / CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta,
.header-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink, #09090b);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--ink, #09090b);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.header-cta:hover,
.header-actions .btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: #ffffff !important;
  text-decoration: none;
}

.pip {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  animation: pipPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

@keyframes pipPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line, #e4e4e7);
  background: #ffffff;
  color: var(--ink, #09090b);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.mobile-toggle:hover {
  background: var(--surface-muted, #f4f4f5);
  border-color: var(--line-strong, #d4d4d8);
}

.mobile-toggle svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 920px) {
  .mobile-toggle {
    display: none !important;
  }
}

@media (max-width: 920px) {
  .header-cta,
  .header-actions .btn-primary,
  .header-actions a.btn-primary {
    display: none !important;
  }
}

@media (max-width: 540px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

/* ============================================================
   MOBILE DRAWER NAVIGATION (HOMEPAGE DESIGN UNIFIED FOR ALL PAGES)
   ============================================================ */
.drawer-backdrop,
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open,
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 86vw;
  background: #ffffff;
  border-left: 1px solid var(--line, #e4e4e7);
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line, #e4e4e7);
  background: #ffffff;
  flex-shrink: 0;
}

.drawer-head .brand-wrap {
  display: flex;
  align-items: center;
}

.drawer-head .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink, #09090b);
  text-decoration: none;
}

.drawer-head .site-brand img,
.drawer-head .brand-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
  display: block;
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft, #71717a);
  padding: 0 4px;
  transition: color 0.15s ease;
}

.drawer-close:hover {
  color: var(--ink, #09090b);
}

.drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-group-title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #71717a);
  margin: 16px 0 6px;
}

.drawer-group-title:first-child {
  margin-top: 0;
}

.drawer-body a,
.drawer-nav a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #09090b);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.drawer-body a:hover,
.drawer-nav a:hover,
.drawer-body a.active,
.drawer-nav a.active,
.drawer-body a[aria-current="page"],
.drawer-nav a[aria-current="page"] {
  background: var(--surface-muted, #f4f4f5);
  color: var(--accent-dark, #4d6b22);
  text-decoration: none;
}

.drawer-cta-wrap {
  padding: 16px 20px;
  border-top: 1px solid var(--line, #e4e4e7);
  background: var(--surface-muted, #f4f4f5);
  flex-shrink: 0;
}

.drawer-cta,
.drawer-cta-btn {
  display: block;
  text-align: center;
  background: var(--ink, #09090b);
  color: #ffffff !important;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 6px);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.drawer-cta:hover,
.drawer-cta-btn:hover {
  background: #27272a;
  color: #ffffff !important;
  text-decoration: none;
}

/* ============================================================
   SHARED UNIFORM FOOTER
   ============================================================ */
.site-footer,
footer.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line, #e4e4e7);
  padding: 56px 0 32px;
  font-size: 13.5px;
  color: var(--ink-secondary, #52525b);
  margin-top: auto;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line, #e4e4e7);
}

@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: 1.2fr 2fr;
    gap: 56px;
  }
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--ink-secondary, #52525b);
  line-height: 1.6;
  margin: 12px 0 20px;
  max-width: 340px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line, #e4e4e7);
  border-radius: 8px;
  color: var(--ink, #09090b);
  background: #ffffff;
  transition: all 0.15s ease;
  text-decoration: none;
}

.footer-social-links a:hover {
  background: var(--ink, #09090b) !important;
  color: #ffffff !important;
  border-color: var(--ink, #09090b) !important;
}

.footer-social-links svg {
  width: 15px;
  height: 15px;
}

.footer-badge {
  margin-top: 20px;
  display: block;
}

.footer-badge a {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  line-height: 0;
}

.footer-badge a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-badge img {
  display: block;
  width: 180px;
  height: 60px;
  max-width: 100%;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}

@media (min-width: 768px) {
  .footer-nav-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-secondary, #52525b);
  margin-bottom: 9px;
  transition: color 0.15s ease;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.4;
}

.footer-col a:hover {
  color: var(--ink, #09090b);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12.5px;
  color: #71717a;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: var(--ink, #09090b);
  text-decoration: none;
}

/* ============================================================
   UNIVERSAL SITE BREADCRUMB BAR (All Pages)
   Unified, responsive, pixel-perfect alignment with header (20px padding)
   ============================================================ */
.site-breadcrumb-bar {
  width: 100% !important;
  background: #fafaf9 !important;
  border-bottom: 1px solid var(--line, #e4e4e7) !important;
  padding: 8px 0 !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

.site-breadcrumb-bar .breadcrumb-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.site-breadcrumb-bar .breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  gap: 8px !important;
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: var(--muted, #71717a) !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  list-style: none !important;
}

.site-breadcrumb-bar .breadcrumb::-webkit-scrollbar {
  display: none !important;
}

.site-breadcrumb-bar .breadcrumb a,
.site-breadcrumb-bar .breadcrumb a.breadcrumb-link {
  color: var(--ink-secondary, #52525b) !important;
  text-decoration: none !important;
  font-weight: 450 !important;
  transition: color 0.15s ease, text-decoration 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.site-breadcrumb-bar .breadcrumb a:hover,
.site-breadcrumb-bar .breadcrumb a.breadcrumb-link:hover {
  color: var(--ink, #09090b) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.site-breadcrumb-bar .breadcrumb .breadcrumb-sep,
.site-breadcrumb-bar .breadcrumb .sep {
  color: #a1a1aa !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  user-select: none !important;
  margin: 0 1px !important;
  display: inline-flex !important;
  align-items: center !important;
  opacity: 0.85 !important;
}

.site-breadcrumb-bar .breadcrumb .breadcrumb-current,
.site-breadcrumb-bar .breadcrumb .current,
.site-breadcrumb-bar .breadcrumb span:not(.breadcrumb-sep):not(.sep) {
  color: var(--ink, #09090b) !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}

/* Reset legacy wrappers inside site-breadcrumb-bar */
.site-breadcrumb-bar.breadcrumb-bar,
.site-breadcrumb-bar.breadcrumb-wrap,
.site-breadcrumb-bar.breadcrumb-area {
  margin: 0 !important;
}
