/* CSS Variables for Color Palette */
:root {
    --primary-color: #8B7355;
    --secondary-color: #6B8E4F;
    --accent-color: #D4B896;
    --background-color: #F5F1EB;
    --text-color: #3D3528;
    --card-background: #FFFFFF;
    --border-color: #E5DDD0;
    --hover-color: #7A6348;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 18px;
}

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

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.main-header .container {
    position: relative;
    z-index: 1;
}

.site-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.site-title a.header-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.site-title a.header-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease;
}

.site-title a.header-link:hover,
.site-title a.header-link:focus {
    transform: scale(1.05);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    outline: 2px solid white;
    outline-offset: 8px;
    border-radius: 8px;
}

.site-title a.header-link:hover::after,
.site-title a.header-link:focus::after {
    width: 100%;
}

.site-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    background-color: var(--card-background);
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-height: 56px;
}

.main-nav .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 70px;
    min-height: 56px;
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
    display: none;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    cursor: pointer;
    padding: 0;
    z-index: 102;
    width: 48px;
    height: 48px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-toggle:hover {
    background-color: var(--accent-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 22px;
    position: relative;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    gap: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.menu-toggle:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Menu Overlay (Mobile) */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link:focus {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--card-background);
    margin: 2rem auto;
    border-radius: 8px;
    max-width: 1000px;
}

.hero-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
}

/* Recipes Section - Grid Layout */
.recipes-section {
    padding: 3rem 0;
}

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

/* Recipe Cards */
.recipe-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.recipe-image {
    width: 100%;
    overflow: hidden;
    background-color: var(--border-color);
}

.recipe-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.recipe-content {
    padding: 1.5rem;
}

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

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

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

.recipe-description {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.recipe-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    outline: 2px solid var(--hover-color);
    outline-offset: 2px;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Recipe Detail Section */
.recipe-detail-section {
    padding: 3rem 0;
    background-color: var(--card-background);
    margin: 2rem 0;
    border-radius: 8px;
}

.recipe-detail-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.recipe-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.recipe-ingredients,
.recipe-steps,
.recipe-tips {
    margin-bottom: 2rem;
}

.recipe-ingredients h3,
.recipe-steps h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.recipe-tips h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Ingredients Table */
.ingredients-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ingredients-table thead {
    background-color: var(--primary-color);
    color: white;
}

.ingredients-table th,
.ingredients-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.ingredients-table tbody tr:hover {
    background-color: var(--background-color);
}

.ingredients-table tbody tr:last-child td {
    border-bottom: none;
}

/* Steps List */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.steps-list li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    line-height: 1.8;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.steps-list li strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.recipe-tips ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.recipe-tips ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Techniques Section */
.techniques-section {
    padding: 3rem 0;
}

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

.technique-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid var(--secondary-color);
}

