/*
Theme Name: Home Cooking
Theme URI: https://orders.homecookingsa.co.za
Author: Techtix
Author URI: https://techtixlabs.co.uk
Description: A modernized, responsive theme matching the Home Cooking color scheme.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: homecooking
*/

/* --- Base Styles & Reset --- */
* {
    box-sizing: border-box; /* Ensures padding doesn't affect widths */
}

body {
    background-color: #406da8; /* Brand Blue */
    margin: 0;
    padding: 20px 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

/* --- Main Container --- */
.site-wrapper {
    max-width: 900px; /* Modern fluid max-width instead of fixed 800px */
    width: 92%;       /* Shrinks to fit screen on mobile */
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px; /* Soft rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Modern depth shadow */
}

/* --- Header --- */
.site-header {
    display: flex;
    align-items: center;
    padding: 30px;
    background-color: #ffffff;
}

.site-logo {
    max-width: 100px; /* Slightly larger logo */
    height: auto;
}

.site-title {
    margin-left: 30px;
    font-family: "Comic Sans MS", "Marker Felt", sans-serif; 
    color: #406da8;
    font-size: 42px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15); /* Softer, modern shadow */
    letter-spacing: 1px;
    line-height: 1.1;
}

/* --- Navigation Menu --- */
.main-navigation {
    background-color: #406da8;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centers the menu items */
    flex-wrap: wrap;         /* Allows wrapping on smaller screens */
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 18px 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.main-navigation a:hover {
    background-color: #2c4d78; /* Darkens the blue on hover */
}

/* --- Main Content Area --- */
.site-content {
    background-color: #a9b0a7; /* Brand Gray */
    padding: 50px 20px;
    text-align: center;
    min-height: 400px;
}

/* Adds a nice shadow and rounded corners to your uploaded page images */
.site-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

/* --- Footer --- */
.site-footer {
    background-color: #315585; /* Slightly darker than main blue to separate it */
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    font-size: 14px;
    line-height: 1.5;
}

.site-footer a {
    color: #ffffff;
    text-decoration: underline;
}


/* ==========================================================================
   MOBILE RESPONSIVENESS (Screens smaller than 600px)
   ========================================================================== */
@media (max-width: 600px) {
    
    body {
        padding: 10px 0; /* Less padding on mobile bodies */
    }

    /* Stack the header vertically */
    .site-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }

    .site-title {
        margin-left: 0;
        margin-top: 15px;
        font-size: 32px; /* Smaller title for mobile */
    }

    /* Stack the menu items into a list */
    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separators */
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }

    .site-content {
        padding: 30px 15px;
    }
}

/* --- Center & Highlight the Welcome Message --- */
.main-navigation .cf-nav-welcome {
    display: flex;
    align-items: center;
    
    /* Optional: If you want to force it to sit between the 1st and 2nd menu item */
    /* order: -1; */ 
}

.main-navigation .cf-nav-welcome a {
    background-color: #ffc107; /* Warm gold highlight */
    color: #1a365d !important; /* Dark blue text for contrast */
    border-radius: 50px; /* Pill shape */
    padding: 10px 24px !important; /* Overrides the default menu padding */
    margin: 0 15px; /* Space it out from 'My Account' and 'Order Here' */
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.main-navigation .cf-nav-welcome a:hover {
    background-color: #ffca28;
    transform: translateY(-2px); /* Creates a slight "lift" effect on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Re-center and fix spacing on mobile screens */
@media (max-width: 600px) {
    .main-navigation .cf-nav-welcome {
        margin: 15px auto;
        order: -1; /* Puts the welcome message at the very top of the mobile list */
    }
}