/* ==========================================================================
   CARPET CLEANING COLORADO SPRINGS — DESIGN SYSTEM & STYLESHEET
   Palette: Dark Slate (#0f172a, #1e293b), Emerald Green (#10b981), Mint Green (#34d399)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --bg-dark-900: #0f172a;
  --bg-dark-800: #1e293b;
  --bg-dark-700: #334155;
  --bg-card: rgba(30, 41, 59, 0.85);

  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-mint: #34d399;
  
  --text-light: #ffffff;
  --text-slate-100: #f1f5f9;
  --text-slate-300: #cbd5e1;
  --text-slate-400: #94a3b8;
  
  --border-slate: #334155;
  --border-emerald: rgba(16, 185, 129, 0.4);
  
  --shadow-emerald: 0 6px 20px rgba(16, 185, 129, 0.35);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --container-max: 1240px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark-900);
  color: var(--text-slate-300);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--accent-mint);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--accent-emerald);
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utility */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.emerald-highlight {
  color: var(--accent-emerald);
}

.mint-highlight {
  color: var(--accent-mint);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-emerald);
  color: var(--accent-mint);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-emerald);
  color: var(--bg-dark-900);
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  background: var(--accent-emerald-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-mint);
  border: 2px solid var(--accent-emerald);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* 1. TOP BAR */
.top-bar {
  background: #090d16;
  border-bottom: 1px solid var(--border-slate);
  font-size: 0.875rem;
  padding: 10px 0;
  color: var(--text-slate-400);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-info a {
  color: var(--text-slate-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-info a:hover {
  color: var(--accent-mint);
}

.top-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-social a {
  color: var(--text-slate-400);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-dark-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.top-social a:hover {
  background: var(--accent-emerald);
  color: var(--bg-dark-900);
}

/* 2. HEADER & NAVIGATION */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-slate);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.logo-badge {
  background: var(--accent-emerald);
  color: var(--bg-dark-900);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-slate-300);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-mint);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-emerald);
  transition: width 0.3s ease;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 3. PARALLAX HERO SECTION */
.hero-section {
  position: relative;
  padding: 100px 0 120px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%),
              url('images/hero_colorado_springs_carpet.png') center/cover no-repeat;
  border-bottom: 1px solid var(--border-slate);
}

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

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-slate-300);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-slate);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-mint);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-slate-400);
}

/* ESTIMATOR WIDGET CARD */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.estimator-header {
  text-align: center;
  margin-bottom: 25px;
}

.estimator-header h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-slate-300);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 14px;
  background: var(--bg-dark-900);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-emerald);
}

.estimate-output {
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed var(--accent-emerald);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.estimate-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.estimate-note {
  font-size: 0.78rem;
  color: var(--text-slate-400);
}

/* 4. USPs BAR */
.usps-bar {
  background: var(--bg-dark-800);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-slate);
}

.usps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.usp-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-dark-900);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-slate);
  transition: transform 0.3s ease;
}

.usp-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-emerald);
}

.usp-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.usp-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.usp-desc {
  font-size: 0.875rem;
  color: var(--text-slate-400);
}

/* SECTION PADDING & LAYOUT */
.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border-slate);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-slate-400);
}

/* 5. MAIN BODY / STORY / WHY CHOOSE US */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.perks-list {
  list-style: none;
  margin: 25px 0;
}

.perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.perks-list li span.check {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 1.2rem;
}

.story-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-emerald);
  box-shadow: var(--shadow-card);
}

/* 6. OUR SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-dark-800);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-card);
}

.service-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

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

.service-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-text {
  font-size: 0.95rem;
  color: var(--text-slate-400);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-mint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--accent-emerald);
}

/* 7. CASE STUDIES */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.case-card {
  background: var(--bg-dark-800);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 35px;
  position: relative;
}

.case-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-emerald);
  color: var(--accent-mint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.case-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.case-result {
  border-left: 4px solid var(--accent-emerald);
  padding-left: 15px;
  margin-top: 15px;
  font-style: italic;
  color: var(--text-slate-300);
}

/* 8. AWARDS & CERTIFICATIONS */
.awards-bar {
  background: var(--bg-dark-800);
  padding: 50px 0;
  text-align: center;
}

.awards-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-dark-900);
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-slate);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-slate-100);
}

/* 9. TESTIMONIALS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--bg-dark-800);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-slate-300);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: var(--bg-dark-900);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: 700;
  color: #ffffff;
}

.author-location {
  font-size: 0.8rem;
  color: var(--text-slate-400);
}

/* 10. FAQ ACCORDION */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-dark-800);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--accent-emerald);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
  color: var(--text-slate-300);
  font-size: 1.02rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 28px 24px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* 11. NAP CARD & MAP */
.nap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.nap-card {
  background: var(--bg-dark-800);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.nap-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.nap-list {
  list-style: none;
  margin-bottom: 25px;
}

.nap-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-emerald);
  height: 380px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 12. BOTTOM ACTION BAND / CTA */
.action-band {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid var(--border-slate);
  border-bottom: 1px solid var(--border-slate);
  padding: 70px 0;
  text-align: center;
}

.action-box {
  max-width: 800px;
  margin: 0 auto;
}

.action-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.action-desc {
  font-size: 1.15rem;
  color: var(--text-slate-300);
  margin-bottom: 30px;
}

/* 13. 4-COLUMN MEGA FOOTER */
.mega-footer {
  background: #090d16;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-slate);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-emerald);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-slate-400);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-slate);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.875rem;
  color: var(--text-slate-400);
}

/* BENTO BOX GRID LAYOUT (FOR INNER PAGES) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin: 50px 0;
}

.bento-card {
  background: var(--bg-dark-800);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: border-color 0.3s;
}

.bento-card:hover {
  border-color: var(--border-emerald);
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }

/* GLASSMORPHISM QUICK CONNECT BAR */
.glass-connect-bar {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  box-shadow: var(--shadow-card);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.connect-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .hero-grid, .story-grid, .nap-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .col-8, .col-6, .col-4 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark-900);
    padding: 20px;
    flex-direction: column;
    border-bottom: 1px solid var(--border-slate);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