.technique-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.technique-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.technique-tips {
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.technique-tips strong {
    color: var(--secondary-color);
}

/* Ingredients Section */
.ingredients-section {
    padding: 3rem 0;
    background-color: var(--card-background);
    margin: 2rem 0;
    border-radius: 8px;
}

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

.ingredient-card {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 6px;
    border-top: 3px solid var(--accent-color);
}

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

/* Tips Section */
.tips-section {
    padding: 3rem 0;
}

.tip-of-day {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tip-of-day h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tip-of-day p {
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.tip-item {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.tip-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
    padding: 3rem 0;
    background-color: var(--card-background);
    margin: 2rem 0;
    border-radius: 8px;
}

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

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    background-color: var(--card-background);
    margin: 2rem 0;
    border-radius: 8px;
}

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

.contact-content > p {
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.contact-info-item {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-info-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-info-item p {
    line-height: 1.8;
    margin-bottom: 0;
    text-align: center;
    color: var(--text-color);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: inline-block;
    position: relative;
}

.contact-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--secondary-color);
    transform: translateX(5px);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.contact-link:hover::before,
.contact-link:focus::before {
    width: 100%;
}

.contact-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.contact-note p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left;
}

.contact-note p:last-child {
    margin-bottom: 0;
}

/* Privacy Section */
.privacy-section {
    padding: 3rem 0;
    background-color: var(--card-background);
    margin: 2rem 0;
    border-radius: 8px;
}

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

.privacy-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Privacy Form */
.privacy-form {
    margin-top: 2rem;
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-group:hover {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.6;
    user-select: none;
    flex: 1;
}

/* Footer */
.main-footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.main-footer p {
    margin-bottom: 0.5rem;
}

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

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--accent-color);
    transform: translateY(-2px);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.footer-nav a:hover::after,
.footer-nav a:focus::after {
    width: 100%;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-header {
        padding: 2.5rem 0;
    }

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

    .site-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .main-header {
        padding: 1.5rem 0;
        border-bottom: 3px solid rgba(255,255,255,0.2);
    }

    .site-title {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
        letter-spacing: -0.3px;
        line-height: 1.2;
    }

    .site-title a.header-link:hover,
    .site-title a.header-link:focus {
        outline-offset: 4px;
    }

    .site-subtitle {
        font-size: 0.95rem;
        letter-spacing: 0.3px;
        padding: 0 1rem;
        line-height: 1.4;
    }

     .main-nav {
         padding: 0;
         background-color: rgba(255,255,255,0.98);
         min-height: 56px;
     }

     .main-nav .container {
         justify-content: center;
         padding: 0.5rem 68px 0.5rem 1rem;
         min-height: 56px;
     }

     /* Show menu toggle on mobile */
     .menu-toggle {
         display: flex;
         right: 10px;
         left: auto;
         top: 10px;
         transform: none;
         width: 48px;
         height: 48px;
     }

     .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--card-background);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 1.5rem 2rem;
        gap: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
        z-index: 99;
        transition: left 0.3s ease;
        overflow-y: auto;
        margin-top: 0;
    }

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

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }



    .nav-link {
        padding: 1rem 0.75rem;
        font-size: 1.1rem;
        border-radius: 0;
        width: 100%;
        display: block;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-link:hover,
    .nav-link:focus {
        background-color: var(--background-color);
        border-left-color: var(--primary-color);
        padding-left: 1rem;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recipe-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .recipe-detail-section h2 {
        font-size: 1.75rem;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

     .container {
         padding: 0 15px;
     }

     .privacy-form {
         padding: 1.5rem;
     }

     .checkbox-group {
         gap: 0.75rem;
         padding: 1rem;
         flex-wrap: wrap;
     }

     .checkbox-group input[type="checkbox"] {
         width: 24px;
         height: 24px;
         min-width: 24px;
         min-height: 24px;
         margin-top: 0.1rem;
     }

     .checkbox-group label {
         font-size: 0.95rem;
         line-height: 1.5;
     }
}

@media (max-width: 480px) {
     .main-header {
         padding: 1.25rem 0;
     }

     .site-title {
         font-size: 1.5rem;
         margin-bottom: 0.35rem;
     }

     .site-subtitle {
         font-size: 0.85rem;
         padding: 0 0.75rem;
     }

     .main-nav .container {
         padding: 0.5rem 58px 0.5rem 1rem;
     }

     .menu-toggle {
         width: 44px;
         height: 44px;
         right: 8px;
         left: auto;
         top: 8px;
         transform: none;
     }

     .menu-icon {
         width: 24px;
         height: 18px;
     }

     .nav-list {
         gap: 0.3rem;
         padding: 75px 1.5rem 2rem;
     }

     .nav-link {
         padding: 1rem 0.75rem;
         font-size: 1rem;
         border-radius: 0;
         width: 100%;
         display: block;
         min-width: fit-content;
     }

     .privacy-form {
         padding: 1rem;
     }

     .form-group {
         margin-bottom: 1.25rem;
     }

     .checkbox-group {
         gap: 0.75rem;
         padding: 0.875rem;
         flex-direction: row;
         align-items: flex-start;
     }

     .checkbox-group input[type="checkbox"] {
         width: 22px;
         height: 22px;
         min-width: 22px;
         min-height: 22px;
         margin-top: 0.15rem;
     }

     .checkbox-group label {
         font-size: 0.9rem;
         line-height: 1.5;
     }

     .contact-info-grid {
         grid-template-columns: 1fr;
         gap: 1.5rem;
     }

     .contact-info-item {
         padding: 1.25rem;
     }

     .contact-info-item h3 {
         font-size: 1.1rem;
     }

     .contact-content > p {
         font-size: 1rem;
     }

     .contact-note {
         padding: 1.25rem;
     }

     .contact-note p {
         font-size: 0.95rem;
     }
}

@media (min-width: 769px) {
    body {
        font-size: 20px;
    }

    p {
        font-size: 1.1rem;
    }

    .recipe-description,
    .recipe-intro {
        font-size: 1.15rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    body {
        font-size: 22px;
    }

    .main-header {
        padding: 4rem 0;
    }

    .site-title {
        font-size: 3.5rem;
        margin-bottom: 0.6rem;
    }

    .site-subtitle {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.15rem;
    }

    .recipe-description,
    .recipe-intro {
        font-size: 1.2rem;
    }

    .hero-section p {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }

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

     .recipe-title {
         font-size: 1.75rem;
     }

}

/* Scroll to top button */
.scroll-to-top {
    position: fixed !important;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    background-color: var(--hover-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.scroll-icon {
    display: block;
    line-height: 1;
}

@media (max-width: 768px) {
     .scroll-to-top {
         bottom: 1rem;
         right: 1rem;
         width: 60px;
         height: 60px;
         font-size: 1.8rem;
     }
}

@media (max-width: 480px) {
     .scroll-to-top {
         bottom: 0.75rem;
         right: 0.75rem;
         width: 55px;
         height: 55px;
         font-size: 1.6rem;
     }
}

/* Print Styles */
@media print {
    .main-nav,
    .main-footer,
    .recipe-actions,
    .privacy-form,
    .scroll-to-top {
        display: none;
    }

    .recipe-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

