/* =========================================================
   Special Care Cleaning — styles.css
   Design system: own tokens derived from the approved logo
   (sage green leaf + blush/coral roof), not reused from Kiln.
   ========================================================= */

:root {
  --cream: #FBF8F2;
  --cream-dim: #F3EEE3;
  --paper-line: #E5DFD0;

  --ink: #262B22;
  --ink-soft: #565F4E;
  --ink-mute: #8B9282;

  --sage: #5B8A52;
  --sage-dark: #3F6339;
  --sage-tint: #E8EFE3;

  --blush: #E8A79D;
  --blush-dark: #C97D72;

  --font-display: "Quicksand", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 2px 10px rgba(38, 43, 34, 0.08);
  --shadow-md: 0 14px 34px -10px rgba(38, 43, 34, 0.22);
  --shadow-lg: 0 30px 70px -20px rgba(38, 43, 34, 0.32);

  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 30px;

  --ease: cubic-bezier(.16,.84,.44,1);
  --nav-h: 84px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

section { position: relative; }
::selection { background: var(--sage); color: var(--cream); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; border-radius: 999px; padding: 15px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--sage); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; padding: 15px 24px; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-ghost-dark { background: transparent; color: var(--ink); padding: 15px 22px; border: 1.5px solid var(--paper-line); }
.btn-ghost-dark:hover { border-color: var(--sage); color: var(--sage-dark); }

.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* =========================================================
   Nav
   ========================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); display: flex; align-items: center;
  transition: height .3s ease, background .4s ease;
}
.site-nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(251,248,242,0); backdrop-filter: blur(0px);
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease, border-color .4s ease;
  z-index: -1; border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled { height: 72px; }
.site-nav.is-scrolled::before {
  background: rgba(251,248,242,.92); backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--paper-line);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: #fff; transition: color .3s ease; white-space: nowrap; }
.logo-word em { font-style: normal; }
.logo-word small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: 0.16em; opacity: 0.85; margin-top: -1px; white-space: nowrap; }
.site-nav.is-scrolled .logo-word { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: #fff; transition: color .3s ease; position: relative; }
.site-nav.is-scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--blush); }
.site-nav.is-scrolled .nav-links a:hover { color: var(--sage-dark); }

.nav-cta-group { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(24,28,20,0.82) 0%, rgba(24,28,20,0.55) 38%, rgba(24,28,20,0.15) 68%, rgba(24,28,20,0.05) 100%),
              linear-gradient(0deg, rgba(24,28,20,0.55) 0%, rgba(24,28,20,0.05) 40%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 76px; padding-top: calc(var(--nav-h) + 40px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--blush); margin-bottom: 18px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blush); }

.hero-title { font-size: clamp(38px, 5.4vw, 62px); max-width: 780px; color: #fff; }
.hero-sub { font-size: 18px; line-height: 1.55; max-width: 520px; color: rgba(255,255,255,0.88); margin-top: 20px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip {
  background: var(--ink); color: #fff; padding: 26px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,0.92); }
.trust-item svg { flex-shrink: 0; color: var(--blush); }

/* =========================================================
   Section heading pattern
   ========================================================= */
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 12px; display: block; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--ink-soft); line-height: 1.6; }

/* =========================================================
   Work / Before-After
   ========================================================= */
.work {
  padding: 108px 0 96px;
}
.work-lead {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; margin-bottom: 56px;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.ba-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.ba-card.is-featured { grid-column: span 3; }
.ba-card.is-compact { grid-column: span 3; }
.ba-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ba-card.is-featured .ba-media { aspect-ratio: 16 / 10; }
.ba-split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.ba-split img { width: 100%; height: 100%; object-fit: cover; }
.ba-split::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,0.05); }
.ba-tag { position: absolute; top: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: #fff; }
.ba-tag.is-before { left: 14px; background: rgba(199, 125, 114, 0.92); }
.ba-tag.is-after { right: 14px; background: rgba(63, 99, 57, 0.92); }
.ba-body { padding: 18px 22px 22px; }
.ba-body h4 { font-size: 16.5px; margin-bottom: 4px; }
.ba-body .ba-caption { font-size: 12.5px; color: var(--ink-mute); font-weight: 500; }

/* =========================================================
   Services
   ========================================================= */
.services { padding: 96px 0; background: var(--sage-tint); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--cream); border-radius: var(--radius-md); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--sage);
  display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* =========================================================
   Process
   ========================================================= */
.process { padding: 90px 0; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.process-grid::before {
  content: ""; position: absolute; top: 24px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--paper-line) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.process-num {
  width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 19px; margin-bottom: 22px;
}
.process-step h3 { font-size: 18.5px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; max-width: 280px; }

/* =========================================================
   Final CTA / Contact
   ========================================================= */
.final-cta { background: var(--ink); color: #fff; padding: 96px 0; }
.final-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.final-copy .kicker { color: var(--blush); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.final-copy h2 { font-size: clamp(28px, 3.4vw, 38px); color: #fff; }
.final-copy p { margin-top: 16px; font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.6; max-width: 420px; }
.final-contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.final-contact-list a { font-size: 15px; color: rgba(255,255,255,0.9); font-weight: 600; }
.final-contact-list a:hover { color: var(--blush); }

.quote-form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; color: rgba(255,255,255,0.65); }
.form-field input, .form-field textarea {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  padding: 13px 15px; color: #fff; font-family: var(--font-body); font-size: 14.5px; resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--sage); }
.quote-form .btn { margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--cream-dim); padding: 52px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-mark { width: 32px; height: 32px; }
.footer-brand .logo-word { color: var(--ink); }
.footer-tagline { font-size: 13.5px; color: var(--ink-mute); margin-top: 10px; max-width: 260px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.footer-col a:hover { color: var(--sage-dark); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--paper-line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12.5px; color: var(--ink-mute); }
.footer-demo-note { font-size: 12px; color: var(--ink-mute); max-width: 560px; line-height: 1.5; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .service-card, .btn { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .work-lead { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .final-inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .process-grid { grid-template-columns: 1fr; gap: 34px; }
  .process-grid::before { display: none; }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-cta-group .btn-primary { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: background .3s ease; }
  .site-nav.is-scrolled .nav-toggle span { background: var(--ink); }
  .hero { min-height: 100vh; align-items: flex-end; }
  .hero-inner { padding-bottom: 56px; }
  .ba-card.is-featured, .ba-card.is-compact { grid-column: span 6; }
  .service-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .btn-lg { padding: 15px 24px; font-size: 15px; }
  .logo-word { font-size: 16px; }
  .logo-word small { display: none; }
  .logo-mark { width: 32px; height: 32px; }
}

/* Mobile nav panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 199; background: var(--cream);
  display: flex; flex-direction: column; padding: 110px 32px 40px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 26px; }
.mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); }
.mobile-menu .btn { margin-top: 30px; align-self: flex-start; }
