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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fdfcf8;
    overflow-x: hidden;
}

/* Hand-drawn aesthetic variables */
:root {
    --primary-color: #2d8a47;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #fdfcf8;
    --cream-bg: #f8f6f0;
    --border-color: #d4c5a9;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --hand-drawn-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

/* Typography with hand-drawn feel */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5rem;
    transform: rotate(-1deg);
}

h2 {
    font-size: 2rem;
    transform: rotate(0.5deg);
}

h3 {
    font-size: 1.5rem;
    transform: rotate(-0.3deg);
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--cream-bg);
    padding: 1rem 0;
    box-shadow: var(--hand-drawn-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
    border-image: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%) 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-0.5deg);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
    transform: rotate(0deg) scale(1.05);
    box-shadow: var(--hand-drawn-shadow);
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main content offset for fixed header */
main {
    margin-top: 80px;
}

/* Hand-drawn buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 3px solid;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
    box-shadow: var(--hand-drawn-shadow);
    position: relative;
}

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

.btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: rotate(0deg) scale(1.05);
}

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

.btn-secondary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: rotate(0deg) scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(0deg) scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--light-bg) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    transform: rotate(-0.5deg);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transform: rotate(1deg);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    background: var(--accent-color);
    color: white;
    border: 3px solid var(--accent-color);
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    box-shadow: var(--hand-drawn-shadow);
}

.hero-cta:hover {
    transform: rotate(0deg) scale(1.05);
    background: darken(var(--accent-color), 10%);
}

.hero-banner {
    width: 100%;
    height: auto;
    transform: rotate(1deg);
    filter: drop-shadow(var(--hand-drawn-shadow));
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    transform: rotate(-0.5deg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--light-bg);
}

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

.about-text {
    transform: rotate(0.3deg);
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-img {
    width: 100%;
    height: auto;
    transform: rotate(-1deg);
    filter: drop-shadow(var(--hand-drawn-shadow));
}

/* Recipes Section */
.recipes {
    padding: 4rem 0;
    background: var(--cream-bg);
}

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

.recipe-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
}

.recipe-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.recipe-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.recipe-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.recipe-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.recipe-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--hand-drawn-shadow);
    text-align: center;
    transform: rotate(-0.3deg);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
}

.testimonial-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.testimonial-card:nth-child(2) {
    transform: rotate(0.3deg);
}

.testimonial-card:nth-child(3) {
    transform: rotate(-0.8deg);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-name {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-location {
    color: #666;
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    padding: 4rem 0;
    background: var(--cream-bg);
}

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

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
}

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

.blog-card:nth-child(even) {
    transform: rotate(0.5deg);
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.blog-excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
}

.blog-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: darken(var(--accent-color), 10%);
    transform: scale(1.05);
}

.blog-cta {
    text-align: center;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: var(--primary-color);
    color: white;
    position: relative;
}

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

.newsletter h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 3px solid white;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transform: rotate(-0.2deg);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    transform: rotate(0deg);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transform: rotate(-0.3deg);
    border: 2px solid var(--border-color);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.social-media h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.social-link:hover {
    transform: rotate(0deg) scale(1.05);
    background: var(--primary-color);
    color: white;
}

.social-link img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

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

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-color);
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--secondary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

.cookie-buttons button {
    padding: 8px 16px;
    border-radius: 15px;
    border: 2px solid;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: rotate(-0.5deg);
    border: 3px solid var(--primary-color);
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--cream-bg);
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.cookie-category label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.cookie-category input {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: -80px;
    padding-top: calc(4rem + 80px);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    transform: rotate(0.5deg);
}

/* Legal Content */
.legal-content {
    padding: 4rem 0;
    background: var(--light-bg);
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.3deg);
    border: 3px solid var(--border-color);
}

.legal-text h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-text h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-info {
    background: var(--cream-bg);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border: 2px solid var(--border-color);
    transform: rotate(0.3deg);
}

.last-updated {
    text-align: right;
    font-style: italic;
    color: #666;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Thanks Page */
.thanks-page {
    padding: 4rem 0;
    background: var(--light-bg);
}

.thanks-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.5deg);
    border: 3px solid var(--border-color);
}

.thanks-icon {
    margin-bottom: 2rem;
}

