/* ==========================================================================
   SparkleClean Co. — Main Stylesheet
   --------------------------------------------------------------------------
   To rebrand: edit the CSS variables in :root below (colors, fonts, radius).
   Sections follow the same order as index.html.
   ========================================================================== */

/* ==========================================================================
   0. DESIGN TOKENS (CSS variables)
   ========================================================================== */
:root {
  /* Brand colors */
  --color-primary: #0e7c86;        /* fresh teal — buttons, links, icons */
  --color-primary-dark: #0a5f67;   /* hover / pressed state */
  --color-primary-light: #e6f5f6;  /* tinted backgrounds, icon circles */
  --color-accent: #8fe3b5;         /* soft mint green — highlights, CTA */
  --color-accent-dark: #5fcf92;
  --color-star: #f5b301;           /* rating stars */

  /* Neutrals */
  --color-text: #1d2b36;
  --color-text-muted: #55636f;
  --color-heading: #0f1f2a;
  --color-bg: #ffffff;
  --color-bg-tint: #f4fafb;        /* alternating section background */
  --color-border: #e2ebee;
  --color-footer: #0c2b31;
  --color-error: #c0392b;
  --color-success: #1e8e57;

  /* Typography */
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 31, 42, 0.06);
  --shadow: 0 10px 30px rgba(15, 31, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 124, 134, 0.18);

  /* Layout */
  --container: 1180px;
  --header-h: 72px;
  --section-pad: clamp(64px, 9vw, 110px);
  --transition: 0.25s ease;
}

/* ==========================================================================
   1. BASE / RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
address { font-style: normal; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sections scroll to just below the sticky header */
section[id] { scroll-margin-top: var(--header-h); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ==========================================================================
   2. LAYOUT HELPERS & BUTTONS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container-narrow { max-width: 820px; }

.section { padding-block: var(--section-pad); }
.section-tint { background: var(--color-bg-tint); }

.section-header {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section-header p:last-child { color: var(--color-text-muted); font-size: 1.075rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  border-radius: var(--radius-pill);
}
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(4px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 18px rgba(14, 124, 134, 0.28); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: var(--shadow-lg); }

.btn-accent { background: var(--color-accent); color: var(--color-heading); }
.btn-accent:hover { background: var(--color-accent-dark); color: var(--color-heading); }

.btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--color-heading); }

/* ==========================================================================
   3. HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--color-border); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
}
.logo strong { color: var(--color-primary); font-weight: 700; }
.logo:hover { color: var(--color-heading); }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light strong { color: var(--color-accent); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 4px; }

.nav-link {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--color-primary); }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   4. HERO
   Swap the Unsplash URL below for your own photo (e.g. images/hero.jpg).
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: 80px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(8, 45, 52, 0.88) 0%, rgba(10, 95, 103, 0.7) 50%, rgba(10, 95, 103, 0.25) 100%),
    url("https://images.unsplash.com/photo-1527515637462-cff94eecc1ac?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat,
    var(--color-primary-dark);
}
.hero-content { max-width: var(--container); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero-sub { max-width: 540px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-rating { font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
.hero-rating .stars { color: var(--color-star); letter-spacing: 2px; margin-right: 6px; }

/* ==========================================================================
   5. TRUST BAR
   ========================================================================== */
.trust-bar { position: relative; z-index: 2; margin-top: -56px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
}
.trust-item + .trust-item { border-left: 1px solid var(--color-border); }
.trust-item h3 { margin: 0 0 2px; font-size: 1rem; }
.trust-item p { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }

