/* ============================================================
   CBM PREMIUM CSS — Coberminas Toldos e Coberturas
   Versão 3.0 | Padrão Google E-E-A-T | BH/MG
   ============================================================ */

:root {
  --primary: #0a2d52;
  --primary-light: #1a5fa8;
  --accent: #e85d04;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --text: #1e293b;
  --text-light: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --bg-warm: #fff7f0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-wa: 0 4px 20px rgba(37,211,102,.35);
  --shadow-primary: 0 4px 20px rgba(10,45,82,.3);
  --transition: .2s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── WRAPPER ── */
.cbm-wrap { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem; }
.cbm-wrap-wide { max-width: 1140px; margin: 0 auto; padding: 2rem 1.25rem; }

/* ── HEADER ── */
.cbm-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.cbm-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cbm-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.cbm-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  padding: 2px;
}
.cbm-logo-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.2;
}
.cbm-logo-text span {
  display: block;
  font-size: .7rem;
  opacity: .85;
  font-weight: 400;
}
.cbm-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.cbm-nav a {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: color var(--transition);
}
.cbm-nav a:hover { color: #fff; }
.cbm-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--whatsapp);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.cbm-btn-wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.cbm-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem;
}
.cbm-mobile-nav {
  display: none;
  background: rgba(10,45,82,.97);
  padding: .75rem 1.25rem 1rem;
}
.cbm-mobile-nav a {
  display: block;
  color: #fff;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.cbm-mobile-nav a:last-child { border-bottom: none; }
.cbm-mobile-nav.open { display: block; }

@media (max-width: 768px) {
  .cbm-nav { display: none; }
  .cbm-mobile-toggle { display: block; }
}

/* ── BREADCRUMB ── */
.cbm-breadcrumb {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}
.cbm-breadcrumb a { color: var(--primary); font-weight: 500; }
.cbm-breadcrumb span { color: var(--text-muted); }

/* ── SERVICE BADGE ── */
.cbm-service-badge {
  display: inline-block;
  background: rgba(232,93,4,.15);
  color: var(--accent);
  border: 1px solid rgba(232,93,4,.3);
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

/* ── HERO ── */
.cbm-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin: 1rem 0 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cbm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cbm-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .6rem;
  line-height: 1.2;
  position: relative;
}
.cbm-hero p {
  font-size: .95rem;
  opacity: .9;
  margin-bottom: 1.25rem;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cbm-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  position: relative;
}

/* ── SYNONYMS BAR ── */
.cbm-synonyms {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .75rem 1rem;
  margin: 1rem 0 1.5rem;
  font-size: .82rem;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.7;
}
.cbm-synonyms strong { color: var(--primary); }

/* ── BUTTONS ── */
.btn-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  margin: 6px 4px;
  box-shadow: var(--shadow-wa);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-cta-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
  color: #fff;
  text-decoration: none;
}
.btn-cta-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  margin: 6px 4px;
  box-shadow: var(--shadow-primary);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-cta-site:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10,45,82,.45);
  color: #fff;
  text-decoration: none;
}
.btn-cta-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #c44a00);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  margin: 6px 4px;
  box-shadow: 0 4px 20px rgba(232,93,4,.35);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-cta-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232,93,4,.5);
  color: #fff;
  text-decoration: none;
}

/* ── SECTION TITLES ── */
.cbm-section-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--primary);
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.cbm-section-intro {
  color: var(--text-light);
  font-size: .92rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ── GALLERY ── */
.cbm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.cbm-gallery img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  transition: transform .4s;
}
.cbm-gallery img:hover { transform: scale(1.04); }
@media (max-width: 600px) {
  .cbm-gallery { grid-template-columns: repeat(2, 1fr); }
  .cbm-gallery img { height: 145px; }
}

/* ── CARDS ── */
.cbm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .85rem;
  margin: 1rem 0 1.5rem;
}
.cbm-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  font-size: .88rem;
  color: var(--text-light);
  transition: box-shadow var(--transition), transform var(--transition);
  background: #fff;
}
.cbm-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cbm-card-icon {
  font-size: 1.75rem;
  margin-bottom: .5rem;
  display: block;
}
.cbm-card h3 {
  font-size: .92rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .3rem;
}

