/* ==========================================================================
   SOLARIS CONECTA — Design System & Custom Styles
   ========================================================================== */

:root {
    --color-yellow: #FEB701;
    --color-blue: #012362;
    --color-green: #3FB41D;
    --color-light: #F8FAFC;
    --color-dark: #0A0F1C;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #F8FAFC;
    color: #012362;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
}

/* Staggered animation delays for entrance */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(1, 35, 98, 0.1);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, var(--color-blue), var(--color-green));
}

.sun-ray {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(254, 183, 1, 0.5), transparent);
    transform-origin: top center;
}

/* Reveal on scroll utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Button Hover */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--color-yellow);
    z-index: -1;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-hover-effect:hover {
    color: var(--color-blue);
}

.btn-hover-effect:hover::after {
    height: 100%;
}

/* Navigation — Fundo branco padrão (logo azul precisa de contraste) */
nav#navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(1, 35, 98, 0.06);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(1, 35, 98, 0.10);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Hero Background Graphics */
.hero-bg {
    background-color: #F8FAFC;
    background-image: 
        radial-gradient(at 0% 0%, hsla(217,100%,20%,0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(43,100%,50%,0.15) 0px, transparent 50%);
}

/* ==========================================================================
   CTA NAVBAR E BOTÃO FLUTUANTE WHATSAPP (PATTERNS.md Seção 7.1 e 7.2)
   ========================================================================== */

.btn-cta-navbar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3FB41D 0%, #2E8E13 100%);
    color: #FFFFFF;
    padding: 0.65rem 1.35rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(63, 180, 29, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.btn-cta-navbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 180, 29, 0.45);
    background: linear-gradient(135deg, #46C721 0%, #359F16 100%);
    color: #FFFFFF;
}

/* Botão Fixo Flutuante do WhatsApp */
.btn-whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.8rem;
    height: 3.8rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-whatsapp 2.2s infinite;
    text-decoration: none;
}

.btn-whatsapp-float:hover {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65);
    color: #FFFFFF;
}

.btn-whatsapp-float svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   CARD CTA PARA WHATSAPP (PATTERNS.md Seção 9.2 - Sem Form de Email)
   ========================================================================== */

.cta-whatsapp-card {
    background: linear-gradient(135deg, #012362 0%, #0A0F1C 100%);
    border: 1px solid rgba(254, 183, 1, 0.25);
    border-radius: 1.75rem;
    padding: 2.5rem;
    color: #FFFFFF;
    box-shadow: 0 15px 40px rgba(1, 35, 98, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-whatsapp-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(254, 183, 1, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-whatsapp-card .cta-content {
    position: relative;
    z-index: 10;
}

.cta-whatsapp-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.cta-whatsapp-card p {
    color: #CBD5E1;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2EE571 0%, #169E8F 100%);
    color: #FFFFFF;
}

/* ==========================================================================
   ACTIVE STATE E ESTILOS DE NAVEGAÇÃO
   ========================================================================== */

nav a.active {
    color: var(--color-yellow);
    font-weight: 700;
}

nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Footer Slogan & Copyright (PATTERNS.md Seção 7.1) */
.footer-copy {
    text-align: center;
    color: #94A3B8;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy a {
    color: var(--color-yellow);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copy a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   MODULO DE ARTIGOS E PAGINAÇÃO (MODULES.md)
   ========================================================================== */

.artigos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
}

.artigo-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(1, 35, 98, 0.04);
    text-decoration: none;
}

.artigo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(1, 35, 98, 0.12);
    border-color: rgba(254, 183, 1, 0.5);
}

.artigo-card-tag {
    display: inline-block;
    background: rgba(1, 35, 98, 0.06);
    color: #012362;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.artigo-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #012362;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.artigo-card p {
    color: #64748B;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.artigo-card-link {
    color: #FEB701;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.artigos-paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.artigos-paginacao a, .artigos-paginacao span {
    padding: 0.6rem 1.15rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #012362;
}

.artigos-paginacao a:hover {
    border-color: #FEB701;
    color: #FEB701;
    transform: translateY(-2px);
}

.artigos-paginacao span.atual {
    background: #012362;
    color: #FFFFFF;
    border-color: #012362;
}

/* ==========================================================================
   SITEMAP (MAPA DO SITE - MODULES.md)
   ========================================================================== */

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.sitemap-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #FFFFFF;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid #E2E8F0;
    color: #012362;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sitemap-list li a:hover {
    border-color: #FEB701;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(1, 35, 98, 0.08);
    color: #FEB701;
}

.sitemap-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(254, 183, 1, 0.12);
    color: #FEB701;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
