/* Modern SVI Soluções Stylesheet */

:root {
    /* SVI Color Palette */
    --svi-verde: #009E99;
    --svi-preto: #241F0C;
    --svi-texto-cinza: rgba(68, 68, 68, 0.856);
    --svi-texto-destaque: #009E99;
    --svi-texto-contraste-escuro: #FFF;
    --svi-texto-contraste-claro1: #10161A;
    --svi-texto-contraste-claro2: #354052;
    --svi-fundo-destaque: #009E99;
    
    /* Primary colors based on SVI palette */
    --primary-color: #009E99;
    --primary-dark: #007a75;
    --primary-light: #1ab5b0;
    --secondary-color: #241F0C;
    --secondary-dark: #1a160a;
    --accent-color: #009E99;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* SVI Gradients */
    --gradient-primary: linear-gradient(135deg, #009E99 0%, #007a75 100%);
    --gradient-secondary: linear-gradient(135deg, #009E99 0%, #1ab5b0 100%);
    --gradient-accent: linear-gradient(135deg, #009E99 0%, #00c4c4 100%);
    --gradient-dark: linear-gradient(135deg, #241F0C 0%, #354052 100%);
    
    /* Neutral Colors */
    --dark-color: #241F0C;
    --light-color: #ffffff;
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F4;
    --gray-200: #EEE;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: rgba(68, 68, 68, 0.856);
    --gray-600: #354052;
    --gray-700: #10161A;
    --gray-800: #241F0C;
    --gray-900: #241F0C;
    
    /* Typography - SVI Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Varela Round', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
}

.text-gradient.animate {
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { 
        background: var(--gradient-secondary);
    }
    50% { 
        background: var(--gradient-accent);
    }
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 2rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 2rem 0;
}

/* Navigation */
.navbar {
    background: rgba(36, 31, 12, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 158, 153, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Z-index alto para ficar acima de outros elementos */
}

.navbar.scrolled {
    background: rgba(36, 31, 12, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar-brand img {
    transition: var(--transition-normal);
}

.navbar-nav .nav-link {
    color: var(--svi-texto-contraste-escuro) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-normal);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--svi-verde) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--svi-verde);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

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

.cta-btn {
    background: var(--svi-verde) !important;
    background: linear-gradient(135deg, #009E99 0%, #007a75 100%) !important;
    border-radius: 25px !important;
    padding: 0.5rem 1.5rem !important;
    color: var(--svi-texto-contraste-escuro) !important;
    border: none;
    font-weight: 600;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    background: linear-gradient(135deg, #241F0C 0%, #354052 100%);
    color: var(--svi-texto-contraste-escuro);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 80px; /* Espaço para navbar fixa */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23009E9908" points="0,0 1000,300 1000,1000 0,700"/><circle fill="%23009E9905" cx="800" cy="200" r="100"/><circle fill="%23009E9903" cx="200" cy="800" r="150"/></svg>');
    background-size: cover;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-animation {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-xl);
}

.floating-icon.icon-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 30%;
    right: 10%;
    animation-delay: 0.5s;
    background: var(--gradient-secondary);
}

.floating-icon.icon-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 1s;
    background: var(--gradient-accent);
}

.floating-icon.icon-4 {
    bottom: 10%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-link {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-features {
    padding-left: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.feature-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Services Section */
.bg-light {
    background-color: var(--gray-50) !important;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--svi-texto-contraste-escuro);
}

.service-card h4 {
    margin-bottom: 1rem;
    color: var(--svi-texto-contraste-claro1);
}

.service-card p {
    color: var(--svi-texto-cinza);
    line-height: 1.6;
}

/* Products Section */
.product-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon i {
    font-size: 1.5rem;
    color: white;
}

.product-header h4 {
    margin: 0;
    color: var(--gray-900);
}

.product-header p {
    margin: 0;
    font-size: 0.875rem;
}

.product-features {
    padding: 0 2rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--gray-600);
}

.product-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.product-footer {
    padding: 1rem 2rem 2rem;
}

/* Contact Section */
.bg-dark {
    background: var(--gradient-dark) !important;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-label {
    color: var(--gray-200);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 0.75rem 1rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: white;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.contact-info {
    padding-left: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-icon i {
    color: var(--svi-texto-contraste-escuro);
    font-size: 1.25rem;
}

.contact-details h5 {
    margin: 0 0 0.25rem 0;
    color: var(--svi-texto-contraste-escuro);
    font-size: 1rem;
}

.contact-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-details a {
    color: var(--svi-verde);
}

.social-links {
    margin-top: 2rem;
}

.social-links h5 {
    color: white;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-icons a i {
    color: white;
    font-size: 1.25rem;
}

/* Contact Grid Styles */
.contact-grid .contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    text-align: left;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.contact-grid .contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-grid .contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: white;
}

.contact-grid .contact-details h5 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-grid .contact-details p {
    margin: 0;
}

.contact-grid .contact-details a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-grid .contact-details a:hover {
    color: var(--primary-color);
}

.contact-grid .social-links h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-grid .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-grid .social-icons a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.contact-grid .social-icons a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    transition: var(--transition-normal);
    border: none;
    font-family: var(--font-secondary);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--svi-texto-contraste-escuro);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--svi-texto-contraste-escuro);
    background: var(--primary-dark);
}

.btn-outline-primary {
    border: 2px solid var(--svi-verde);
    color: var(--svi-verde);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--svi-verde);
    color: var(--svi-texto-contraste-escuro);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    border-top: 1px solid var(--gray-800);
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-text p {
    margin: 0;
    color: var(--gray-400);
}

.footer-text .small {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-float a i {
    font-size: 1.5rem;
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.back-to-top i {
    color: white;
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        margin-top: 70px; /* Espaço para navbar fixa em tablets */
        padding-top: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .about-features {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .contact-info {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .hero-animation {
        height: 300px;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-content {
        margin-top: 80px; /* Espaço para navbar fixa */
        padding-top: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-content {
        margin-top: 100px; /* Espaço adicional para evitar sobreposição com menu */
        padding-top: 30px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        text-align: center;
        margin-top: 20px; /* Margem adicional */
        padding-top: 20px;
        z-index: 1;
        position: relative;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero-animation {
        height: 250px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Animations */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .floating-elements {
        display: none !important;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero-section {
        background: none;
        color: black;
    }
    
    .text-gradient {
        -webkit-text-fill-color: unset;
        color: black;
    }
}
