/*
|--------------------------------------------------------------------------
| Legacy — Modelo 03
|--------------------------------------------------------------------------
| Layout corporativo clean.
| Este arquivo diferencia o visual do modelo sem mexer na lógica do index.php.
| Mantém cores, aparência global e conteúdo vindos do painel.
|--------------------------------------------------------------------------
*/

:root{
  --m03-primary: var(--cor-primaria, #0d6efd);
  --m03-secondary: var(--cor-secundaria, #111827);
  --m03-bg: var(--bg-site, #f7f8fb);
  --m03-surface: var(--surface, #ffffff);
  --m03-text: var(--text, #111827);
  --m03-muted: var(--muted, #667085);
  --m03-border: var(--border, rgba(15,23,42,.10));
  --m03-radius: 18px;
  --m03-shadow: 0 10px 30px rgba(15,23,42,.055);
  --m03-shadow-hover: 0 18px 46px rgba(15,23,42,.085);
}

/* Base */
body.template-modelo-01,
body.template-core-components{
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--m03-primary) 8%, transparent), transparent 380px),
    var(--m03-bg);
  color: var(--m03-text);
}

/* Navbar mais clara e corporativa */
.nav-glass{
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid var(--m03-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(15,23,42,.045);
}

.nav-glass.nav-scrolled{
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.075);
}

.navbar-brand,
.navbar-brand.text-white{
  color: var(--m03-text) !important;
}

.brand-badge{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.brand-badge img{
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.nav-glass .nav-link{
  color: color-mix(in srgb, var(--m03-text) 72%, transparent) !important;
  font-weight: 650;
  border-radius: 999px;
  padding: .55rem .8rem;
}

.nav-glass .nav-link:hover,
.nav-glass .nav-link.active{
  color: var(--m03-primary) !important;
  background: color-mix(in srgb, var(--m03-primary) 10%, transparent);
}

.btn-prim{
  background: var(--m03-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: .72rem 1.05rem !important;
  font-weight: 750 !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--m03-primary) 22%, transparent);
}

/* Seções */
section:not(.hero),
.section,
.site-section,
.core-section,
.custom-section{
  padding-top: clamp(44px, 5vw, 66px) !important;
  padding-bottom: clamp(44px, 5vw, 66px) !important;
}

/* Títulos centralizados, visual premium */
section:not(.hero) h2,
section:not(.hero) .sec-title,
section:not(.hero) .section-title,
section:not(.hero) .titulo-secao,
section:not(.hero) .custom-title{
  text-align: center !important;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: .85rem !important;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--m03-text);
}

section:not(.hero) .section-subtitle,
section:not(.hero) .sec-subtitle,
section:not(.hero) .lead,
section:not(.hero) .subtitulo-secao{
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  color: var(--m03-muted);
}

/* Sobre: mantém texto à esquerda para leitura */
#sobre p,
#sobre .muted,
#sobre .sobre-texto,
#sobre .about-text,
#sobre .texto,
#sobre .content,
#sobre .section-content{
  text-align: left !important;
  line-height: 1.85;
}

#sobre img{
  border-radius: 24px;
  box-shadow: var(--m03-shadow);
}

/* Cards clean */
.card,
.card-soft,
.service-card,
.custom-card,
.panel,
.faq-item,
.depoimento-card{
  background: var(--m03-surface);
  border: 1px solid var(--m03-border);
  border-radius: var(--m03-radius);
  box-shadow: var(--m03-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover,
.card-soft:hover,
.service-card:hover,
.custom-card:hover,
.panel:hover{
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--m03-primary) 22%, var(--m03-border));
  box-shadow: var(--m03-shadow-hover);
}

/* Serviços com acento discreto */
.service-card{
  position: relative;
  overflow: hidden;
}

.service-card::before{
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--m03-primary);
}

.service-card h3,
.service-card h4,
.service-card h5{
  margin-top: 14px;
  letter-spacing: -.025em;
  font-weight: 780;
}

/* Galeria preenchendo o card */
.gal-card{
  flex: 0 0 auto;
  width: 320px;
  height: 220px;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 18px;
}

.gal-btn{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
}

.gal-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.gal-btn:hover .gal-img{
  transform: scale(1.045);
}

@media (max-width: 576px){
  .gal-card{
    width: 260px;
    height: 190px;
  }
}

/* IA / código livre */
.section-codigo-ia{
  padding: 0 !important;
  margin: 0;
  background: transparent;
  overflow: visible;
}

.section-codigo-ia .user-code-fullwidth{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Footer */
footer{
  background: var(--m03-secondary) !important;
  color: rgba(255,255,255,.82);
  padding: 28px 0;
}

footer a{
  color: rgba(255,255,255,.86) !important;
}

/* Mobile */
@media (max-width: 991px){
  .brand-badge img{
    max-height: 40px;
  }

  section:not(.hero),
  .section,
  .site-section,
  .core-section,
  .custom-section{
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
}
