/* VS Traders & VS Rental - Premium Style Sheet */

/* ===== Imports ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ===== Design System Variables ===== */
:root {
  /* Colors */
  --charcoal: #1E1D1B;
  --charcoal-soft: #3D3A37;
  --plaster: #F4F0E6;
  --plaster-light: #FBF9F5;
  --plaster-dark: #E6E1D3;
  --white: #FFFFFF;
  
  --brick: #C8502F;
  --brick-dark: #A33A1D;
  --brick-light: #E07D5D;
  --brick-glow: rgba(200, 80, 47, 0.15);
  
  --teal: #1F4E45;
  --teal-dark: #13332D;
  --teal-light: #34766A;
  --teal-glow: rgba(31, 78, 69, 0.15);
  
  --caution: #E3A72F;
  --caution-dark: #C28B20;
  --caution-glow: rgba(227, 167, 47, 0.15);
  
  --steel: #7E807A;
  --steel-light: #D4D2C9;
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Layout Metrics */
  --tape-w: 64px;
  --border-radius: 6px;
  --border-radius-sm: 4px;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
  
  /* Tactile Shadow */
  --shadow-tactile: 4px 4px 0px 0px var(--charcoal);
  --shadow-tactile-hover: 7px 7px 0px 0px var(--charcoal);
}

/* ===== Interactive Construction Hammer Cursor ===== */
.hammer-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 100000;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.2s ease;
  opacity: 0;
  will-change: transform;
}

.hammer-cursor.active {
  opacity: 1;
}

.hammer-svg {
  width: 100%;
  height: 100%;
  transform-origin: 16px 36px; /* pivot around the lower grip */
  transform: rotate(0deg);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  filter: drop-shadow(2px 3px 0px rgba(30, 29, 27, 0.35));
}

.hammer-cursor.hammer-hover .hammer-svg {
  transform: rotate(-18deg) scale(1.1);
  filter: drop-shadow(3px 4px 0px rgba(30, 29, 27, 0.45)) drop-shadow(0 0 6px var(--caution-glow));
}

.hammer-cursor.hammer-strike .hammer-svg {
  transform: rotate(26deg) scale(0.95);
  transition: transform 0.05s ease-in;
}

/* Impact Spark Particles */
.hammer-spark {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--caution);
  border: 1px solid var(--charcoal);
  box-shadow: 1px 1px 0px var(--charcoal);
  animation: sparkFly 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.2) rotate(var(--rot));
  }
}

/* Mobile Interactive Tap Hammer (Touchscreen Only) */
.mobile-tap-hammer {
  position: fixed;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 100001;
  transform-origin: 14px 34px;
  animation: mobileHammerStrike 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileHammerStrike {
  0% {
    opacity: 0;
    transform: translate3d(var(--hx), var(--hy), 0) scale(0.6) rotate(-30deg);
  }
  35% {
    opacity: 1;
    transform: translate3d(var(--hx), var(--hy), 0) scale(1.15) rotate(24deg);
  }
  70% {
    opacity: 0.95;
    transform: translate3d(var(--hx), var(--hy), 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--hx), var(--hy), 0) scale(0.65) translateY(-10px);
  }
}

@media (max-width: 991px), (pointer: coarse) {
  .hammer-cursor {
    display: none !important;
  }
}

/* ===== Minimalist 3-Strike Rock Breaking Entrance Gate ===== */
.rock-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #141312;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100vw;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: opacity 0.45s cubic-bezier(0.85, 0, 0.15, 1), transform 0.45s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: opacity, transform;
}

.rock-gate.gate-shattered {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.rock-gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 440px;
  width: 100%;
  padding: 0 10px;
}

.rock-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.2vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--plaster);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px var(--charcoal);
  margin: 0 0 6px 0;
  line-height: 1.15;
  transition: transform 0.15s ease, color 0.15s ease;
  word-break: break-word;
}

