@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --navy-dark: #0f172a;
    --navy-hero: #0d6efd; /* Use primary blue for hero if needed */
    --blue-mid: #0b5ed7;
    --blue-hover: #0a58ca;
    --blue-accent: #0d6efd;
    --white: #ffffff;
    --bg-light: #f3f4f6;
    --text-navy: #1e293b;
    --text-muted: #64748b;
    
    /* Cores extras do sistema da imagem */
    --success-bg: #d1fae5;
    --success-text: #059669;
    --warning-bg: #fef3c7;
    --warning-text: #d97706;
    --btn-dark: #1f2937;
    --table-border: #e5e7eb;

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-navy);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 101; /* Keep above if needed */
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* Torna a logo preta */
    filter: brightness(0);
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

nav > ul > li {
    /* Removido position: relative para que o dropdown seja centralizado pelo nav (que já está no centro) */
}

nav a {
    color: var(--text-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
}

nav a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

nav > ul > li:hover > a {
    color: var(--blue-accent);
}

nav > ul > li:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Menu Horizontal Mega-Menu */
.dropdown {
    position: absolute;
    top: calc(100% + 25px); /* Abaixado mais um pouco */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    width: max-content;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    z-index: 100;
}

/* Pseudo-elemento transparente para não perder o hover na distância */
.dropdown::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
}

nav > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    width: auto;
}

.dropdown a {
    color: var(--navy-dark);
    padding: 15px 20px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dropdown a i {
    font-size: 24px;
    color: var(--navy-dark);
    transition: color 0.3s ease;
}

.dropdown a:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

.dropdown a.color-gestao:hover, .dropdown a.color-gestao:hover i { color: #2563eb; }
.dropdown a.color-agro:hover, .dropdown a.color-agro:hover i { color: #16a34a; }
.dropdown a.color-clinicas:hover, .dropdown a.color-clinicas:hover i { color: #06b6d4; }
.dropdown a.color-food:hover, .dropdown a.color-food:hover i { color: #f59e0b; }
.dropdown a.color-salao:hover, .dropdown a.color-salao:hover i { color: #db2777; }
.dropdown a.color-pet:hover, .dropdown a.color-pet:hover i { color: #8b5cf6; }
.dropdown a.color-agenda:hover, .dropdown a.color-agenda:hover i { color: #ea580c; }

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.7) 100%), url('fundo-topo.png');
    background-size: 100% auto; /* Ajustado para aparecer mais a imagem */
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #0b1120;
    color: var(--white);
    padding: 80px 0 100px; /* Reduzido o padding */
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-btn {
    background: var(--blue-accent);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    background: var(--blue-hover);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Compact Product Icons Section */
.compact-products {
    margin-bottom: 80px;
}

.compact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    /* Fixed clipping on hover */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.compact-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.compact-card {
    flex: 0 0 auto;
    min-width: 140px;
    background: var(--white);
    padding: 20px 10px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 18, 46, 0.02);
}

.compact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 18, 46, 0.06);
}

.compact-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: var(--blue-accent);
}

.compact-card span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-dark);
}

@media (max-width: 1024px) {
    .compact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Segments Section (Reference Match) */
.segments-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--white);
    /* Keeping white as default or using bg-light if preferred */
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.segments-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--navy-hero);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.segment-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    /* Force single row */
    overflow-x: auto;
    /* Allow scrolling if screen is too narrow */
    padding: 20px 0;
    /* Fixed clipping on hover */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.segment-grid::-webkit-scrollbar {
    display: none;
}

.segment-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 25px 15px;
    width: 170px;
    /* Slightly reduced to help fit */
    flex: 0 0 auto;
    /* Prevent shrinking */
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.segment-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--blue-accent);
}

.segment-icon-circle {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--blue-accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.segment-card span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-dark);
    line-height: 1.3;
}

