/* ==========================================================================
   WILLIAM SCRAPS — High-Production Scroll-World Design System
   Industrial Salvage & Cleanout Visual Identity
   ========================================================================== */

:root, .sw-root {
  --sw-bg: #111315;
  --sw-ink: #F4F5F6;
  --sw-ink-soft: #94A3B8;
  --sw-accent: #84cc16; /* Electric / Neon Lime from business card */
  --sw-accent-glow: rgba(132, 204, 22, 0.35);
  --sw-metal-dark: #181b1e;
  --sw-metal-border: rgba(132, 204, 22, 0.28);
  --sw-card-bg: rgba(22, 26, 30, 0.88);
  
  --sw-font-display: 'Bebas Neue', 'Chakra Petch', sans-serif;
  --sw-font-heading: 'Chakra Petch', sans-serif;
  --sw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--sw-bg);
  color: var(--sw-ink);
  font-family: var(--sw-font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Diamond-Plate & Grid Industrial Overlay
   -------------------------------------------------------------------------- */
.industrial-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(132, 204, 22, 0.04) 0%, transparent 80%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Header Bar
   -------------------------------------------------------------------------- */
.scrap-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(17, 19, 21, 0.94) 0%, rgba(17, 19, 21, 0.8) 75%, transparent 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(132, 204, 22, 0.15);
}

.scrap-header__inner {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.scrap-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--sw-ink);
}

.scrap-logo__badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f2428 0%, #111417 100%);
  border: 1.5px solid var(--sw-accent);
  box-shadow: 0 0 16px var(--sw-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--sw-accent);
}

.scrap-logo__badge svg {
  width: 24px;
  height: 24px;
}

.scrap-logo__text {
  display: flex;
  flex-direction: column;
}

