/* ========================================
   TRANSACIONEI - Design Moderno
   v2.1 - Footer??
   ======================================== */

/* Váriaveis CSS - Nova Paleta Moderna */
:root {
    --nt-primary: #1a365d;
    --nt-secondary: #2d5a87;
    --nt-accent: #00d4aa;
    --nt-accent-hover: #00b894;
    --nt-dark: #0d1b2a;
    --nt-light: #f8fafc;
    --nt-gray: #64748b;
    --nt-white: #ffffff;
    --nt-gradient: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    --nt-gradient-dark: linear-gradient(135deg, #1a365d 0%, #0d1b2a 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Z-index scale */
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-modal: 30;
    --z-tooltip: 50;
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background-color: var(--nt-dark);
    color: var(--nt-white);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Legibilidade */
p {
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--nt-accent);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Navbar Moderna */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar .nav-link {
    color: var(--nt-dark) !important;
}

.navbar .nav-link::after {
    background: var(--nt-accent);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--nt-primary) !important;
}

.navbar .nav-link-login {
    color: var(--nt-primary) !important;
}

.navbar .nav-link-login:hover {
    color: var(--nt-accent) !important;
}

.navbar .btn-outline-success {
    border-color: var(--nt-primary);
    color: var(--nt-primary) !important;
}

.navbar .btn-outline-success:hover {
    background: var(--nt-primary);
    color: white !important;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--nt-accent);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--nt-accent) !important;
}

.nav-link:hover::after {
    width: calc(100% - 40px);
}

.nav-link:focus {
    outline: 2px solid var(--nt-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-link.active {
    color: var(--nt-accent) !important;
}

.nav-link.active::after {
    width: calc(100% - 40px);
}

.nav-link-login {
    color: var(--nt-accent) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
}

.nav-link-login:hover {
    color: var(--nt-accent-hover) !important;
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    background: var(--nt-gradient-dark);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imagem/fundo.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4.2rem;
    }
}

.hero-title span {
    background: var(--nt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    margin-bottom: 35px;
    border-left: 3px solid var(--nt-accent);
    padding-left: 20px;
    line-height: 1.8;
}

/* Botões Modernos - Touch & Accessibility */
.btn-elite {
    background: var(--nt-gradient);
    color: var(--nt-dark);
    padding: 16px 36px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    border: none;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
    min-height: 44px;
    cursor: pointer;
}

.btn-elite:focus {
    outline: 3px solid var(--nt-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(26, 54, 93, 0.3);
}

.btn-elite:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.5);
    color: var(--nt-dark);
}

.btn-outline-success {
    border: 2px solid var(--nt-accent);
    color: var(--nt-accent) !important;
    border-radius: 25px;
    transition: all 0.3s;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
}

.btn-outline-success:focus {
    outline: 2px solid var(--nt-accent);
    outline-offset: 3px;
}

.btn-outline-success:hover {
    background: var(--nt-accent);
    color: var(--nt-dark) !important;
}

/* Imagem Overlay */
.image-overlay-box {
    position: relative;
}

.image-overlay-box img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.3);
    border: 2px solid var(--glass-border);
    width: 100%;
    transition: transform 0.3s;
}

.image-overlay-box:hover img {
    transform: translateY(-10px);
}

/* Sections */
.section-solucoes {
    background: var(--nt-light);
    color: var(--nt-dark);
    padding: 100px 0;
}

.section-title-label {
    color: var(--nt-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Solution Cards Modernos */
.solution-card {
    background: var(--nt-dark);
    padding: 35px;
    border-radius: 20px;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--nt-gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--nt-accent);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card i {
    font-size: 2.5rem;
    color: var(--nt-accent);
    margin-bottom: 20px;
    display: block;
}

.solution-card h4 {
    color: var(--nt-white);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.solution-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* FAQ Accordion Moderno */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    background: transparent;
}

.accordion-button {
    background: var(--nt-dark) !important;
    color: var(--nt-white) !important;
    border-radius: 15px !important;
    padding: 20px 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.accordion-button:not(.collapsed) {
    background: var(--nt-accent) !important;
    color: var(--nt-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.accordion-button:focus {
    box-shadow: none;
    outline: 2px solid var(--nt-accent);
    outline-offset: 2px;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(0);
    opacity: 1;
}

.accordion-body {
    background: var(--nt-dark);
    border-radius: 0 0 15px 15px;
    padding: 20px 25px;
    color: rgba(255, 255, 255, 0.8);
}

/* CTA Box */
.cta-box {
    background: var(--nt-gradient);
    border-radius: 25px;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-box h2 {
    color: var(--nt-dark);
    font-weight: 800;
}

.cta-box p {
    color: var(--nt-dark);
    opacity: 0.85;
}

/* Footer Moderno */
.main-footer {
    background: #061220;
    color: var(--nt-white);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links h6 {
    color: var(--nt-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s;
    font-size: 0.9rem;
    padding: 8px 0;
    width: 100%;
}

.footer-links a:hover {
    color: var(--nt-accent);
    padding-left: 8px;
}

.footer-links a:focus {
    outline: 2px solid var(--nt-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Footer Responsive */
.main-footer .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.main-footer .col-lg-4,
.main-footer .col-lg-3,
.main-footer .col-lg-2,
.main-footer .col-md-4 {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

@media (min-width: 992px) {
    .main-footer .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .main-footer .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .main-footer .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .main-footer .col-lg-4,
    .main-footer .col-lg-3,
    .main-footer .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .main-footer .col-lg-4:nth-child(2n+1) {
        clear: left;
    }
}

/* Footer Grid - Layout moderno */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.footer-col {
    min-width: 0;
    width: 100%;
}

.footer-brand {
    grid-column: span 1;
}

.footer-links h6 {
    margin-bottom: 16px;
    display: block;
}

.footer-links a {
    display: block;
    width: 100%;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
}

.copyright-bar {
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    padding-top: 25px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.m4s-logo-link img {
    height: 40px;
    width: auto;
    margin-left: 15px;
    transition: transform 0.3s;
}

.m4s-logo-link:hover img {
    transform: scale(1.1);
}

.credits-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Animações */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 170, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 170, 0.5); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .solution-card {
        margin-bottom: 20px;
    }
}

/* Section Background Alternado */
.section-dark {
    background: var(--nt-dark);
    padding: 100px 0;
}

.section-dark .solution-card {
    background: linear-gradient(145deg, var(--nt-dark), var(--nt-primary));
}

/* Feature Icons Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    padding: 30px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--nt-accent);
}

.feature-item h5 {
    color: var(--nt-white);
    font-weight: 700;
    margin: 15px 0;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--nt-accent);
}

/* Contato Form */
.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--nt-white);
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.3s;
    min-height: 48px;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--nt-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2);
    color: var(--nt-white);
    outline: none;
}

.form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    color: var(--nt-white);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Alert Messages */
.alert-success {
    background: rgba(0, 212, 170, 0.2);
    border: 1px solid var(--nt-accent);
    color: var(--nt-accent);
    border-radius: 12px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 12px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus {
    outline: 3px solid var(--nt-primary);
    outline-offset: 4px;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 36px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        bottom: 16px;
        right: 16px;
    }
}
