/* Trema Farms - Agricultural Color Palette */
/* Base palette tints/shades with earthy, natural farming tones */
/* WCAG AA compliant with enhanced contrast */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    /* Harmonized Trema Farms Colors - Agricultural Theme */
    /* Based on main brand with earthy, natural farming variations */
    
    /* Primary Colors - Rich earth tones derived from brand sage */
    --primary-dark: #2a3628;        /* Shade: very dark forest green */
    --primary-medium: #3d5038;      /* Tone: deep olive-sage */
    --primary-accent: #5a6f52;      /* Tint: rich earth green */
    --primary-light: #f5f3ea;       /* Warm cream with green undertone */
    --primary-neutral: #8d9584;     /* Tone: muted olive gray */
    
    /* Enhanced Text Colors with Opacity for Visibility */
    --text-dark: rgba(26, 26, 26, 0.95);      /* High opacity for primary text */
    --text-medium: rgba(58, 64, 56, 0.87);    /* Warm dark text with green hint */
    --text-light: rgba(255, 255, 255, 0.98);  /* High opacity white */
    --text-secondary: rgba(74, 74, 74, 0.7);  /* Lower opacity for secondary */
    
    /* Accent Colors - Farm fresh with brand harmony */
    --accent-green: #4d6444;        /* Deep meadow green */
    --accent-brown: #5e4f3f;        /* Dark earth brown */
    --accent-gold: #9d8028;         /* Deep harvest gold */
    
    /* Semantic Colors - High Contrast */
    --success-color: #2d5e38;       /* Deep forest success */
    --info-color: #3d4f3d;          /* Deep sage info */
    --warning-color: #9d7520;       /* Deep golden warning */
    --error-color: #8b3825;         /* Deep terracotta error */
    
    /* Fonts */
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Open Sans', Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
}

p {
    color: var(--text-medium);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-dark);
}

.slogan {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-medium);
}

/* Override main styles with farm-specific colors */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
}

.hero {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--accent-green) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero h2,
.page-hero h1,
.page-hero h2 {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p,
.page-hero p {
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Enhanced Farm Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-medium) 100%);
    color: #ffffff;
    border: 2px solid var(--accent-green);
    box-shadow: 0 2px 8px rgba(77, 100, 68, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-brown) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(77, 100, 68, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-medium) 100%);
    color: #ffffff;
    border-color: var(--accent-gold);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(77, 100, 68, 0.3);
}

.service-card:hover,
.stat-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 20px rgba(107, 142, 35, 0.2);
}

footer {
    background: var(--primary-dark);
}

/* Form elements */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.1);
}

/* Links */
a:hover {
    color: var(--accent-green);
}

/* Active navigation */
.nav-links a.active {
    color: var(--accent-gold);
}

/* Section backgrounds */
.content-section:nth-child(even) {
    background: var(--primary-light);
}

/* Testimonial Comment System */
.testimonial-form-section {
    background: var(--primary-light);
    padding: 3rem 0;
    margin: 3rem 0;
}

.testimonial-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-form-container h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-green);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Star Rating */
.star-rating-container {
    text-align: center;
    margin: 1.5rem 0;
}

.star-rating-container label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

#starRating {
    display: inline-flex;
    gap: 0.5rem;
    font-size: 2rem;
}

#starRating .star {
    color: var(--accent-gold);
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

#starRating .star:hover {
    transform: scale(1.2);
}

#starRating .far {
    color: rgba(208, 208, 208, 0.7);
}

#starRating .fas {
    color: var(--accent-gold);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* User Testimonials Display */
.user-testimonials-section {
    padding: 3rem 0;
    background: white;
}

.user-testimonials-section h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

#userTestimonials {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.user-testimonial {
    padding: 1.5rem;
    background: var(--primary-light);
    border-radius: 10px;
    border-left: 4px solid var(--accent-green);
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-testimonial:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.testimonial-header h4 {
    margin: 0 0 0.3rem 0;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.testimonial-date {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
}

.testimonial-rating i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.testimonial-rating .star-empty {
    color: rgba(208, 208, 208, 0.7);
}

.testimonial-comment {
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
}

/* Responsive Design - Trema Farms */

/* Tablets and small laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .testimonial-form-container {
        max-width: 90%;
    }
    
    #userTestimonials {
        max-width: 95%;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Footer centering */
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .footer-section address {
        text-align: center;
    }
    
    .footer-section address p {
        justify-content: center;
    }
    
    /* Search right align */
    .search-wrapper {
        margin-left: auto;
        margin-right: 0;
    }
    
    /* Testimonial form */
    .testimonial-form-section {
        padding: 2rem 0;
    }
    
    .testimonial-form-container {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .testimonial-form-container h2 {
        font-size: 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Star rating */
    #starRating {
        font-size: 1.75rem;
        gap: 0.4rem;
    }
    
    .star-rating-container label {
        font-size: 0.95rem;
    }
    
    /* Submit button */
    .submit-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }
    
    /* User testimonials display */
    .user-testimonials-section {
        padding: 2rem 0;
    }
    
    #userTestimonials {
        max-width: 100%;
        padding: 0 1rem;
        gap: 1.25rem;
    }
    
    .user-testimonial {
        padding: 1.25rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .testimonial-header h4 {
        font-size: 1rem;
    }
    
    .testimonial-rating {
        justify-content: flex-start;
    }
    
    /* Seasonal banner */
    .seasonal-banner {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .season-icon {
        font-size: 1.5rem;
    }
    
    .season-text {
        font-size: 1rem;
    }
    
    /* Crop availability */
    .crop-list {
        gap: 0.75rem;
    }
    
    .crop-item {
        padding: 0.75rem;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Testimonial form */
    .testimonial-form-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .testimonial-form-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
    
    /* Star rating */
    #starRating {
        font-size: 1.5rem;
        gap: 0.3rem;
    }
    
    .star-rating-container {
        margin: 1rem 0;
    }
    
    .star-rating-container label {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    /* Submit button */
    .submit-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    /* User testimonials */
    #userTestimonials {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .user-testimonial {
        padding: 1rem;
    }
    
    .testimonial-header h4 {
        font-size: 0.95rem;
    }
    
    .testimonial-date {
        font-size: 0.8rem;
    }
    
    .testimonial-rating i {
        font-size: 0.9rem;
    }
    
    .testimonial-comment {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Seasonal banner */
    .seasonal-banner {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .season-icon {
        font-size: 1.25rem;
    }
    
    .season-text {
        font-size: 0.9rem;
    }
}

/* Large desktop screens (min-width: 1440px) */
@media (min-width: 1440px) {
    .testimonial-form-container {
        max-width: 800px;
        padding: 2.5rem;
    }
    
    #userTestimonials {
        max-width: 1000px;
        gap: 2rem;
    }
    
    #starRating {
        font-size: 2.25rem;
    }
}

