/*
Theme Name: RedCake CRM
Theme URI: https://crm.redcake.com.br
Author: RedCake Marketing Digital
Author URI: https://redcakemarketingdigital.com.br
Description: Tema institucional do RedCake CRM — Sistema Operacional Comercial. Landing page + Blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: redcake-crm
*/

/* ========================================
   CSS Variables (Design Tokens)
   ======================================== */
:root {
  --primary: #e50027;
  --primary-rgb: 229, 0, 39;
  --primary-foreground: #ffffff;
  --secondary: #091726;
  --secondary-rgb: 9, 23, 38;
  --secondary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #091726;
  --muted: #f1f4f7;
  --muted-foreground: #65728b;
  --border: #dee5ee;
  --destructive: #ef4444;
  --surface-raised: #f8fafb;
  --surface-sunken: #eef1f5;
  --card: #ffffff;
  --radius: 0.75rem;
  --shadow-card: 0 1px 3px rgba(9,23,38,.08), 0 4px 12px rgba(9,23,38,.04);
  --shadow-elevated: 0 4px 24px rgba(9,23,38,.12), 0 1px 4px rgba(9,23,38,.06);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-dark: linear-gradient(135deg, #091726, #0f2a45);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; }

/* ========================================
   Container
   ======================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   Typography Utilities
   ======================================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 768px) {
  .site-header .container { height: 80px; }
}
.site-header__logo img { height: 32px; width: auto; }
@media (min-width: 768px) {
  .site-header__logo img { height: 40px; }
}
.site-header__nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .site-header__nav { display: flex; } }
.site-header__nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color .2s;
}
.site-header__nav a:hover { color: var(--foreground); }
.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary);
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  transition: opacity .2s;
}
.site-header__cta:hover { opacity: .9; }

/* Mobile menu */
.site-header__toggle {
  display: flex;
  padding: .5rem;
  color: var(--foreground);
}
@media (min-width: 768px) { .site-header__toggle { display: none; } }
.site-header__toggle svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: .5rem 1.5rem 1.5rem;
}
.mobile-nav.is-open { display: block; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  display: block;
  padding: .75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav__cta {
  display: block;
  text-align: center;
  margin-top: 1rem;
  border-radius: var(--radius);
  background: var(--primary);
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 9rem 0 6rem; } }
.hero__bg {
  position: absolute;
  inset: 0;
  top: -20%;
  bottom: -20%;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(var(--secondary-rgb),.9), rgba(var(--secondary-rgb),.75), rgba(var(--secondary-rgb),.5));
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.8));
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
}
.hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
}
@media (min-width: 768px) { .hero__title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 3.75rem; } }
.hero__subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 36rem;
}
@media (min-width: 768px) { .hero__subtitle { font-size: 1.25rem; } }
.hero__bullets { margin-top: 2rem; }
.hero__bullets li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-weight: 500;
  padding: .375rem 0;
}
.hero__bullets li svg { color: var(--primary); flex-shrink: 0; }
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__actions .btn-primary {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elevated);
  transition: opacity .2s;
}
.hero__actions .btn-primary:hover { opacity: .9; }
.hero__actions .btn-outline {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.3);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  transition: background .2s;
}
.hero__actions .btn-outline:hover { background: rgba(255,255,255,.1); }

