/* Turbo Carpet Cleaning — main stylesheet */

:root {
  --primary: #0b4a82;
  --primary-dark: #073562;
  --accent: #1d8acb;
  --cream: #faf7f2;
  --text: #1f2937;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --emergency: #b91c1c;
  --emergency-dark: #991b1b;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); font-weight: 700; }
.phone-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.phone-btn:hover { background: var(--primary-dark); text-decoration: none; }

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(11, 74, 130, 0.82) 0%, rgba(29, 138, 203, 0.78) 100%),
    url('carpet-cleaning.jpg') center/cover no-repeat;
  color: #fff;
  padding: 90px 24px 100px;
  text-align: center;
}
.hero * { position: relative; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.95;
}
.hero.small {
  padding: 50px 24px 60px;
}
.hero.small h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.hero.small p { font-size: 1.05rem; margin-bottom: 0; }

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: #fff;
  color: var(--primary);
}
.btn-primary:hover { background: var(--cream); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-primary-solid {
  background: var(--primary);
  color: #fff;
}
.btn-primary-solid:hover { background: var(--primary-dark); }

.btn-emergency {
  background: var(--emergency);
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 32px;
}
.btn-emergency:hover { background: var(--emergency-dark); }

/* Sections */
section {
  padding: 70px 0;
}
section.alt { background: var(--cream); }
section.tight { padding: 50px 0; }

.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 50px;
}

/* Service grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 74, 130, 0.10);
}
.card-icon {
  margin-bottom: 16px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7f2fa;
  color: var(--accent);
  border-radius: 12px;
}
.card-icon svg {
  width: 30px;
  height: 30px;
}
.inline-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  margin-right: 0.35em;
}

.review-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.review-link:hover {
  background: #fffbeb;
  border-color: #fbbf24;
  text-decoration: none;
  transform: translateY(-1px);
}
.review-link svg {
  width: 18px;
  height: 18px;
  color: #fbbf24;
  flex-shrink: 0;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.card p { color: var(--text-muted); font-size: 0.96rem; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 24px; }
}

/* Service detail rows */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}
.service-block.reverse .service-text { order: 2; }
.service-block:last-child { margin-bottom: 0; }
.service-image {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 74, 130, 0.18);
  background: #e2e8f0;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-text h2 {
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.service-text p { margin-bottom: 14px; color: var(--text-muted); }
.service-text ul {
  list-style: none;
  margin-top: 16px;
}
.service-text ul li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
}
.service-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 768px) {
  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .service-block.reverse .service-text { order: 0; }
  .service-image { aspect-ratio: 16 / 9; }
}

/* Highlight strip */
.highlight {
  background: var(--cream);
  padding: 50px 24px;
  text-align: center;
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
}
.highlight h2 {
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.highlight p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Emergency callout */
.emergency-section {
  background: linear-gradient(135deg, #fee2e2, #fef3f2);
  padding: 60px 24px;
  text-align: center;
  border-left: 6px solid var(--emergency);
}
.emergency-section h2 {
  color: var(--emergency-dark);
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.emergency-section p {
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 26px;
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 70px 24px;
  border-radius: 0;
}
.cta-block h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}
.cta-block p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* Contact two-column */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Form */
.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.form-wrap h2 { font-size: 1.4rem; margin-bottom: 6px; color: var(--primary); }
.form-wrap > p.helper { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 22px; }

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 74, 130, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.honeypot { display: none; }

.form-wrap button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.form-wrap button[type="submit"]:hover { background: var(--primary-dark); }

/* Contact info box */
.info-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 32px;
}
.info-box h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.info-line {
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.info-line strong { display: block; color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; color: var(--text-muted); }
.info-line a { color: var(--primary); font-weight: 600; }

/* Promise block */
.promise {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}
.promise h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 16px; }
.promise p { font-size: 1.05rem; color: var(--text-muted); }

/* About story */
.about-story {
  max-width: 800px;
  margin: 0 auto;
}
.about-story p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 18px; }
.about-story h2 { color: var(--primary); margin-bottom: 16px; font-size: 1.7rem; }

.about-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.about-feature .feature-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 30px rgba(11, 74, 130, 0.18);
}
.about-feature .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-feature h2 { color: var(--primary); font-size: 1.7rem; margin-bottom: 16px; }
.about-feature p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 14px; }
@media (max-width: 768px) {
  .about-feature { grid-template-columns: 1fr; gap: 24px; }
  .about-feature .feature-image { aspect-ratio: 16 / 9; }
}

/* Homepage featured image strip */
.feature-strip {
  background:
    linear-gradient(135deg, rgba(11, 74, 130, 0.55) 0%, rgba(7, 53, 98, 0.65) 100%),
    url('van.jpg') center/cover no-repeat;
  background-attachment: scroll;
  color: #fff;
  padding: 90px 24px;
  text-align: center;
}
.feature-strip h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 14px;
  font-weight: 800;
}
.feature-strip p {
  max-width: 700px;
  margin: 0 auto 26px;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Footer */
footer {
  background: #0a1929;
  color: #cbd5e1;
  padding: 50px 24px 30px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
footer p, footer a { color: #cbd5e1; font-size: 0.94rem; line-height: 1.7; }
footer a:hover { color: #fff; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 6px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-heading { color: #fff; margin-bottom: 12px; font-size: 1rem; font-weight: 700; }


/* Mobile sticky call bar */
.sticky-call { display: none; }
@media (max-width: 768px) {
  .sticky-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 24px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  }
  .sticky-call:hover { background: var(--primary-dark); text-decoration: none; }
  .sticky-call svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  /* Keep the bar from covering the footer's last content */
  body:has(.sticky-call) { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

.faq-section { background: #f7f7f7; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.faq-item { background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.faq-item h3 { margin-bottom: 10px; font-size: 1.1rem; }
.faq-item p { color: var(--text-muted); }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