/* Feature Detail Section (Reference Match) */
.feature-detail {
    background: var(--navy-hero);
    color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.breadcrumb {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.breadcrumb span {
    color: var(--blue-accent);
    font-weight: 600;
}

.feature-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.feature-info p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.check-list {
    list-style: none;
    margin-bottom: 48px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.check-list li::before {
    content: '•';
    color: var(--blue-accent);
    font-size: 24px;
    line-height: 1;
}

.button-group {
    display: flex;
    gap: 20px;
}

.btn-blue {
    background: var(--blue-accent);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-white {
    background: var(--white);
    color: var(--navy-dark);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-blue:hover,
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.lime-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--blue-accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.mockup-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.floating-doc {
    position: absolute;
    background: var(--white);
    color: var(--navy-dark);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: floating 4s ease-in-out infinite;
}

.doc-1 {
    top: -20px;
    right: -20px;
}

.doc-2 {
    bottom: 40px;
    left: -20px;
    animation-delay: 2s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .button-group {
        justify-content: center;
    }

    .check-list li {
        text-align: left;
    }

    .feature-visual {
        margin-top: 40px;
    }
}

/* Trust Bar */
.trust-bar {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: -60px auto 80px;
    position: relative;
    z-index: 10;
    max-width: 1100px;
    overflow: hidden;
    white-space: nowrap;
}

/* Connected Section */
.connected-section {
    padding: 100px 0;
    background: var(--bg-light);
    text-align: center;
}

.connected-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.connected-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.connected-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--blue-accent);
}

.connected-icon-box {
    font-size: 32px;
    color: var(--blue-accent);
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connected-card h3 {
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: var(--navy-dark);
}

.connected-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .connected-card {
        padding: 30px;
    }
}

.trust-track {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    animation: scroll-trust 40s linear infinite;
}

@keyframes scroll-trust {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); }
}

.trust-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-logo img {
    height: 40px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
    transition: all 0.3s ease;
}

.trust-logo img:hover {
    filter: grayscale(0%) opacity(100%);
}



/* Fiscal Documents Section - Refined Design */
.fiscal-docs {
    padding: 100px 0;
    background-color: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.fiscal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.fiscal-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 35px;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.fiscal-card:hover {
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--blue-accent);
}

.fiscal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.fiscal-tag {
    background: var(--navy-dark);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fiscal-header i {
    font-size: 24px;
    color: var(--blue-accent);
}

.fiscal-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--navy-dark);
}

.fiscal-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .fiscal-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: var(--white);
    color: var(--text-navy);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-navy);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--blue-accent);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-navy);
    font-size: 18px;
    transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
    background: var(--blue-accent);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-image {
        display: none;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    bottom: 12px;
    background: #ffffff;
    color: #0b1120;
    padding: 10px 16px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    width: 180px;
    line-height: 1.2;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    pointer-events: none;
    animation: fadeInTooltip 0.5s ease backwards 1s;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid #ffffff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 926px) {
    header {
        z-index: 10005;
    }
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    .whatsapp-tooltip {
        display: none; /* Hide on mobile to avoid clutter */
    }

    /* Mobile Menu Implementation */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 26px;
        color: var(--text-navy);
        cursor: pointer;
        z-index: 10002; /* Maior que o nav */
        margin-left: auto;
        padding: 10px;
        position: relative;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff; /* Branco sólido */
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        z-index: 10001; /* Maior que o overlay */
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding-top: 100px;
        transform: none;
        left: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 40px;
        gap: 15px;
    }

    nav a {
        font-size: 18px;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        justify-content: space-between;
        color: var(--text-navy) !important; /* Forçar cor escura */
        opacity: 1 !important;
    }

    /* Dropdown on mobile */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        grid-template-columns: 1fr;
        padding: 0 0 10px 20px;
        width: 100%;
        gap: 5px;
        background: #fff;
    }

    nav ul li.active .dropdown {
        display: grid;
    }

    .dropdown a {
        font-size: 14px;
        padding: 10px 0;
        flex-direction: row;
        border: none;
        align-items: center;
        gap: 12px;
        color: var(--text-navy) !important;
    }

    .dropdown a i {
        font-size: 18px;
        width: 24px;
    }

    /* Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6); /* Um pouco mais escuro para destaque */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 10000; /* Abaixo do nav e toggle */
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (min-width: 927px) {
    .mobile-menu-toggle {
        display: none;
    }
}