/* ==========================================================================
   Fasitec — estilos base (HTML + PHP puro / padrão SOLOWEB)
   ========================================================================== */

p, span, h1, h2, h3, h4, h5, ul, a {
  font-family: 'Merriweather Sans', sans-serif !important;
}
.fa, .fas, .far, .fal, .fak, [class*="fa-"], [class^="fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
.fab, [class*="fa-brands"], [class^="fab"] {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
.font-merriweather { font-family: 'Merriweather Sans', sans-serif !important; }

body { font-family: 'Merriweather Sans', sans-serif; }

/* Scroll */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

/* Animações */
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight{ from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float      { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bounce-whatsapp { 0%{transform:scale(0);opacity:0} 50%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }
.animate-fade-in-up   { animation: fadeInUp .8s ease-out; }
.animate-fade-in-right{ animation: fadeInRight .8s ease-out .2s both; }
.animate-float        { animation: float 3s ease-in-out infinite; }

/* Títulos de seção */
.section-title {
  font-size: 2.1rem; line-height: 1.15; font-weight: 700;
  text-align: center; margin-bottom: 1rem; color: #1f2937;
}
@media (min-width: 1024px) { .section-title { font-size: 2.7rem; } }

.section-kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: .75rem;
}

/* Topbar */
.topbar { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.topbar a { color: #fff; }

/* Header */
#main-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
#main-header.scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.25); }
#main-header .nav-link { color: var(--header-text); }

/* Hero */
.hero-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 45%),
    linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 65%, #0a63c4 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 9999px;
  padding: .5rem 1rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: -14px -14px auto auto;
  width: 120px; height: 120px; border-radius: 24px;
  background: var(--secondary-color); opacity: .9; z-index: 0;
}
.hero-media img { position: relative; z-index: 1; }

/* Slider / banner */
#slider { background-color: var(--accent-color); }
#slider .slide-item img { object-position: center 35%; }

/* Cards de serviços */
.service-card {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18);
  padding: 2rem;
  border-radius: 1.5rem;
  color: #fff;
  transition: transform .4s ease, box-shadow .4s ease, background .4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.14) !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.35);
}
.service-card i { transition: transform .3s ease; }
.service-card:hover i { transform: scale(1.1); }

/* Destaques */
.feature-card {
  background: linear-gradient(135deg, #f4f7fb 0%, #e9eff7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.feature-card .icon-bg { border-radius: .9rem; }

/* FAQ */
.faq-item { transition: box-shadow .3s ease; }
.faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.faq-question.active i { transform: rotate(180deg); }

/* Rich text (posts e conteúdos) */
.rich-text p { margin-bottom: .75em; }
.prose-content p { text-align: justify; font-weight: 300; }
.prose-content strong, .prose-content b { font-weight: 600; }
.prose-content h3, .prose-content h4 { font-weight: 700; margin: 1.25em 0 .5em; color: #111827; }
.prose-content ul { list-style: disc; margin: .5em 0 .75em 1.25em; }
.prose-content ol { list-style: decimal; margin: .5em 0 .75em 1.25em; }
.prose-content blockquote { border-left: 3px solid currentColor; opacity: .85; padding-left: .75em; margin: .5em 0; }
.prose-content a { color: var(--primary-color); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose-content a:hover { color: var(--accent-color); }

/* WhatsApp flutuante */
.whatsapp-btn {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 70px !important; height: 70px !important;
  background: #25d366 !important; border-radius: 50% !important;
  color: #fff !important; font-size: 42px !important; text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(37,211,102,.5) !important;
  transition: all .3s ease !important;
  animation: bounce-whatsapp .5s ease-in-out !important;
}
.whatsapp-btn:hover { background: #20ba5a !important; transform: scale(1.15) !important; }
#whatsapp-btn:hover { background-color: #20ba5a !important; transform: scale(1.1); }

/* Linha decorativa sob títulos centralizados */
.title-rule {
  width: 70px; height: 4px; border-radius: 9999px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.title-rule-light {
  background: linear-gradient(90deg, #ffffff, var(--secondary-color));
}

/* Cards de artigo */
.article-card { transition: transform .3s ease, box-shadow .3s ease; }
.article-card:hover { transform: translateY(-4px); }

/* Mapa */
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Acessibilidade */
:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 2px; }

/* Em telas pequenas, texto corrido alinhado à esquerda (melhor leitura) */
@media (max-width: 767px) {
  p.leading-relaxed,
  .service-card p,
  .faq-answer p,
  .about-text p,
  .prose-content p { text-align: left; }
}

/* Impressão */
@media print {
  #main-header, .topbar, #whatsapp-btn, #scroll-to-top, footer { display: none !important; }
}
