/* Custom styles for Mosaico Tecnologia Agricola LTDA - Inspirado no AgroMetrics */

:root {
    --primary: #28a745;
    --primary-dark: #218838;
    --secondary: #2196F3;
    --dark: #37474F;
    --light: #ECEFF1;
    --text-dark: #263238;
    --text-light: #FFFFFF;
    --text-muted: #78909C;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FAFAFA;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

header .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

header .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

header .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

header .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.swiper-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

.hero {
    padding: 4rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/hero-banner.svg');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
}

/* Services Section */
.services {
    padding: 2rem 0;
}

.services h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.services h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

/* Service Detail Page */
.service-detail {
    padding: 2rem 0;
}

.service-detail h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-detail .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.service-detail img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.service-detail ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.service-detail ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.service-detail ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Stats Section */
.stats {
    background-color: var(--light);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: var(--border-radius);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

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

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stats-section {
    padding: 60px 0;
    background-color: var(--primary);
}

/* Testimonial Section */
.testimonial-section {
    padding: 80px 0;
    background-color: var(--light);
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--text-light);
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.cta h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-light {
    background-color: var(--text-light);
    color: var(--primary);
    border: none;
}

.btn-light:hover {
    background-color: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: 3rem 0 2rem;
}

footer h5 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul {
    list-style-type: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Animation Styles */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .services h3 {
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .testimonial-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
}