/* Rock Container */
.rock-container {
  position: relative;
  width: clamp(210px, 72vw, 320px);
  max-width: 320px;
  aspect-ratio: 200 / 170;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.rock-container:hover {
  transform: scale(1.04) translateY(-3px);
}

.rock-container:active {
  transform: scale(0.95) translateY(4px);
}

.rock-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
  overflow: visible;
}

/* Rock Cracks */
.rock-cracks {
  opacity: 0;
  transform-origin: 100px 90px;
  transform: scale(0.9);
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  filter: drop-shadow(0 0 4px #F1D8A0);
}

.rock-cracks.visible {
  opacity: 1;
  transform: scale(1);
}

/* Flying Rock Chips Debris */
.rock-chip {
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  width: 10px;
  height: 10px;
  background: #423E3A;
  border: 1.5px solid #1E1D1B;
  box-shadow: 1px 1px 0px #000;
  animation: rockChipFly 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rockChipFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--rx), var(--ry)) scale(0.3) rotate(var(--rrot));
  }
}

/* Strike Shakes */
.rock-container.shake-1 {
  animation: rockJolt1 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.rock-container.shake-2 {
  animation: rockJolt2 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.rock-container.shatter {
  animation: rockExplode 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rockJolt1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-6px, 4px, 0) rotate(-2deg); }
  50% { transform: translate3d(6px, -4px, 0) rotate(2deg); }
  75% { transform: translate3d(-3px, 2px, 0); }
}

@keyframes rockJolt2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-10px, 6px, 0) rotate(-4deg); }
  40% { transform: translate3d(10px, -6px, 0) rotate(4deg); }
  60% { transform: translate3d(-6px, 3px, 0) rotate(-2deg); }
  80% { transform: translate3d(4px, -2px, 0); }
}

@keyframes rockExplode {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  40% {
    transform: scale(1.2) rotate(6deg);
    filter: brightness(2) drop-shadow(0 0 30px #E3A72F);
  }
  100% {
    opacity: 0;
    transform: scale(1.5) rotate(15deg);
    filter: blur(8px) brightness(3);
  }
}

/* ===== Keyframe Animation Library ===== */
@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes floatBadge1 {
  0%, 100% { transform: rotate(-2.5deg) translateY(0px); }
  50% { transform: rotate(-1deg) translateY(-8px); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: rotate(2.5deg) translateY(0px); }
  50% { transform: rotate(4deg) translateY(-10px); }
}

@keyframes floatBadge3 {
  0%, 100% { transform: rotate(-2.5deg) translateY(0px); }
  50% { transform: rotate(-4deg) translateY(-7px); }
}

@keyframes floatBadge4 {
  0%, 100% { transform: rotate(2.5deg) translateY(0px); }
  50% { transform: rotate(1deg) translateY(-9px); }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  30%, 100% {
    transform: translateX(200%) rotate(45deg);
  }
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: var(--shadow-tactile);
  }
  50% {
    box-shadow: 0 0 0 4px var(--caution-glow), var(--shadow-tactile);
  }
}

@keyframes bottomCtaPing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg) scale(1.06); }
  75% { transform: rotate(5deg) scale(1.06); }
}

@keyframes slideUpBar {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

/* ===== Scroll Reveal Animations ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-36px);
}

[data-reveal="right"] {
  transform: translateX(36px);
}

[data-reveal="scale"] {
  transform: scale(0.88) translateY(24px);
}

[data-reveal="row"] {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ===== Resets ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--plaster);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  touch-action: manipulation;
  /* Blueprint Grid background pattern */
  background-image: 
    linear-gradient(rgba(30, 29, 27, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 29, 27, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

button, a, input {
  touch-action: manipulation;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-block;
  margin-bottom: 8px;
}

/* ===== Layout Structure ===== */
.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  padding: 100px 0;
  border-bottom: 2px dashed rgba(30, 29, 27, 0.1);
  position: relative;
}

section:last-of-type {
  border-bottom: none;
}

/* ===== Sticky Glassmorphic Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--charcoal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brandmark .t1 { color: var(--brick); }
.brandmark .div-slash { color: var(--steel); font-family: var(--font-mono); font-size: 1.1rem; }
.brandmark .t2 { color: var(--teal); }

.header-actions {
  display: flex;
  gap: 12px;
}

/* ===== Buttons (Tactile Neo-Brutalist) ===== */
.btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow-tactile);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-tactile-hover);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px 0px var(--charcoal);
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(30deg);
  pointer-events: none;
  animation: shimmerSweep 4.5s infinite;
}

