/* Knights Construction - Authentic Brand Design System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,600;0,700;0,800;0,900;1,700&family=Inter:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&display=swap');

:root {
  /* Official Brand Colors from Decal */
  --color-brand-red: #B91C1C;       /* Crimson / Cardinal Red */
  --color-brand-red-dark: #991B1B;
  --color-brand-red-light: #DC2626;
  --color-primary: #B91C1C;
  --color-primary-hover: #991B1B;
  
  --color-dark-950: #0a0e14;
  --color-dark-900: #0f172a;       /* Slate / Deep Charcoal */
  --color-dark-850: #141f32;
  --color-dark-800: #1e293b;
  --color-dark-750: #27354a;
  --color-dark-700: #334155;
  --color-border: #334155;
  --color-text-muted: #94a3b8;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-dark-900);
  color: #f1f5f9;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.font-condensed {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Subtle architectural grid */
.mesh-grid-pattern {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Heavy Workhorse Cards */
.heavy-card {
  background: #141f32;
  border: 1px solid #27354a;
  border-radius: 0.75rem;
  transition: all 0.25s ease-out;
  position: relative;
}

.heavy-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand-red);
  box-shadow: 0 14px 28px -10px rgba(185, 28, 28, 0.25);
}

/* Action Buttons */
.btn-primary {
  white-space: nowrap;
  background-color: var(--color-brand-red);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.45);
  color: #ffffff;
}

.btn-secondary {
  white-space: nowrap;
  background-color: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.btn-secondary:hover {
  background-color: #27354a;
  border-color: var(--color-brand-red);
  color: #ffffff;
}

/* Brand Decal Logo Styles */
.header-logo-img {
  height: 64px;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}

@media (min-width: 640px) {
  .header-logo-img {
    height: 72px;
    max-height: 80px;
  }
}

.header-logo-img:hover {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Mobile Sticky Action Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--color-brand-red);
  z-index: 999;
  padding: 8px 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .mobile-action-bar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 70px !important;
  }
}

@media (min-width: 768px) {
  .mobile-action-bar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 70px !important;
  }
}

.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 6px;
  height: 100%;
}

/* Interactive Before & After Slider */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.ba-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
  z-index: 20;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--color-brand-red);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* Wizard step indicator */
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.step-dot.active {
  background-color: var(--color-brand-red);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.25);
}

.step-dot.completed {
  background-color: #10b981;
  color: #ffffff;
}

.step-dot.upcoming {
  background-color: #1e293b;
  color: #64748b;
  border: 1px solid #334155;
}
