/* Base Styles */
:root {
    --primary-color: #8B4513;
    --primary-light: #A0522D;
    --primary-dark: #5B3A29;
    --secondary-color: #E3C598;
    --accent-color: #D9A566;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #FFF8F0;
    --background-alt: #F8F4E9;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F5F5F5;
    --gray: #CCCCCC;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

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

.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);
    color: var(--white);
}

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

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

.btn-text {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0;
    border: none;
    font-weight: 600;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.center-btn {
    text-align: center;
    margin-top: 2rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cookie-buttons button {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

#accept-all {
    background-color: var(--primary-color);
    color: var(--white);
}

#accept-necessary, #customize-cookies {
    background-color: var(--gray-light);
    color: var(--text-color);
}

.cookie-customization {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray);
}

.cookie-option {
    margin-bottom: 0.5rem;
}

.hidden {
    display: none;
}

#save-preferences {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: block;
}

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

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background-color: var(--background-alt);
    padding: 6rem 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* Featured Recipes Section */
.featured-recipes {
    text-align: center;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.recipe-image {
    height: 200px;
    overflow: hidden;
}

.recipe-content {
    padding: 1.5rem;
    text-align: left;
}

/* Recipe Categories Section */
.recipe-categories {
    background-color: var(--background-alt);
    text-align: center;
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 300px;
    transition: var(--transition);
}

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

.category-icon {
    margin-bottom: 1rem;
}

/* Latest Blog Posts Section */
.latest-blog {
    text-align: center;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    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 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-content {
    padding: 1.5rem;
    text-align: left;
}

.date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
}

.newsletter h2::after {
    background-color: var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    margin-top: 1.5rem;
}

.form-group input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.form-group .btn-primary {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-checkbox {
    margin-top: 1rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-checkbox input {
    margin-top: 0.3rem;
}

.form-checkbox label {
    font-size: 0.875rem;
}

.form-checkbox a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-checkbox a:hover {
    text-decoration: none;
}

/* Testimonials Section */
.testimonials {
    text-align: center;
    background-color: var(--background-alt);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 500px;
    text-align: left;
}

.quote {
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* About Preview Section */
.about-preview .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--gray);
}

.footer-column ul li a:hover {
    color: var(--white);
}

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

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

.social-links a:hover {
    background-color: var(--accent-color);
}

address {
    font-style: normal;
    line-height: 1.8;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.875rem;
}

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

/* Recipe Pages */
.recipe-hero {
    background-color: var(--background-alt);
    padding: 4rem 0;
    text-align: center;
}

.recipe-hero h1 {
    margin-bottom: 1rem;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

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

.recipe-content-wrapper {
    padding: 4rem 0;
}

.recipe-image-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.recipe-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.ingredients {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.ingredients h3, .instructions h3 {
    margin-bottom: 1.5rem;
}

.ingredients ul {
    list-style-type: none;
}

.ingredients ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.ingredients ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.instructions ol {
    list-style-position: outside;
    padding-left: 1.2rem;
}

.instructions ol li {
    margin-bottom: 1rem;
}

.recipe-tips {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.recipe-share {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recipe-share span {
    font-weight: 600;
}

.share-links {
    display: flex;
    gap: 0.5rem;
}

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

.share-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.related-recipes {
    background-color: var(--background-alt);
    padding: 4rem 0;
    text-align: center;
}

/* Blog Pages */
.blog-hero {
    background-color: var(--background-alt);
    padding: 4rem 0;
    text-align: center;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: var(--text-light);
}

.blog-content-wrapper {
    padding: 4rem 0;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content img, .blog-content svg {
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.blog-tags {
    margin-top: 3rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background-color: var(--background-alt);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.blog-share {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-share span {
    font-weight: 600;
}

.related-posts {
    background-color: var(--background-alt);
    padding: 4rem 0;
    text-align: center;
}

/* About Page */
.about-hero {
    background-color: var(--background-alt);
    padding: 4rem 0;
    text-align: center;
}

.team-section {
    padding: 4rem 0;
}

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

.team-member {
    text-align: center;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-hero {
    background-color: var(--background-alt);
    padding: 4rem 0;
    text-align: center;
}

.contact-content {
    padding: 4rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h4 {
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    outline: none;
}

.form-row textarea {
    min-height: 150px;
    resize: vertical;
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 6rem 0;
}

.thank-you-icon {
    margin-bottom: 2rem;
}

.thank-you h1 {
    margin-bottom: 1.5rem;
}

.thank-you p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 6rem 0;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h1 {
    margin-bottom: 1.5rem;
}

.error-page p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .categories-container {
        flex-direction: column;
        align-items: center;
    }
    
    .category-card {
        width: 100%;
        max-width: 100%;
    }
    
    .about-preview .container {
        flex-direction: column;
    }
    
    .about-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .recipe-details {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        height: 70px;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
    }
    
    .form-group .btn-primary {
        border-radius: var(--border-radius);
        width: 100%;
    }
}
