/* =============================================
   PLANUS CONTABILIDADE - CSS Principal
   ============================================= */

:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2347;
  --primary-light: #2a5298;
  --accent: #00a8e8;
  --accent-dark: #0086bb;
  --gold: #c9a84c;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #2d3748;
  --text-light: #718096;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26,58,107,0.10);
  --shadow-lg: 0 8px 40px rgba(26,58,107,0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  max-height: 72px;
  overflow: hidden;
}
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
}
.logo-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  line-height: 1;
}
.logo-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { color: var(--primary); background: var(--gray-100); }
.nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: white !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
}
.nav-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.hero-bg::after {
  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");
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s ease both;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: white;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
  line-height: 1.15;
}
.hero-accent {
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 560px;
  animation: fadeInUp 0.8s ease 0.2s both;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,168,232,0.4); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-dark {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}
.section-accent {
  background: var(--gray-50);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-dark .section-tag { color: #7dd3fc; }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  color: inherit;
}
.section-dark .section-title { color: white; }
.section-title strong { color: var(--accent); }
.section-dark .section-title strong { color: #7dd3fc; }
.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
}
.section-dark .section-desc { color: rgba(255,255,255,0.7); }
.section-footer {
  text-align: center;
  margin-top: 48px;
}

/* ===== SERVIÇOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--primary); }
.service-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { gap: 10px; }

/* ===== NOTÍCIAS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.news-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.news-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.news-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.news-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0,168,232,0.2);
  color: #7dd3fc;
  padding: 3px 10px;
  border-radius: 50px;
}
.news-date { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.news-title { font-size: 1rem; margin-bottom: 10px; }
.news-title a { color: white; }
.news-title a:hover { color: #7dd3fc; }
.news-excerpt { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 16px; }
.news-more { font-size: 0.85rem; font-weight: 600; color: #7dd3fc; display: inline-flex; align-items: center; gap: 6px; }
.news-more:hover { gap: 10px; }
.empty-state { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.5); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; display: block; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.blog-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.blog-img-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 2.5rem;
}
.blog-body { padding: 24px; }
.blog-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.blog-body h3 { font-size: 1rem; margin-bottom: 10px; }
.blog-body h3 a { color: var(--primary); }
.blog-body h3 a:hover { color: var(--accent); }
.blog-body p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 16px; }
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-light);
}
.blog-footer a { font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }

/* ===== DEPOIMENTOS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: var(--gold); margin-bottom: 14px; }
.testimonial-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--primary); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }

/* ===== LINKS ÚTEIS ===== */
.links-category { margin-bottom: 40px; }
.links-cat-title {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
}
.link-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(4px); }
.link-card > i:first-child {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}
.link-card div { flex: 1; }
.link-card strong { display: block; font-size: 0.9rem; color: var(--primary); }
.link-card span { display: block; font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.link-ext { color: var(--gray-400); font-size: 0.8rem; }

/* ===== CONTATO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
}
.contact-item > i {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #7dd3fc;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 3px; }
.contact-item span, .contact-item a { font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.contact-item a:hover { color: #7dd3fc; }
.map-embed { margin-top: 24px; }
.contact-form {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group select option { background: var(--primary-dark); color: white; }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin: 16px 0 20px; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: white; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: white; margin-bottom: 16px; }
.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  padding: 2px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom i { color: #ef4444; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px; height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(8px) translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===== ADMIN BAR ===== */
.admin-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 8px 0;
  font-size: 0.82rem;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; }
.admin-bar a { color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 4px; }
.admin-bar a:hover { background: rgba(255,255,255,0.1); color: white; }

/* ===== RESPONSIVO ===== */
@media (max-width: 968px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .news-featured { grid-column: auto; grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