/* Hero dashboard image */
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__dashboard {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(var(--primary-rgb),.2);
  border: 1px solid rgba(255,255,255,.1);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.hero__dashboard img { width: 100%; height: auto; }
.hero__glow {
  position: absolute;
  inset: -2rem;
  background: rgba(var(--primary-rgb),.1);
  border-radius: 1.5rem;
  filter: blur(48px);
  z-index: -1;
}

/* Floating icons */
.hero__float {
  position: absolute;
  z-index: 20;
  animation: float 3s ease-in-out infinite;
}
.hero__float-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: .75rem;
  padding: .625rem .75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
}
.hero__float-badge span { display: none; }
@media (min-width: 768px) { .hero__float-badge span { display: inline; } }
.hero__float-badge svg { width: 18px; height: 18px; }
.hero__float--1 { top: 5%; left: -1.5rem; animation-delay: 0s; }
.hero__float--2 { top: 20%; right: -1rem; animation-delay: .5s; }
.hero__float--3 { bottom: 30%; left: -1.25rem; animation-delay: 1s; }
.hero__float--4 { bottom: 10%; right: -.75rem; animation-delay: 1.5s; }
.hero__float--5 { top: 45%; right: -1.5rem; animation-delay: .8s; }
.hero__float--6 { bottom: 50%; left: -1rem; animation-delay: 1.2s; }
.bg-green { background: #22c55e; }
.bg-primary { background: var(--primary); }
.bg-blue { background: #3b82f6; }
.bg-purple { background: #a855f7; }
.bg-orange { background: #f97316; }
.bg-cyan { background: #06b6d4; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========================================
   Section Base Styles
   ======================================== */
.section {
  padding: 5rem 0;
}
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section--sunken { background: var(--surface-sunken); }
.section--dark {
  background: var(--gradient-dark);
  color: var(--primary-foreground);
}
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section--dark .section__label { opacity: .7; color: inherit; }
.section__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.15;
}
@media (min-width: 768px) { .section__title { font-size: 3rem; } }
.section--dark .section__title { color: #fff; }
.section__title--center { text-align: center; max-width: 48rem; margin: 0 auto; }
.section__desc {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ========================================
   Quebra Crença
   ======================================== */
.quebra .container {
  max-width: 72rem;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .quebra .container { grid-template-columns: 1fr 1fr; }
}
.quebra__image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  order: 2;
}
@media (min-width: 1024px) { .quebra__image { order: -1; } }
.quebra__image img { width: 100%; height: auto; object-fit: cover; }
.quebra__cards { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.quebra__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: .75rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s;
}
.quebra__card:hover { box-shadow: var(--shadow-elevated); }
.quebra__card svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; width: 20px; height: 20px; }
.quebra__card span { font-weight: 500; font-size: .875rem; color: var(--foreground); }
.quebra__box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
}
.quebra__box p { font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
@media (min-width: 768px) { .quebra__box p { font-size: 1.25rem; } }
.quebra__box em { font-style: italic; }

/* ========================================
   Problema
   ======================================== */
.problema .container {
  max-width: 72rem;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .problema .container { grid-template-columns: 1fr 1fr; }
}
.problema__grid {
  margin-top: 2.5rem;
  display: grid;
  gap: .75rem;
}
@media (min-width: 640px) { .problema__grid { grid-template-columns: 1fr 1fr; } }
.problema__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border-radius: .75rem;
  background: var(--background);
  box-shadow: var(--shadow-card);
}
.problema__item svg { color: var(--primary); flex-shrink: 0; width: 18px; height: 18px; }
.problema__item span { font-weight: 500; font-size: .875rem; color: var(--foreground); }
.problema__box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 2px solid rgba(var(--primary-rgb),.2);
  background: var(--background);
}
.problema__box p { font-size: 1.125rem; font-weight: 700; color: var(--foreground); line-height: 1.5; }
@media (min-width: 768px) { .problema__box p { font-size: 1.25rem; } }
.problema__image { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-elevated); }
.problema__image img { width: 100%; height: auto; object-fit: cover; }

/* ========================================
   Solução (Features Grid)
   ======================================== */
.solucao__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .solucao__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .solucao__grid { grid-template-columns: repeat(3, 1fr); } }
.solucao__card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
}
.solucao__card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-4px); }
.solucao__icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.solucao__icon svg { color: #fff; width: 22px; height: 22px; }
.solucao__card h3 { font-size: 1.125rem; font-weight: 700; color: var(--foreground); margin-bottom: .5rem; }
.solucao__card p { font-size: .875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ========================================
   Diferencial
   ======================================== */
.diferencial .container { max-width: 56rem; text-align: center; }
.diferencial__grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
@media (min-width: 768px) { .diferencial__grid { grid-template-columns: 1fr 1fr; } }
.diferencial__card {
  padding: 1.5rem;
  border-radius: 1rem;
}
.diferencial__card--other { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.diferencial__card--rc { background: rgba(var(--primary-rgb),.15); border: 1px solid rgba(var(--primary-rgb),.3); }
.diferencial__card-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: .75rem;
}
.diferencial__card--other .diferencial__card-label { opacity: .5; }
.diferencial__card--rc .diferencial__card-label { color: var(--primary); }
.diferencial__card h4 { font-size: 1.125rem; font-weight: 600; }
.diferencial__card p { margin-top: .5rem; font-size: .875rem; opacity: .7; }

/* ========================================
   Modelo Oferta
   ======================================== */
.modelo__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .modelo__grid { grid-template-columns: repeat(3, 1fr); } }
.modelo__card {
  position: relative;
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--background);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.modelo__number {
  position: absolute;
  top: -.75rem;
  right: -.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: .875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modelo__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.modelo__icon svg { color: #fff; width: 20px; height: 20px; }
.modelo__tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--primary);
  margin-bottom: .5rem;
}
.modelo__card h3 { font-size: 1.125rem; font-weight: 700; color: var(--foreground); margin-bottom: 1rem; }
.modelo__list { flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.modelo__list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}
.modelo__list li::before {
  content: '•';
  color: var(--primary);
  margin-top: 1px;
  flex-shrink: 0;
}
.modelo__highlight {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 600;
  color: var(--foreground);
}

/* ========================================
   Resultados (Before/After)
   ======================================== */
.resultados .container { max-width: 72rem; }
.resultados__banner {
  margin-bottom: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  max-height: 20rem;
}
.resultados__banner img { width: 100%; height: 100%; object-fit: cover; }
.resultados__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .resultados__grid { grid-template-columns: 1fr 1fr; } }
.resultados__antes {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.resultados__depois {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
}
.resultados__badge {
  display: inline-block;
  padding: .375rem 1rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 1.5rem;
}
.resultados__antes .resultados__badge { background: var(--muted); color: var(--muted-foreground); }
.resultados__depois .resultados__badge { background: rgba(255,255,255,.2); }
.resultados__list { display: flex; flex-direction: column; gap: 1rem; }
.resultados__list li { display: flex; align-items: center; gap: .75rem; }
.resultados__list li svg { flex-shrink: 0; width: 18px; height: 18px; }
.resultados__antes .resultados__list li svg { color: var(--destructive); }
.resultados__antes .resultados__list li { color: var(--muted-foreground); }

/* ========================================
   Para Quem
   ======================================== */
.para-quem .container { max-width: 64rem; }
.para-quem__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .para-quem__grid { grid-template-columns: 1fr 1fr; } }
.para-quem__card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--background);
  box-shadow: var(--shadow-card);
}
.para-quem__badge {
  display: inline-block;
  padding: .375rem 1rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 1.5rem;
}
.para-quem__badge--yes { background: rgba(var(--primary-rgb),.1); color: var(--primary); }
.para-quem__badge--no { background: var(--muted); color: var(--muted-foreground); }
.para-quem__list { display: flex; flex-direction: column; gap: 1rem; }
.para-quem__list li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.para-quem__list li svg { flex-shrink: 0; width: 18px; height: 18px; }
.para-quem__list--yes li { color: var(--foreground); }
.para-quem__list--yes li svg { color: var(--primary); }
.para-quem__list--no li { color: var(--muted-foreground); }
.para-quem__list--no li svg { color: var(--destructive); }

