/* Mobile-friendly CSS for Ever & C Landscaping Services */
:root {
    --primary-color: #4a7c59;
    --secondary-color: #8cb369;
    --accent-color: #f4e285;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

/* Mobile-first approach */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Header styles - mobile first */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem;
    position: relative;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.logo-container {
    display: flex;
    justify-content: center;
}

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

.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
}

.contact-header {
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
}

.contact-header a {
    color: var(--white);
    text-decoration: none;
}

.contact-header a:hover {
    color: var(--accent-color);
}

/* Hero section - mobile first */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section styles */
section {
    padding: 2.5rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.section-title h2 {
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 1.2rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.service-content p {
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-color);
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* About section */
.about-section {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image {
    min-height: 250px;
    background-image: url('about-image.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* Serving Area section */
.serving-area-section {
    background-color: var(--white);
}

.serving-area-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.serving-area-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Contact section */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info, .contact-form {
    width: 100%;
}

.contact-info h3, .contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.contact-icon {
    min-width: 25px;
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
}

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

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

#result {
    margin-top: 1rem;
    padding: 0.8rem;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.3rem 0;
}

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

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hidden elements */
.hidden {
    display: none !important;
}

/* Media queries for larger screens */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-right {
        flex-direction: row;
    }
    
    .hero {
        height: 450px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.3rem;
        max-width: 600px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: row;
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        flex-direction: row;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    /* Increase tap target sizes for mobile devices */
    .btn, .form-group input, .form-group select, .footer-links a {
        padding: 0.8rem 1rem;
    }
    
    .footer-links a {
        padding: 0.6rem 1rem;
        display: block;
    }
    
    /* Make service cards respond to touch */
    .service-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    .social-icon {
        padding: 5px;
    }
}