/* ==========================================================================
   EDDIE'S LANDSCAPING - LUXURY UI DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-dark: #0B2912;
  --primary: #144722;
  --primary-mid: #1B5E2B;
  --primary-light: #288C43;
  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-gold-light: #FEF3C7;
  
  --dark-bg: #0F172A;
  --dark-card: #1E293B;
  --light-bg: #F8FAFC;
  --light-card: #FFFFFF;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #F8FAFC;
  --text-dim: #94A3B8;
  
  --border-light: #E2E8F0;
  --border-dark: #334155;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 6px 20px rgba(245, 158, 11, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky action bar */
}

/* SVG Icon Helper */
.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
  color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-gold {
  background-color: var(--accent-gold-light);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-green {
  background-color: rgba(40, 140, 67, 0.12);
  color: var(--primary-mid);
  border: 1px solid rgba(40, 140, 67, 0.25);
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.75rem;
  }
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-dark .section-header p {
  color: var(--text-dim);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #E59E00 100%);
  color: #111827;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, #B45309 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 41, 18, 0.3);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background-color: #FFFFFF;
  color: var(--primary-dark);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-phone {
  background-color: rgba(40, 140, 67, 0.1);
  color: var(--primary-dark);
  border-color: rgba(40, 140, 67, 0.3);
}

.btn-phone:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

/* Header & Sticky Navbar */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(20, 71, 34, 0.25);
  flex-shrink: 0;
}

.logo span {
  color: #B45309;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 1200px) and (min-width: 992px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .btn-phone {
    display: none; /* Hide secondary phone button in header to prevent crowding on medium screens */
  }
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 991px) {
  .top-bar { display: none; }
  .mobile-toggle { display: block; }
  .nav-actions .btn-phone,
  .nav-actions .btn-gold { display: none; } /* Prevent header CTA overflow on mobile */
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 41, 18, 0.88) 0%, rgba(15, 23, 42, 0.85) 100%),
              url('assets/hero.webp') center/cover no-repeat;
  color: #FFFFFF;
  padding: 6rem 0 7rem 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}

.hero-content h1 {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.75rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3.6rem;
    line-height: 1.15;
  }
}

.hero-content h1 span {
  color: var(--accent-gold);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
}

@media (max-width: 991px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
  .hero-ctas {
    justify-content: center;
  }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 991px) {
  .trust-badges {
    justify-content: center;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.trust-item svg {
  color: var(--accent-gold);
}

/* Quick Estimate Hero Form */
.hero-form-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-form-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.hero-form-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #F8FAFC;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(40, 140, 67, 0.15);
}

.hero-form-card .btn-gold {
  width: 100%;
  margin-top: 0.5rem;
}

/* Before / After Slider Section */
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 520px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

@media (max-width: 768px) {
  .before-after-container {
    height: 340px;
  }
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 0 50%);
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 0.4rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
}

.ba-label-before { right: 20px; }
.ba-label-after { left: 20px; background: rgba(20, 71, 34, 0.85); }

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #FFFFFF;
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
}

/* Services Showcase */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--light-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(40, 140, 67, 0.3);
}

.service-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.service-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.service-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gold-light);
  color: #B45309;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.service-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--primary-dark) !important;
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

.service-features {
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.service-features svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Portfolio Section */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 41, 18, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #FFFFFF;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.portfolio-overlay h3,
.portfolio-overlay h4 {
  color: #FFFFFF !important;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .portfolio-overlay {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(11, 41, 18, 0.95) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
  }
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-content img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.lightbox-info {
  padding: 1.5rem 2rem;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--accent-gold);
  color: #111827;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--light-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stars {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0B2912;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.client-details h5 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.client-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form Section */
.quote-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #06180B 100%);
  color: #FFFFFF;
  padding: 6rem 0;
}

.quote-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}

