:root {
    /* Mandatory Palette */
    --blue-600: #0B4DBA;
    --blue-900: #082F6A;
    --white: #FFFFFF;
    --gray-900: #1F2937;
    --yellow-500: #F4C542;

    /* Secondary Shades */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --blue-50: #EEF2FF;

    /* Typography (Outfit) */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Spacing/Tokens */
    --container-max-width: 1400px;
    --radius-full: 9999px;
    --radius-lg: 2.5rem;
    /* Bento 2.0 aesthetic */
    --radius-md: 0.75rem;

    /* Premium Motion (Spring Physics) */
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-spring: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);

    /* Elevation */
    --shadow-diffusion: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gray-900);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}


h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation & Header --- */
.header-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    height: 140px;
    /* Expansão Maximus para acomodar logo com whitespace */
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-glass.scrolled {
    height: 100px;
    /* Mantém altura generosa ao rolar */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-diffusion);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}


.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--gray-600);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-600);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--blue-900);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Buttons & CTAs --- */
.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(11, 77, 186, 0.3);
}

.btn-primary:hover {
    background: var(--blue-900);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 77, 186, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--blue-900);
    transform: translateY(-2px);
}

/* --- Hero (Asymmetric) --- */
.hero-split {
    background: var(--blue-900);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    /* Offset for header */
}

.hero-split::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(rgba(8, 47, 106, 0.2), rgba(8, 47, 106, 0.8)),
        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    color: var(--yellow-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 2rem;
}

.hero-content .text-accent {
    opacity: 0.8;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 550px;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.visual-badge {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: var(--white);
    color: var(--blue-900);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-diffusion);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 3;
}

.badge-number {
    font-size: 4rem;
    font-weight: 950;
    line-height: 1;
    color: var(--blue-600);
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}


/* --- Sections General --- */
section {
    padding: 120px 0;
}

.section-tag {
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-header h2 {
    font-size: 3.5rem;
    color: var(--blue-900);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 4rem;
}

/* --- Highlights Grid --- */
.highlights-grid {
    background: var(--white);
    padding: 80px 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.highlight-item {
    padding: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    transition: var(--transition-smooth);
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow-diffusion);
    border-color: var(--blue-600);
}

.h-number {
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--blue-600);
    margin-bottom: 1rem;
}

.highlight-item h4 {
    font-size: 1.25rem;
    color: var(--blue-900);
    margin-bottom: 1rem;
}

.highlight-item p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* --- Services - Bento Grid (Variance 8) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 2rem;
}

.bento-card {
    background: var(--gray-50);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-spring);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:nth-child(1) {
    grid-column: span 5;
}

.bento-card:nth-child(2) {
    grid-column: span 7;
    background: var(--blue-50);
    border: 1px solid rgba(11, 77, 186, 0.1);
}

.bento-card:nth-child(3) {
    grid-column: span 12;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: var(--white);
    box-shadow: var(--shadow-diffusion);
    border-color: var(--blue-600);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--blue-600);
    margin-bottom: 2rem;
}

.bento-card:nth-child(3) .card-icon {
    margin-bottom: 0;
}

.card-content h3 {
    font-size: 1.75rem;
    color: var(--blue-900);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

/* --- About Detailed (New) --- */
.about-detailed {
    background: var(--gray-50);
}

.about-grid-main {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.about-intro {
    max-width: 900px;
}

.about-intro h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--blue-900);
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* Process Steps */
.process-header {
    margin-bottom: 3rem;
}

.process-header h3 {
    font-size: 2rem;
    color: var(--blue-900);
    margin-bottom: 1rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--blue-600);
    box-shadow: var(--shadow-sm);
}

.step-num {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--blue-50);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.step-card h4 {
    color: var(--blue-600);
    margin-bottom: 1rem;
}

/* Services & Pillars Box */
.about-services-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.services-box,
.pillars-box {
    background: var(--white);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-diffusion);
}

