/* ===========================
   BASE (shared) — typography, layout, components
   =========================== */

/* Reset / base */
:root{
  --container: 760px;

  /* common tokens */
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-14: 14px;

  --badge-bg: #b71c1c;
  --cta-bg: #e53935;
  --fab-bg: #22c55e;

  /* default (theme overrides these) */
  --bg: #ffffff;
  --text: #0f172a;
  --muted: rgba(15,23,42,.78);
  --muted-2: rgba(15,23,42,.60);

  --panel-bg: #ffffff;
  --panel-border: rgba(15,23,42,.12);
  --divider: rgba(15,23,42,.12);

  --shadow-cta: 0 10px 30px rgba(0,0,0,.18);
  --shadow-card: 0 10px 24px rgba(15,23,42,.06);
  --shadow-card-soft: 0 10px 24px rgba(15,23,42,.04);

  --lock-left: var(--cta-bg);
  --accent-blue-bg: rgba(53,156,229,.14);
  --accent-blue-border: rgba(53,156,229,.20);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

/* Headings */
h1{
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--text);
}
h2{
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 20px 0;
}

/* Badge */
.badge{
  display:inline-block;
  background: var(--badge-bg);
  color:#fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

/* CTA */
.cta{
  display:block;
  background: var(--cta-bg);
  color:#fff;
  text-align:center;
  padding: 18px;
  font-size: 20px;
  font-weight: 700;
  text-decoration:none;
  border-radius: var(--radius-8);
  margin: 22px 0 10px;
  box-shadow: var(--shadow-cta);
}
.cta-tight{ margin-top: 12px; }

/* keep your internal CTA text rules */
.cta span{ padding-top: 10px; margin: 0; color:#fff; }
.cta p{
  color:#fff;
  text-decoration:none;
  text-align:center;
  margin:0 auto;
  width:100%;
  font-weight:100;
  font-size: 16px;
}

/* Hero trust line */
.trust{
  font-size: 13px;
  color: var(--muted-2);
  text-align:center;
  margin: 16px 0 22px;
}

/* Panels (lock/panic/card/etc.) */
.panel{
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-10);
}

.panel--left{
  border-left: 4px solid var(--lock-left);
}

.lock{
  padding: 18px;
  margin: 0;
  font-size: 15px;
  box-shadow: var(--shadow-card);
  color: var(--text);
}
.lock.panel{ /* ensure consistent borders */
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-10);
}
.lock.panel--left{ border-left: 4px solid var(--lock-left); }

.panic{
  padding: 20px;
  margin: 28px 0;
  box-shadow: var(--shadow-card);
}
.panic h3{
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}
.panic ul{
  padding-left: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}
.panic li{ margin-bottom: 8px; }
.panic p{ font-size: 15px; }

.section{ margin: 34px 0; }
.section h3{
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--text);
}
.section p{
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
  font-size: 15px;
}

.divider{
  height: 1px;
  background: var(--divider);
  margin: 46px 0;
}

/* Sticky bar (kept) */
.sticky{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--cta-bg);
  text-align:center;
  padding: 16px;
  z-index: 999;
}
.sticky a{
  color:#fff;
  font-size: 18px;
  font-weight:700;
  text-decoration:none;
}

/* Hero wrapper (only structure here; theme/page sets overlay + image) */
.hero{
  padding-bottom: 20px;
  padding-top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contractor avatar */
.contractor img{
  border-radius: 50%;
  overflow: hidden;
}

/* CTA icon */
.cta-ico{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items:center;
  margin: 0 10px 0 0;
}
.cta-ico svg{
  width: 18px;
  height: 18px;
  opacity: .95;
}

/* Trust logos row */
.trust-logos{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 8px;
}
@media (min-width:560px){
  .trust-logos{ grid-template-columns: repeat(3, 1fr); }
}

.trust-logo{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-12);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--shadow-card);
}
.trust-logo img{
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.12));
}
.trust-logo span{
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
}
.trust-logo picture{ display:inline-block; line-height:0; }
.trust-logo picture img{ display:block; }

.trust-logos--compact .trust-logo{
  box-shadow: none; /* theme may override */
}
.trust-logos--compact .trust-logo img{ width: 40px; height: 40px; }

/* Cards / grids */
.grid-3{
  display:grid;
  gap: 12px;
  margin: 18px 0 10px;
}
@media (min-width:740px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

.card{
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-14);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card h4{
  margin: 10px 0 6px;
  font-size: 16px;
  color: var(--text);
}
.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px; /* theme may override */
}

/* Icon inside cards */
.icon{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
  border-radius: var(--radius-14);
  background: var(--accent-blue-bg);
  border: 1px solid var(--accent-blue-border);
}
.icon svg{
  width: 22px;
  height: 22px;
  opacity: .92;
}

/* Services */
.services{
  display:grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}
@media (min-width:740px){
  .services{ grid-template-columns: 1fr 1fr; }
}
.svc{
  padding: 12px;
  border-radius: var(--radius-12);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--muted);
  box-shadow: var(--shadow-card-soft);
}

.note{
  margin-top: 12px;
  padding: 12px;
  border-left: 4px solid var(--cta-bg);
  border-radius: var(--radius-10);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--muted);
  box-shadow: var(--shadow-card);
}

/* Reviews */
.reviews{
  display:grid;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width:740px){
  .reviews{ grid-template-columns: repeat(3, 1fr); }
}
.review{
  padding: 16px;
  border-radius: var(--radius-14);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--shadow-card);
}
.stars{
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 8px;
}
.review p{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}
.who{
  font-size: 12px;
  color: var(--muted-2);
}
.mini-trust{
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 13px;
}

/* FAQ */
.faq{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}
.faq details{
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-12);
  background: var(--panel-bg);
  padding: 12px 14px;
  box-shadow: var(--shadow-card-soft);
}
.faq summary{
  cursor:pointer;
  font-weight:700;
  color: var(--text);
}
.faq p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* About badges */
.about-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pill{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(15,23,42,.04); /* theme can override */
  font-size: 12px;
  color: var(--muted);
}

/* White-back section */
.white-back{
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 22px;
  border-radius: var(--radius-14);
  box-shadow: var(--shadow-card);
}

/* Stats */
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 6px;
}
.stat{
  text-align:center;
  padding: 12px 10px;
  border-radius: var(--radius-12);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-card);
}
.stat strong{
  display:block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.stat span{
  display:block;
  font-size: 12px;
  margin-top: 4px;
  color: var(--muted);
}
@media (max-width:420px){
  .stat strong{ font-size: 16px; }
  .stat span{ font-size: 11px; }
}

/* Floating call button */
.fab-call{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: var(--fab-bg);
  z-index: 1000;
  text-decoration:none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 14px 30px rgba(0,0,0,.20);
  border: 1px solid var(--panel-border);
}
.fab-call svg{
  width: 26px;
  height: 26px;
  fill: #fff;
}

.fab-call-label{
  position: fixed;
  right: 86px;
  bottom: 22px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-decoration:none;
  z-index: 1000;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

/* Responsive typography */
@media (min-width:819px){
  .hero{ padding-bottom: 30px; padding-top: 20px; }
  h2{ font-size: 18px; }
}
@media (max-width:818px){
  h2{ font-size: 15px; line-height: 1.45; }
  h1{ font-size: 32px; }
}