/* ========================================
   Simulador
   ======================================== */
.simulador .container { max-width: 56rem; }
.simulador__box {
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow-elevated);
}
.simulador__sliders { display: grid; gap: 2rem; }
@media (min-width: 768px) { .simulador__sliders { grid-template-columns: repeat(3, 1fr); } }
.simulador__slider label { display: block; font-size: .875rem; font-weight: 600; color: var(--foreground); margin-bottom: .5rem; }
.simulador__slider input[type=range] { width: 100%; accent-color: var(--primary); }
.simulador__slider .simulador__value { font-size: 1.5rem; font-weight: 700; color: var(--foreground); margin-top: .25rem; }
.simulador__result {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: .75rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  text-align: center;
}
.simulador__result svg { margin: 0 auto .75rem; width: 28px; height: 28px; }
.simulador__result-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; opacity: .7; margin-bottom: .25rem; }
.simulador__result-value { font-size: 2.5rem; font-weight: 800; }
@media (min-width: 768px) { .simulador__result-value { font-size: 3rem; } }
.simulador__result-detail { margin-top: .5rem; font-size: .875rem; opacity: .8; }

/* ========================================
   Video
   ======================================== */
.video .container { max-width: 56rem; }
.video__placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video__inner { text-align: center; color: var(--secondary-foreground); }
.video__play {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: rgba(var(--primary-rgb),.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.video__play svg { width: 2rem; height: 2rem; fill: var(--primary); }
.video__inner p { font-size: 1.125rem; font-weight: 600; }
.video__inner small { font-size: .875rem; opacity: .7; display: block; margin-top: .25rem; }
/* When a real video embed exists */
.video__embed { aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-elevated); }
.video__embed iframe { width: 100%; height: 100%; border: 0; }

/* ========================================
   CTA Final
   ======================================== */
.cta-final {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
@media (min-width: 768px) { .cta-final { padding: 7rem 0; } }
.cta-final__bg {
  position: absolute;
  inset: 0;
}
.cta-final__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-final__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
  opacity: .9;
}
.cta-final .container {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  text-align: center;
  color: var(--primary-foreground);
}
.cta-final__title { font-size: 1.875rem; font-weight: 800; line-height: 1.15; }
@media (min-width: 768px) { .cta-final__title { font-size: 3rem; } }
.cta-final__title span { color: var(--primary); }
.cta-final__desc { margin-top: 1.5rem; font-size: 1.125rem; opacity: .8; max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta-final__btn {
  display: inline-flex;
  align-items: center;
  margin-top: 2.5rem;
  border-radius: var(--radius);
  background: var(--primary);
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elevated);
  transition: opacity .2s;
}
.cta-final__btn:hover { opacity: .9; }
.cta-final__note { margin-top: 1rem; font-size: .875rem; opacity: .6; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
  padding: 2.5rem 0;
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .site-footer .container { flex-direction: row; justify-content: space-between; }
}
.site-footer__logo img { height: 40px; filter: brightness(0) invert(1); }
.site-footer__copy { font-size: .875rem; opacity: .6; }

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: 9999px;
  background: #25D366;
  padding: .875rem 1.25rem;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.05); }
