/* ==========================================================================
   NORTH POLE DESIGN WORKSHOP — PURE CSS STYLESHEET
   Luxury Holiday Lighting Installation Craftsman Theme
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Courier+Prime:wght@400;700&display=swap');

/* --- Root CSS Variables & Palette --- */
:root {
  --color-evergreen-950: #06120D;
  --color-evergreen-900: #0F281E;
  --color-evergreen-800: #163A2C;
  --color-evergreen-700: #21523F;

  --color-oxblood-950: #380B12;
  --color-oxblood-900: #52111A;
  --color-oxblood-800: #6B1724;
  --color-oxblood-700: #8B1E2D;

  --color-parchment: #F7F3E9;
  --color-parchment-light: #FAF6EE;
  --color-parchment-dark: #EAE1D0;

  --color-walnut-950: #120B06;
  --color-walnut-900: #1E130B;
  --color-walnut-800: #2C1D11;
  --color-walnut-700: #3E2A1B;

  --color-brass: #C5A059;
  --color-brass-light: #E5C378;
  --color-brass-dark: #9E7B35;

  --color-gold: #FFD875;
  --color-gold-warm: #FFC843;

  --color-blueprint: #0F2540;
  --color-blueprint-accent: #4D8BC9;

  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', Inter, sans-serif;
  --font-mono: 'Courier Prime', Consolas, monospace;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-evergreen-900);
  color: var(--color-parchment);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: filter 0.5s ease;
}

/* Atmosphere Glow Vignette */
body.atmosphere-glow {
  filter: brightness(1.04) saturate(1.1);
}
body.atmosphere-glow::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  box-shadow: inset 0 0 120px rgba(255, 216, 117, 0.12);
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}
.font-mono {
  font-family: var(--font-mono);
}
.text-gold { color: var(--color-gold); }
.text-brass { color: var(--color-brass); }
.text-brass-light { color: var(--color-brass-light); }
.text-parchment { color: var(--color-parchment); }

/* --- Container Layout --- */
.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Craftsman Card Textures & Styles --- */
.wood-card {
  background: radial-gradient(circle at 50% 30%, #2C1D11 0%, #1E130B 70%, #120B06 100%);
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.wood-card:hover {
  border-color: rgba(229, 195, 120, 0.6);
}

.parchment-card {
  background: linear-gradient(175deg, #FAF6EE 0%, #F7F3E9 60%, #EAE1D0 100%);
  color: #1E130B;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(197, 160, 89, 0.15);
  border: 2px solid var(--color-brass);
  border-radius: 1rem;
}

/* Step Card Hover Lift Effect */
.step-card {
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, border-color 0.35s ease;
}
.step-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 216, 117, 0.25), 0 10px 20px rgba(0, 0, 0, 0.5);
  border-color: var(--color-gold);
}

.blueprint-card {
  background-color: var(--color-blueprint);
  background-image: 
    linear-gradient(rgba(77, 139, 201, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 139, 201, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(77, 139, 201, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
}

.brass-plaque {
  background: linear-gradient(135deg, #3A2B19 0%, #2A1D0E 50%, #1A1107 100%);
  border: 2px solid var(--color-brass);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.5);
  color: var(--color-brass-light);
}

.brass-pill {
  background: linear-gradient(135deg, #E5C378 0%, #C5A059 50%, #9E7B35 100%);
  color: #120B06;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.brass-pill:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.wax-seal {
  background: radial-gradient(circle at 35% 35%, #A32435 0%, #6B1724 60%, #380B12 100%);
  box-shadow: 0 6px 15px rgba(56, 11, 18, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(197, 160, 89, 0.4);
  transition: transform 0.2s ease;
}
.wax-seal:hover {
  transform: scale(1.04);
}

/* --- Sticky Header & Navbar --- */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(14, 9, 5, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.35);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
}

.header-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brass-dark), var(--color-brass-light), var(--color-brass-dark));
}

.nav-link {
  color: rgba(247, 243, 233, 0.85);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link:hover {
  color: var(--color-gold);
  background: rgba(44, 29, 17, 0.65);
  box-shadow: inset 0 0 0 1px rgba(197, 160, 89, 0.35);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-evergreen-900);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
}
.hero-bg-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-gradient-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #120B06 0%, rgba(15, 40, 30, 0.9) 60%, transparent 100%);
  z-index: 1;
}

/* --- Interactive Before & After Slider --- */
.slider-container {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 0.75rem;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  border: 1px solid rgba(197, 160, 89, 0.3);
  background: var(--color-blueprint);
}

.slider-after-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) brightness(1.05);
}

.slider-before-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 10;
  border-right: 2px solid var(--color-gold);
}

.slider-before-img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-brass-light), var(--color-gold), var(--color-brass-light));
  z-index: 20;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-handle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E5C378 0%, #C5A059 100%);
  color: #120B06;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--color-parchment);
}

/* --- Form Controls & Range Slider --- */
input[type="range"] {
  width: 100%;
  height: 8px;
  background: var(--color-walnut-900);
  border-radius: 6px;
  outline: none;
  border: 1px solid rgba(197, 160, 89, 0.3);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-walnut-950);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 216, 117, 0.6);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 6rem;
  }
  .slider-container {
    height: 280px;
  }
}

/* --- Station 8 Autobidder Calculator Mobile Styles --- */
@media (max-width: 640px) {
  #autobidder-app-container {
    padding: 1rem !important;
  }

  .ab-service-btn {
    min-height: 52px;
  }

  .ab-light-type-btn {
    min-height: 44px;
    padding: 0.5rem 0.25rem !important;
    font-size: 11px !important;
  }

  .ab-slot-btn {
    min-height: 48px;
    padding: 0.6rem 0.3rem !important;
  }

  select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
    font-size: 14px !important;
  }
}