/* ── FEATURES LIST ── */
.cbm-feat-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .5rem;
  margin: 1rem 0;
}
.cbm-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .5rem .75rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.5;
}
.cbm-feat-list li::before {
  content: '✓';
  color: var(--whatsapp-dark);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ── CTA BOX ── */
.cbm-cta-box {
  background: linear-gradient(135deg, #fff7f0, #fff3e8);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}
.cbm-cta-box h2 {
  color: var(--accent);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: .5rem;
}
.cbm-cta-box p {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.cbm-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}

/* ── NEARBY / OTHER SERVICES ── */
.cbm-nearby,
.cbm-other-serv {
  margin: 1.5rem 0;
}
.cbm-nearby h2,
.cbm-other-serv h2 {
  font-size: .95rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .6rem;
}
.cbm-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
}
.cbm-tag-list li a {
  background: var(--bg-light);
  color: var(--primary);
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  display: inline-block;
}
.cbm-tag-list li a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ── TRUST BADGES ── */
.cbm-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.cbm-trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 600;
}
.cbm-trust-item span:first-child { font-size: 1.3rem; }

/* ── FAQ SECTION ── */
.cbm-faq { margin: 2rem 0; }
.cbm-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.cbm-faq-item:last-child { border-bottom: none; }
.cbm-faq-q {
  font-weight: 700;
  color: var(--primary);
  font-size: .95rem;
  margin-bottom: .4rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.cbm-faq-q::before {
  content: 'P:';
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: .1rem;
}
.cbm-faq-a {
  color: var(--text-light);
  font-size: .88rem;
  line-height: 1.7;
  padding-left: 1.5rem;
}

/* ── STATS ROW ── */
.cbm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}
.cbm-stat {
  text-align: center;
  padding: 1rem .75rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.cbm-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}
.cbm-stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

/* ── FLOATING WHATSAPP ── */
.cbm-float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--whatsapp);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: cbm-pulse-wa 2.5s infinite;
}
.cbm-float-wa:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37,211,102,.6);
  color: #fff;
  text-decoration: none;
}
.cbm-float-wa svg { width: 30px; height: 30px; fill: #fff; }
@keyframes cbm-pulse-wa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.12); }
}

/* ── FOOTER ── */
.cbm-footer {
  background: linear-gradient(135deg, var(--primary), #061a33);
  color: #cbd5e1;
  padding: 2rem 1.25rem 1.25rem;
  margin-top: 3rem;
}
.cbm-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.cbm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.cbm-footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: .5rem;
}
.cbm-footer-brand strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}
.cbm-footer-brand p {
  font-size: .8rem;
  opacity: .8;
  margin-top: .3rem;
  line-height: 1.5;
}
.cbm-footer-col h3 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cbm-footer-col ul { list-style: none; }
.cbm-footer-col ul li {
  margin-bottom: .3rem;
}
.cbm-footer-col ul li a {
  color: #94a3b8;
  font-size: .82rem;
  text-decoration: none;
  transition: color var(--transition);
}
.cbm-footer-col ul li a:hover { color: #fff; }
.cbm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  text-align: center;
  font-size: .78rem;
  opacity: .7;
}
.cbm-footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

/* ── ALERT / INFO BOX ── */
.cbm-alert {
  background: #eff6ff;
  border-left: 4px solid var(--primary-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
  font-size: .88rem;
  color: var(--primary);
  line-height: 1.6;
}
.cbm-alert strong { color: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .cbm-hero { padding: 1.75rem 1.25rem; }
  .cbm-cta-box { padding: 1.5rem 1rem; }
  .cbm-stats { grid-template-columns: repeat(2, 1fr); }
  .cbm-trust-bar { gap: .75rem; }
  .btn-cta-wa, .btn-cta-site, .btn-cta-accent {
    padding: 12px 20px;
    font-size: .9rem;
  }
  .cbm-float-wa { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .cbm-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .cbm-footer-grid { grid-template-columns: 1fr; }
}