.whatsapp-float svg { width: 22px; height: 22px; }
.whatsapp-float span { display: none; }
@media (min-width: 640px) { .whatsapp-float span { display: inline; } }

/* ========================================
   Blog Archive
   ======================================== */
.blog-hero {
  padding: 7rem 0 3.5rem;
  background: linear-gradient(to bottom, var(--secondary), rgba(var(--secondary-rgb),.95));
  color: var(--secondary-foreground);
  text-align: center;
}
@media (min-width: 768px) { .blog-hero { padding: 9rem 0 5rem; } }
.blog-hero .container { max-width: 48rem; }
.blog-hero__title { font-size: 1.875rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
@media (min-width: 768px) { .blog-hero__title { font-size: 3rem; } }
.blog-hero__title span { color: var(--primary); }
.blog-hero__desc { font-size: 1.125rem; opacity: .8; }
@media (min-width: 768px) { .blog-hero__desc { font-size: 1.25rem; } }

/* Search form */
.blog-search {
  margin-top: 2rem;
  position: relative;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.blog-search svg {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}
.blog-search input {
  width: 100%;
  padding: .75rem .75rem .75rem 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
}
.blog-search input::placeholder { color: var(--muted-foreground); }
.blog-search input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }

/* Blog layout */
.blog-content { padding: 3.5rem 0 5rem; background: rgba(var(--secondary-rgb),.02); }
@media (min-width: 768px) { .blog-content { padding: 5rem 0; } }
.blog-content .container { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .blog-content .container { grid-template-columns: 1fr 340px; } }

/* Post cards */
.post-card {
  display: block;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: box-shadow .3s;
}
.post-card:hover { box-shadow: var(--shadow-elevated); }
@media (min-width: 768px) { .post-card__inner { display: flex; } }
.post-card__thumb {
  height: 13rem;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 768px) { .post-card__thumb { width: 20rem; height: auto; } }
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.post-card__cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .5rem;
}
.post-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  transition: color .2s;
  margin-bottom: .5rem;
}
.post-card:hover .post-card__title { color: var(--primary); }
.post-card__excerpt {
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--muted-foreground);
}
.post-card__meta span { display: flex; align-items: center; gap: .25rem; }
.post-card__meta svg { width: 14px; height: 14px; }
.post-card__more {
  margin-left: auto;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .25rem;
  transition: gap .2s;
}
.post-card:hover .post-card__more { gap: .5rem; }