/* Shared line-icon styling (trust, services, steps, contact) */
.trust-icon, .service-icon, .step-icon, .info-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 50%;
}
.trust-icon { width: 48px; height: 48px; }
.trust-icon svg, .service-icon svg, .step-icon svg, .info-icon svg,
.slider-btn svg, .back-to-top svg, .social-links svg, .success-icon svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   6. SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon { background: var(--color-primary); color: #fff; }
.service-card p { color: var(--color-text-muted); flex-grow: 1; }
.card-link { font-weight: 600; font-size: 0.95rem; }
.card-link span { display: inline-block; transition: transform var(--transition); }
.card-link:hover span { transform: translateX(4px); }

/* ==========================================================================
   7. HOW IT WORKS
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: none;
}
/* Dashed connector line between steps (desktop only) */
.steps::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 16%;
  right: 16%;
  border-top: 2px dashed #b9dde0;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}
.step-icon {
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.step-icon svg { width: 44%; height: 44%; }
.step-num {
  position: absolute;
  top: 0;
  left: calc(50% + 28px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-heading);
  background: var(--color-accent);
  border: 3px solid var(--color-bg-tint);
  border-radius: 50%;
  z-index: 2;
}
.step p { color: var(--color-text-muted); max-width: 320px; margin-inline: auto; }

/* ==========================================================================
   8. WHY CHOOSE US
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.why-media { position: relative; }
.why-media img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  box-shadow: var(--shadow);
}
.why-badge {
  position: absolute;
  right: -18px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-badge strong { font-family: var(--font-heading); font-size: 2rem; line-height: 1; color: var(--color-primary); }
.why-badge span { font-size: 0.85rem; color: var(--color-text-muted); }

.why-content > p { color: var(--color-text-muted); font-size: 1.05rem; }
.benefit-list { display: grid; gap: 20px; margin: 28px 0 34px; }
.benefit-list li { display: flex; gap: 16px; }
.benefit-list h3 { margin: 0 0 2px; font-size: 1.05rem; }
.benefit-list p { margin: 0; color: var(--color-text-muted); }

/* Green circular checkmark */
.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* ==========================================================================
   9. PRICING
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.price-desc { color: var(--color-text-muted); font-size: 0.95rem; }
.price {
  margin: 10px 0 24px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-heading);
}
.price .currency { font-size: 1.5rem; vertical-align: top; margin-right: 2px; }
.price .per { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); margin-left: 4px; }

.feature-list { display: grid; gap: 12px; margin-bottom: 32px; flex-grow: 1; }
.feature-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* Highlighted "Most Popular" plan */
.price-card.featured {
  padding-block: 52px;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.price-card.featured:hover { transform: translateY(-6px); }
.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-heading);
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   10. BEFORE & AFTER GALLERY (comparison slider)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.ba-card { margin: 0; }
.ba-card figcaption {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  color: var(--color-heading);
}
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-primary-light);
  user-select: none;
}
.ba img,
.ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* "Before" layer is clipped to the left of the slider position */
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* DEMO ONLY: dulls the photo to simulate a "before" state.
   Remove this filter once you use real before photos. */
