/* 
   Happy Milk Website Styles
   Colors:
   - Cream/White: #F8F5F0
   - Pastel Green: #8CC084
   - Warm Yellow: #F9C846
   - Deep Brown: #4A3F35
*/

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

body {
    font-family: 'Lato', sans-serif;
    color: #4A3F35;
    background-color: #F8F5F0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #8CC084;
    transition: color 0.3s ease;
}

a:hover {
    color: #4A3F35;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #8CC084;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #7ab073;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #F9C846;
    color: #4A3F35;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

.btn-text {
    color: #8CC084;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.btn-text:hover {
    border-bottom-color: #8CC084;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #4A3F35;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #8CC084;
    border-bottom-color: #8CC084;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: #4A3F35;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-image: url('images/happy_milk_hero.png');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

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

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

/* Products Section */
.products {
    padding: 80px 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: 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;
    padding-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    margin-top: 20px;
}

.product-card p {
    padding: 0 20px;
    margin-bottom: 20px;
}

/* Values Section */
.values {
    padding: 80px 0;
    background-color: #f0ebe0;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    text-align: center;
    background-color: #8CC084;
    color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 40px auto 0;
}

.testimonial {
    padding: 20px;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial cite {
    font-weight: 700;
}

/* Farm Life Preview Section */
.farm-life-preview {
    padding: 80px 0;
}

.farm-life-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.farm-life-content {
    padding-right: 20px;
}

.farm-life-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #4A3F35;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-info h3,
.footer-links h3,
.footer-newsletter h3 {
    color: #F9C846;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
}

.footer-links ul li a:hover {
    color: #F9C846;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}
.success-message {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 30px 0 0 30px;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #F9C846;
    color: #4A3F35;
}

/* Page Header */
.page-header {
    background-color: #8CC084;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
}

/* About Page */
.about-story,
.about-values {
    padding: 80px 0;
}

.about-story .container,
.about-values .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team {
    padding: 80px 0;
    background-color: #f0ebe0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding-bottom: 20px;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    height: 250px;
    background-color: #ddd;
}

.team-role {
    color: #8CC084;
    font-weight: 700;
    margin-bottom: 10px;
}

.team-member p {
    padding: 0 20px;
}

/* Products Page */
.product-category {
    padding: 80px 0;
}

.product-category:nth-child(odd) {
    background-color: #f0ebe0;
}

.product-category .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.product-list {
    margin-top: 20px;
}

.product-item {
    margin-bottom: 30px;
}

.product-item h3 {
    margin-bottom: 5px;
}

.price {
    color: #8CC084;
    font-weight: 700;
    margin-top: 5px;
}

/* Farm Life Page */
.farm-life-feature {
    padding: 80px 0;
}

.farm-life-feature.alt {
    background-color: #f0ebe0;
}

.farm-life-feature .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.blog-preview {
    padding: 80px 0;
    background-color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    background-color: #ddd;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: #8CC084;
    font-weight: 700;
    margin-bottom: 10px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: #F9C846;
    text-align: center;
}

.cta h2 {
    color: #4A3F35;
}

.cta .btn {
    margin-top: 20px;
}

/* Contact Page */
.contact-info {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-form-section {
    padding: 80px 0;
    background-color: #f0ebe0;
}

.contact-form-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
}

.map {
    height: 300px;
    background-color: #ddd;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.directions {
    margin-top: 20px;
}

.faq {
    padding: 80px 0;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item h3 {
    margin-bottom: 10px;
    color: #8CC084;
}

/* Placeholder for images */
.placeholder {
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-story .container,
    .about-values .container,
    .product-category .container,
    .farm-life-feature .container,
    .contact-form-section .container,
    .farm-life-preview .container {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .product-category-content,
    .farm-life-content {
        order: 1;
    }
    
    .about-image,
    .product-category-image,
    .farm-life-image {
        order: 2;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        margin-top: 20px;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 30px;
    }
}

