/* ==========================================================================
   1. SYSTEM RESET & CORE UTILITIES
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

/* ==========================================================================
   2. HIGH-END GLASSMORPHIC NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--color-surface-blur);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all 0.4s var(--transition-smooth);
}

.nav-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Grid Architecture: Pairs Logo and Demo Badge Symmetrically */
.brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.5s var(--transition-smooth);
}

.logo-link:hover .logo-img {
  transform: scale(1.05) rotate(-1deg);
}

/* Elite Interactive Showcase Badge Pill Frame Styling */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(13, 15, 12, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  user-select: none;
}

/* Dynamic Pulsing Status Indicator Dot Layout Element */
.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-brand-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-brand-green);
  animation: badge-pulse 2s infinite ease-in-out;
}

.badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

@keyframes badge-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 14px var(--color-brand-green); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Main Site Navigation Menu Elements */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-item {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s var(--transition-smooth);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--transition-smooth);
}

.nav-item:hover {
  color: var(--color-text-primary);
}

.nav-item:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background-color: var(--color-brand-green);
  color: #050604;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: var(--radius-premium);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 0 rgba(118, 192, 67, 0);
  transition: all 0.4s var(--transition-smooth);
}

.nav-cta:hover {
  background-color: #8be052;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--color-brand-green-glow);
}

/* ==========================================================================
   3. RESIDENTIAL SHOWCASE HERO INTERFACE (LOCAL FILE PATHED)
   ========================================================================== */
.hero-showcase {
  min-height: calc(90vh - var(--nav-height));
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 40px;
  background: linear-gradient(to bottom, rgba(13, 15, 12, 0.45) 0%, rgba(13, 15, 12, 0.95) 100%), 
              url('hero-bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-content {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  z-index: 10;
}

.hero-pretitle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-brand-green);
  display: inline-block;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text-primary);
  opacity: 0.95;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 40px auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background-color: var(--color-text-primary);
  color: var(--color-bg);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius-premium);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--transition-smooth);
}

.hero-btn-primary:hover {
  background-color: var(--color-brand-green);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background-color: rgba(13, 15, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius-premium);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--transition-smooth);
}

.hero-btn-secondary:hover {
  border-color: var(--color-text-muted);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   4. INTERACTIVE TRANSFORMATION SLIDER MODULE
   ========================================================================== */
.transformation-section {
  padding: 120px 40px;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-pretitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-brand-green);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.comparison-slider {
  position: relative;
  width: 100%;
  max-width: 340px;         
  margin: 0 auto;
  aspect-ratio: 234 / 394;  
  border-radius: var(--radius-premium);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  user-select: none;
  cursor: ew-resize;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.after-image {
  width: 100%;
  clip-path: inset(0 0 0 50%);
}

.image-label {
  position: absolute;
  top: 24px;
  padding: 8px 16px;
  background-color: rgba(13, 15, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  z-index: 5;
}

.label-before { left: 24px; border-left: 3px solid var(--color-brand-brown); }
.label-after { right: 24px; border-right: 3px solid var(--color-brand-green); }

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 4px;
  background-color: var(--color-brand-green);
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.handle-button {
  width: 48px;
  height: 48px;
  background-color: var(--color-surface);
  border: 2px solid var(--color-brand-green);
  color: var(--color-brand-green);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.comparison-slider:hover .handle-button {
  transform: scale(1.1);
  background-color: var(--color-brand-green);
  color: var(--color-bg);
}

/* ==========================================================================
   5. AUTO-FIT SERVICES SHOWCASE GRID ENGINE (CLEAN COMPILING)
   ========================================================================== */
.services-section {
  padding: 120px 40px;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 100%)); 
  gap: 30px;
  margin-top: 50px;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, calc(50% - 15px)));
  }
}
@media (min-width: 1050px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, calc(33.333% - 20px)));
  }
}

.service-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 40px;
  border-radius: var(--radius-premium);
  transition: transform 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-brand-green);
}

.service-icon {
  color: var(--color-brand-green);
  background-color: var(--color-brand-green-glow);
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ==========================================================================
   6. INTERACTIVE CONSULTATION MODULE (INCREASED BACKDROP VISIBILITY)
   ========================================================================== */
.estimate-section {
  padding: 120px 40px;
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, rgba(13, 15, 12, 0.85) 20%, rgba(13, 15, 12, 0.45) 100%), 
              url('deck-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 50% 50%; 
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.form-info .section-title {
  text-align: left;
}

.form-info p {
  color: var(--color-text-primary);
  opacity: 0.95;
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background-color: rgba(23, 26, 21, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 30px;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-badge svg {
  color: var(--color-brand-green);
}

.interactive-form {
  background-color: rgba(23, 26, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  padding: 40px;
  border-radius: var(--radius-premium);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.form-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  opacity: 0.8;
}

.input-group input, 
.input-group select {
  background-color: rgba(13, 15, 12, 0.75);
  border: 1px solid var(--color-border);
  padding: 14px 18px;
  border-radius: 6px;
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: border-color 0.3s var(--transition-smooth);
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--color-brand-green);
}

.file-drop-zone {
  border: 2px dashed var(--color-border);
  background-color: rgba(13, 15, 12, 0.6);
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 30px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.file-drop-zone:hover {
  background-color: rgba(118, 192, 67, 0.03);
  border-color: var(--color-brand-green);
}

.file-drop-zone svg {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.file-drop-zone p {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.file-specs {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}

.hidden-file-input {
  display: none;
}

.form-submit-btn {
  width: 100%;
  background-color: var(--color-brand-green);
  color: #050604;
  border: none;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-premium);
  cursor: pointer;
  transition: background-color 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}

.form-submit-btn:hover {
  background-color: #8be052;
  transform: translateY(-2px);
}

/* ==========================================================================
   7. MOBILE RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  /* Hides the badge on smaller mobile screens to maintain header structural bounds */
  .demo-badge {
    display: none;
  }

  .nav-container {
    padding: 0 24px;
  }
  
  .nav-list li:not(:last-child) {
    display: none;
  }

  .form-wrapper {
    grid-template-columns: 100%;
    gap: 40px;
  }

  .form-grid {
    grid-template-columns: 100%;
  }

  .hero-showcase,
  .transformation-section, 
  .services-section, 
  .estimate-section {
    padding: 80px 24px;
  }

  .comparison-slider {
    aspect-ratio: 234 / 394;
    max-width: 240px;        
  }
}

@media (max-width: 600px) {
  .hero-action-row {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-primary, .hero-btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}