/* ==========================================================================
   Dallas Home Improvement Cleaning Services — Site Styles
   ========================================================================== */

:root {
  --navy-900: #0d2036;
  --navy-800: #12294a;
  --navy-700: #17335c;
  --teal-500: #17b3be;
  --teal-400: #2fd0da;
  --teal-050: #e6fbfc;
  --amber-500: #f2a93b;
  --gray-050: #f6f8fa;
  --gray-100: #eef1f4;
  --gray-200: #dde3e9;
  --gray-500: #66768a;
  --gray-700: #3c4756;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(13, 32, 54, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 32, 54, 0.12);
  --shadow-lg: 0 16px 40px rgba(13, 32, 54, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

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

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--gray-050); }
.section-navy { background: var(--navy-800); color: var(--gray-200); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  color: var(--teal-500);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--gray-500); font-size: 1.05rem; }

/* -------------------------- Buttons -------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-400); color: var(--white); box-shadow: var(--shadow-md); }
.btn-amber { background: var(--amber-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-amber:hover { background: #ffb84d; color: var(--navy-900); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-800); }
.btn-outline-navy { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* -------------------------- Header -------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.topbar {
  background: var(--navy-900);
  color: var(--gray-200);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--teal-400); font-weight: 600; }
.topbar .topbar-phone { color: var(--white); font-weight: 700; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }
.brand-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-800);
}
.brand-fallback span { color: var(--teal-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--teal-500); }
.nav-links .has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 10px;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--gray-200);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown a {
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--gray-700);
}
.dropdown a:hover { background: var(--teal-050); color: var(--navy-800); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-800);
}
.nav-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy-800); border-radius: 3px; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 24px; }
  .has-dropdown .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    min-width: 0;
  }
  .has-dropdown.open .dropdown { display: flex; }
  .nav-phone { display: none; }
  .navbar { gap: 8px; }
  .nav-toggle { display: flex; order: 3; flex-shrink: 0; margin: 0; }
  .brand { order: 1; flex-shrink: 1; min-width: 0; }
  .brand img { height: 30px; flex-shrink: 0; }
  .nav-cta { order: 2; flex-shrink: 0; }
  .nav-cta .btn-primary { padding: 7px 11px; font-size: 0.72rem; white-space: nowrap; }
}

@media (max-width: 360px) {
  .brand img { height: 26px; }
  .nav-cta .btn-primary { padding: 6px 9px; font-size: 0.68rem; }
}

/* -------------------------- Hero -------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(13,32,54,0.94) 0%, rgba(18,41,74,0.88) 45%, rgba(23,51,92,0.75) 75%, rgba(23,179,190,0.55) 100%),
    url('../images/hero-house.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  height: 100%;
}
.collage-item { position: relative; overflow: hidden; border-radius: 10px; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-item .collage-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 8px 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(to top, rgba(13,32,54,0.85), transparent);
}
.hero-decor {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(47, 208, 218, 0.35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(242, 169, 59, 0.25), transparent 40%);
  pointer-events: none;
}

.hero-no-image .container { grid-template-columns: 1fr; text-align: center; }
.hero-no-image .hero-copy { max-width: 720px; margin: 0 auto; }
.hero-no-image .hero-badges { justify-content: center; }
.hero-no-image .lead { margin-left: auto; margin-right: auto; }
.hero-no-image .hero-actions { justify-content: center; }

.page-hero {
  background:
    linear-gradient(120deg, rgba(13,32,54,0.93) 0%, rgba(18,41,74,0.88) 45%, rgba(23,51,92,0.78) 80%, rgba(23,179,190,0.6) 100%),
    url('../images/hero-house.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero.page-hero-furniture {
  background:
    linear-gradient(120deg, rgba(13,32,54,0.93) 0%, rgba(18,41,74,0.88) 45%, rgba(23,51,92,0.78) 80%, rgba(23,179,190,0.6) 100%),
    url('../images/furniture-header.png');
  background-size: cover;
  background-position: center;
}
.page-hero .container { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.08rem; max-width: 640px; }
.breadcrumb { font-size: 0.85rem; color: var(--teal-400); margin-bottom: 16px; }
.breadcrumb a { color: var(--teal-400); }
.breadcrumb span { color: rgba(255,255,255,0.6); }
.page-hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* -------------------------- Trust strip -------------------------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.trust-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.92rem;
}
.trust-item svg { color: var(--teal-500); flex-shrink: 0; }

/* -------------------------- Cards / Grids -------------------------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--teal-050);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-500);
  margin-bottom: 18px;
  overflow: hidden;
}
.service-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--gray-500); flex-grow: 1; }
.service-card .card-link { font-weight: 700; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }

.feature-item { display: flex; gap: 16px; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 6px; }
.feature-item p { color: var(--gray-500); margin: 0; }

.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.step-list li { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
}
.step-list h4 { margin-bottom: 4px; }
.step-list p { color: var(--gray-500); margin: 0; }

/* -------------------------- Gallery / Photos -------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery.gallery-2col { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.portrait { aspect-ratio: 3/4; background: var(--gray-100); }
.gallery-item.portrait img { object-fit: contain; }

.reviews-widget-outer { display: flex; justify-content: center; width: 100%; }
.reviews-widget-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reviews-widget-wrap a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.reviews-widget-wrap .tt-logo { height: 28px; margin-bottom: 14px; }
#tt-dynamic { margin-top: 10px; font-weight: 700; color: var(--navy-800); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
#tt-dynamic img { display: inline-block; width: 20px; height: 20px; }
#tt-dynamic span { margin-left: 4px; }

.illustration-hero {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-050), var(--gray-050));
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.illustration-hero svg { width: 100%; height: 100%; }

/* -------------------------- Video grid -------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-grid.single { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.video-grid.video-grid-3 { grid-template-columns: repeat(3, 1fr); }
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy-900);
}
.video-wrap.short { padding-top: 177.7%; max-width: 320px; margin: 0 auto; }
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption { text-align: center; margin-top: 10px; font-weight: 600; color: var(--navy-800); font-size: 0.92rem; }

/* -------------------------- Testimonials -------------------------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.stars { color: var(--amber-500); font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-name { font-weight: 700; color: var(--navy-800); margin-top: 14px; }

/* -------------------------- CTA banner -------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------------- Service area -------------------------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
}

/* -------------------------- Footer -------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.72);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 18px; }

/* -------------------------- Floating Text Us widget -------------------------- */
.text-us-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-500);
  color: var(--white);
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(23, 179, 190, 0.45);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.text-us-widget:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(13, 32, 54, 0.4);
}
.text-us-widget .pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--teal-500);
  animation: pulse-ring 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}
