@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===================================
   VARIÁVEIS E RESET
=================================== */
:root {
    --blue-900: #0D47A1;
    --blue-700: #1565C0;
    --blue-600: #1976D2;
    --blue-500: #2196F3;
    --blue-400: #42A5F5;
    --blue-100: #BBDEFB;
    --blue-50:  #E3F2FD;
    --bg-light: #F0F6FF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(13, 71, 161, 0.08);
    --shadow-md: 0 8px 32px rgba(13, 71, 161, 0.12);
    --shadow-lg: 0 20px 60px rgba(13, 71, 161, 0.18);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; }
li { list-style: none; }

.section-padding { padding: 90px 0; }
.bg-light-blue { background-color: var(--bg-light); }

/* ===================================
   NAVBAR
=================================== */
#mainNavbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 16px 0;
}

#mainNavbar.scrolled {
    border-bottom-color: var(--blue-100);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

/* Logo na navbar: tamanho visível e proporcional ao header */
.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

.brand-logo-img-footer {
    height: 38px;
    max-width: 180px;
}

/* Fallback fica oculto enquanto a imagem carregar; d-flex do Bootstrap não pode sobrescrever */
.brand-fallback {
    display: none !important;
}

.brand-fallback.is-visible {
    display: flex !important;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.brand-icon.small { width: 28px; height: 28px; font-size: 13px; }

.brand-name {
    font-size: 1.2rem;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.brand-name strong { color: var(--blue-700); }

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--blue-700) !important;
    background-color: var(--blue-50);
}

.navbar-actions { display: flex; gap: 10px; }

.btn-nav {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    border: none;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--blue-700);
    border-color: var(--blue-700);
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: var(--blue-700);
    border-color: var(--blue-700);
}

/* ===================================
   HERO
=================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #1976D2 70%, #42A5F5 100%);
    z-index: 0;
}

.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.04'%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-content {
    position: relative;
    z-index: 1;
}

.badge-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.text-highlight {
    color: #90CAF9;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-outline-light {
    color: white;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: white;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 420px;
    height: 420px;
}

.visual-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.visual-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.visual-card.card-1 { top: 20px; right: 0; animation: float 3s ease-in-out infinite; }
.visual-card.card-2 { top: 50%; right: -100px; transform: translateY(-50%); animation: float 3s ease-in-out infinite 1s; }
.visual-card.card-3 { bottom: 20px; right: 0; animation: float 3s ease-in-out infinite 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.visual-card.card-2 { animation: float2 3s ease-in-out infinite 1s; }
@keyframes float2 {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 8px)); }
}

/* ===================================
   SEÇÕES COMUNS
=================================== */
.section-tag {
    display: inline-block;
    color: var(--blue-700);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: var(--blue-50);
    padding: 4px 12px;
    border-radius: 50px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}

.section-subtitle, .section-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 12px;
}

/* ===================================
   SOBRE — ÍCONES GRID
=================================== */
.about-visual {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.about-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.icon-box {
    background: white;
    border-radius: var(--radius);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.icon-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.icon-box i {
    font-size: 1.6rem;
    color: var(--blue-700);
}

.icon-box span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

/* ===================================
   SOLUTION CARDS
=================================== */
.solution-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
    border: 1px solid var(--blue-100);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-400);
}

.solution-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.solution-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   STEPS
=================================== */
.step-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--blue-100);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--blue-600);
    margin-bottom: 16px;
}

.step-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   CONTACT FORM
=================================== */
.contact-form .form-control {
    border: 1px solid var(--blue-100);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.contact-form .form-control:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* ===================================
   FOOTER
=================================== */
.footer-main {
    background: var(--blue-900);
    padding: 32px 0;
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    margin-bottom: 0;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-main .btn-outline-light {
    font-size: 0.82rem;
    border-color: rgba(255,255,255,0.3);
}

/* ===================================
   RESPONSIVIDADE
=================================== */
@media (max-width: 991px) {
    .navbar-actions { margin-top: 12px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 576px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .about-icon-grid { grid-template-columns: repeat(2, 1fr); }
}
