/* ============================================================
   EZ Clean Junk Removal — styles
   Brand colors are injected as CSS vars by renderer.js from
   data/site.json (site.colors). Defaults below are fallbacks.
   ============================================================ */

:root {
  --navy:  #12263a;
  --green: #1a7a4a;
  --mint:  #4dd98a;
  --orange:#ff7a2f;
  --wash:  #e8f7ef;
  --bg:    #f8f8f6;
  --border:#e8e8e4;
  --muted: #6b7280;
  --ink:   #111418;

  --shadow-sm: 0 1px 2px rgba(18,38,58,.06), 0 1px 3px rgba(18,38,58,.08);
  --shadow-md: 0 4px 12px rgba(18,38,58,.08), 0 2px 4px rgba(18,38,58,.06);
  --shadow-lg: 0 12px 32px rgba(18,38,58,.14);
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

/* ── Navigation ───────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.nav-brand img { height: 34px; width: auto; object-fit: contain; border-radius: 6px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 8px; }
.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--wash); color: var(--green); }
.nav-link.nav-cta { background: var(--orange); color: #fff; }
.nav-link.nav-cta:hover { background: #ec6a1f; color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(165deg, var(--green) 0%, #14633c 100%);
  padding: 72px 24px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(77,217,138,.25), transparent 70%);
  pointer-events: none;
}
.hero-logo { height: 120px; width: auto; object-fit: contain; margin-bottom: 28px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.hero h1 { font-size: 60px; font-weight: 900; color: #fff; line-height: 1.02; margin-bottom: 20px; letter-spacing: -2px; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero-sub { font-size: 16px; color: var(--wash); line-height: 1.7; margin-bottom: 30px; max-width: 520px; }

.hero-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn {
  border: none;
  border-radius: 9px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255,122,47,.4); }
.btn-primary:hover { background: #ec6a1f; box-shadow: 0 8px 22px rgba(255,122,47,.5); transform: translateY(-1px); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: #0c1a2a; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }

.trust-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #fff; font-weight: 600; }
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(77,217,138,.25); }

/* ── Stats bar ────────────────────────────────────────────── */
.stats { background: var(--navy); padding: 22px 24px; display: flex; justify-content: center; gap: 8px 48px; flex-wrap: wrap; }
.stat { text-align: center; min-width: 110px; }
.stat-num { font-size: 22px; font-weight: 900; color: var(--mint); letter-spacing: -.5px; }
.stat-lbl { font-size: 10px; color: #8aaccc; margin-top: 3px; letter-spacing: 1.2px; text-transform: uppercase; }

/* ── Section scaffolding ──────────────────────────────────── */
.section { padding: 64px 24px; }
.section--alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-rule { width: 32px; height: 3px; background: var(--green); border-radius: 2px; margin: 0 auto 14px; }
.section-head h2 { font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -1px; margin-bottom: 8px; }
.section-head p { font-size: 14px; color: var(--muted); }

/* ── Services ─────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.svc {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mint); }
.svc-icon { font-size: 32px; margin-bottom: 14px; line-height: 1; }
.svc h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.svc p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── How it works ─────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { padding: 24px 22px; border-left: 3px solid var(--green); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.step-num { font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: 2px; margin-bottom: 10px; }
.step h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── Quote form ───────────────────────────────────────────── */
.quote-form .section-inner { max-width: 620px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; color: #374151; display: block; margin-bottom: 6px; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,122,74,.14);
}
.field textarea { resize: vertical; min-height: 90px; }
.photo-add { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--green); border: 1.5px dashed var(--green); border-radius: 9px; padding: 11px 18px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s ease, opacity .15s ease; }
.photo-add:hover { background: var(--wash); }
.photo-add:disabled { opacity: .5; cursor: default; }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-thumb { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb__del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(18,38,58,.78); color: #fff; font-size: 11px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-thumb__del:hover { background: var(--navy); }
.form-submit { background: var(--green); color: #fff; border: none; border-radius: 9px; padding: 15px 32px; font-size: 15px; font-weight: 800; cursor: pointer; width: 100%; transition: background .15s ease, transform .15s ease; }
.form-submit:hover { background: #15623b; transform: translateY(-1px); }
.form-submit:disabled { opacity: .65; cursor: default; transform: none; }
.form-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }
.form-msg { border-radius: 9px; padding: 16px 18px; font-size: 14px; font-weight: 600; margin-top: 4px; }
.form-msg.success { background: var(--wash); color: var(--green); border: 1px solid var(--mint); display: none; }
.form-msg.error { background: #fdecec; color: #b42318; border: 1px solid #f3c0bb; display: none; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { background: linear-gradient(165deg, var(--green) 0%, #14633c 100%); padding: 40px 24px; }
.cta-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta-band h2 { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.cta-band p { font-size: 14px; color: var(--wash); margin-top: 5px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Generic text block ───────────────────────────────────── */
.block-text .section-inner { max-width: 720px; }
.block-text h2 { font-size: 26px; font-weight: 900; color: var(--ink); margin-bottom: 14px; letter-spacing: -.5px; }
.block-text p { font-size: 15px; color: #374151; line-height: 1.75; margin-bottom: 14px; }

/* ── Footer ───────────────────────────────────────────────── */
#site-footer { background: var(--navy); padding: 36px 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { height: 50px; width: auto; background: #fff; border-radius: 8px; padding: 5px 11px; }
.footer-info { font-size: 12px; color: #8aaccc; text-align: center; line-height: 1.9; }
.footer-info a { color: var(--mint); text-decoration: none; font-weight: 700; }
.footer-tagline { font-size: 13px; font-weight: 800; color: var(--mint); }

/* ── Scroll reveal ────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .hero h1 { font-size: 40px; }
  .hero-logo { height: 96px; }
  .section { padding: 48px 20px; }
  .section-head h2 { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