.btn-pulse {
  animation: btnPulse 2.5s infinite;
}

.btn-brick {
  background: var(--brick);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn-brick:hover {
  background: var(--brick-dark);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn-teal:hover {
  background: var(--teal-dark);
}

.btn-caution {
  background: var(--caution);
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-caution:hover {
  background: var(--caution-dark);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
}
.btn-outline:hover {
  background: rgba(30, 29, 27, 0.05);
}

/* Live indicators */
.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: livePulse 1.4s infinite;
  vertical-align: middle;
}

.status-indicator {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  animation: livePulse 1.8s infinite;
}

.status-indicator.delivery {
  background: var(--caution);
}

.cell-head {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

/* ===== Left Tape Measure (Ruler Widget) ===== */
.tape {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--tape-w);
  height: 100%;
  background: 
    repeating-linear-gradient(
      to bottom,
      var(--caution) 0px, var(--caution) 2px,
      transparent 2px, transparent 20px
    ),
    linear-gradient(to bottom, #F1D8A0 0%, var(--caution) 8%, var(--caution) 100%);
  border-right: 3px solid var(--charcoal);
  z-index: 10;
}

.tape::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      to bottom,
      var(--charcoal) 0px, var(--charcoal) 2.5px,
      transparent 2.5px, transparent 100px
    );
  opacity: 0.75;
}

.tape-label {
  position: absolute;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: var(--font-mono);
  z-index: 20;
}

.tape-label .m {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius-sm);
  padding: 1px 5px;
  white-space: nowrap;
  box-shadow: 2px 2px 0px var(--charcoal);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tape-label:hover .m {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--charcoal);
  background: var(--plaster-light);
}

.tape-label:active .m {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--charcoal);
}

.tape-label .tick-line {
  width: 16px;
  height: 2px;
  background: var(--charcoal);
}

.tape-reading {
  position: fixed;
  left: 12px;
  bottom: 20px;
  z-index: 120;
  background: var(--charcoal);
  color: var(--caution);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tape-reading::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--caution);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Mobile top progress bar */
.mobile-progress {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  background: var(--caution);
  z-index: 130;
  width: 0%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== Hero Section ===== */
.hero {
  padding: 140px 0 100px;
  background-image: radial-gradient(rgba(200, 80, 47, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero .hero-box {
  max-width: 960px;
}

.hero .eyebrow-container {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--charcoal);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  box-shadow: 2px 2px 0px var(--charcoal);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 24px;
}

.hero h1 .accent-brick {
  color: var(--brick);
  background: linear-gradient(180deg, transparent 65%, var(--plaster-dark) 65%);
}

.hero h1 .accent-teal {
  color: var(--teal);
  background: linear-gradient(180deg, transparent 65%, var(--plaster-dark) 65%);
}

.hero p.sub {
  font-size: 1.15rem;
  max-width: 680px;
  color: var(--charcoal-soft);
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: var(--shadow-tactile);
  overflow: hidden;
}

.hero-strip .cell {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-right: 2px solid var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-strip .cell:last-child {
  border-right: none;
}

.hero-strip .cell b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 4px;
}

/* ===== Section Headers ===== */
.section-head {
  max-width: 720px;
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-top: 8px;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  font-weight: 500;
}

/* ===== Shops Split Grid (About) ===== */
.shops, .yards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.shop, .yard {
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius);
  padding: 44px;
  color: var(--white);
  box-shadow: var(--shadow-tactile);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.shop:hover, .yard:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0px 0px var(--charcoal);
}

.shop-card-glint {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 65%
  );
  transform: translateX(-100%) rotate(25deg);
  pointer-events: none;
  transition: transform 0.8s ease;
}

.shop:hover .shop-card-glint, .yard:hover .shop-card-glint {
  transform: translateX(100%) rotate(25deg);
}

.shop .icon, .yard .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop:hover .icon-animate, .yard:hover .icon-animate {
  animation: iconWiggle 0.6s ease;
}

.shop::before, .yard::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.shop.traders, .yard.traders {
  background: var(--brick);
  background-image: linear-gradient(135deg, var(--brick) 0%, var(--brick-dark) 100%);
}

.shop.rental, .yard.rental {
  background: var(--teal);
  background-image: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
}

.shop h3, .yard h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.shop p, .yard p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  min-height: 72px;
}

