/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a16a2;
    --secondary-color: #004aad;
    --accent-color: #4f5fe6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 40%, var(--accent-color) 70%, var(--primary-color) 100%);
    background-size: 300% 300%;
    animation: gradient-shift 12s ease infinite;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(90deg, #ffffff 20%, #c7d2fe 50%, #ffffff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: 0% center; }
}

/* Botões — estilo Stripe */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.hero .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(10, 22, 162, 0.25);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.4s ease;
}

.scroll-indicator span {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    30% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
}

/* Animações de entrada */
.fade-in {
    animation: fadeInUp 0.7s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 0.7s ease-out 0.15s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Sections gerais */
section {
    padding: 6.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    background: rgba(10, 22, 162, 0.06);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0.75rem auto;
    border-radius: 2px;
}

/* Sobre Section */
.sobre {
    background-color: var(--bg-white);
    background-image: radial-gradient(circle, rgba(10, 22, 162, 0.025) 1px, transparent 1px);
    background-size: 24px 24px;
}

.sobre-content {
    max-width: 720px;
    margin: 0 auto;
}

.sobre-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-light);
    text-align: center;
}

/* Serviços Section */
.servicos {
    background: var(--bg-light);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

/* Bento layout — cards featured (row 1: 2 cards 50/50), row 2: 3 equal, row 3: full-width */
.servico-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

.servico-card.card-featured {
    grid-column: span 3;
    padding: 2.5rem;
}

.servico-card.card-cta {
    grid-column: span 6;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 60%, var(--accent-color) 100%);
    border-color: transparent;
}

.servico-card.card-cta .card-number {
    color: rgba(255, 255, 255, 0.12);
}

.servico-card.card-cta .servico-icon {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    min-width: 56px;
}

.servico-card.card-cta .servico-title {
    color: white;
}

.servico-card.card-cta .servico-description {
    color: rgba(255, 255, 255, 0.75);
}

.servico-card.card-cta .card-arrow {
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
    margin-top: 0;
    font-size: 1.5rem;
    min-width: 24px;
}

.servico-card.card-cta:hover .card-arrow {
    color: white;
    transform: translateX(4px);
}

/* Hover effects */
.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.servico-card.card-cta::before {
    display: none;
}

.servico-card:hover::before {
    transform: scaleX(1);
}

.servico-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(10, 22, 162, 0.1);
    border-color: rgba(10, 22, 162, 0.12);
}

.servico-card.card-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(10, 22, 162, 0.3);
}

/* Card number */
.card-number {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(10, 22, 162, 0.04);
    line-height: 1;
    letter-spacing: -2px;
    pointer-events: none;
    transition: color 0.4s ease;
}

.servico-card:hover .card-number {
    color: rgba(10, 22, 162, 0.08);
}

/* Card arrow */
.card-arrow {
    display: inline-block;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 1.25rem;
    color: var(--primary-color);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.servico-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.servico-icon {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10, 22, 162, 0.06), rgba(79, 95, 230, 0.1));
    transition: all 0.4s ease;
}

.servico-card:hover .servico-icon {
    background: linear-gradient(135deg, rgba(10, 22, 162, 0.1), rgba(79, 95, 230, 0.15));
    transform: scale(1.05);
}

.servico-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.card-featured .servico-title {
    font-size: 1.25rem;
}

.servico-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* Contato Section */
.contato {
    background-color: var(--bg-white);
    background-image: radial-gradient(circle, rgba(10, 22, 162, 0.025) 1px, transparent 1px);
    background-size: 24px 24px;
}

.contato-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: 960px;
    margin: 0 auto;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(10, 22, 162, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.contato-form .btn {
    width: 100%;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-top: 0.25rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(10, 22, 162, 0.08), rgba(79, 95, 230, 0.1));
    color: var(--primary-color);
    margin-top: 0.1rem;
}

.info-item h3 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.info-item p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--bg-light);
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-copy {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 16px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--text-dark);
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .servico-card,
    .servico-card.card-featured,
    .servico-card.card-cta {
        grid-column: span 1;
    }

    .servico-card.card-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .servico-card.card-cta .card-arrow {
        margin-left: 0;
    }

    .contato-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    section {
        padding: 4.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.8rem 1.75rem;
    }
}
