/*
Theme Name: Comunicacao em Massa
Theme URI: https://comunicacaoemmassa.com.br
Author: Gear Tecnologia LTDA
Author URI: https://geartecnologia.com.br
Description: Tema oficial da plataforma Comunicacao em Massa - landing page e blog otimizados para SEO 2026.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: business, blog, landing-page, seo-ready, custom-colors
Text Domain: comunicacao-massa
*/

:root {
  --cm-primary: #2BA84A;
  --cm-primary-dark: #1c8a3a;
  --cm-primary-light: #f5f9f5;
  --cm-text: #1c1b1b;
  --cm-text-muted: #6c757d;
  --cm-border: #e8e8e8;
  --cm-bg: #ffffff;
  --cm-bg-alt: #f8f9fa;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--cm-text);
  font-size: 16px;
  line-height: 1.6;
  background: var(--cm-bg);
}

a { color: var(--cm-primary); text-decoration: none; }
a:hover { color: var(--cm-primary-dark); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.cm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cm-border);
}
.cm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.cm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cm-text);
}
.cm-logo .icon { color: var(--cm-primary); font-size: 26px; }
.cm-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.cm-nav a.cm-nav__link {
  color: var(--cm-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.cm-nav a.cm-nav__link:hover { color: var(--cm-primary); }

.cm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.cm-btn--primary {
  background: var(--cm-primary);
  color: #fff;
  border-color: var(--cm-primary);
}
.cm-btn--primary:hover { background: var(--cm-primary-dark); border-color: var(--cm-primary-dark); color: #fff; }
.cm-btn--outline {
  border-color: var(--cm-primary);
  color: var(--cm-primary);
  background: transparent;
}
.cm-btn--outline:hover { background: var(--cm-primary); color: #fff; }
.cm-btn--ghost { background: transparent; color: var(--cm-text-muted); }
.cm-btn--lg { padding: 14px 28px; font-size: 1rem; }

/* ===== Hero ===== */
.cm-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, var(--cm-primary-light) 100%);
}
.cm-hero__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 991px) {
  .cm-hero__row { grid-template-columns: 1fr; }
}
.cm-hero__badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(43,168,74,0.1);
  color: var(--cm-primary);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.cm-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
}
.cm-hero h1 .accent { color: var(--cm-primary); }
.cm-hero__lead {
  color: var(--cm-text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 0 28px;
}
.cm-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cm-hero__trust {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--cm-text-muted);
}

