/* ===========================================================
   A+ Carpet Cleaning — styles
   Brand: red / white / blue
   =========================================================== */

:root {
  --navy: #0f2c5c;
  --navy-dark: #0a2047;
  --red: #d11f2a;
  --red-dark: #a8161f;
  --white: #ffffff;
  --offwhite: #f5f7fb;
  --gray: #5a6478;
  --light-gray: #e4e8f0;
  --shadow: 0 8px 30px rgba(15, 44, 92, 0.12);
  --radius: 14px;
  --max: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.6;
  background: var(--white);
}

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

a { color: inherit; text-decoration: none; }

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

section { padding: 72px 0; }

h1, h2, h3 { line-height: 1.15; font-weight: 800; }
h2.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--gray); max-width: 640px; margin: 0 auto 48px; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: 50px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(209, 31, 42, 0.35); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.92rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { font-weight: 600; }
.topbar .tag { opacity: 0.85; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  box-shadow: 0 2px 12px rgba(15, 44, 92, 0.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
.brand .brand-text { font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.brand .brand-text span { color: var(--red); }

/* Trust bar */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--light-gray); padding: 22px 0; }
.trust-bar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.trust-bar .item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.trust-bar .item .ic { color: var(--red); font-size: 1.25rem; }

/* Van / serving band */
.van-band { background: var(--offwhite); }
.van-band .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.van-band img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.van-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 16px; }
.van-band p { color: var(--gray); font-size: 1.08rem; margin-bottom: 22px; }
.van-band .checks { list-style: none; margin-bottom: 26px; }
.van-band .checks li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; color: var(--navy); }
.van-band .checks li::before { content: "✔"; color: var(--red); font-weight: 800; }

/* Team strip */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.team-card .meta { padding: 16px; text-align: center; }
.team-card .meta .name { font-weight: 800; color: var(--navy); }
.team-card .meta .role { color: var(--gray); font-size: 0.9rem; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; color: var(--navy); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 800; color: var(--navy); font-size: 1.05rem; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(209,31,42,0.35), transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 18px; }
.hero h1 .accent { color: #ff5a63; }
.hero p { font-size: 1.2rem; opacity: 0.92; margin-bottom: 32px; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-trust .star { color: #ffc83d; }

/* ---------- Services ---------- */
.services { background: var(--offwhite); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(15,44,92,0.18); }
.service-card .icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff;
  border-radius: 12px; font-size: 1.6rem; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); }

/* ---------- Before / After ---------- */
.beforeafter { background: var(--white); }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.ba-card { box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: var(--light-gray);
}
.ba-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider .img-after { clip-path: inset(0 0 0 50%); }
.ba-label {
  position: absolute;
  top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  color: #fff;
  z-index: 3;
}
.ba-label.before { left: 14px; background: rgba(15,44,92,0.85); }
.ba-label.after { right: 14px; background: var(--red); }
.ba-handle {
  position: absolute;
  top: 0; left: 50%;
  width: 3px; height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(15,44,92,0.25);
}
.ba-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--navy);
  box-shadow: var(--shadow);
  letter-spacing: -2px;
}
.ba-caption { padding: 16px 20px; font-weight: 600; text-align: center; }

/* ---------- Reviews ---------- */
.reviews { background: var(--offwhite); }
/* Horizontal review carousel */
.reviews-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track .review-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}
@media (max-width: 480px) {
  .reviews-track .review-card { flex-basis: 86%; }
}
.reviews-nav { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }
.rev-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.rev-btn:hover { background: var(--red); transform: translateY(-2px); }
.rev-btn:disabled { opacity: 0.35; cursor: default; transform: none; background: var(--navy); }
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.review-stars { color: #ffc107; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-text { color: var(--navy); font-size: 1.05rem; margin-bottom: 20px; flex-grow: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.review-author .name { font-weight: 700; }
.review-author .loc { font-size: 0.85rem; color: var(--gray); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { font-size: 1.15rem; opacity: 0.95; margin-bottom: 28px; }
.cta-band .phone-big {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  background: #fff; color: var(--red);
  padding: 14px 36px; border-radius: 50px;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.cta-band .phone-big:hover { transform: translateY(-3px) scale(1.02); }
.cta-band .cta-alt { font-size: 1rem; margin: 22px 0 0; opacity: 0.95; }
.cta-band .cta-alt a { color: #fff; text-decoration: underline; font-weight: 700; }

/* ---------- Lead form ---------- */
.lead-form { background: var(--offwhite); }
.lead-form form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.lead-form .honey { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy);
  background: var(--offwhite);
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
.form-submit { width: 100%; font-size: 1.05rem; padding: 15px 28px; }
.form-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { margin: 16px 0 0; text-align: center; font-weight: 700; display: none; }
.form-status.success { display: block; color: #1a7f3c; }
.form-status.error { display: block; color: var(--red); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; text-align: center; padding: 70px 0;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.page-hero p { opacity: 0.9; font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* ---------- About ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-split h2 { font-size: 2rem; margin-bottom: 18px; }
.about-split p { color: var(--gray); margin-bottom: 16px; font-size: 1.05rem; }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; margin-top: 20px; }
.value-card { background: var(--offwhite); border-radius: var(--radius); padding: 26px; border-left: 4px solid var(--red); }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--gray); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cdd6e6; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .brand-text { color: #fff; font-size: 1.3rem; font-weight: 800; }
.footer-brand .brand-text span { color: #ff5a63; }
.footer-brand p { margin-top: 12px; max-width: 320px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; font-size: 0.9rem; opacity: 0.8; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .about-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .van-band .container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .lead-form form { padding: 26px 20px; }
}
