/* General Setup for Fluid Design */
:root {
    /* Define key colors */
    --color-primary: #a87932;
    --color-accent: #e0ac65;
    --color-light-bg: #fcf8f3;
    --color-white: #fff;
    --color-dark: #333;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--color-light-bg); 
    color: var(--color-dark);
}

/* Base Container Settings (Fluid width) */
.nav-container, .hero-section, main > section, main > aside {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 4%; /* Use percentage padding for fluid space */
}

/* --- NAVIGATION AND HEADER STYLES --- */

.top-stripe {
    background-color: var(--color-accent);
    height: 10px;
    width: 100%;
}

.top-bar {
    background-color: var(--color-white);
}

.nav-container {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo .logo-main {
    font-size: 1.5rem; 
    font-weight: bold;
    color: var(--color-primary);
    display: block;
}

.logo .logo-sub {
    font-size: 0.8rem;
    color: #6a4929;
}


.hero-section {
    display: flex; 
    align-items: center;
    gap: 5%; /* Fluid gap */
    margin-top: 40px;
    margin-bottom: 40px;
    min-height: 500px; /* Ensure a minimum height on large screens */
}

.hero-content {
    flex: 1;
    min-width: 40%;
}

.since-date {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 5px;
}

#recipe-name {
    /* Fluid Font Size: Scales with the viewport width */
    font-size: 5vw; 
    font-weight: 900;
    color: var(--color-primary);
    text-align: left; 
    line-height: 1.1;
    margin: 0 0 15px 0;
}

.description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-recipe-btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.jump-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.hero-image-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image {
    /* Fluid Image: Max width is 100% of its container */
    max-width: 100%; 
    height: auto;
    /* Using percentage-based clip-path for responsiveness */
    clip-path: circle(70% at 85% 50%); 
    object-fit: cover;
}



/* --- RECIPE DETAILS STYLES --- */

h2 {
    font-family: 'Arial', sans-serif;
    color: var(--color-primary);
    text-align: center;
    margin-top: 25px;
    margin-bottom: 15px;
}

main > section {
    background-color: var(--color-white);
    border-radius: 8px;
    margin-top: 30px;
    padding: 30px 4%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.details-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}


@media screen and (max-width: 900px) {
    }

    /* Adjust image clipping for better visibility on smaller screens */
    .hero-image {
        clip-path: circle(65% at 75% 50%);
    }

    .nav-links {
        gap: 1rem;
    }



/* ** 2. MOBILE PHONE (Max-width 600px) ** */
@media screen and (max-width: 600px) {

    /* --- Navigation Stack --- */
    .nav-container {
        flex-direction: column; /* Stack logo and links vertically */
        padding: 10px 4%;
    }
    .nav-links {
        flex-wrap: wrap; /* Allow links to wrap */
        justify-content: center;
        gap: 10px 15px;
        margin-top: 10px;
    }

    /* --- Hero Section Stack --- */
    .hero-section {
        flex-direction: column; /* Stack content (text and image) vertically */
        gap: 30px;
        min-height: unset;
        margin-top: 20px;
    }
    
    .hero-content {
        max-width: 100%; 
        order: 2; /* Put text below the image */
        text-align: center;
    }

    #recipe-name {
        font-size: 10vw; /* Keep it fluid, but capped higher for legibility */
        text-align: center;
        line-height: 1;
    }
    
    .description {
        font-size: 1rem; 
        text-align: center;
        padding: 0 10px;
    }

    .hero-actions {
        justify-content: center;
    }

    /* --- Image Fixes for Mobile --- */
    .hero-image-container {
        order: 1; /* Put image above the text */
        width: 100%;
        justify-content: center;
    }
    
    .hero-image {
        max-width: 90%; 
        /* Simplifies the image for small screens */
        clip-path: circle(50% at 50% 50%); /* Simple circle cut */
        border-radius: 0;
    }

    .strawberry-icon {
        /* Hides the small detail on very small screens to save space */
        display: none; 
    }

    /* Adjust general section padding */
    main > section, main > aside {
        padding: 20px 4%;
    }
}