/* AndersenTrac Custom Styles */

/* Brand Colors */
:root {
    --at-green: #1B3B00;
    --at-yellow: #FFC72C;
    --at-accent: #4C7F1A;
    --at-gray: #f5f7f5;
    --at-dark: #1a2e1a;
}

/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--at-dark);
}

/* Background Colors */
.bg-at-green {
    background-color: var(--at-green) !important;
}

.bg-at-yellow {
    background-color: var(--at-yellow) !important;
}

.bg-at-gray {
    background-color: var(--at-gray) !important;
}

/* Text Colors */
.text-at-green {
    color: var(--at-green) !important;
}

.text-at-yellow {
    color: var(--at-yellow) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Buttons */
.btn-at-green {
    background-color: var(--at-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-at-green:hover {
    background-color: var(--at-accent);
    color: white;
}

.btn-at-yellow {
    background-color: var(--at-yellow);
    color: var(--at-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-at-yellow:hover {
    background-color: #e6b326;
    color: var(--at-dark);
}

.btn-at-outline {
    border: 2px solid var(--at-green);
    color: var(--at-green);
    background: transparent;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-at-outline:hover {
    background-color: var(--at-green);
    color: white;
}

/* Header - White Navigation */
header .navbar {
    padding: 0.75rem 0;
}

header .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

header .nav-link:hover,
header .nav-link.active {
    color: var(--at-green) !important;
}

header .nav-link.active {
    position: relative;
}

header .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--at-green);
}

/* Navbar toggler for white nav */
.navbar-light .navbar-toggler {
    border-color: var(--at-green);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(27, 59, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Carousel Section */
.hero-carousel {
    position: relative;
}

.hero-carousel .carousel-item {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-carousel .carousel-indicators {
    bottom: 30px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background-color: var(--at-yellow);
    transform: scale(1.2);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: var(--at-green);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: var(--at-accent);
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 30px;
}

.hero-carousel .carousel-control-next {
    right: 30px;
}

/* Animation for carousel content */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.carousel-item.active .animate-slide-up {
    opacity: 1;
}

/* Stats Bar */
.stat-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

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

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--at-dark);
}

/* Feature Box */
.feature-box {
    background: var(--at-gray);
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon-lg {
    width: 80px;
    height: 80px;
    background: var(--at-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

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

/* Brand Logo */
.brand-logo {
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Explore Section */
.explore-section {
    background: linear-gradient(135deg, var(--at-green) 0%, var(--at-dark) 100%);
}

.explore-image-grid img {
    transition: all 0.3s ease;
}

.explore-image-grid img:hover {
    transform: scale(1.02);
}

/* Icon Circle */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle i {
    font-size: 1.25rem;
}

/* Financing CTA */
.financing-cta {
    background: linear-gradient(135deg, var(--at-green) 0%, var(--at-dark) 100%);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background-color: var(--at-green);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-section h1 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Page Header */
.page-header {
    background-color: var(--at-green);
    color: white;
    padding: 4rem 0;
}

.page-header h1 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: var(--at-dark);
    margin-bottom: 1rem;
}

/* Cards */
.at-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.at-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: var(--at-gray);
    padding: 1rem;
}

/* Tractor Cards */
.tractor-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.tractor-card .card-img-top {
    height: 220px;
    object-fit: contain;
    background: var(--at-gray);
    padding: 1.5rem;
}

/* Feature Icons */
.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--at-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--at-green);
}

/* Values Bar */
.values-bar {
    background: var(--at-gray);
    padding: 3rem 0;
}

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

.value-icon {
    width: 50px;
    height: 50px;
    background: var(--at-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    color: white;
    font-size: 1.25rem;
}

/* CTA Section */
.cta-section {
    background: var(--at-green);
    border-radius: 1rem;
    padding: 3rem;
    color: white;
}

/* Footer */
footer {
    background-color: var(--at-green);
}

.footer-logo {
    /* Logo already has proper colors for dark background */
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--at-yellow);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--at-yellow);
    color: var(--at-dark);
}

.border-white-25 {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* FAQ Accordion */
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--at-dark);
    background: white;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--at-gray);
    color: var(--at-green);
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(27, 59, 0, 0.25);
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-sidebar h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--at-dark);
    margin-bottom: 0.75rem;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--at-green);
    box-shadow: 0 0 0 0.25rem rgba(27, 59, 0, 0.25);
}

.form-check-input:checked {
    background-color: var(--at-green);
    border-color: var(--at-green);
}

/* Badge */
.badge-at {
    background-color: var(--at-accent);
    color: white;
    font-weight: 500;
    padding: 0.35em 0.75em;
    border-radius: 0.5rem;
}

/* Specs Grid */
.spec-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.spec-item i {
    color: var(--at-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline-item {
    text-align: center;
}

.timeline-year {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--at-yellow);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        min-height: 500px;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .hero-carousel .carousel-control-prev {
        left: 15px;
    }
    
    .hero-carousel .carousel-control-next {
        right: 15px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 2.5rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        min-height: 450px;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .feature-icon-lg {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon-lg i {
        font-size: 1.5rem;
    }
}

/* Carousel Styles */
.tractor-carousel .carousel-control-prev,
.tractor-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--at-green);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.tractor-carousel .carousel-control-prev {
    left: -25px;
}

.tractor-carousel .carousel-control-next {
    right: -25px;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--at-yellow);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--at-yellow);
    color: var(--at-dark);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Job Cards */
.job-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Alert/Info Boxes */
.info-box {
    background: var(--at-gray);
    border-left: 4px solid var(--at-yellow);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.25rem;
}

/* Category Pills */
.category-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: white;
    color: var(--at-dark);
}

.category-pill:hover,
.category-pill.active {
    background: var(--at-green);
    color: white;
}

/* Step Indicators */
.step-number {
    width: 64px;
    height: 64px;
    background: var(--at-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Testimonial Scroll Animation */
.testimonial-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-scroll-track {
    display: flex;
    animation: scrollTestimonials 40s linear infinite;
    width: fit-content;
}

.testimonial-scroll-item {
    flex: 0 0 auto;
    width: 380px;
    padding: 0 12px;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-scroll-wrapper:hover .testimonial-scroll-track {
    animation-play-state: paused;
}

/* Trust Badges */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.15);
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    background: var(--at-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-badge-icon i {
    font-size: 1.25rem;
    color: var(--at-dark);
}

.trust-badge-text {
    color: white;
    font-size: 0.875rem;
    line-height: 1.3;
}

.trust-badge-text strong {
    display: block;
    font-weight: 600;
}

/* Financing Option Cards */
.financing-option-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.financing-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* White text for Why Choose Us section */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}
