/* Chimney sweep theme — mobile-first */

:root {
  --brand: #1e3a5f;        /* overridden by platform via config.theme_color */
  --brand-dark: #122540;
  --accent: #e8720c;
  --accent-hover: #cf620a;
  --wa: #25d366;
  --wa-hover: #1ebe5a;
  --text: #1a1a2e;
  --muted: #5a5a72;
  --bg: #f5f7fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utility ─────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0; }
.section--alt { background: var(--bg); }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-sub { color: var(--muted); margin-bottom: 2rem; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-call { background: var(--accent); color: var(--white); font-size: 1.1rem; padding: .9rem 2rem; }
.btn-call:hover { background: var(--accent-hover); }

.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); }

.btn-secondary { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-secondary:hover { background: var(--brand); color: var(--white); }

.btn-lg { font-size: 1.15rem; padding: 1rem 2.2rem; }

/* ── Sticky header ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: var(--white);
  padding: .7rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .logo-wrap { display: flex; align-items: center; gap: .75rem; }
.site-header .logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.15); }
.site-header .logo-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.site-header .biz-name { font-weight: 700; font-size: 1rem; }
.site-header a.btn-call { font-size: .9rem; padding: .55rem 1.2rem; white-space: nowrap; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, #2c5282 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.hero .hero-sub { font-size: 1.1rem; opacity: .88; margin-bottom: .5rem; }
.hero .hero-region { font-size: .95rem; opacity: .7; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Trust strip ─────────────────────────────────────── */
.trust-strip { background: var(--brand-dark); color: var(--white); padding: 1rem 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: .4rem; font-size: .9rem; opacity: .9; }

/* ── Services ─────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 540px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.service-card .icon { font-size: 2rem; margin-bottom: .75rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.service-card p { font-size: .9rem; color: var(--muted); }

/* ── Recent work gallery ─────────────────────────────── */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 540px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid #e2e8f0;
}
.work-img img, .work-img .work-video { width: 100%; height: 200px; object-fit: cover; display: block; }
.work-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #cbd5e0, #a0aec0); }
.work-body { padding: 1rem; }
.work-body h3 { font-size: 1rem; margin-bottom: .3rem; }
.work-body p { font-size: .875rem; color: var(--muted); }
.work-empty { color: var(--muted); font-style: italic; }
.work-more { display: inline-block; margin-top: 1.25rem; font-weight: 600; color: var(--brand); text-decoration: none; font-size: .95rem; }
.work-more:hover { text-decoration: underline; }

/* ── Carousel ─────────────────────────────────────────── */
.carousel { position: relative; width: 100%; height: 200px; overflow: hidden; }
.carousel-slide { display: none; width: 100%; height: 100%; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; height: 200px; object-fit: cover; display: block; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; width: 28px; height: 44px; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.carousel-prev { left: 0; border-radius: 0 3px 3px 0; }
.carousel-next { right: 0; border-radius: 3px 0 0 3px; }
.carousel-dots { position: absolute; bottom: .4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .3rem; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0; transition: background .15s; }
.carousel-dot.active { background: #fff; }

/* ── How it works ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { text-align: center; }
.step-num {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* ── Review CTA ─────────────────────────────────────── */
.review-cta {
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}
.review-cta h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.review-cta p { opacity: .85; margin-bottom: 1.5rem; }

/* ── Contact ─────────────────────────────────────────── */
.contact-wrap { display: grid; gap: 2rem; }
@media (min-width: 640px) { .contact-wrap { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact-info h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-info .cta-stack { display: flex; flex-direction: column; gap: .75rem; }
.contact-info .cta-stack .btn { justify-content: center; }

form .field { margin-bottom: 1rem; }
form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .3rem; }
form input, form textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid #cbd5e0; border-radius: 8px;
  font: inherit; font-size: .95rem;
  transition: border-color .2s;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--brand); }
form textarea { min-height: 110px; resize: vertical; }
form [type="submit"] {
  width: 100%; padding: .85rem;
  background: var(--brand); color: var(--white);
  border: none; border-radius: 50px;
  font: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
form [type="submit"]:hover { background: var(--brand-dark); }
form [type="submit"]:disabled { opacity: .6; cursor: default; }
[data-contact-status] { margin-top: .75rem; color: #38a169; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.8);
  padding: 2rem 0;
  font-size: .875rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }

/* ── WhatsApp float ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 200;
  background: var(--wa);
  color: var(--white);
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, background .2s;
}
.wa-float:hover { background: var(--wa-hover); transform: scale(1.08); }
.wa-float span { line-height: 1; }