.services-box h3,
.pillars-box h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--blue-900);
}

.custom-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.custom-list i {
    color: var(--blue-600);
}

.pillars-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pillar-item strong {
    display: block;
    color: var(--blue-600);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pillar-item span {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* About Footer */
.about-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 4rem;
    border-top: 1px solid var(--gray-200);
}

.location-box {
    max-width: 600px;
}

.location-box h4 {
    margin-bottom: 1rem;
    color: var(--blue-900);
}

.cta-mini {
    text-align: right;
}

.cta-mini p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    color: var(--blue-900);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .about-services-pillars {
        grid-template-columns: 1fr;
    }

    .about-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    .cta-mini {
        text-align: left;
    }
}

/* --- Contact Premium --- */
.contact-premium {
    background: var(--gray-50);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: flex-start;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
}

.channel-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 600;
    color: var(--blue-900);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.channel-card i {
    font-size: 1.5rem;
    color: var(--blue-600);
}

.channel-card.active {
    background: var(--blue-600);
    color: var(--white);
}

.channel-card.active i {
    color: var(--white);
}

.channel-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-diffusion);
    border-color: var(--blue-600);
}

.contact-meta {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

.meta-item {
    display: flex;
    gap: 1.5rem;
}

.meta-item i {
    font-size: 1.5rem;
    color: var(--blue-600);
    margin-top: 0.25rem;
}

.meta-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-card {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-diffusion);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--blue-900);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(11, 77, 186, 0.1);
}

textarea {
    height: 150px;
    resize: none;
}

.w-full {
    width: 100%;
    justify-content: center;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.form-divider:not(:empty)::before {
    margin-right: 1.5rem;
}

.form-divider:not(:empty)::after {
    margin-left: 1.5rem;
}


/* --- Footer Modern --- */
.footer-modern {
    background: var(--blue-900);
    color: var(--white);
    padding: 8rem 0 4rem;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.footer-brand p {
    max-width: 400px;
    opacity: 0.7;
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.footer-links h4 {
    color: var(--yellow-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--yellow-500);
    padding-left: 5px;
}

.footer-links li {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4rem;
    opacity: 0.5;
    font-size: 0.875rem;
}

.footer-tagline {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations & Reveal States */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-smooth);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-smooth);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.active-reveal {
    opacity: 1;
    transform: translate(0);
}

/* Fallback: If animations are disabled or JS fails, show content */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Base state for scroll reveal - modified to be visible if JS is blocked or slow */
.reveal,
.reveal-left,
.reveal-right,
.reveal-up {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {

    .hero-layout,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card {
        grid-column: span 1 !important;
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2rem;
    }
}

/* ==== LOGO: Compensação de Whitespace (Zoom Digital) ==== */
.logo-main,
.logo-footer {
    opacity: 1 !important;
    filter: none !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
    transition: var(--transition-smooth);
    max-width: none !important;
    transform-origin: center;
    /* Zoom a partir do centro */
}

.logo-main {
    height: 140px !important;
    /* Altura do container */
    width: auto !important;
    object-fit: contain !important;
    transform: scale(1.7);
    /* COMPENSAÇÃO: "Zoom" na imagem para ignorar bordas transparentes */
}

.header-glass.scrolled .logo-main {
    height: 100px !important;
    transform: scale(1.5);
}

.logo-footer {
    height: 250px !important;
    width: auto !important;
    margin-bottom: 4rem !important;
    object-fit: contain !important;
    transform: scale(1.9);
    /* COMPENSAÇÃO: Zoom agressivo no rodapé */
}

/* Responsividade de Escala */
@media (max-width: 768px) {
    .header-glass {
        height: 110px;
    }

    .logo-main {
        height: 110px !important;
        transform: scale(1.5);
    }

    .logo-footer {
        height: 180px !important;
        transform: scale(1.6);
    }
}