/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Responsive Meta Tag for Mobile */
html {
    scroll-behavior: smooth;
}

header {
    display: grid;
    justify-content: center;
    background: #f6eee3;
}

header .farmlogo img {
    height: 50px;
    margin-right: 20px;
}

header nav ul {

    display: flex;
    justify-content: center;
    list-style-type: none;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    height: auto;
    text-decoration: none;
    padding: 0 50px;
    align-items: left;
    font-size: 1.2rem;
    color: #333;
}

header nav ul li a:hover {
    background-color: #f0f0f0;
}

/* Our Story Section with Background Image */
.headingback  {
    background-image: url('flora/long_farm_banner.png');
    background-size: auto;
    background-position: center;
    position: relative;
    height: 600px;
}

.headingback .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #f6eee3;
}




/* Our Story Section with Background Image */
.our-story  {
    background-image: url('background_farm.png');
    background-size: auto;
    background-position: center;
    background-blend-mode:soft-light;
    position: relative;
    height: 600px;
}

.our-story .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #f6eee3;
    overflow-wrap: break-word;
}

.our-story h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.our-story p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    header .farmlogo img {
        margin-bottom: 10px;
    }

    header nav ul {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
    }

    .our-story {
        height: 300px;
    }

    .our-story h2 {
        font-size: 2rem;
    }

    .our-story p {
        font-size: 1rem;
    }

    .logo {
        height: auto;
        width: auto;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 4rem;
    background-color: #fff;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05); /* Reset rotation on hover to ensure the scale effect works correctly */
}

.event-section {
    background-color: #f6eee3;
    padding: 40px;
    text-align: center;
}

.event-content h2 {
    font-size: 2em;
    color: #4c3d36;
    margin-bottom: 10px;
}

.event-content p {
    font-size: 1.2em;
    color: #777;
    margin-bottom: 20px;
    text-align: center ;
}

.event-content img {
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

.event-details {
    font-size: 1.1em;
    color: #4c3d36;
}
  
.reviews-section {
    padding: 4rem 2rem;
    background-color: #f6eee3; /* Light background color */
    text-align: center;
}

.reviews-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.reviews-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.review-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 350px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
}

.review-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    position: relative;
}

.review-text i {
    color: #4CAF50;
}

.stars {
    margin: 1rem 0;
}

.stars i {
    color: #FFD700; /* Gold color for stars */
    font-size: 1.2rem;
}

.reviewer {
    font-size: 1rem;
    color: #333;
    font-style: italic;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .reviews-container {
        flex-direction: column;
        align-items: center;
    }

    .review-card {
        max-width: 100%;
        width: 100%;
    }
}

/* Base Styles */
body {
    font-family: 'Montserrat';
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Light cream color */
}

header, footer {
    background-color: #fff; /* Cream color for header and footer */
    padding: 1rem 2rem;
    text-align: center;
}

.contact-section {
    background-color: #f5f5f5; /* Slightly darker cream color */
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-details p {
    margin: 0.5rem 0;
}

.contact-form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form button {
    background-color: #4CAF50; /* Green color for the button */
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button:hover {
    background-color: #45a049; /* Darker green on hover */
}

.social-media {
    text-align: center;
    padding: 1rem 0;
}

.social-media a {
    color: #333; /* Icon color */
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 1.5rem; /* Size of icons */
    transition: color 0.3s;
}

.social-media a:hover {
    color: #4CAF50; /* Color on hover */
}


/* Meet the Farm Section */
.meet-the-farm {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    text-align: center;
    padding: 40px;
    background-color: #f6eee3;
}

.meet-the-farm .meet {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: #f6eee3;
}

.meet img {
    width: 100%; /* Keep it responsive */
    max-height: 450px; /* This will limit the image height */
    object-fit: cover; /* Ensures the image fits the container */
    border-radius: 8px;
    margin-bottom: 20px;
}


.text-boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.text-box {
    width: 400px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.text-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.text-box h3 {
    margin-top: 10px;
}

.text-box p {
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .meet img {
        height: auto; /* Allow image to scale down naturally */
    }

    .text-box {
        width: 100%; /* Text-boxes take full width on mobile */
        margin-bottom: 20px;
    }
}


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

/* Ensure the body and html take full height */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
}

/* Main content should grow to fill the space between header and footer */
main {
    flex: 1;
    padding: 20px;
}

/* Footer Styling */
footer {
    background-color: #fff; /* Cream color for the footer */
    text-align: center;
    padding: 1rem 2rem;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    footer {
        padding: 1rem;
    }
}

/* Add new mobile styles here */
@media only screen and (max-width: 600px) {
    .headingback .centered,
    .our-story .centered {
        font-size: 14px; /* Smaller font for mobile */
        line-height: 1.4;
        padding: 10px; /* Add padding for mobile */
        max-width: 80%; /* Adjust width for mobile */
    }

    .headingback, 
    .our-story {
        height: 400px; /* Reduce container height on mobile */
    }
}

/* Mobile Styles */
@media only screen and (max-width: 600px) {
  body {
    font-size: 14px; /* Adjust text size */
    padding: 10px;   /* Adjust padding */
  }
  
  .centered {
    font-size: 16px; /* Reduce font size for better readability */
    line-height: 1.5; /* Adjust line height */
    margin: 10px 0; /* Adjust margins */
  }
  
  .section {
    padding: 10px;
  }

  h1, h2, h3 {
    font-size: 24px; /* Resize headings */
  }

  /* Adjust any other large text or image sizes */
  img {
    width: 100%;
    height: auto;
  }
}

/* General text box styling */
.headingback .centered,
.our-story .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #f6eee3;
    overflow-wrap: break-word;
    word-break: break-word;
    padding: 10px; /* Padding for mobile readability */
    max-width: 90%; /* Constrain text box width for better fit */
}

/* Mobile adjustments */
@media only screen and (max-width: 600px) {
    .headingback .centered,
    .our-story .centered {
        font-size: 8px; /* Smaller font size for mobile */
        line-height: 1.4;
        max-width: 80%; /* Adjust width for mobile screens */
        padding: 15px; /* Extra padding for mobile text readability */
        word-break: break-word;
        overflow: auto; /* Allow scrolling if content overflows */
    }

    .headingback,
    .our-story {
        height: 400px; /* Reduce height for mobile screens */
    }
}

