:root {
    --primary-color: #2e7d32;
    --secondary-color: #81c784;
    --accent-color: #ffb74d;
    --touch-target-min: 44px; /* Minimum touch target size */
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Ensure all text elements use the same font family */
p, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, 
.lead, .card, .card-body, .section-title, .about-hero, 
.navbar, .dropdown-menu, .dropdown-item, .btn, input, textarea, select,
#about p, #about .lead {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: #333 !important;
}

/* CTA section text color */
section.text-white .lead,
section.text-white p,
section.text-white h2 {
    color: white !important;
}

/* Ensure consistent font weight for headings */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600 !important;
}

/* Ensure consistent line height for paragraphs */
p {
    line-height: 1.7 !important;
    margin-bottom: 1.25rem;
}

/* Hero Slider Container */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    max-height: 800px; /* Maximum height */
    min-height: 400px; /* Minimum height for very small screens */
    overflow: hidden;
}

/* Main slider container */
#heroSlider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Carousel inner and items */
.carousel-inner,
.carousel-item,
.carousel-item.active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Slide background */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keep background fixed while scrolling */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-repeat: no-repeat;
}

/* Overlay with Content */
/* Slider Overlay */
.hero-slider-container .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
}

/* Button styles */
.btn-primary {
    background-color: #0d6efd;
    border: 2px solid #0d6efd;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-primary:hover {
    background-color: #1b5e20;
    color: white !important;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Text Container - High Specificity */
.hero-slider-container .slider-overlay .hero-text,
.hero-slider-container .slider-overlay .hero-text * {
    color: #ffffff !important;
    text-shadow: none !important;
}

.hero-slider-container .slider-overlay .hero-text {
    max-width: 800px;
    width: 90%;
    margin-top: -100px; /* Move entire content up */
    position: relative;
    z-index: 3;
}

/* Hero Heading */
.hero-slider-container .slider-overlay .hero-text h1 {
    margin: 0 0 1rem 0;
    line-height: 1.2;
    padding: 0;
    font-size: 3rem;
    font-weight: 700;
}

/* Hero Lead Text */
.hero-slider-container .slider-overlay .hero-text .lead {
    margin: 0 0 2rem 0;
    line-height: 1.6;
    padding: 0 1rem;
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    z-index: 4;
    width: 5%;
}

/* Carousel indicators */
.carousel-indicators {
    z-index: 4;
    bottom: 20px;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #fff;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    margin: 0;
}

/* Ensure the carousel indicators and controls are above the overlay */
.carousel-indicators,
.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
}

.hero-content h1 {
    color: white !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    font-weight: 600;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-overlay .btn-outline-primary {
    color: white;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.slider-overlay .btn-outline-primary:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(46, 125, 50, 0.8);
    border-radius: 50%;
    background-size: 50%;
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: white;
    opacity: 0.5;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* Improved mobile form inputs */
input, select, textarea, button {
    font-size: 16px; /* Prevents zoom on focus on iOS */
}

/* Better touch feedback */
a, button, [role="button"], .btn, .nav-link, .dropdown-item {
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    -webkit-tap-highlight-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Ensure minimum touch target size */
    .btn, .nav-link, .dropdown-item, .form-check-label {
        padding: 12px 16px;
        min-height: var(--touch-target-min);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Adjust navbar for better mobile experience */
    .navbar-brand img {
        height: 50px;
        max-height: 50px;
    }
    
    /* Adjust hero section for mobile */
    .hero-slider-container {
        height: 60vh;
        min-height: 300px; /* Reduced from 400px */
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    /* Improve form inputs on mobile */
    .form-control, .form-select {
        padding: 12px;
        font-size: var(--font-size-base);
    }
    
    /* Adjust font sizes for better readability */
    body {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Improve button spacing */
    .btn {
        margin: 5px 0;
        width: 100%;
        max-width: 300px;
    }
    
    /* Improve card layouts on mobile */
    .card {
        margin-bottom: 20px;
    }
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

.hero h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin: 10px 5px;
}

.btn-outline-primary, .btn-outline-secondary {
    border-width: 1px;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-primary:hover, .btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-box {
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: transform 0.3s;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
}

/* About Section Image */
#about img {
    width: 100%;
    max-height: 400px;  /* Reduced from 100% */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Videos Section */
#videos {
    background-color: #f8f9fa;
}

#videos iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#videos iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

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

/* Footer styles moved to footer.css */

/* Social icons - keep them in primary color */
.social-icons a {
    color: var(--primary-color) !important;
}

/* Social icons */
.social-icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 10px 15px 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: #1b5e20; /* Darker green on hover */
    transform: translateY(-3px);
    text-decoration: none;
}

/* Footer Logo */
.footer-logo {
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .hero .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        margin-bottom: 30px;
        font-size: 1.8rem;
    }
    
    .feature-box {
        margin-bottom: 25px;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 80px 0;
}

.section-header {
    position: relative;
    margin-bottom: 50px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.about-hero img {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-hero img:hover {
    transform: translateY(-5px);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
}

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

/* Shop Page Styles */
.shop-hero {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 80px 0;
}

.shop-hero img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.shop-hero img:hover {
    transform: translateY(-5px);
}

.card-header {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-list .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    overflow: hidden;
}

.price-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.price-list .card-header {
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.price-list .card-body {
    padding: 1.25rem;
}

.price-list li {
    transition: all 0.2s ease;
}

.price-list li:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    /* Mobile button layout */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    /* Shop section specific styles */
    .shop-hero {
        text-align: center;
        padding: 60px 0 30px;
    }
    
    .shop-hero img {
        margin-top: 30px;
        max-height: 300px;
    }
}

/* Gallery Styles */
.gallery-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Slider Container */
.gallery-slider {
    margin: 0 -10px;
    padding: 20px 0;
}

.gallery-slide {
    padding: 0 10px;
    outline: none;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.2);
    opacity: 1;
}

/* Slick Slider Customization */
.slick-slide {
    outline: none;
}

.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: var(--primary-color);
}

.slick-prev:before,
.slick-next:before {
    color: var(--primary-color);
    font-size: 24px;
    opacity: 1;
    transition: all 0.3s ease;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    color: white;
}

.slick-prev {
    left: 15px;
}

.slick-next {
    right: 15px;
}

.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: var(--primary-color);
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color);
    opacity: 1;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.9);
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--secondary-color);
}

/* Animation for better user experience */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-box, .section-title {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Contact Form Styles */
.contact-form .form-control {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.contact-form .btn-primary {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-info a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Thank You Page */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.thank-you-section i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Error Messages */
.alert {
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Map Section */
.map-section iframe {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .contact-form .btn-primary {
        width: 100%;
    }
}