.shop-tags, .yard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop .tag, .yard .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Ledgers (Tables) ===== */
.ledger {
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-tactile);
}

.ledger-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 2px solid var(--plaster-dark);
  gap: 16px;
  transition: background-color var(--transition-fast), transform var(--transition-fast), padding-left var(--transition-fast);
}

.ledger-row:last-child {
  border-bottom: none;
}

.ledger-row:nth-child(even) {
  background-color: var(--plaster-light);
}

.ledger-row:hover {
  background-color: rgba(227, 167, 47, 0.08);
  transform: translateX(6px);
}

.ledger-row .code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  padding: 5px 0;
  text-align: center;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--charcoal);
  letter-spacing: 0.05em;
  box-shadow: 2px 2px 0px var(--charcoal);
  transition: transform var(--transition-fast);
}

.ledger-row:hover .code {
  transform: scale(1.05);
}

.materials .code { background: var(--brick); }
.rental .code { background: var(--teal); }

.ledger-row .name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.ledger-row .unit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  font-weight: 500;
}

.ledger-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ledger-note::before {
  content: "⚡";
  font-size: 1rem;
}

/* ===== Materials & Rental Estimator Widget ===== */
.estimator-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.estimator-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estimator-group {
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius);
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow-tactile);
}

.estimator-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--plaster-dark);
  padding-bottom: 12px;
}

.estimator-group-title h3 {
  font-size: 1.3rem;
}

.estimator-group-title .icon-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
}

.traders-estimator .icon-badge { background: var(--brick); }
.rental-estimator .icon-badge { background: var(--teal); }

.estimator-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estimator-item {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--plaster-dark);
}

.estimator-item:last-child {
  border-bottom: none;
}

.estimator-item-info {
  display: flex;
  flex-direction: column;
}

.estimator-item-info .item-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.estimator-item-info .item-desc {
  font-size: 0.78rem;
  color: var(--steel);
  font-family: var(--font-mono);
}

.estimator-item-ctrl {
  display: flex;
  align-items: center;
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 36px;
  background: var(--plaster);
}

.estimator-item-ctrl button {
  width: 30px;
  height: 100%;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--charcoal);
  transition: background var(--transition-fast);
}

.estimator-item-ctrl button:hover {
  background: var(--plaster-dark);
}

.estimator-item-ctrl input {
  width: 56px;
  height: 100%;
  border: none;
  border-left: 2px solid var(--charcoal);
  border-right: 2px solid var(--charcoal);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--white);
  color: var(--charcoal);
}

.estimator-item-ctrl input:focus {
  outline: none;
}

/* Estimate Summary Box (Invoice Look) */
.estimator-summary {
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius);
  background: var(--white);
  padding: 32px;
  box-shadow: var(--shadow-tactile);
  position: sticky;
  top: 100px;
  background-image: 
    radial-gradient(var(--charcoal) 10%, transparent 11%),
    radial-gradient(var(--charcoal) 10%, transparent 11%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  background-color: var(--white);
}

