/* ==========================================================================
   CONTABILIZARE - DESIGN SYSTEM & STYLESHEET (NAVY & GOLD PREMIUM)
   ========================================================================== */

:root {
    /* Cores de Identidade (Do Branding Card) */
    --navy-deep: #0a1120;
    --navy-primary: #13223f;
    --navy-medium: #1b2e54;
    --navy-light: #253e70;
    --navy-glow: rgba(19, 34, 63, 0.25);
    
    --gold-primary: #caa34b;
    --gold-light: #dfbe6f;
    --gold-dark: #ad8432;
    --gold-glow: rgba(202, 163, 75, 0.35);
    
    --white: #ffffff;
    --ice-gray: #f8fafc;
    --ice-gray-dark: #f1f5f9;
    
    /* Cores de Texto */
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    /* Configurações Globais */
    --border-color: #e2e8f0;
    --border-gold: rgba(202, 163, 75, 0.3);
    --border-navy: rgba(19, 34, 63, 0.15);
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    --card-shadow-hover: 0 20px 40px rgba(19, 34, 63, 0.08);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Tipografia */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Playfair Display', serif;
}

/* ==========================================================================
   RESET & SETUP
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    outline: none;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   SCROLL PROGRESS BAR & SCROLLBAR
   ========================================================================== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2000;
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
    transition: width 0.1s ease-out;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--ice-gray);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-medium);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ==========================================================================
   REVEAL ON SCROLL ANIMATIONS (ControlSoft style)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Floating Animations for Pills */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-gold {
    background-color: var(--gold-primary);
    color: var(--navy-deep);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px var(--gold-glow);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--navy-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background-color: var(--gold-primary);
    color: var(--navy-deep);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 24px;
}

/* ==========================================================================
   TOP BAR (CONTACT INFO)
   ========================================================================== */