/* Floating bubbles */
.cm-bubbles {
  position: relative;
  height: 320px;
}
.cm-bubble {
  position: absolute;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  animation: cm-float 4s ease-in-out infinite;
}
.cm-bubble--sent {
  background: var(--cm-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cm-bubble--received {
  background: #fff;
  color: var(--cm-text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--cm-border);
}
@keyframes cm-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Sections ===== */
.cm-section { padding: 80px 0; }
.cm-section--alt { background: var(--cm-bg-alt); }
.cm-section__head {
  text-align: center;
  margin-bottom: 48px;
}
.cm-section__head h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.cm-section__head p { color: var(--cm-text-muted); font-size: 1.05rem; margin: 0; }

/* ===== Cards ===== */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cm-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--cm-border);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(43,168,74,0.15);
}
.cm-feature-icon {
  width: 48px; height: 48px;
  background: var(--cm-primary-light);
  color: var(--cm-primary);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.cm-card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.cm-card p { color: var(--cm-text-muted); font-size: 0.95rem; margin: 0; }

/* Steps */
.cm-step-num {
  width: 56px; height: 56px;
  background: var(--cm-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ===== Pricing ===== */
.cm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.cm-pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 2px solid var(--cm-border);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.cm-pricing-card--featured {
  border-color: var(--cm-primary);
  background: linear-gradient(180deg, #fff 0%, #f8fcf9 100%);
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(43,168,74,0.15);
}
.cm-pricing-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cm-primary);
  color: #fff;
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
}
.cm-price { font-size: 2.5rem; font-weight: 800; color: var(--cm-text); }
.cm-price__sub { color: var(--cm-text-muted); font-size: 0.95rem; }
.cm-check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
  flex-grow: 1;
}
.cm-check-list li {
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
}
.cm-check-list li::before {
  content: "✓";
  color: var(--cm-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.cm-check-list li.muted { color: var(--cm-text-muted); }
.cm-check-list li.muted::before { content: "•"; color: var(--cm-text-muted); }

/* Comparison table */
.cm-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cm-table th, .cm-table td {
  padding: 14px;
  border: 1px solid var(--cm-border);
}
.cm-table th { background: var(--cm-bg-alt); font-weight: 700; }
.cm-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.02); }
.cm-table .col-featured { background: rgba(43,168,74,0.04); }

/* ===== FAQ ===== */
.cm-faq { max-width: 800px; margin: 0 auto; }
.cm-faq__item {
  background: #fff;
  border: 1px solid var(--cm-border);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 16px 20px;
}
.cm-faq__item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.cm-faq__item summary::-webkit-details-marker { display: none; }
.cm-faq__item summary::after {
  content: "+";
  color: var(--cm-primary);
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.2s;
}
.cm-faq__item[open] summary::after { content: "−"; }
.cm-faq__item p {
  margin-top: 12px;
  color: var(--cm-text-muted);
  font-size: 0.95rem;
}

/* ===== CTA section ===== */
.cm-cta {
  background: linear-gradient(135deg, var(--cm-primary) 0%, var(--cm-primary-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cm-cta h2 { color: #fff; margin: 0 0 12px; font-size: 2rem; }
.cm-cta p { opacity: 0.9; margin-bottom: 24px; }
.cm-cta .cm-btn--primary {
  background: #fff;
  color: var(--cm-primary);
  border-color: #fff;
}
.cm-cta .cm-btn--primary:hover { background: #f5f5f5; color: var(--cm-primary-dark); }

/* ===== Footer ===== */
.cm-footer {
  border-top: 1px solid var(--cm-border);
  padding: 48px 0 24px;
  background: var(--cm-bg-alt);
}
.cm-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .cm-footer__grid { grid-template-columns: 1fr; }
}
.cm-footer h4 { font-size: 0.9rem; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.cm-footer ul { list-style: none; padding: 0; margin: 0; }
.cm-footer li { margin-bottom: 8px; }
.cm-footer a { color: var(--cm-text-muted); font-size: 0.9rem; }
.cm-footer__bottom {
  border-top: 1px solid var(--cm-border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cm-text-muted);
  font-size: 0.85rem;
}

/* ===== Blog ===== */
.cm-page-header {
  background: linear-gradient(180deg, #fff 0%, var(--cm-primary-light) 100%);
  padding: 60px 0 40px;
  text-align: center;
}
.cm-page-header h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  font-weight: 800;
}
.cm-page-header p { color: var(--cm-text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

.cm-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.cm-post-card {
  background: #fff;
  border: 1px solid var(--cm-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.cm-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(43,168,74,0.12);
}
.cm-post-card__image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--cm-primary) 0%, var(--cm-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 64px;
}
.cm-post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.cm-post-card__body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.cm-post-card__meta {
  font-size: 0.8rem;
  color: var(--cm-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cm-post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}
.cm-post-card__title a { color: var(--cm-text); }
.cm-post-card__title a:hover { color: var(--cm-primary); text-decoration: none; }
.cm-post-card__excerpt {
  color: var(--cm-text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin: 0 0 16px;
}
.cm-post-card__cta { color: var(--cm-primary); font-weight: 600; font-size: 0.9rem; }

.cm-pagination {
  margin: 48px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.cm-pagination a, .cm-pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--cm-border);
  color: var(--cm-text);
  text-decoration: none;
}
.cm-pagination .current { background: var(--cm-primary); color: #fff; border-color: var(--cm-primary); }
.cm-pagination a:hover { background: var(--cm-primary-light); }

/* Single post */
.cm-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
}
.cm-article header {
  text-align: center;
  margin-bottom: 32px;
}
.cm-article h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 16px; }
.cm-article__meta { color: var(--cm-text-muted); font-size: 0.9rem; }
.cm-article__cover {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 32px;
}
.cm-article__content {
  font-size: 1.05rem;
  line-height: 1.75;
}
.cm-article__content h2 { font-size: 1.5rem; margin-top: 32px; margin-bottom: 12px; font-weight: 700; }
.cm-article__content h3 { font-size: 1.2rem; margin-top: 24px; margin-bottom: 8px; font-weight: 700; }
.cm-article__content p { margin: 0 0 16px; }
.cm-article__content ul, .cm-article__content ol { padding-left: 24px; }
.cm-article__content li { margin-bottom: 8px; }
.cm-article__content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cm-article__content table th, .cm-article__content table td { padding: 10px; border: 1px solid var(--cm-border); }
.cm-article__content table thead { background: var(--cm-bg-alt); }
.cm-article__content blockquote {
  border-left: 4px solid var(--cm-primary);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--cm-text-muted);
  font-style: italic;
}
.cm-article__related {
  border-top: 1px solid var(--cm-border);
  margin-top: 48px;
  padding-top: 32px;
}
.cm-article__related h3 { font-size: 1.3rem; margin: 0 0 16px; }

/* WhatsApp floating */
.cm-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s;
}
.cm-whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Helpers */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.mt-5 { margin-top: 40px; }
.mb-5 { margin-bottom: 40px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 24px; }

@media (max-width: 768px) {
  .cm-hero h1 { font-size: 2rem; }
  .cm-section__head h2 { font-size: 1.6rem; }
  .cm-section { padding: 56px 0; }
  .cm-page-header h1 { font-size: 1.8rem; }
  .cm-article h1 { font-size: 1.6rem; }
}

/* ===== Responsive header / nav ===== */
@media (max-width: 991px) {
  .cm-header__inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .cm-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 16px;
  }
  .cm-nav a.cm-nav__link { font-size: 0.9rem; }
  .cm-btn { padding: 7px 12px; font-size: 0.85rem; }
}
@media (max-width: 600px) {
  .cm-logo span:not(.icon) { font-size: 0.95rem; }
  .cm-nav { gap: 8px 10px; }
  .cm-nav a.cm-nav__link { font-size: 0.85rem; padding: 4px 0; }
  .cm-btn--lg { padding: 12px 20px; font-size: 0.95rem; }
  .cm-hero { padding: 48px 0 36px; }
  .cm-hero__ctas { width: 100%; }
  .cm-hero__ctas .cm-btn { flex: 1 1 auto; justify-content: center; }
}

/* Prevent horizontal overflow on small screens */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe, table { max-width: 100%; }
.cm-article__content table { display: block; overflow-x: auto; }