.text-us-widget svg { flex-shrink: 0; }

@media (max-width: 640px) {
  .text-us-widget { right: 14px; bottom: 14px; padding: 12px 18px 12px 14px; font-size: 0.9rem; }
}

/* -------------------------- FAQ -------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 22px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.faq-item h4 { color: var(--navy-800); margin-bottom: 8px; }
.faq-item p { color: var(--gray-500); margin: 0; }

/* -------------------------- Legal pages -------------------------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; }
.legal-content ul { color: var(--gray-700); }
.legal-updated { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 2em; }
.legal-notice {
  background: var(--teal-050);
  border-left: 4px solid var(--teal-500);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--navy-800);
  margin-bottom: 2em;
}

/* -------------------------- Responsive -------------------------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid, .video-grid.video-grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .video-grid, .video-grid.video-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 24px; }

  .hero-badges { gap: 6px; flex-wrap: nowrap; }
  .hero-badge { padding: 4px 8px; font-size: 0.62rem; white-space: nowrap; }
  .hero p.lead { font-size: 0.92rem; line-height: 1.45; max-width: 340px; }
  .hero-actions { gap: 8px; flex-wrap: nowrap; }
  .hero-actions .btn { padding: 11px 14px; font-size: 0.82rem; white-space: nowrap; }

  .gallery {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 4px 24px 10px;
    margin: 0 -24px;
    -webkit-overflow-scrolling: touch;
  }
  .gallery::-webkit-scrollbar { height: 6px; }
  .gallery::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
  .gallery-item {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .gallery-item.portrait { flex-basis: 70%; }
}