/* No posts */
.no-posts { text-align: center; padding: 3rem 0; color: var(--muted-foreground); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  padding: 0 .75rem;
  transition: all .2s;
}
.pagination a { color: var(--muted-foreground); background: var(--card); border: 1px solid var(--border); }
.pagination a:hover { color: var(--primary); border-color: var(--primary); }
.pagination span.current { background: var(--primary); color: var(--primary-foreground); }

/* ========================================
   Sidebar
   ======================================== */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar__widget {
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
}
.sidebar__widget h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
/* Categories widget */
.sidebar__cat-list { display: flex; flex-direction: column; gap: .5rem; }
.sidebar__cat-link {
  display: flex;
  justify-content: space-between;
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all .2s;
}
.sidebar__cat-link:hover, .sidebar__cat-link.active {
  background: var(--primary);
  color: var(--primary-foreground);
}
.sidebar__cat-count { opacity: .6; }

/* Newsletter widget */
.sidebar__newsletter {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.1), rgba(var(--primary-rgb),.05)) !important;
  border-color: rgba(var(--primary-rgb),.2) !important;
}
.sidebar__newsletter p { font-size: .875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.sidebar__newsletter input {
  width: 100%;
  padding: .625rem .75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: .875rem;
  margin-bottom: .75rem;
}
.sidebar__newsletter input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.sidebar__newsletter button, .btn {
  width: 100%;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: .875rem;
  font-weight: 600;
  transition: opacity .2s;
  border: none;
  cursor: pointer;
}
.sidebar__newsletter button:hover, .btn:hover { opacity: .9; }

/* CRM banner sidebar */
.sidebar__crm-banner {
  position: relative;
  background: var(--secondary) !important;
  color: var(--secondary-foreground) !important;
  border: none !important;
  overflow: hidden;
}
.sidebar__crm-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.2), transparent);
}
.sidebar__crm-banner > * { position: relative; z-index: 1; }
.sidebar__crm-banner h3 { color: #fff; }
.sidebar__crm-banner p { font-size: .875rem; opacity: .8; margin-bottom: 1rem; }
.sidebar__crm-banner .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: auto;
  padding: .625rem 1.25rem;
}

/* Popular posts widget */
.sidebar__popular { display: flex; flex-direction: column; gap: 1rem; }
.sidebar__popular-item { display: flex; gap: .75rem; }
.sidebar__popular-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: .5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar__popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar__popular-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.sidebar__popular-item:hover .sidebar__popular-title { color: var(--primary); }
.sidebar__popular-meta { font-size: .75rem; color: var(--muted-foreground); margin-top: .25rem; }

/* ========================================
   Single Post
   ======================================== */
