/*
Theme Name: Philip A. Rolle Lawn Service
Description: Professional lawn service website
Version: 1.1.0
Author: Your Name
*/

:root {
    --green: #22c55e;
    --dark-green: #1e4d2b;
    --footer-green: #264332;
    --teal: #14b8a6;
    --light-bg: #f8f9fa;
    --gray: #6b7280;
    --dark: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #ffffff;
}

/* Header */
.site-header {
    padding: 40px 20px 20px;
    text-align: center;
    background: linear-gradient(180deg, #c8e0cd 0%, #d4e8d8 100%);
}

.site-logo {
    display: inline-block;
}

.site-logo img {
    max-height: 100px;
    width: auto;
}

/* Hero Section - FIXED GRADIENT */
.hero-section {
    background: linear-gradient(180deg, 
        #d4e8d8 0%, 
        #e0f0e5 30%, 
        #ecf5ef 60%, 
        #f5faf7 85%, 
        #ffffff 100%
    );
    padding: 40px 20px 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content h1 .green-text {
    color: var(--green);
    display: block;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border-color: #e5e7eb;
}

.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
}

/* Stats Section - FIXED GRADIENT */
.stats-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5faf7 50%, #e8f3ec 100%);
    padding: 0 20px 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
}

.services-grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.services-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section - FIXED LAYOUT */
.testimonials-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.testimonials-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.testimonials-carousel {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    height: 100%;
    min-height: 280px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e5e7eb;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--green);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 100%;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-nav.prev {
        left: 0;
    }
    
    .carousel-nav.next {
        right: 0;
    }
}


.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stars {
    color: var(--green);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Gallery */
.lawn-gallery {
    display: grid;
    gap: 20px;
    padding: 40px 20px;
}

.lawn-gallery.columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.lawn-gallery.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.lawn-gallery.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* CTA Section - FIXED GRADIENT */
.cta-section {
    background: linear-gradient(135deg, #22c55e 0%, #059669 50%, #14b8a6 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(20, 184, 166, 0.9) 100%);
    z-index: 0;
}

.cta-section h2,
.cta-section p,
.cta-buttons,
.cta-info {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.btn-white {
    background: white;
    color: var(--green);
    border-color: white;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cta-info {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Scroll Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.3s;
    z-index: 100;
    font-size: 20px;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    background: #16a34a;
    transform: translateY(-5px);
}

/* Footer - FIXED COLOR */
.site-footer {
    background: linear-gradient(180deg, #1e4d2b 0%, #264332 100%);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-widget p,
.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-widget a:hover {
    color: white;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .lawn-gallery {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* Elementor Compatibility */
.elementor-widget-container {
    max-width: 100%;
}

.elementor .elementor-element {
    max-width: 100%;
}

/* Testimonials Carousel */
.testimonials-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-carousel {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.testimonial-slide {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e5e7eb;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: var(--dark);
}

.carousel-nav:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--green);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .testimonial-slide {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        min-width: 100%;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 20px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}