.top-bar {
    background-color: var(--navy-deep);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
    padding: 8px 0;
    position: relative;
    width: 100%;
    z-index: 1002;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contacts {
    display: flex;
    gap: 20px;
}

.top-contacts a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.top-contacts a:hover {
    color: var(--gold-primary);
}

.top-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.crc-tag {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    transition: var(--transition-smooth);
}

#main-header.scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 8px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-medium);
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1003;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background-color: var(--navy-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-only-nav-action,
.mobile-menu-contacts {
    display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 180px 0 120px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-tagline {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-title);
    letter-spacing: 1.5px;
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(202, 163, 75, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(202, 163, 75, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(202, 163, 75, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(202, 163, 75, 0); }
}

.hero-title {
    font-family: var(--font-title);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 18px;
}

.hero-title span {
    color: var(--gold-primary);
}

.hero-slogan-cursive {
    font-family: var(--font-script);
    font-size: 26px;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Overlap Feature Cards */
.hero-features-grid {
    display: grid;
    gap: 20px;
    transition: transform 0.2s ease-out; /* Parallax smooth */
}

.feature-quick-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.feature-quick-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--gold-primary);
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.quick-card-icon {
    font-size: 24px;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.feature-quick-card h4 {
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.feature-quick-card p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* ==========================================================================
   STATS DASHBOARD
   ========================================================================== */
.stats-dashboard {
    background-color: var(--ice-gray-dark);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-dashboard-item {
    padding: 10px;
}

.stat-num {
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-light);
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px auto;
}

.section-subtitle {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-title);
    font-size: 38px;
    font-weight: 800;
    color: var(--navy-primary);
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.section-title.text-light-bg {
    color: var(--navy-primary);
}

.section-desc {
    color: var(--text-medium);
    font-size: 16px;
    margin-top: 14px;
}

/* ==========================================================================
   NOSSOS VALORES SECTION (Exatamente como a imagem)
   ========================================================================== */
.valores-section {
    background-color: var(--white);
    padding: 96px 0;
}

.values-slogan {
    margin-top: 16px;
}

.values-cursive-slogan {
    font-family: var(--font-script);
    font-size: 24px;
    font-style: italic;
    color: var(--gold-primary);
}

/* Pílulas de valores - alinhado com o topo do Card */
.value-pills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.value-pill {
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: 1.5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}

.value-pill.filled {
    background-color: var(--gold-primary);
    color: var(--navy-primary);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.value-pill.outlined {
    background-color: transparent;
    border: 2.5px solid var(--navy-primary);
    color: var(--navy-primary);
}

/* Grid de Valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.value-card-box {
    border-radius: 12px;
    padding: 36px 30px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.value-card-box.filled-style {
    background-color: var(--white);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 8px 24px rgba(202, 163, 75, 0.05);
}

.value-card-box.filled-style:hover {
    transform: translateY(-6px);
    background-color: rgba(202, 163, 75, 0.03);
    box-shadow: 0 16px 32px var(--gold-glow);
}

.value-card-box.outline-style {
    background-color: var(--white);
    border: 2px solid var(--navy-primary);
    box-shadow: 0 8px 24px rgba(19, 34, 63, 0.03);
}

.value-card-box.outline-style:hover {
    transform: translateY(-6px);
    background-color: rgba(19, 34, 63, 0.02);
    box-shadow: 0 16px 32px var(--navy-glow);
}

.value-box-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.value-box-icon {
    font-size: 22px;
}

.filled-style .value-box-icon, 
.filled-style .value-box-header h3 {
    color: var(--gold-dark);
}

.outline-style .value-box-icon, 
.outline-style .value-box-header h3 {
    color: var(--navy-primary);
}

.value-box-header h3 {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.value-card-box p {
    font-size: 14.5px;
    color: var(--text-medium);
    line-height: 1.5;
}

.double-span-desktop {
    grid-column: span 1; /* Padrão mobile/tablet */
}

@media (min-width: 992px) {
    .double-span-desktop {
        grid-column: span 1.5; /* Ajuste no desktop */
    }
    
    /* Configuração de layout de linha do card */
    .values-grid .value-card-box:nth-child(7) {
        grid-column: 1 / 3;
    }
    .values-grid .value-card-box:nth-child(8) {
        grid-column: 3 / 4;
    }
}

.values-footer-line {
    text-align: center;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--navy-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 40px;
}

/* ==========================================================================
   QUEM SOMOS & VÍDEO INSTITUCIONAL
   ========================================================================== */
.sobre-section {
    background-color: var(--ice-gray);
    padding: 96px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.about-info-panel h2 {
    margin-bottom: 20px;
}

.about-info-panel p {
    color: var(--text-medium);
    font-size: 15.5px;
    margin-bottom: 20px;
}

.about-pillars {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.pillar-item {
    display: flex;
    gap: 16px;
}

.pillar-icon {
    font-size: 20px;
    color: var(--gold-primary);
    margin-top: 4px;
}

.pillar-item strong {
    font-family: var(--font-title);
    font-size: 16.5px;
    font-weight: 800;
    color: var(--navy-primary);
    display: block;
    margin-bottom: 4px;
}

.pillar-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.about-video-panel {
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(19, 34, 63, 0.15);
    border: 3px solid var(--navy-primary);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-caption {
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--text-light);
    font-style: italic;
}

.video-caption i {
    color: var(--gold-primary);
    margin-right: 4px;
}

/* ==========================================================================
   NEW SECTION: SETORES DE ATUAÇÃO (High-Life Glassmorphic Visuals)
   ========================================================================== */
.setores-section {
    background-color: var(--ice-gray-dark);
    padding: 96px 0;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.sector-showcase-card {
    position: relative;
    border-radius: 16px;
    height: 480px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.sector-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--gold-primary);
}

.sector-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.sector-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sector-showcase-card:hover .sector-bg-img {
    transform: scale(1.1);
}

.sector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(14, 24, 44, 0.4), rgba(10, 17, 32, 0.85));
    z-index: 2;
}

/* Glassmorphic card overlaying the image */
.sector-glass-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 30px;
    z-index: 5;
    color: var(--white);
    transition: var(--transition-smooth);
    transform: translateY(0) translateZ(0); /* Base de tilt */
}

.sector-showcase-card:hover .sector-glass-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-light);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.sector-num-badge {
    position: absolute;
    top: -20px;
    right: 24px;
    background-color: var(--gold-primary);
    color: var(--navy-deep);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--gold-glow);
}

.sector-glass-card h3 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    border-left: 3px solid var(--gold-primary);
    padding-left: 10px;
}

.sector-glass-card p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 20px;
}

.sector-card-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.sector-card-highlights span {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sector-card-highlights span i {
    font-size: 14px;
}

/* ==========================================================================
   SOLUÇÕES / SERVIÇOS
   ========================================================================== */
.solucoes-section {
    background-color: var(--white);
    padding: 96px 0;
}

.solucoes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solucao-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.solucao-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: var(--card-shadow-hover);
}

.solucao-card-badge {
    background-color: var(--navy-primary);
    color: var(--gold-primary);
    padding: 16px 24px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solucao-card-body {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.solucao-card-body h3 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 10px;
}

.solucao-card-body p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.solucao-features {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.solucao-features li {
    font-size: 14px;
    color: var(--text-medium);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.solucao-features li i {
    color: var(--gold-primary);
    margin-top: 3px;
    font-size: 12px;
}

.solucao-btn {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    color: var(--navy-primary);
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.solucao-card:hover .solucao-btn {
    color: var(--gold-primary);
    transform: translateX(4px);
}

/* ==========================================================================
   SIMULADOR TRIBUTÁRIO (HUB AGRO)
   ========================================================================== */
.simulador-section {
    background-color: var(--navy-primary);
    color: var(--white);
    padding: 96px 0;
}

.simulador-section .section-title {
    color: var(--white);
}

.simulador-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.simulator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

.simulator-form-card, .simulator-result-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.simulator-form-card h3, .simulator-result-card h3 {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.sim-card-intro {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.sim-input-group {
    margin-bottom: 28px;
}

.sim-input-group label {
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.sim-val-display {
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 8px;
}

.sim-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    margin-bottom: 8px;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    border: 2px solid var(--navy-primary);
}

.sim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background-color: var(--gold-light);
}

.sim-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

/* Outputs */
.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    gap: 16px;
}

.placeholder-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
}

.result-placeholder h4 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
}

.result-placeholder p {
    font-size: 14px;
    max-width: 280px;
}

.savings-value {
    font-family: var(--font-title);
    font-size: 52px;
    font-weight: 900;
    color: var(--gold-primary);
    letter-spacing: -1px;
}

.savings-details {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-bars {
    display: grid;
    gap: 20px;
}

.comp-bar-row {
    display: grid;
    gap: 6px;
}

.comp-label {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    font-family: var(--font-title);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.tax-amount-lbl {
    font-weight: 800;
}

.comp-bar-bg {
    background-color: rgba(255, 255, 255, 0.06);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.comp-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-fill {
    background-color: rgba(255, 255, 255, 0.3);
}

.pj-fill {
    background-color: var(--gold-primary);
}

.recommendation-box {
    margin-top: 28px;
    background-color: rgba(202, 163, 75, 0.08);
    border: 1px dashed var(--gold-primary);
    color: var(--gold-light);
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 14px;
}

/* ==========================================================================
   CONTATO & EMBLEMA
   ========================================================================== */
.contato-section {
    background-color: var(--white);
    padding: 96px 0;
}

.contact-card-box {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    background-color: var(--ice-gray);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--card-shadow);
}

.contact-box-info h3, .contact-box-form h3 {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 12px;
}

.contact-box-info p, .contact-box-form p {
    color: var(--text-medium);
    font-size: 14.5px;
    margin-bottom: 30px;
}

.contact-info-list {
    display: grid;
    gap: 20px;
    margin-bottom: 36px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start; /* Alinhamento ao topo para textos longos como endereço */
}

.info-icon-box {
    width: 24px; /* Tamanho do contêiner do ícone */
    height: 24px;
    background-color: transparent; /* Remove o quadrado azul */
    color: var(--navy-primary); /* Ícones na cor azul oficial */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Tamanho proporcional do ícone */
    flex-shrink: 0;
    margin-top: 2px; /* Pequeno ajuste de alinhamento com a primeira linha */
}

.contact-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.contact-info-item span {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light);
    display: block;
    letter-spacing: 0.5px;
}

.contact-info-item strong {
    font-size: 15px;
    color: var(--text-dark);
}

/* Hexagonal Logo Branding (Idêntico ao inferior da imagem) */
.hex-emblem-container {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.hex-outer {
    width: 54px;
    height: 60px;
    background-color: var(--navy-primary);
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-inner {
    width: 46px;
    height: 52px;
    background-color: var(--navy-primary);
    border: 2px solid var(--gold-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-logo-text {
    font-family: var(--font-title);
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    position: relative;
    left: -1px;
    display: block;
    border-bottom: 2px solid var(--gold-primary);
    border-top: 2px solid var(--gold-primary);
    line-height: 0.9;
}

.hex-emblem-text {
    display: flex;
    flex-direction: column;
}

.hex-emblem-text strong {
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-primary);
    letter-spacing: 0.5px;
}

.hex-emblem-text span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Formulário */
.input-form-group {
    margin-bottom: 20px;
}

.input-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-form-group label {
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.input-form-group input, .input-form-group textarea {
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.input-form-group input:focus, .input-form-group textarea:focus {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px var(--navy-glow);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--navy-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px 0;
    border-top: 4px solid var(--gold-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .footer-logo {
    max-height: 52px;
    margin-bottom: 18px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
    max-width: 380px;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background-color: var(--gold-primary);
    color: var(--navy-deep);
    transform: translateY(-2px);
}

.footer-links-col h4 {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: var(--gold-primary);
}

.footer-links-col ul {
    display: grid;
    gap: 12px;
}

.footer-links-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links-col a:hover {
    color: var(--gold-primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-slogan-line {
    margin-top: 14px;
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-primary);
    font-size: 14px;
}

/* ==========================================================================
   PARTNER LOGOS MARQUEE (ControlSoft style)
   ========================================================================== */
.parceiros-section {
    background-color: var(--white);
    padding: 60px 0 30px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.parceiros-title {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    display: flex;
}

.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 15%, rgba(255, 255, 255, 0));
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 15%, rgba(255, 255, 255, 0));
}

.marquee-content {
    display: flex;
    gap: 70px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 35px)); }
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-medium);
    opacity: 0.65;
    transition: var(--transition-smooth);
    cursor: default;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--navy-primary);
    transform: translateY(-2px);
}

.partner-logo i {
    font-size: 20px;
    color: var(--gold-primary);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
/* ==========================================================================
   RESPONSIVIDADE (TABLET BREAKPOINT - 1024PX)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Ocultar barra superior para otimizar espaço e evitar quebras */
    .top-bar {
        display: none;
    }
    
    #main-header {
        padding: 10px 0;
    }

    .header-logo {
        max-height: 44px;
        max-width: 180px; /* Evita que o logo transborde horizontalmente */
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        z-index: 999;
        
        /* Transição suave do menu mobile */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-actions {
        display: none; /* Oculta botão CTA no topo */
    }

    /* Mostrar contatos e botão dentro do menu mobile */
    .mobile-only-nav-action {
        display: block;
        margin-top: 10px;
        width: 100%;
    }

    .mobile-menu-contacts {
        display: flex;
        flex-direction: column;
        gap: 12px;
        border-top: 1px solid var(--border-color);
        padding-top: 18px;
        margin-top: 10px;
    }

    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: var(--text-medium);
        font-weight: 500;
    }

    .mobile-contact-item i {
        color: var(--gold-primary);
        font-size: 16px;
        width: 20px;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .valores-section, .sobre-section, .setores-section, .solucoes-section, .simulador-section, .contato-section {
        padding: 60px 0; /* Otimização de espaçamento vertical */
    }

    .section-header {
        margin-bottom: 36px;
    }

    .marquee-content {
        gap: 50px;
        animation-duration: 25s;
    }
    .marquee-wrapper::before, .marquee-wrapper::after {
        width: 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-features-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    
    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-video-panel {
        order: -1;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .sector-showcase-card {
        height: 440px;
    }
    
    .solucoes-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .simulator-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-card-box {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 36px;
    }
    
    .hex-emblem-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Otimizações de Espaço Vertical Mobile (Encurtar site) */
    .valores-section, .sobre-section, .setores-section, .solucoes-section, .simulador-section, .contato-section {
        padding: 40px 0; /* Tighter spacing */
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 26px; /* Títulos menores e legíveis no celular */
    }
    
    .hero {
        padding: 110px 0 50px 0; /* Padding ideal sem a top-bar */
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.25;
    }
    
    .hero-slogan-cursive {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Layout horizontal com swipe para os cartões rápidos no mobile */
    .hero-features-grid {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 16px;
        padding: 10px 4px 20px 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        text-align: left;
    }

    .hero-features-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .hero-features-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .hero-features-grid::-webkit-scrollbar-thumb {
        background: rgba(202, 163, 75, 0.3);
        border-radius: 2px;
    }
    
    .feature-quick-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
        padding: 18px;
    }
    
    .stats-wrapper {
        gap: 12px;
    }
    
    .stat-num {
        font-size: 30px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .value-pills-container {
        gap: 10px;
        margin-bottom: 24px;
    }
    
    .sectors-grid, .solucoes-grid {
        gap: 16px;
    }
    
    .value-card-box {
        padding: 20px 16px;
    }
    
    .about-wrapper {
        gap: 24px;
    }
    
    .sector-showcase-card {
        height: 340px;
    }
    
    .sector-glass-card {
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 20px;
    }
    
    .sector-glass-card p {
        margin-bottom: 12px;
        font-size: 12.5px;
    }
    
    .sector-card-highlights {
        padding-top: 10px;
    }
    
    .solucao-card-body {
        padding: 24px 20px;
    }
    
    .simulator-wrapper {
        gap: 20px;
    }
    
    .simulator-form-card, .simulator-result-card {
        padding: 24px 20px;
    }
    
    .contact-card-box {
        padding: 24px 16px;
        gap: 36px;
    }
    
    .contact-info-list {
        margin-bottom: 20px;
    }

    .parceiros-section {
        padding: 30px 0 15px 0; /* Spacing reduction */
    }
    .parceiros-title {
        font-size: 11px;
        margin-bottom: 16px;
    }
    .marquee-content {
        gap: 40px;
        animation-duration: 20s;
    }
    .marquee-wrapper::before, .marquee-wrapper::after {
        width: 50px;
    }
    .partner-logo {
        font-size: 14.5px;
    }
    .partner-logo i {
        font-size: 17px;
    }
    .sim-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .input-form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    footer {
        padding: 40px 0 30px 0;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr; /* Compact vertical stack on phone portrait */
        gap: 12px;
    }

    .sector-showcase-card {
        height: 300px; /* Reduced vertical footprint */
    }

    .simulator-form-card, .simulator-result-card {
        padding: 24px;
    }
    
    .savings-value {
        font-size: 38px;
    }
    
    .value-pill {
        padding: 8px 16px;
        font-size: 11px;
    }

    .contact-card-box {
        padding: 20px 12px;
        gap: 30px;
    }
}