/* torn paper slip styling */
.summary-slip {
  background: var(--white);
  border: 1px solid var(--plaster-dark);
  padding: 24px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.summary-slip::before {
  content: "";
  position: absolute;
  top: -6px; left: 0; right: 0;
  height: 6px;
  background-image: linear-gradient(-45deg, var(--white) 4px, transparent 0), linear-gradient(45deg, var(--white) 4px, transparent 0);
  background-size: 8px 12px;
}

.summary-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--steel);
  border-bottom: 2px dashed var(--charcoal);
  padding-bottom: 12px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 4px;
}

/* custom scrollbar for invoice items */
.summary-items::-webkit-scrollbar {
  width: 4px;
}
.summary-items::-webkit-scrollbar-thumb {
  background: var(--charcoal);
  border-radius: 2px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.summary-row .label {
  font-weight: 500;
  color: var(--charcoal-soft);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-row .val {
  font-weight: 700;
  color: var(--charcoal);
}

.summary-empty {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  text-align: center;
  padding: 30px 0;
  border: 1.5px dashed var(--steel-light);
  border-radius: var(--border-radius-sm);
  background: var(--plaster-light);
}

.summary-total {
  border-top: 2px dashed var(--charcoal);
  padding-top: 14px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total .total-lbl {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.summary-total .total-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--charcoal);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
}

.estimator-send-btn {
  width: 100%;
}

/* ===== Why Us Section Badges ===== */
.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.badge {
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--white);
  position: relative;
  box-shadow: var(--shadow-tactile);
  transform: rotate(-2.5deg);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.float-anim-1 { animation: floatBadge1 4.5s ease-in-out infinite; }
.float-anim-2 { animation: floatBadge2 4s ease-in-out infinite; }
.float-anim-3 { animation: floatBadge3 5s ease-in-out infinite; }
.float-anim-4 { animation: floatBadge4 4.2s ease-in-out infinite; }

.badge:hover {
  animation-play-state: paused;
  transform: scale(1.08) rotate(0deg) !important;
  box-shadow: 6px 6px 0px 0px var(--charcoal);
}

.badge span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* ===== FAQs Section ===== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-tactile);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px 0px var(--charcoal);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  text-transform: uppercase;
}

.faq-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brick);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--teal);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-content {
  max-height: 200px;
  padding-bottom: 20px;
  border-top: 1px dashed var(--plaster-dark);
  padding-top: 16px;
}

.faq-content p {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
}

/* ===== Location & Maps Grid ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.location-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius);
  background: var(--white);
  padding: 32px;
  box-shadow: var(--shadow-tactile);
}

.info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 20px;
  border-radius: 2px;
}

.traders-col .info-card h3::before { background: var(--brick); }
.rental-col .info-card h3::before { background: var(--teal); }

.info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 700;
  min-width: 80px;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.rental-col .info-row .k {
  color: var(--teal);
}

.info-row .v {
  color: var(--charcoal-soft);
  font-weight: 500;
}

.info-row .v a {
  border-bottom: 1.5px solid var(--charcoal);
  font-weight: 700;
  color: var(--charcoal);
}

.info-row .v a:hover {
  color: var(--brick);
  border-color: var(--brick);
}

.rental-col .info-row .v a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.map-frame {
  border: 2px solid var(--charcoal);
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-tactile);
  background: var(--plaster-dark);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Footer ===== */
footer {
  background: var(--charcoal);
  color: var(--plaster);
  padding: 70px 0 40px;
  margin-top: auto;
  border-top: 4px solid var(--caution);
}

footer .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}