.thanks-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.thanks-subtitle {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.thanks-steps {
    text-align: left;
    margin: 2rem 0;
    background: var(--cream-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.thanks-steps li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.newsletter-benefits {
    margin: 2rem 0;
}

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

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--cream-bg);
    border-radius: 15px;
    transform: rotate(-0.3deg);
    border: 2px solid var(--border-color);
}

.benefit-item:nth-child(2) {
    transform: rotate(0.3deg);
}

.benefit-item:nth-child(3) {
    transform: rotate(-0.5deg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.thanks-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Article Pages */
.article-page {
    padding: 2rem 0;
    background: var(--light-bg);
}

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

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.article-category {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: rotate(-1deg);
}

.article-date {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: rotate(1deg);
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
    transform: rotate(0.3deg);
}

.article-image-container {
    text-align: center;
    margin-bottom: 3rem;
}

.article-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.5deg);
    border: 3px solid var(--border-color);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.2deg);
    border: 3px solid var(--border-color);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Recipe Box */
.recipe-box {
    background: var(--cream-bg);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    border: 3px solid var(--primary-color);
    transform: rotate(0.3deg);
    box-shadow: var(--hand-drawn-shadow);
}

.recipe-box h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

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

.ingredients h4,
.instructions h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.ingredients ul,
.instructions ol {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.instructions li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.instructions strong {
    color: var(--primary-color);
}

/* Tips Box */
.tips-box {
    background: var(--secondary-color);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    transform: rotate(-0.3deg);
    box-shadow: var(--hand-drawn-shadow);
    border: 3px solid darken(var(--secondary-color), 10%);
}

.tips-box h3 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-box ul {
    list-style: none;
}

.tips-box li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tips-box li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
}

/* Article Navigation */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    box-shadow: var(--hand-drawn-shadow);
    border: 3px solid var(--primary-color);
}

.nav-button:hover {
    transform: rotate(0deg) scale(1.05);
    background: darken(var(--primary-color), 10%);
}

/* Blog Articles Grid */
.blog-articles {
    padding: 4rem 0;
    background: var(--light-bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.3deg);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
}

.article-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.article-card:nth-child(even) {
    transform: rotate(0.3deg);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-excerpt {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: darken(var(--accent-color), 10%);
}

/* Company Pages */
.company-story,
.company-values,
.company-team,
.company-services {
    padding: 4rem 0;
}

.company-story {
    background: var(--light-bg);
}

.company-values {
    background: var(--cream-bg);
}

.company-team {
    background: var(--light-bg);
}

.company-services {
    background: var(--cream-bg);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-text {
    transform: rotate(-0.3deg);
}

.story-img {
    width: 100%;
    height: auto;
    transform: rotate(0.5deg);
    filter: drop-shadow(var(--hand-drawn-shadow));
    border-radius: 20px;
}

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

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
}

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

.value-card:nth-child(2) {
    transform: rotate(0.5deg);
}

.value-card:nth-child(3) {
    transform: rotate(-0.8deg);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    transform: rotate(-0.3deg);
    box-shadow: var(--hand-drawn-shadow);
    border: 3px solid var(--border-color);
}

.stat-item:nth-child(even) {
    transform: rotate(0.3deg);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.3deg);
    border: 3px solid var(--border-color);
}

.service-card:nth-child(2) {
    transform: rotate(0.3deg);
}

.service-card:nth-child(3) {
    transform: rotate(-0.5deg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card ul {
    margin-top: 1rem;
    margin-left: 1.5rem;
}

.company-cta {
    padding: 4rem 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

/* Cookie Settings Button */
.cookie-settings-button {
    text-align: center;
    margin: 2rem 0;
}

/* Third Party Cookies */
.third-party-cookies {
    background: var(--cream-bg);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid var(--border-color);
}

.third-party-cookies h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.third-party-cookies a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Thanks Page Sidebar */
.thanks-page .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.thanks-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.popular-recipes,
.social-follow {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(0.3deg);
    border: 3px solid var(--border-color);
}

.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream-bg);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.recipe-item:hover {
    background: var(--primary-color);
    color: white;
}

.recipe-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.recipe-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.recipe-info p {
    font-size: 0.9rem;
    margin: 0;
}

.contact-info-section {
    padding: 3rem 0;
    background: var(--cream-bg);
}

.contact-info-card {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--hand-drawn-shadow);
    transform: rotate(-0.2deg);
    border: 3px solid var(--border-color);
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-details .contact-item {
    background: var(--cream-bg);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    transform: rotate(0.2deg);
    border: 2px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--cream-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--hand-drawn-shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .story-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .testimonials-grid,
    .blog-grid,
    .recipes-grid,
    .values-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .article-navigation {
        flex-direction: column;
    }

    .thanks-page .container {
        grid-template-columns: 1fr;
    }

    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .legal-text,
    .article-content {
        padding: 2rem 1rem;
    }

    .recipe-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .recipe-box {
        padding: 1rem;
        margin: 1rem -15px;
        border-radius: 0;
    }

    .legal-text,
    .article-content {
        margin: 0 -15px;
        border-radius: 0;
        padding: 2rem 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .hamburger {
        display: none;
    }

    main {
        margin-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    .recipe-box,
    .tips-box {
        border: 2px solid black;
        background: white;
    }

    .article-content,
    .legal-text {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #000;
        --accent-color: #000;
        --text-color: #000;
        --light-bg: #fff;
        --cream-bg: #fff;
        --border-color: #000;
    }

    .recipe-card,
    .testimonial-card,
    .blog-card,
    .value-card,
    .service-card {
        border: 3px solid #000;
    }
}
