:root {
    --primary-color: #04642e;
    --primary-light: #059862;
    --primary-dark: #033d1c;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --hero-green: #00ff37;
    --footer-green: #00ff37;
}

/* Import Google Fonts - Red Hat Text */
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Global Styles */
body {
    font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.text-success {
    color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--primary-color) !important;
}

/* Header Styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
    padding: 0.75rem 1rem;
}

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

/* Phone Pill in Header */
.phone-pill {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.phone-pill:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 100, 46, 0.3);
}

.phone-pill i {
    font-size: 16px;
}

/* Navbar layout adjustments */
.navbar-collapse {
    justify-content: flex-end;
}

.navbar-phone {
    margin-left: 1rem;
}

/* Hero Section with Video Background */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Fallback background image */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.pexels.com/photos/957024/forest-trees-perspective-bright-957024.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
    pointer-events: none;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .text-success {
    color: var(--hero-green) !important;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

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

/* WhatsApp Float Button - Inteligente que não sobrepõe o rodapé */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 280px;
    transform: translateY(0);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-float .whatsapp-text {
    display: none;
}

/* Estados do botão WhatsApp */
.whatsapp-float.footer-mode {
    position: absolute;
    bottom: auto;
    right: 20px;
    transform: translateY(-100%);
}

@media (min-width: 768px) {
    .whatsapp-float .whatsapp-text {
        display: block;
    }
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float.footer-mode {
        right: 15px;
    }
}

/* Section Styles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

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

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Section */
.services-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.service-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.service-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Stat Cards - Altura uniforme em todas as telas */
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    min-height: 200px; /* Altura mínima para uniformidade */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Transport Cards */
.transport-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.transport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.transport-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.transport-capacity {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(4, 100, 46, 0.25);
}

/* FAQ Styles */
.accordion-button {
    font-weight: 600;
    color: #333;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(4, 100, 46, 0.25);
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg) !important;
    position: relative;
}

/* Footer - TODOS os textos e links em branco com máxima especificidade */
footer,
footer p,
footer h5,
footer div,
footer span,
footer small,
footer .text-muted,
footer .small {
    color: white !important;
}

footer a,
footer a:link,
footer a:visited {
    color: white !important;
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: underline;
}

/* Footer - ícones na cor #00ff37 */
footer i {
    color: var(--footer-green) !important;
}

/* Força todos os elementos de texto no footer a serem brancos */
footer * {
    color: white !important;
}

/* Exceção apenas para os ícones */
footer i {
    color: var(--footer-green) !important;
}

/* Força especificamente os elementos problemáticos */
footer .text-muted,
footer .small,
footer small {
    color: white !important;
}

.filter-white {
    filter: brightness(0) invert(1);
}

.text-light-50 {
    color: white !important;
}

/* Product Page Styles */
.specs-table {
    background: #f8f9fa;
    border-radius: 15px;
}

.spec-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

/* Admin Styles */
.admin-sidebar {
    background-color: var(--primary-color);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

.admin-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 15px;
}

.card-header {
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* Drag and Drop Upload */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(4, 100, 46, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.upload-area.dragover i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Mobile navbar adjustments */
    .navbar-collapse {
        justify-content: flex-start;
    }
    
    .navbar-phone {
        margin-left: 0;
        margin-top: 1rem;
        text-align: center;
    }
    
    .phone-pill {
        justify-content: center;
        width: 100%;
    }
    
    /* Mobile contact items - centralized */
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Mobile stat cards - altura uniforme garantida */
    .stat-card {
        margin-bottom: 1.5rem;
        min-height: 180px; /* Altura mínima menor no mobile */
        padding: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Mobile service cards */
    .service-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        margin-bottom: 1rem;
    }
    
    /* Mobile transport cards - already centered */
    .transport-card {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile product cards - already centered */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile footer - centralized */
    footer .row > div {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    footer .d-flex {
        justify-content: center !important;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    footer .d-flex.align-items-start {
        align-items: center !important;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
    
    /* Mobile specs table */
    .specs-table .row {
        text-align: center;
    }
    
    .spec-item {
        margin-bottom: 1rem;
    }
    
    /* Mobile about content */
    .about-content {
        text-align: center;
    }
    
    /* Mobile services content */
    .services-content {
        text-align: center;
    }
    
    /* Mobile FAQ */
    .accordion {
        text-align: left;
    }
    
    /* Mobile form wrapper */
    .contact-form-wrapper {
        padding: 1.5rem;
        text-align: left;
    }
    
    /* Mobile breadcrumb */
    .breadcrumb {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-content,
    .transport-card,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    /* Extra small mobile adjustments */
    .stat-card {
        padding: 1.25rem;
        min-height: 160px; /* Altura ainda menor para telas muito pequenas */
    }
    
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .transport-card {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    /* Mobile hero buttons */
    .hero-buttons {
        text-align: center;
    }
    
    /* Mobile section headers */
    .section-title,
    .section-description {
        text-align: center;
    }
    
    /* Mobile map placeholder */
    .map-placeholder {
        text-align: center;
    }
}

/* Utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

.btn-rounded {
    border-radius: 50px;
}

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

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

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: rgba(4, 100, 46, 0.1);
    color: var(--primary-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Mobile-specific improvements for better UX */
@media (max-width: 768px) {
    /* Ensure all cards and blocks are properly centered */
    .card,
    .transport-card,
    .product-card,
    .contact-item,
    .service-card {
        text-align: center;
    }
    
    /* Center all icons in mobile */
    .transport-icon,
    .contact-item i,
    .service-icon {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Mobile button improvements */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile image improvements */
    .img-fluid {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Mobile table improvements */
    .table-responsive {
        text-align: center;
    }
    
    /* Mobile list improvements */
    .list-unstyled {
        text-align: center;
    }
    
    .list-unstyled li {
        margin-bottom: 0.5rem;
    }
}