/*
Theme Name: JM Marketing de Conteúdo
Theme URI: https://jmmarketingdeconteudo.com.br
Author: JM Marketing de Conteúdo
Author URI: https://jmmarketingdeconteudo.com.br
Description: Tema institucional da JM Marketing de Conteúdo — comunicação institucional, TV Indoor e assessoria para agências de publicidade. Site responsivo, com SEO básico e botão flutuante de WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jm-marketing
Tags: institutional, business, responsive, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-teal: #00ADBB;
  --color-teal-dark: #01959F;
  --color-purple: #504B9B;
  --color-purple-dark: #3D3878;
  --color-charcoal: #2D2D35;
  --color-ink: #1A1A1A;
  --color-muted: #6B7280;
  --color-bg-soft: #F5F4FA;
  --color-bg-teal: #E6F7F9;
  --color-white: #FFFFFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(80, 75, 155, 0.08);
  --shadow-md: 0 6px 20px rgba(80, 75, 155, 0.12);
  --shadow-lg: 0 12px 40px rgba(80, 75, 155, 0.18);
  --transition: all 0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-purple);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-charcoal);
  font-weight: 700;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img {
  max-height: 56px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.site-nav a:hover {
  color: var(--color-teal);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: var(--transition);
}

.site-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-charcoal);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #1F1F26 100%);
  color: var(--color-white);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 173, 187, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(80, 75, 155, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--color-teal);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--color-teal);
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-teal-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 96px 0;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--color-purple);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 720px;
  margin-bottom: 56px;
}

/* ============================================
   SOBRE
   ============================================ */
.sobre {
  background: var(--color-white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sobre-text p {
  font-size: 1.05rem;
  color: var(--color-ink);
  margin-bottom: 18px;
  line-height: 1.7;
}

.sobre-text p strong {
  color: var(--color-purple);
}

.sobre-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--color-bg-soft);
  padding: 32px 24px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-card:nth-child(odd)::before {
  background: var(--color-teal);
}

.stat-card:nth-child(even)::before {
  background: var(--color-purple);
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-purple);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.stat-card .label {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ============================================
   SERVICOS
   ============================================ */
.servicos {
  background: var(--color-bg-soft);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.servico-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.servico-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.servico-card:nth-child(2)::before {
  background: var(--color-purple);
}

.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.servico-card:hover::before {
  transform: scaleX(1);
}

.servico-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: 24px;
}

.servico-card:nth-child(2) .servico-icon {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
}

.servico-icon svg {
  width: 32px;
  height: 32px;
}

.servico-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.servico-card p {
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 0.97rem;
  flex: 1;
}

.servico-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-teal);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.servico-card:nth-child(2) .servico-tag {
  color: var(--color-purple);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-band {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--color-teal);
}

.cta-band h2 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
  text-align: center;
}

.site-footer .footer-logo img {
  max-height: 50px;
  margin: 0 auto 24px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.site-footer .copyright {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: var(--color-white);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background: #1ebe5a;
  color: var(--color-white);
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes pulse {
  0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .servicos-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding: 72px 0 88px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid #eee;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .sobre-stats {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .container {
    padding: 0 20px;
  }
}

/* Accessibility: skip-link */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 9999;
}

/* WordPress required classes */
.alignleft { float: left; margin-right: 16px; }
.alignright { float: right; margin-left: 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
