/* ============================================
   ENHANCED LAYOUT STYLES - HIMES.COM INSPIRED
   ============================================ */

/* Enhanced Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: none;
  transition: all 300ms ease;
  min-height: 130px;
  display: flex;
  align-items: center;
  padding: 0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 130px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo-img {
  height: 80px;
  width: auto;
  transition: transform 150ms ease;
}

.header-logo-img:hover {
  transform: scale(1.05);
}

/* Logo positioning utility */
.logo-right .header-container {
  flex-direction: row-reverse;
}

.logo-right .header-nav {
  order: -1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 150ms ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #D97000;
}

.nav-link:focus {
  outline: 2px solid #D97000;
  outline-offset: 2px;
  border-radius: 0.125rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D97000, #4A6E1A);
  transition: width 150ms ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Show full text on desktop, hide short text */
.btn-full,
.phone-full {
  display: inline;
}

.btn-short,
.phone-short {
  display: none;
}

.phone-link {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 150ms ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

.phone-link:hover {
  color: #D97000;
  background: linear-gradient(135deg, rgba(217,112,0,0.05), rgba(74,110,26,0.05));
}

/* Enhanced Hero */
.hero {
  min-height: 80vh;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  margin-top: 130px;
  margin-bottom: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #4A6E1A;
}

.hero-title-old {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  color: #4A6E1A;
}

.hero-highlight {
  color: #f59e0b;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-fixed {
  color: #6B8E23 !important;
}

.rotating-word {
  display: inline-block;
  min-width: 200px;
  text-align: center !important;
  color: #FF8C00 !important;
  font-weight: 700;
  transition: opacity 250ms ease-in-out, transform 250ms ease-in-out;
  transform-origin: center;
}

.rotating-word.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.rotating-word.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.625;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-trust {
  margin-bottom: 2rem;
}

.hero-trust span {
  display: inline-block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms ease;
  cursor: pointer;
  min-height: 40px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #D97000 0%, #FF8C00 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(217, 112, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #B85C00 0%, #D97000 100%);
  box-shadow: 0 10px 15px -3px rgba(217, 112, 0, 0.4);
  transform: translateY(-2px);
}

.btn-primary:focus {
  outline: 2px solid #D97000;
  outline-offset: 2px;
}

.btn-secondary {
  background: linear-gradient(135deg, #4A6E1A 0%, #5A7E2A 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(74, 110, 26, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #3A5614 0%, #4A6E1A 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(74, 110, 26, 0.4);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 56px;
}

/* Enhanced Trust Bar */
.trust-bar {
  padding: 5rem 0;
  background: white;
  border-bottom: 1px solid #f1f5f9;
}

.trust-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.trust-item {
  padding: 1.5rem;
  border-radius: 0.75rem;
  transition: all 300ms ease;
}

.trust-item:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.trust-text strong {
  display: block;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.trust-text span {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .rotating-word {
    min-width: 180px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .header-nav {
    display: none;
  }
  
  .header {
    min-height: 130px;
    display: flex;
    align-items: center;
    padding: 0;
  }

  .header-container {
    gap: 0.3rem;
    flex-direction: column;
    align-items: center;
    min-height: 130px;
  }

  .header-logo-img {
    height: 80px !important;
  }

  .header-actions {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .header-actions .btn {
    font-size: 0.6rem !important;
    padding: 0.3rem 0.4rem !important;
    min-height: 28px !important;
    white-space: nowrap;
    line-height: 1.2;
  }

  .header-actions .btn-secondary {
    font-size: 0.38rem !important;
    padding: 0.3rem 0.4rem !important;
    min-height: 28px !important;
  }

  /* Force smaller font for longer text on vertical mobile */
  [data-ui-modern="true"] .header-actions .btn-secondary {
    font-size: 0.38rem !important;
    padding: 0.3rem 0.4rem !important;
    min-height: 28px !important;
  }

  .header-actions .phone-link {
    display: flex !important;
    font-size: 0.65rem;
    padding: 0.3rem 0.4rem;
    width: 100%;
    justify-content: center;
    order: 10;
    font-weight: 600;
    color: #4A6E1A !important;
    background: linear-gradient(135deg, rgba(74,110,26,0.1), rgba(217,112,0,0.05));
    border-radius: 5px;
    margin-top: 0.15rem;
    line-height: 1.2;
  }

  .hero {
    padding-top: 130px;
  }

  .header-actions .phone-text {
    display: inline !important;
  }

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .trust-item {
    padding: 1rem;
  }

  .btn {
    min-height: 36px;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    white-space: nowrap;
    flex: 0 1 auto;
  }
  
  .btn-large {
    min-height: 60px;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .rotating-word {
    min-width: 140px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rotating-word,
  .btn,
  .trust-item,
  .header-logo-img,
  .nav-link::after {
    transition: none;
  }
  
  .btn:hover,
  .trust-item:hover {
    transform: none;
  }
}

/* ============================================
   MODERN IN-HOME CONSULTATION SECTION 
   ============================================ */

.consultation-lead {
    padding: 6rem 0 !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    position: relative;
    overflow: hidden;
}

.consultation-lead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.consultation-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.consultation-content {
    text-align: center;
}

.consultation-content .section-header h2 {
    color: white !important;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.consultation-content .section-header p {
    color: #cbd5e1 !important;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.consultation-features {
    margin: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.feature-icon {
    font-size: 2rem;
}

.feature-card h4 {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    font-size: 1.1rem !important;
    color: #cbd5e1 !important;
    line-height: 1.6;
    opacity: 0.9;
}

.consultation-actions {
    margin-top: 3rem;
}

.consultation-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #94a3b8 !important;
    font-weight: 500;
    opacity: 0.8;
}

/* ============================================
   MODERN FREE ESTIMATE SECTION 
   ============================================ */

.estimate-form {
    padding: 6rem 0 !important;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%) !important;
    position: relative;
    overflow: hidden;
}

.estimate-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.estimate-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    position: relative;
    z-index: 1;
}

.estimate-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
}

.estimate-info h2 {
    color: white !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1.2 !important;
}

.estimate-info p {
    color: #c7d2fe !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
}

.estimate-benefits {
    margin: 2rem 0 !important;
}

.estimate-benefits ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.estimate-benefits li {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
    color: #e0e7ff !important;
    font-size: 1.1rem !important;
}

.estimate-benefits li::before {
    content: '✓' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    margin-right: 1rem !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

.estimate-form-container {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 24px !important;
    padding: 3rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.estimate-form-container:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

.lead-form .form-row {
    display: grid !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.lead-form .form-group {
    position: relative !important;
}

.lead-form label {
    color: #e0e7ff !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    font-size: 1rem !important;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-sizing: border-box !important;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none !important;
    border-color: #8b5cf6 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: #a5b4fc !important;
    opacity: 0.7 !important;
}

.lead-form .submit-btn {
    width: 100% !important;
    padding: 1.25rem 2rem !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.lead-form .submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4) !important;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
}

.lead-form .submit-btn:active {
    transform: translateY(0) !important;
}

.form-note {
    text-align: center !important;
    color: #a5b4fc !important;
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
    opacity: 0.8 !important;
}

/* Responsive Design for Estimate Form */
@media (max-width: 968px) {
    .estimate-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .estimate-info h2 {
        font-size: 2.5rem !important;
    }
    
    .estimate-form-container {
        padding: 2rem !important;
    }
}

@media (max-width: 640px) {
    .estimate-form {
        padding: 4rem 0 !important;
    }
    
    .estimate-info h2 {
        font-size: 2rem !important;
    }
    
    .estimate-info p {
        font-size: 1.1rem !important;
    }
    
    .estimate-form-container {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}