/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Pacifico&family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Pacifico&display=swap');

/* Base Styles */
:root {
    /* Colors - Changed from green to yellow theme */
    --primary-color: #f59e0b; /* Amber-500 */
    --primary-dark: #d97706; /* Amber-600 */
    --primary-light: #fbbf24; /* Amber-400 */
    --secondary-color: #f8fafc;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 0.5rem;
    
    /* Font Families - OPTION 1 (Default): Merriweather + Lato */
    --heading-font: 'Merriweather', serif;
    --body-font: 'Lato', sans-serif;
    --logo-font: 'Merriweather', serif;
    
    /* 
    Font Families - OPTION 2: Playfair Display + Poppins
    Uncomment these and comment out OPTION 1 to use this pairing
    
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    --logo-font: 'Playfair Display', serif;
    */
    
    /* 
    Font Families - OPTION 3: Pacifico + Montserrat
    Uncomment these and comment out OPTION 1 to use this pairing
    
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Montserrat', sans-serif;
    --logo-font: 'Pacifico', cursive;
    */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
h1 {
    color:#0b0f18;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-family: 'Libre Baskerville';
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.btn-outline.dark:hover {
    background-color: rgba(245, 158, 11, 0.1);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 50px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--logo-font);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    width: 100px;
    height: 100px;
    margin-right: 0.5rem;
    object-fit: cover;
}
.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-family: var(--body-font);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Mobile Navigation */
.mobile-nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.mobile-nav.active {
    display: block !important; /* Force display when active */
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(img/intro.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.94;
}

.hero .container {
    position: relative;
    top: 70px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #0b0f18;
    font-family: 'Libre Baskerville';
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Welcome Section - Redesigned */
.welcome {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 158, 11, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: 0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

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

.welcome-image:hover img {
    transform: scale(1.1);
}

.welcome-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--primary-light);
    opacity: 0.7;
    border-radius: 50%;
    z-index: -1;
}

.welcome-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-text {
    max-width: 500px;
}

.welcome h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.25rem;
    position: relative;
}

.welcome-divider {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.welcome p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.welcome-btn {
    margin-top: 0.5rem;
}

/* Responsive adjustments for welcome section */
@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .welcome-image {
        height: 350px;
    }
    
    .welcome-text {
        text-align: center;
        margin: 0 auto;
    }
    
    .welcome-divider {
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 576px) {
    .welcome {
        padding: 3rem 0;
    }
    
    .welcome-image {
        height: 250px;
    }
    
    .welcome h2 {
        font-size: 1.75rem;
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow Gallery Styles */
.gallery {
    padding: 5rem 0;
    background-color: var(--gray-100);
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Hide the images by default */
.slide {
    display: none;
    position: relative;
}

/* Make images responsive */
.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}


/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 1rem;
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a semi-transparent black background */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.dots-container {
    text-align: center;
    margin: 1.5rem 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--gray-300);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.active-dot, .dot:hover {
    background-color: var(--primary-color);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: 0.6}
    to {opacity: 1}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide img {
        height: 350px;
    }
    
    .slide-caption {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .prev, .next {
        padding: 0.75rem;
        font-size: 1.25rem;
    }
    
    .dot {
        height: 10px;
        width: 10px;
        margin: 0 4px;
    }
}

@media (max-width: 576px) {
    .slide img {
        height: 250px;
    }
    
    .slide-caption {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .prev, .next {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .dot {
        height: 8px;
        width: 8px;
        margin: 0 3px;
    }
}

/* Farm Operations Section */
.farm-operations {
    padding: 5rem 0;
    background-color: var(--white);
}

.operation-item {
    margin-bottom: 4rem;
}

.operation-item:last-child {
    margin-bottom: 0;
}

.operation-item h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.operation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.operation-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.operation-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
}

.operation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section - Updated for better mobile experience */
.contact {
    padding: 5rem 0;
    background-color: var(--gray-100);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
}

.contact-card a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

/* Mobile-specific contact section styles */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .contact-cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding: 0.5rem 0.5rem 1.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .contact-cards::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .contact-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
        margin-bottom: 0.5rem;
        border-left: 3px solid var(--primary-color);
    }
    
    .contact-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        background-color: rgba(245, 158, 11, 0.1);
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    /* Indicator dots for horizontal scroll */
    .contact::after {
        content: '';
        display: block;
        text-align: center;
        margin: 1rem auto 0;
        height: 8px;
        width: 60px;
        background: repeating-linear-gradient(
            to right,
            var(--primary-color) 0,
            var(--primary-color) 8px,
            transparent 8px,
            transparent 16px
        );
        border-radius: 4px;
        opacity: 0.5;
    }
}

@media (max-width: 576px) {
    .contact-card {
        flex: 0 0 80%;
    }
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: var(--logo-font);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-light);
    margin-right: 0.5rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--white);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-light);
}

.footer h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

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

.footer-links ul li a {
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-contact ul li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-grid,
    .operation-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .order-mobile-1 {
        order: -1;
    }
    
    .order-mobile-2 {
        order: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .welcome,
    .products,
    .about,
    .gallery,
    .farm-operations,
    .contact {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    .btn-primary {
        max-width: 200px;
        margin: auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Add these CSS improvements for better SEO performance */

/* Improve text contrast for accessibility and SEO */
:root {
    /* Existing color variables */
    --text-light: #555555; /* Darkened from #666666 for better contrast */
}

/* Improve text readability */
p {
    line-height: 1.8;
}

/* Optimize for Core Web Vitals - Reduce Layout Shift */
.hero-content, 
.welcome-image, 
.gallery-item, 
.product-card,
.operation-image {
    contain: layout paint;
}

/* Optimize image loading for better performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Add print styles for better user experience */
@media print {
    .header, .footer, .hero-buttons, .gallery-more, .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}