/* Cabinet Constructions - Clean Minimalist Architectural Light Theme */

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

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;
  --border-light: #E4E4E7;
  --border-subtle: #EEEEF0;
  --text-main: #18181B;
  --text-muted: #52525B;
  --text-soft: #71717A;
  --accent-dark: #18181B;
  --accent-warm: #B45309;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;

}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.font-mono-tech {
  font-family: var(--font-mono);
}

#estResultPrice { overflow-wrap: anywhere; }
#estimatorForm .text-center { min-width: 0; max-width: 100%; }
#estResultTimeline { flex-shrink: 0; }
#estResultSummary { min-width: 0; }

/* Custom Scrollbar - Minimal Light */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #F4F4F5;
}
::-webkit-scrollbar-thumb {
  background: #D4D4D8;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A1A1AA;
}

/* Architectural Subtle Grids */
.bg-cad-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(24, 24, 27, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 24, 27, 0.04) 1px, transparent 1px);
}

.bg-cad-dots {
  background-image: radial-gradient(rgba(24, 24, 27, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Minimalist Clean Cards */
.clean-card {
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.clean-card:hover {
  border-color: #A1A1AA;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.clean-card-active {
  border-color: #18181B !important;
  background: #FAFAFA !important;
  box-shadow: 0 0 0 1.5px #18181B !important;
}

/* Architectural Buttons */
.btn-primary {
  background-color: #18181B;
  color: #FFFFFF;
  border: 1px solid #18181B;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: #27272A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.15);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #18181B;
  border: 1px solid #E4E4E7;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background-color: #F4F4F5;
  border-color: #D4D4D8;
}

/* Interactive Before / After Comparison Slider */
.comparison-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 16px;
  user-select: none;
  border: 1px solid #E4E4E7;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #FFFFFF;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #18181B;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: ew-resize;
  z-index: 10;
}

/* Range Input Styling - Minimalist Light */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: #E4E4E7;
  height: 5px;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #18181B;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Modal Backdrop */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(24, 24, 27, 0.45);
}

::selection { background: #18181B; color: #fff; }
section[id] { scroll-margin-top: 100px; }
:focus-visible { outline: 2px solid #B45309; outline-offset: 4px; }
label:focus-within { outline: 2px solid #B45309; outline-offset: 2px; }
.comparison-overlay .comparison-image { width: var(--comparison-width, 100%); max-width: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
