/* =====================================================
   LUCKY CARPET CLEANING — design tokens
   Palette built around fabric & water: raw canvas, deep
   ink-green (wet slate), accent (stains → the "before"),
   sky (fresh, clean → the "after").
   ===================================================== */
:root {
  --ink: #0a2647;
  --ink-soft: #123863;
  --canvas: #e7f1fb;
  --paper: #f7fafd;
  --accent: #0e6bcf;
  --accent-dark: #094f9c;
  --sky: #39bae7;
  --sky-dark: #1c93be;
  --line: #c9dcef;
  --text: #16233a;
  --text-soft: #48607a;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 4px;
  --radius-lg: 6px;
  --shadow-card: 0 10px 30px -14px rgba(23, 34, 31, 0.35);
  --gutter: clamp(20px, 4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 600; }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

.section-head {
  margin-bottom: 40px;
}
.section-head p {
  color: var(--text-soft);
  margin-top: 10px;
  font-size: 1.05em;
}
.section-head.light h2,
.section-head.light p { color: var(--paper); }
.section-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.section-link:hover{
  color: #FFA500;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  font-size: 0.98em;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #FFA500; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: rgba(248,245,236,0.5); }
.btn-outline-light:hover { border-color: var(--paper); }
.btn-lg { padding: 16px 28px; font-size: 1.05em; }
.btn-block { width: 100%; }

.link-cta {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  padding: 0;
  font-size: 0.96em;
  text-align: left;
}
.link-cta:hover { color: var(--accent-dark); }

.chip {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92em;
  color: var(--text);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================
   HEADER
   ===================================================== */
.site-header { position: sticky; top: 0; z-index: 100; }

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--paper); opacity: 0.9; }
.topbar-link img { filter: invert(1); opacity: 0.85; }
.topbar-link:hover { opacity: 1; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social img { opacity: 0.85; }
.topbar-social a:hover img { opacity: 1; }

.navbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-text { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.2; font-size: 1.05em; }
.brand-text em { font-style: normal; color: var(--accent); }

.main-nav { display: flex; gap: 26px; flex: 1; justify-content: center; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.96em; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: #FFA500; }

.navbar-cta { display: flex; gap: 10px; flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* =====================================================
   HERO
   ===================================================== */
.hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-copy h1 { color: var(--paper); }
.hero-lead { margin-top: 20px; max-width: 46ch; color: #cfd4ce; font-size: 1.08em; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-facts { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; list-style: none; }
.hero-facts li { color: #cfd4ce; font-size: 0.95em; padding-left: 22px; position: relative; }
.hero-facts li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.hero-facts strong { color: var(--paper); }

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}
.hero-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.hero-badge-num { font-family: var(--font-display); font-size: 1.8em; font-weight: 700; line-height: 1; }
.hero-badge-text { font-size: 0.82em; margin-top: 4px; }

/* =====================================================
   TRUST STRIP
   ===================================================== */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.95em; color: var(--text); }
.trust-item img { opacity: 0.75; }
.trust-areas {
  text-align: center;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.92em;
}
.trust-areas span { color: var(--sky-dark); font-weight: 600; }

/* =====================================================
   AGITATE / PROBLEM
   ===================================================== */
.agitate { background: var(--canvas); padding: clamp(56px, 7vw, 96px) 0; }
.agitate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.agitate-copy p { color: var(--text-soft); margin-top: 16px; max-width: 48ch; }
.agitate-points { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.agitate-points li { border-left: 3px solid var(--accent); padding-left: 18px; }
.agitate-points strong { display: block; font-family: var(--font-display); font-size: 1.1em; color: var(--ink); margin-bottom: 4px; }
.agitate-points span { color: var(--text-soft); font-size: 0.95em; }

/* =====================================================
   SERVICES
   ===================================================== */
.services { padding: clamp(56px, 7vw, 96px) 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-body p { color: var(--text-soft); font-size: 0.93em; }

.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}
.service-list li {
  color: var(--text-soft);
  font-size: 0.93em;
  padding-left: 18px;
  position: relative;
  line-height: 1.3;
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.service-more summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88em;
  list-style: none;
}
.service-more summary::-webkit-details-marker { display: none; }
.service-more summary::after { content: " +"; }
.service-more[open] summary::after { content: " –"; }
.service-more p { margin-top: 10px; }
.service-more p + p { margin-top: 8px; }

.services-extra {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.services-extra span { color: var(--text-soft); font-size: 0.92em; }

/* =====================================================
   AD BREAK
   ===================================================== */
.ad-break { background: var(--sky); color: var(--white); padding: 34px 0; }
.ad-break-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ad-break-inner p { font-family: var(--font-display); font-size: 1.3em; }

/* =====================================================
   PROCESS
   ===================================================== */
.process { padding: clamp(56px, 7vw, 96px) 0; background: var(--paper); }
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.process-steps li { position: relative; padding-top: 8px; border-top: 2px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.2em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.process-steps p { color: var(--text-soft); font-size: 0.93em; margin-top: 6px; }

/* =====================================================
   GALLERY
   ===================================================== */
.gallery { padding: clamp(56px, 7vw, 96px) 0; background: var(--canvas); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  border: none;
  padding: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* =====================================================
   REVIEWS
   ===================================================== */
.reviews { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0; }
.reviews .section-head { margin: 0 auto 36px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; max-width: none; }
.reviews-track-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start;
  flex: 0 0 min(400px, 85vw);
  background: var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(248,245,236,0.12);
}
.review-card p { font-size: 0.97em; color: #dfe3dd; }
.review-card cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; color: var(--paper); font-family: var(--font-display); }
.reviews-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(248,245,236,0.3);
  background: transparent;
  color: var(--paper);
  font-size: 1.4em;
  line-height: 1;
}
.reviews-arrow:hover { border-color: var(--paper); }

/* =====================================================
   PRICES
   ===================================================== */
.prices { padding: clamp(56px, 7vw, 96px) 0; }
.prices-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.prices-strip img { flex: 0 0 260px; border-radius: var(--radius); border: 1px solid var(--line); }
.prices-cta {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--canvas);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
}
.prices-cta p { max-width: 46ch; color: var(--text-soft); }

/* =====================================================
   FAQ
   ===================================================== */
.faq { padding: clamp(56px, 7vw, 96px) 0; background: var(--paper); }
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.08em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3em; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--text-soft); max-width: 62ch; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact { background: var(--ink-soft); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
}
.contact-info h2 { color: var(--paper); }
.contact-info > p { color: #cfd4ce; margin-top: 14px; max-width: 42ch; }
.contact-methods { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-methods li { display: flex; align-items: center; gap: 12px; }
/*.contact-methods img { filter: invert(1); opacity: 0.85; } */
.contact-methods a { text-decoration: none; color: var(--paper); }
.contact-methods a:hover { color: #FFA500; }
#map { margin-top: 26px; width: 100%; height: 260px; border-radius: var(--radius-lg); overflow: hidden; }

.contact-form {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form h3 { margin-bottom: 4px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.92em; color: var(--text-soft); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-item, .contact-form textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.input-item:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: 0.85em; color: var(--text-soft); text-align: center; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--ink); color: var(--paper); padding: 36px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: #cfd4ce; font-size: 0.92em; }
.footer-nav a:hover { color: #FFA500; }
.footer-social { display: flex; gap: 14px; }
.footer-social > a { color: #fff }
.footer-social > a:hover img { filter: none; opacity: 1; }
.footer-social img { filter: drop-shadow(2px 4px 6px black); opacity: 0.85; }
.footer-bottom {
  border-top: 1px solid rgba(248,245,236,0.12);
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85em;
  color: #9aa39c;
}
.footer-bottom a { color: #9aa39c; }
.footer-bottom a:hover { color: var(--paper); }

/* =====================================================
   STICKY MOBILE CTA
   ===================================================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  z-index: 90;
  padding: 10px var(--gutter);
  gap: 10px;
}
.sticky-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88em;
}
.sticky-cta-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* =====================================================
   MODAL / DIALOG (quote + lightbox)
   ===================================================== */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 40px);
  box-shadow: var(--shadow-card);
}
dialog::backdrop { background: rgba(23, 34, 31, 0.6); }
.quote-modal { padding: 30px 30px 24px; position: relative; margin: auto; }
.quote-modal .contact-form { padding: 0; background: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none;
  font-size: 1.6em; line-height: 1;
  color: var(--text-soft);
}
.modal-close:hover { color: var(--accent); }
.modal-success { 
  /*display: flex; */
  flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 0 4px; }
.modal-success img { border-radius: 50%; }

.lightbox { max-width: 100vw; width: 100vw; height: 100vh; background: transparent; box-shadow: none; }
.lightbox img { max-height: 100vh; max-width: 86vw; height: 100%; object-fit: contain; border-radius: var(--radius); margin: auto; }
.lightbox .modal-close { color: var(--paper); top: -36px; right: 0; }
.lightbox-arrow {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(23,34,31,0.6);
  color: var(--paper);
  border: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.6em;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .main-nav, .navbar-cta { display: none; }
  .nav-toggle { display: flex; z-index: 4; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .agitate-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
}

@media (max-width: 900px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--paper);
    padding: 90px 30px 30px;
    gap: 22px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: rotate(45deg); position: relative; top: 3.5px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: rotate(-45deg); position: relative; top: -3.5px; }
    
  .main-nav a { font-size: 1.1em; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .topbar-inner { display: none; justify-content: center; text-align: center; }
  
  .navbar-inner{
    justify-content: space-between;
}