.single-hero {
  padding: 7rem 0 0;
  background: var(--secondary);
  color: var(--secondary-foreground);
}
@media (min-width: 768px) { .single-hero { padding: 9rem 0 0; } }
.single-hero .container { max-width: 56rem; padding-bottom: 2.5rem; }
.single-hero__back {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .875rem;
    color: var(--primary);
    transition: text-decoration .2s;
    line-height: 1;
}
.single-hero__back:hover { text-decoration: underline; }
.single-hero__back svg { width: 16px; height: 16px; }
.single-hero__cat {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,.2);
    display: inline-flex;
    align-items: center;
}
.single-hero__title { font-size: 1.875rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
@media (min-width: 768px) { .single-hero__title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .single-hero__title { font-size: 3rem; } }
.single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  opacity: .7;
}
.single-hero__meta span { display: flex; align-items: center; gap: .25rem; }
.single-hero__meta svg { width: 16px; height: 16px; }
.single-hero__share {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .25rem;
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  opacity: .7;
}
.single-hero__share:hover { color: var(--primary); opacity: 1; }
.single-hero__share svg { width: 16px; height: 16px; }

/* Featured image */
.single-featured {
  max-width: 56rem;
  margin: -1rem auto 0;
  padding: 0 2rem;
}
.single-featured img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .single-featured img { height: 24rem; } }

/* Post content */
.single-content { padding: 3rem 0 4rem; }
@media (min-width: 768px) { .single-content { padding: 4rem 0; } }
.single-content .container { max-width: 64rem; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .single-content .container { grid-template-columns: 1fr 300px; } }

/* Prose styles for post body */
.prose { max-width: none; }
.prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--foreground); margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; color: var(--foreground); margin: 1.5rem 0 .75rem; }
.prose p { color: var(--muted-foreground); line-height: 1.8; margin-bottom: 1.25rem; font-size: 1.0625rem; }
.prose strong { color: var(--foreground); }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: var(--muted-foreground); line-height: 1.8; margin-bottom: .5rem; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--surface-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { margin: 0; font-style: italic; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose pre {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .875rem;
}

/* Tags */
.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.single-tags a {
  font-size: .75rem;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all .2s;
}
.single-tags a:hover { background: var(--primary); color: var(--primary-foreground); }

/* Post navigation */
.post-nav { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link {
  display: block;
  padding: 1rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.post-nav__link:hover { border-color: var(--primary); }
.post-nav__link--next { text-align: right; }
.post-nav__dir { font-size: .75rem; color: var(--muted-foreground); }
.post-nav__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.post-nav__link:hover .post-nav__title { color: var(--primary); }

/* Related posts */
.related-posts { padding: 3rem 0; background: rgba(var(--secondary-rgb),.02); border-top: 1px solid var(--border); }
.related-posts .container { max-width: 64rem; }
.related-posts__title { font-size: 1.5rem; font-weight: 700; color: var(--foreground); margin-bottom: 2rem; }
.related-posts__grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .related-posts__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .related-posts__grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: block;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .3s;
}
.related-card:hover { box-shadow: var(--shadow-elevated); }
.related-card__thumb { height: 11rem; overflow: hidden; }
.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.related-card:hover .related-card__thumb img { transform: scale(1.05); }
.related-card__body { padding: 1.25rem; }
.related-card__cat {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
}
.related-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.related-card:hover .related-card__title { color: var(--primary); }
.related-card__meta { font-size: .75rem; color: var(--muted-foreground); margin-top: .5rem; }

/* ========================================
   404
   ======================================== */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.page-404 h1 { font-size: 6rem; font-weight: 800; color: var(--primary); }
.page-404 p { font-size: 1.25rem; color: var(--muted-foreground); margin: 1rem 0 2rem; }
.page-404 a {
  display: inline-flex;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  transition: opacity .2s;
}
.page-404 a:hover { opacity: .9; }

/* ========================================
   Reveal Animation
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   Screen Reader
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header__cta,
.site-header__cta:hover,
.site-header__cta:visited {
    color: #ffffff !important;
}

