/* Base Styles */
:root {
    --primary-color: #e07a5f;
    --secondary-color: #3d405b;
    --accent-color: #81b29a;
    --light-color: #f4f1de;
    --dark-color: #2f3e46;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --success-color: #4caf50;
    --error-color: #f44336;
    --transition: all 0.3s ease;
    --border-radius: 6px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafafa;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    max-height: 60px;
    border-radius: 50%;
}

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

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

nav ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(61, 64, 91, 0.8), rgba(61, 64, 91, 0.8)), url(images/1.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Banner */
.page-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    background-image: linear-gradient(rgba(61, 64, 91, 0.8), rgba(61, 64, 91, 0.8)), url(images/7.jpg);
    background-size: cover;
    background-position: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 1.1rem;
}

/* Daily Inspiration */
.daily-inspiration {
    padding: 60px 0;
    background-color: var(--light-color);
}

.daily-inspiration h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 2rem;
}

.inspiration-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.inspiration-content img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.quote {
    flex: 1;
}

.quote p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.quote .author {
    font-size: 1rem;
    color: var(--text-light);
    text-align: right;
}

/* Featured Posts */
.featured-posts {
    padding: 80px 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.post-card .post-content {
    padding: 20px;
}

.post-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.post-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: var(--secondary-color);
}

.view-all {
    text-align: center;
}

/* Blog Posts */
.blog-posts {
    padding: 40px 0 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.blog-card {
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.blog-image {
    flex: 0 0 300px;
}

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

.blog-content {
    padding: 25px;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-card h2 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Newsletter */
.newsletter {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 25px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

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

.footer-links a {
    color: var(--white);
    transition: var(--transition);
}

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

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: var(--transition);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons a:hover .social-icon {
    fill: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--white);
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.cookie-policy {
    font-size: 0.9rem;
}

.cookie-policy a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Contact Page */
.contact-section {
    padding: 60px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.contact-text h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.map-section {
    padding: 40px 0 80px;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Thank You Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

.thank-you-message h2 {
    margin: 20px 0;
    color: var(--secondary-color);
}

.thank-you-message p {
    margin-bottom: 30px;
}

.check-icon {
    width: 60px;
    height: 60px;
    fill: var(--success-color);
    margin: 0 auto;
    display: block;
}

/* Blog Post */
.blog-post {
    padding: 40px 0 60px;
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-header h1 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 2.5rem;
}

.post-meta {
    color: var(--text-light);
    display: flex;
    justify-content: center;
    gap: 20px;
}

.post-featured-image {
    margin-bottom: 40px;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    margin: 40px 0 20px;
    color: var(--secondary-color);
}

.post-content h3 {
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.post-content ul, 
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content .intro {
    font-size: 1.1rem;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
}

.post-image {
    margin: 30px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.post-image figcaption {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.post-tip, 
.post-recipe {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.post-tip h3, 
.post-recipe h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.post-recipe h4 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

.post-tags {
    margin: 40px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-tags span {
    font-weight: 600;
    color: var(--secondary-color);
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.post-share span {
    font-weight: 600;
    color: var(--secondary-color);
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
}

.post-share a:hover {
    background-color: var(--primary-color);
}

.post-share .social-icon {
    width: 18px;
    height: 18px;
    fill: var(--secondary-color);
}

.post-share a:hover .social-icon {
    fill: var(--white);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 40px;
}

.prev-post, 
.next-post {
    max-width: 45%;
}

.prev-post a, 
.next-post a {
    color: var(--secondary-color);
    font-weight: 600;
}

.related-posts {
    padding: 40px 0 80px;
    background-color: var(--light-color);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* Team Section */
.about-intro {
    padding: 40px 0 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 15px;
}

.team-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.team-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

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

.team-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding-bottom: 20px;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.team-card h3 {
    margin: 15px 0 5px;
    color: var(--secondary-color);
}

.team-card p {
    color: var(--text-light);
    padding: 0 15px;
    margin-bottom: 10px;
}

.team-card p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.values {
    padding: 60px 0;
}

.values h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

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

.value-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.value-icon {
    margin-bottom: 20px;
}

.value-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-color);
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Special elements for specific blog posts */
.fermentation-type,
.benefits-section,
.equipment-section,
.ingredients-section,
.project-section,
.troubleshooting-section,
.safety-section,
.advanced-section,
.dessert-highlight,
.seasonal-item,
.tool-section {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.post-list {
    margin: 20px 0;
}

.post-list h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.seasonal-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Typewriter effect */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--white);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inspiration-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quote .author {
        text-align: center;
    }
}

@media (max-width: 900px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        flex-direction: column;
    }
    
    .blog-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-post, 
    .next-post {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-meta,
    .post-share,
    .cookie-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-share {
        align-items: center;
    }
}