.scrap-logo__title {
  font-family: var(--sw-font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.highlight-lime {
  color: var(--sw-accent);
  text-shadow: 0 0 14px var(--sw-accent-glow);
}

.scrap-logo__sub {
  font-family: var(--sw-font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sw-ink-soft);
  margin-top: 3px;
}

.scrap-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(24, 28, 32, 0.9);
  border: 1px solid rgba(132, 204, 22, 0.35);
  border-radius: 999px;
  text-decoration: none;
  color: var(--sw-ink);
  font-family: var(--sw-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.header-phone-chip:hover {
  border-color: var(--sw-accent);
  box-shadow: 0 0 16px var(--sw-accent-glow);
  transform: translateY(-1px);
}

.header-phone-chip .phone-icon {
  width: 17px;
  height: 17px;
  color: var(--sw-accent);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sw-accent);
  box-shadow: 0 0 8px var(--sw-accent);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.quote-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  color: #0b0f02;
  font-family: var(--sw-font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--sw-accent-glow);
  transition: all 0.25s ease;
}

.quote-trigger-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(132, 204, 22, 0.5);
}

.quote-trigger-btn .arrow-icon {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Physical Metal Flyer Badge (Floating Stamp)
   -------------------------------------------------------------------------- */
.metal-badge {
  position: fixed;
  top: 96px;
  right: 28px;
  z-index: 45;
  background: linear-gradient(135deg, #24292e 0%, #15181a 100%);
  border: 2px solid var(--sw-accent);
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(132, 204, 22, 0.25);
  pointer-events: auto;
  transform-origin: top right;
  transition: transform 0.3s ease;
}

.metal-badge:hover {
  transform: scale(1.03) rotate(-0.5deg);
}

.metal-badge__rivet {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a1a1aa;
  box-shadow: inset 1px 1px 1px #000, 0 1px 0 rgba(255, 255, 255, 0.4);
}
.rivet-tl { top: 4px; left: 4px; }
.rivet-tr { top: 4px; right: 4px; }
.rivet-bl { bottom: 4px; left: 4px; }
.rivet-br { bottom: 4px; right: 4px; }

.metal-badge__headline {
  font-family: var(--sw-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.metal-badge__headline .star {
  color: var(--sw-accent);
  font-size: 0.85rem;
}

.metal-badge__script {
  font-family: 'Brush Script MT', 'Segoe Script', cursive, sans-serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sw-accent);
  text-align: center;
  margin-top: -2px;
  text-shadow: 0 0 8px rgba(132, 204, 22, 0.4);
}

/* --------------------------------------------------------------------------
   Quick Services Bar
   -------------------------------------------------------------------------- */
.services-bar {
  position: fixed;
  top: 96px;
  left: 28px;
  z-index: 45;
  display: flex;
}

.services-bar__inner {
  display: flex;
  gap: 10px;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(24, 28, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: var(--sw-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sw-ink);
  transition: all 0.25s ease;
}

.service-pill:hover,
.service-pill.is-active {
  background: rgba(132, 204, 22, 0.16);
  border-color: var(--sw-accent);
  color: var(--sw-accent);
  box-shadow: 0 0 16px var(--sw-accent-glow);
}

.service-pill:hover {
  transform: translateY(-2px);
}

.service-pill__icon {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Customizing Scrub-Engine Classes for Industrial Scrap Look
   -------------------------------------------------------------------------- */
.sw-topbar {
  display: none !important; /* Replaced by our rich .scrap-header */
}

.sw-sky {
  background: #111315 !important;
}

.sw-sky__grad {
  background: radial-gradient(circle at 50% 40%, #191d21 0%, #111315 80%) !important;
}

.sw-sky__glow {
  background: radial-gradient(55% 45% at 65% 25%, rgba(132, 204, 22, 0.09) 0%, transparent 75%) !important;
}

.sw-scrollbar {
  height: 4px !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.sw-scrollbar span {
  background: var(--sw-accent) !important;
  box-shadow: 0 0 12px var(--sw-accent) !important;
}

/* Copy layer enhancements */
.sw-copylayer::before {
  width: min(52vw, 680px) !important;
  background: linear-gradient(90deg, 
    rgba(17, 19, 21, 0.96) 0%, 
    rgba(17, 19, 21, 0.85) 45%, 
    rgba(17, 19, 21, 0.3) 78%, 
    transparent 100%) !important;
}

.sw-copy {
  left: clamp(24px, 5.5vw, 84px) !important;
  width: min(44vw, 520px) !important;
  z-index: 25 !important;
}

.sw-copy__num {
  font-family: var(--sw-font-heading) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  color: var(--sw-accent) !important;
  text-shadow: 0 0 10px var(--sw-accent-glow) !important;
}

.sw-copy__eyebrow {
  font-family: var(--sw-font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.18em !important;
  color: var(--sw-accent) !important;
  margin-top: 10px !important;
  text-transform: uppercase !important;
}

.sw-copy__title {
  font-family: var(--sw-font-display) !important;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.02em !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  margin: 12px 0 0 !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9) !important;
}

.sw-copy__body {
  font-size: clamp(1rem, 1.3vw, 1.15rem) !important;
  line-height: 1.6 !important;
  color: #CBD5E1 !important;
  margin-top: 18px !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9) !important;
}

.sw-copy__tags li {
  background: rgba(24, 28, 32, 0.85) !important;
  border: 1px solid rgba(132, 204, 22, 0.3) !important;
  color: #E2E8F0 !important;
  font-family: var(--sw-font-heading) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  border-radius: 6px !important;
  backdrop-filter: blur(6px) !important;
}

.sw-copy__cta {
  margin-top: 28px !important;
}

.sw-btn {
  font-family: var(--sw-font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.sw-btn--primary {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%) !important;
  color: #0c1203 !important;
  box-shadow: 0 6px 20px var(--sw-accent-glow) !important;
}

.sw-btn--primary:hover {
  filter: brightness(1.15) !important;
}

.sw-btn--ghost {
  background: rgba(24, 28, 32, 0.8) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

.sw-btn--ghost:hover {
  border-color: var(--sw-accent) !important;
  color: var(--sw-accent) !important;
}

/* Route rail styling */
.sw-route::before {
  background: rgba(132, 204, 22, 0.25) !important;
}

.sw-route__dot i {
  background: rgba(132, 204, 22, 0.35) !important;
}

.sw-route__dot.is-active i {
  background: var(--sw-accent) !important;
  box-shadow: 0 0 0 6px var(--sw-accent-glow) !important;
}

.sw-route__label {
  background: rgba(22, 26, 30, 0.95) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(132, 204, 22, 0.3) !important;
  font-family: var(--sw-font-heading) !important;
  letter-spacing: 0.05em !important;
}

/* Scroll Hint */
.sw-hint {
  font-family: var(--sw-font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  color: var(--sw-accent) !important;
}

.sw-hint i {
  border-color: rgba(132, 204, 22, 0.4) !important;
}

.sw-hint i::after {
  background: var(--sw-accent) !important;
  box-shadow: 0 0 8px var(--sw-accent) !important;
}

/* --------------------------------------------------------------------------
   Mobile Action Dock (Sticky Bottom)
   -------------------------------------------------------------------------- */
.mobile-action-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(17, 19, 21, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(132, 204, 22, 0.25);
  gap: 10px;
}

.dock-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--sw-font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.dock-btn svg {
  width: 18px;
  height: 18px;
}

.dock-btn--call {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  color: #0b0f02;
  box-shadow: 0 4px 14px var(--sw-accent-glow);
}

.dock-btn--email {
  background: #1e2328;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   Quote / Contact Dialog Modal
   -------------------------------------------------------------------------- */
.scrap-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 16px;
  max-width: 580px;
  width: calc(100% - 32px);
}

.scrap-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.scrap-modal__box {
  position: relative;
  background: #16191c;
  border: 2px solid var(--sw-accent);
  border-radius: 12px;
  padding: clamp(24px, 5vw, 36px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 32px var(--sw-accent-glow);
  color: var(--sw-ink);
}

.scrap-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.scrap-modal__close:hover {
  color: #fff;
}

.modal-badge-mini {
  font-family: var(--sw-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sw-accent);
  margin-bottom: 6px;
}

.scrap-modal__header h2 {
  font-family: var(--sw-font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 8px 0;
  color: #fff;
}

.modal-sub {
  color: #94A3B8;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.contact-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(28, 33, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.contact-card:hover {
  border-color: var(--sw-accent);
  transform: translateY(-2px);
  background: rgba(34, 40, 46, 0.95);
}

.contact-card--primary {
  border-color: rgba(132, 204, 22, 0.4);
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.1) 0%, rgba(28, 33, 38, 0.95) 100%);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(132, 204, 22, 0.15);
  color: var(--sw-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-card__details .label {
  font-family: var(--sw-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sw-accent);
}

.contact-card__details .value {
  font-family: var(--sw-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 2px 0;
}

.contact-card__details .hint {
  font-size: 0.78rem;
  color: #94A3B8;
}

.contact-card__arrow {
  color: var(--sw-accent);
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.contact-card:hover .contact-card__arrow {
  transform: translateX(4px);
}

.services-checklist {
  background: rgba(11, 13, 15, 0.6);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.services-checklist h3 {
  font-family: var(--sw-font-heading);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin: 0 0 10px 0;
}

.services-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services-checklist li {
  font-size: 0.86rem;
  color: #CBD5E1;
  line-height: 1.4;
}

.services-checklist strong {
  color: #fff;
}

.modal-footer-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sw-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sw-ink-soft);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-chip {
  color: var(--sw-accent);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .metal-badge {
    display: none;
  }
}

@media (max-width: 860px) {
  .scrap-header {
    padding: 10px 16px;
  }

  .scrap-logo__sub {
    display: none;
  }

  .quote-trigger-btn {
    display: none;
  }

  .services-bar {
    display: none;
  }

  .mobile-action-dock {
    display: flex;
  }

  .sw-copylayer::before {
    height: 72% !important;
    background: linear-gradient(0deg, 
      rgba(17, 19, 21, 0.98) 18%, 
      rgba(17, 19, 21, 0.88) 55%, 
      transparent 100%) !important;
  }

  .sw-copy {
    bottom: calc(clamp(70px, 16dvh, 130px) + env(safe-area-inset-bottom)) !important;
    max-width: none !important;
    left: 20px !important;
    right: 20px !important;
  }

  .sw-copy__title {
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
  }

  .sw-copy__body {
    font-size: 0.98rem !important;
    margin-top: 12px !important;
  }

  .sw-hint {
    bottom: calc(85px + env(safe-area-inset-bottom)) !important;
  }
}
