/* Base Styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --text-color: #333;
    --light-text: #f1faee;
    --light-gray: #f5f5f5;
    --medium-gray: #ddd;
    --dark-gray: #666;
    --success-color: #2a9d8f;
    --warning-color: #e9c46a;
    --error-color: #e76f51;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-secondary: 'Georgia', serif;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

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

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

/* Button Styles */
.btn-primary, .btn-secondary, .btn-text {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
}

.btn-primary:hover {
    background-color: #c6303c;
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
}

.btn-secondary:hover {
    background-color: #152942;
    color: var(--light-text);
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 0;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--secondary-color);
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

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

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

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.8)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

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

/* Page Banner */
.page-banner {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

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

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

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.post-image {
    height: 220px;
    overflow: hidden;
}

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

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.post-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Swiss Cooking Calculator */
.swiss-cooking-calculator {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.swiss-cooking-calculator h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.swiss-cooking-calculator > .container > p {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.calculator-form {
    flex: 1;
    min-width: 300px;
}

.calculation-results {
    flex: 1;
    min-width: 300px;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.input-group {
    margin-bottom: 1.5rem;
}

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

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
}

.calculation-results h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

#ingredient-list {
    padding-left: 1.5rem;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--accent-color);
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 0.5rem;
}

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

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

.email-form input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--font-primary);
}

.email-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.subscription-message {
    margin-top: 1rem;
    height: 1.5rem;
}

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

.blog-posts .post-card {
    margin-bottom: 2rem;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.date, .category, .post-author {
    display: inline-flex;
    align-items: center;
}

.date:before {
    content: '\1F4C5';
    margin-right: 0.3rem;
}

.category:before {
    content: '\1F4C1';
    margin-right: 0.3rem;
}

.post-author:before {
    content: '\1F464';
    margin-right: 0.3rem;
}

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

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

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

.post-content h2, .post-content h3 {
    margin-top: 2.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
}

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

.post-navigation {
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
    padding: 2rem 0;
    margin: 3rem 0;
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.related-posts {
    margin-bottom: 3rem;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.related-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.related-card h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
}

.related-card a {
    padding: 0 1rem 1rem;
    display: block;
}

.recipe-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

.recipe-card h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.recipe-card h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.recipe-card ul, .recipe-card ol {
    margin-bottom: 1rem;
}

.recipe-card li {
    margin-bottom: 0.5rem;
}

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

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

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

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    margin-top: 0;
}

.our-values {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.our-values h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.value-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.value-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--light-text);
}

.value-card h3 {
    margin-top: 0;
}

.team-section {
    padding: 80px 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.team-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

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

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

.team-card h3 {
    margin: 1.5rem 0 0.2rem;
}

.team-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.team-card p:nth-child(3) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    margin-top: 0;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

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

.info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--light-text);
}

.info-content h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.info-content p {
    margin-bottom: 0;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
}

.map-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-links {
    flex: 1;
    min-width: 160px;
}

.footer-links h4 {
    color: var(--light-text);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-text);
}

.footer-contact {
    flex: 1.5;
    min-width: 280px;
}

.footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-contact address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--light-text);
}

.footer-contact i {
    margin-right: 0.5rem;
}

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

.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 svg {
    width: 20px;
    height: 20px;
    fill: var(--light-text);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright p {
    margin-bottom: 0.5rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--light-text);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

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

.btn-cookie {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie.accept {
    background-color: var(--success-color);
    color: var(--light-text);
}

.btn-cookie.customize {
    background-color: var(--warning-color);
    color: #333;
}

.btn-cookie.decline {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
}

.cookie-more-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.cookie-more-info a {
    color: var(--light-text);
    text-decoration: underline;
}

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

.modal-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-success {
    width: 40px;
    height: 40px;
    fill: var(--light-text);
}

.modal h3 {
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 2rem;
}

/* Icons */
.icon-location, .icon-phone, .icon-email, .icon-hours, 
.icon-authenticity, .icon-quality, .icon-community, .icon-sustainability,
.icon-facebook, .icon-twitter, .icon-instagram, .icon-linkedin {
    display: inline-block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 1rem 0;
    }
    
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.5rem 1rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .email-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .email-form button {
        border-radius: var(--border-radius);
    }
    
    .post-nav-links {
        flex-direction: column;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .featured-posts, .blog-posts, .about-story, .our-values, 
    .team-section, .contact-section, .map-section {
        padding: 50px 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