footer h3 {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

footer p.desc {
  max-width: 440px;
  color: var(--steel-light);
  font-size: 0.95rem;
}

footer .foot-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

footer .fine {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .fine a {
  border-bottom: 1px solid var(--steel-light);
}

footer .fine a:hover {
  color: var(--caution);
  border-color: var(--caution);
}

/* ===== Responsive Adaptations ===== */
@media (min-width: 992px) {
  header .header-inner, main, footer {
    padding-left: 0;
  }
  .page-shell {
    margin-left: var(--tape-w);
  }
}

@media (max-width: 991px) {
  .tape, .tape-reading {
    display: none;
  }
  .mobile-progress {
    display: block;
  }
  header .header-inner {
    padding: 16px 20px;
  }
  section {
    padding: 70px 0;
  }
  .hero {
    padding: 100px 0 70px;
  }
  .hero-strip {
    grid-template-columns: 1fr;
  }
  .hero-strip .cell {
    border-right: none;
    border-bottom: 2px solid var(--charcoal);
  }
  .hero-strip .cell:last-child {
    border-bottom: none;
  }
  .estimator-layout {
    grid-template-columns: 1fr;
  }
  .estimator-summary {
    position: static;
    margin-top: 16px;
  }
}

@media (max-width: 840px) {
  .yards {
    grid-template-columns: 1fr;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .badges {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header-actions .btn-label {
    display: none;
  }
  .header-actions .btn {
    padding: 10px 14px;
  }
  .badges {
    grid-template-columns: 1fr;
  }
  .badge {
    max-width: 240px;
    margin: 0 auto;
  }
  .footer .fine {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Touchscreen & Smartphone Specific Optimizations ===== */
.mobile-cta-bar {
  display: none; /* hidden on desktop */
}

@media (max-width: 767px) {
  /* Offset body padding to avoid floating bar content overlap with iOS safe area */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  /* Make map frames scroll-safe on mobile touch screens */
  .map-frame {
    height: 250px;
    touch-action: pan-x pan-y;
  }

  /* Adjust section padding for mobile to feel spacious but compact */
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 72px 0 44px;
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero-ctas .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.9rem;
  }

  /* Compact layout container paddings */
  .shop, .yard {
    padding: 28px 20px;
  }
  .info-card {
    padding: 24px 20px;
  }

  /* Touch-friendly larger quantities picker in Estimator */
  .estimator-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }
  .estimator-item-ctrl {
    height: 44px; /* standard mobile touch target height */
    width: 100%;
    max-width: 160px;
  }
  .estimator-item-ctrl button {
    width: 44px;
    font-size: 1.2rem;
  }
  .estimator-item-ctrl input {
    flex: 1;
    font-size: 1rem;
  }

  /* Sticky Bottom Quick Action Bar with Safe Area */
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 3px solid var(--charcoal);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: 999;
    gap: 6px;
    animation: slideUpBar 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  }

  .mobile-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--charcoal);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .mobile-cta-btn:active {
    transform: scale(0.94);
  }

  .mobile-cta-btn .btn-icon {
    font-size: 1.2rem;
    margin-bottom: 1px;
  }

  .mobile-cta-btn .btn-text {
    line-height: 1;
  }

  .btn-traders {
    background: var(--brick);
  }
  .btn-traders:active {
    background: var(--brick-dark);
  }

  .btn-whatsapp {
    background: var(--caution);
    color: var(--charcoal);
  }
  .btn-whatsapp:active {
    background: var(--caution-dark);
  }
  .btn-whatsapp .btn-icon {
    display: inline-block;
    animation: bottomCtaPing 2.2s infinite;
  }

  .btn-rental {
    background: var(--teal);
  }
  .btn-rental:active {
    background: var(--teal-dark);
  }
}

@media (max-width: 400px) {
  /* Optimize table grids on very narrow mobile screens */
  .ledger-row {
    grid-template-columns: 68px 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .ledger-row .unit {
    grid-column: 2;
    text-align: left;
    font-size: 0.75rem;
    margin-top: -4px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* ===== Accessibility: Prefers Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .preloader {
    display: none !important;
  }
}