@media (max-width: 991px) {
  .quote-section {
    padding: 3.5rem 0;
    overflow: hidden;
  }
  .quote-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .main-quote-form {
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 576px) {
  .quote-section {
    padding: 2.5rem 0;
  }
  .quote-wrapper {
    padding: 1rem 0.65rem;
    gap: 1.5rem;
    border-radius: var(--radius-md);
  }
  .quote-info h2 {
    font-size: 1.55rem;
    line-height: 1.25;
    word-break: break-word;
  }
  .quote-info p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  .main-quote-form {
    padding: 1rem 0.65rem;
    border-radius: var(--radius-md);
  }
  .main-quote-form .btn-lg {
    white-space: normal;
    text-align: center;
    padding: 0.85rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.3;
  }
}

.quote-info h2 {
  color: #FFFFFF;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.quote-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.quote-perks {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.perk-icon {
  width: 36px;
  height: 36px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.perk-text h3,
.perk-text h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.perk-text p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

.main-quote-form {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.file-upload-box {
  border: 2px dashed var(--border-light);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: #F8FAFC;
}

.file-upload-box:hover {
  border-color: var(--primary-light);
  background-color: rgba(40, 140, 67, 0.05);
}

.file-upload-box input {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 999;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-bar .btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
}

/* Footer */
.footer {
  background-color: #08140B;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3,
.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after,
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.zip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.zip-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Modal Confirmation Feedback */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  padding: 3rem;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: #DEF7EC;
  color: #0E9F6E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   CUSTOM MOBILE-FIRST LAYOUT REDESIGN (< 768px)
   Leaves Desktop View 100% Intact While Giving Mobile a Premium Native Feel
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Global Container & Section Spacing */
  .container {
    padding: 0 1.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  /* 2. Mobile Hero Layout */
  .hero {
    padding: 3.5rem 0 4rem 0;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-ctas .btn {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }

  .trust-badges {
    justify-content: center;
    gap: 1rem;
    padding-top: 1.2rem;
  }

  .trust-item {
    font-size: 0.82rem;
  }

  .hero-form-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .hero-form-header h2 {
    font-size: 1.4rem;
  }

  /* 3. Mobile Before/After Slider */
  .before-after-container {
    height: 280px;
    border-radius: var(--radius-md);
  }

  .ba-label {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    top: 10px;
  }

  .ba-label-before { right: 10px; }
  .ba-label-after { left: 10px; }

  .ba-handle-button {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  /* 4. Mobile Services Showcase */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    border-radius: var(--radius-md);
  }

  .service-img {
    height: 160px;
  }

  .service-content {
    padding: 1.25rem;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }

  .service-content p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .service-features li {
    font-size: 0.82rem;
  }

  .service-content .btn {
    width: 100%;
    padding: 0.8rem 1rem;
  }

  /* 5. Mobile Portfolio Gallery (2-Column Compact Grid) */
  .portfolio-filter {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .portfolio-item {
    height: 190px;
    border-radius: var(--radius-sm);
  }

  .portfolio-overlay {
    padding: 0.85rem;
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(11, 41, 18, 0.95) 0%, rgba(0,0,0,0.2) 65%, transparent 100%);
  }

  .portfolio-category {
    font-size: 0.68rem;
  }

  .portfolio-overlay h3 {
    font-size: 0.88rem !important;
    line-height: 1.25;
  }

  /* 6. Mobile Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  /* 7. Mobile Estimate Form Section */
  .quote-section {
    padding: 2.5rem 0;
    overflow: hidden;
  }

  .quote-wrapper {
    grid-template-columns: 1fr;
    padding: 1.25rem 0.85rem;
    gap: 1.5rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .quote-info h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .quote-info p {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  .quote-perks {
    gap: 0.85rem;
  }

  .perk-item {
    gap: 0.75rem;
  }

  .perk-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .perk-text h3 {
    font-size: 0.95rem;
  }

  .perk-text p {
    font-size: 0.8rem;
  }

  .main-quote-form {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .form-control {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
  }

  .main-quote-form .btn-lg {
    white-space: normal;
    text-align: center;
    padding: 0.85rem 0.75rem;
    font-size: 0.92rem;
    line-height: 1.3;
    width: 100%;
    box-sizing: border-box;
  }

  /* 8. Mobile Footer */
  .footer {
    padding: 3rem 0 1.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