.ba-before img { filter: grayscale(0.7) sepia(0.35) brightness(0.72) contrast(0.85) blur(0.6px); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 60% no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.ba-label {
  position: absolute;
  top: 14px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.ba-label-before { left: 14px; color: #fff; background: rgba(15, 31, 42, 0.7); }
.ba-label-after { right: 14px; color: var(--color-heading); background: var(--color-accent); }

/* Invisible range input on top captures drag, touch and keyboard */
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba:focus-within { outline: 3px solid var(--color-primary); outline-offset: 3px; }

/* ==========================================================================
   11. TESTIMONIALS (slider)
   ========================================================================== */
.slider { position: relative; display: flex; align-items: center; gap: 12px; }
.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3); /* 3 cards visible on desktop */
  gap: 24px;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 4px 20px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testimonial .stars { color: var(--color-star); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 12px; }
.star-empty { color: #d5dde1; }
.testimonial > p { flex-grow: 1; font-size: 1rem; color: var(--color-text); }
.testimonial footer { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.testimonial cite { display: block; font-style: normal; font-weight: 600; color: var(--color-heading); }
.testimonial footer span:not(.avatar) { font-size: 0.85rem; color: var(--color-text-muted); }
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-dark));
  border-radius: 50%;
}

.slider-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.slider-btn:hover { background: var(--color-primary); color: #fff; }
.slider-btn:disabled { opacity: 0.35; cursor: default; background: #fff; color: var(--color-primary); }

/* ==========================================================================
   12. FAQ (accordion)
   ========================================================================== */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item[open] { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.faq-item summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Plus / minus icon */
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--color-primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--color-primary); }
.faq-answer { padding: 0 24px 20px; color: var(--color-text-muted); }
.faq-answer p { margin: 0; }
.faq-item[open] .faq-answer { animation: faq-open 0.3s ease; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   13. CONTACT / QUOTE FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.contact-info > p { color: var(--color-text-muted); font-size: 1.05rem; }
.info-list { display: grid; gap: 22px; margin-top: 32px; }
.info-list li { display: flex; gap: 16px; }
.info-icon { width: 48px; height: 48px; }
.info-list h3 { margin: 0 0 2px; font-size: 1rem; }
.info-list p, .info-list address, .info-list a { margin: 0; color: var(--color-text-muted); }
.info-list a:hover { color: var(--color-primary); }

.form-card {
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
}
.req { color: var(--color-error); }
.optional { font-weight: 400; color: var(--color-text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fbfdfd;
  border: 1.5px solid #cfdde1;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 124, 134, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #7f8c96; }

/* Error state (toggled by script.js) */
.form-group.has-error input,
.form-group.has-error select { border-color: var(--color-error); }
.form-group.has-error input:focus,
.form-group.has-error select:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.15); }
.error-msg { min-height: 1.2em; margin: 4px 0 0; font-size: 0.82rem; color: var(--color-error); }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 16px; }

/* Success message */
.form-success { text-align: center; padding: 40px 10px; animation: faq-open 0.4s ease; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  color: var(--color-success);
  background: #e3f7ec;
  border-radius: 50%;
}
.success-icon svg { stroke-width: 2.5; }
.form-success p { color: var(--color-text-muted); margin-bottom: 24px; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  padding-top: 72px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--color-footer);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { margin: 16px 0 22px; max-width: 320px; font-size: 0.95rem; }
.site-footer h3 { font-size: 1rem; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--color-accent); }

.social-links { display: flex; gap: 10px; }
.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-links a:hover { background: var(--color-accent); color: var(--color-heading); transform: translateY(-3px); }
.social-links svg .fill { fill: currentColor; stroke: none; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 22px; font-size: 0.875rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   15. BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; background: var(--color-primary-dark); transform: translateY(-3px); }

/* ==========================================================================
   16. SCROLL-REVEAL ANIMATIONS
   Only active when JS runs (html.js), so content is never hidden without JS.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .slider-track { scroll-behavior: auto; }
}

/* ==========================================================================
   17. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ---- Tablet & small laptops ---- */
@media (max-width: 1080px) {
  .primary-nav { gap: 16px; }
  .nav-link { padding: 8px 8px; font-size: 0.9rem; }
  .nav-link::after { left: 8px; right: 8px; }
}

@media (max-width: 960px) {
  /* Mobile navigation drawer */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px 28px;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .primary-nav.open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .nav-link { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--color-primary-light); padding-left: 14px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--color-border); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-media { max-width: 560px; margin-inline: auto; }
  .why-media img { aspect-ratio: 4 / 3; }
  .why-badge { right: 16px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 36px; }
  .price-card.featured { padding-block: 40px; }

  .slider-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .hero { min-height: auto; padding-block: 72px 110px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--color-border); }
  .trust-item { padding: 18px 20px; }

  .services-grid, .gallery-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }

  .form-row { grid-template-columns: 1fr; }

  /* Slider: one card, arrows below-hidden; swipe to navigate */
  .slider-track { grid-auto-columns: 88%; }
  .slider-btn { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
