/* --- 1. Global & Typography --- */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #373737; /* Matches footer to hide any tiny rendering gaps */
    font-family: 'Raleway', sans-serif;
}

.post-body, 
.page-body.parchment-theme,
.post-body *, 
.page-body.parchment-theme * {
    color: #2d2d2d !important; /* Forces a dark charcoal color on all text */
}

/* Specific heading overrides for brand colors */
.post-body h1, .page-body.parchment-theme h1,
.post-body h2, .page-body.parchment-theme h2,
.post-body h3, .page-body.parchment-theme h3 {
    color: #dd4b0d !important; /* Re-applies your brand Burnt Orange to headings */
}

/* Ensure links are visible and distinct */
.post-body a, .page-body.parchment-theme a {
    color: #d4a017 !important; /* Brand Gold for links */
    text-decoration: underline;
}

.post-body a:hover, .page-body.parchment-theme a:hover {
    color: #dd4b0d !important; /* Switches to Orange on hover */
}

/* Elegant Handwritten Heading - Menu Style */
h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #dd4b0d; /* Burnt Orange */
    text-shadow: 0px 10px 10px #4c2d00;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #666;
}

/* --- 2. Header & Navigation --- */
.navbar {
    background: #373737;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo img {
    height: 60px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- Navbar Dropdown Logic --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #2b1d12; /* Dark leather theme matches sidebar */
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    border: 1px solid #d4a017; /* Gold frame */
    top: 100%; /* Sits directly below parent */
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block; /* Show on hover */
}

.dropdown-content li a {
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-transform: none; /* Normal case for sub-items */
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
}

.dropdown-content li a:hover {
    background-color: #3d2b1d;
    color: #f1c40f; /* Gold hover text */
}

.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- 3. Hero Section (Menu Booklet Design) --- */
.hero-home {
    min-height: 80vh; /* Changed from 100vh to allow the footer to pull up */
    display: flex; 
    align-items: center; 
    justify-content: center;
    background-color: #f4f1ea; 
    background-image: url('/assets/images/2026/01/textured-catering-menu-paper.png');
    background-repeat: repeat;
    margin-bottom: 0; /* Ensures no gap at the bottom */
    padding: 100px 0; /* Adds breathing room inside without creating a white gap */
}

.hero-overlay {
    background: #ffffff;
    padding: 60px;
    max-width: 750px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #d4a017; /* Gold "Menu Frame" */
    outline: 4px solid #ffffff;
    outline-offset: -12px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the blocks of text */
    text-align: center;
}

.hero-list {
    list-style: none; /* We will use custom gold bullets instead */
    padding: 0;
    margin: 20px 0;
    text-align: left; /* Keeps the text lines aligned on the left */
    display: block; /* Allows it to take full width of container */
    max-width: fit-content; /* Shrinks container to fit the longest line */
}

.hero-list li {
    position: relative;
    padding-left: 25px; /* Space for the custom bullet */
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

/* Add Elegant Gold Bullets */
.hero-list li::before {
    content: "•"; /* Or use an SVG/icon */
    position: absolute;
    left: 0;
    color: #d4a017; /* Gold color */
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* Fix Action Links (The floating dots) */
.hero-contact {
    margin: 20px 0;
    text-align: left;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keeps buttons and footer link left-aligned */
    gap: 15px;
    margin-top: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.hero-actions, .hero-actions *, .hero-contact, .hero-contact * {
    list-style: none !important;
}

/* --- Global Catalogue Layout --- */
.menu-catalogue-layout {
    background-color: #2b1d12; /* Dark leather fallback */
    padding: 0; /* Removing outer padding to let themes hit the edges */
}

.catalogue-flex {
    display: flex;
    min-height: 80vh;
}

/* --- Catalogue & Page Image Constraint --- */
.page-body.parchment-theme img {
    max-width: 100%;    /* Prevents image from being wider than the paper */
    height: auto;       /* Maintains aspect ratio to prevent squashing */
    display: block;
    margin: 20px auto;  /* Centers images with vertical spacing */
    border: 1px solid #d4a017; /* Gold frame matching the menu theme */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Ensure large WP figures (captions) also stay contained */
.page-body.parchment-theme figure {
    max-width: 100% !important;
    margin: 0 auto 20px auto;
}

/* --- 1. Leather Sidebar (Homepage Style) --- */
.menu-sidebar.leather-theme {
    flex: 0 0 280px;
    background-color: #2b1d12; /* Dark leather fallback */
    padding: 60px 40px;
    border-right: 3px solid #d4a017; /* Stronger gold "binding" */
    box-shadow: inset -10px 0 20px rgba(0,0,0,0.3); /* Depth effect */
}

.menu-sidebar h3 {
    color: #f1c40f; /* Bright gold for dark leather */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.sidebar-nav a {
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    color: #f1c40f;
    padding-left: 10px; /* Subtle slide effect */
}

/* Adds a subtle gold divider between sidebar menu items */
.sidebar-nav li:not(:last-child) {
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
    padding-bottom: 10px;
}

/* --- 2. Parchment Content Body (Post Style) --- */
.page-body.parchment-theme {
    flex: 1;
    background-color: #f4f1ea;
    background-image: url('/assets/images/2026/01/textured-catering-menu-paper.png');
    padding: 80px 60px; /* Generous breathing room */
    box-shadow: 10px 0 30px rgba(0,0,0,0.5); /* Shadow from the sidebar */
}

.page-body h1, .page-body h2 {
    color: #dd4b0d; /* Brand Burnt Orange */
    margin-bottom: 25px;
}

.page-body p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Responsive: Stack them on mobile */
@media (max-width: 768px) {
    .catalogue-flex {
        flex-direction: column;
    }
    .menu-sidebar {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #d4a017;
        margin-bottom: 30px;
        padding-right: 0;
        padding-bottom: 20px;
    }
}

/* --- Blog List Layout --- */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.3); /* Subtle gold divider */
}

.blog-item-thumb {
    flex: 0 0 300px; /* Fixed width for the image on desktop */
}

.blog-item-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #d4a017;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}

.blog-item-content {
    flex: 1;
}

.blog-item-content h2 {
    font-size: 1.6rem;
    margin-top: 0;
    color: #dd4b0d; /* Burnt Orange */
    text-decoration: none;
}

.blog-item-content a {
    text-decoration: none;
}

.blog-item-content .excerpt {
    color: #444;
    line-height: 1.6;
    margin: 15px 0;
}

/* 📱 Mobile Responsive: Stack them */
@media (max-width: 768px) {
    .blog-item {
        flex-direction: column; /* Stacks image on top of text */
        gap: 20px;
    }

    .blog-item-thumb {
        flex: none;
        width: 100%;
    }

    .blog-item-thumb img {
        height: 250px; /* Taller images look better on mobile */
    }
}

/* Recent Posts Layout */
.recent-posts {
    background-color: #2b1d12; /* Dark leather fallback */
    padding: 100px 20px;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 2px solid #d4a017; /* Gold divider between parchment and leather */
}

.posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.recent-title {
    text-align: center;
    margin-bottom: 40px;
    color: #d4a017; /* Gold pops better against dark leather */
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.posts-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px; /* Space between the cards */
    justify-content: center; /* Centers the grid if you have only 1 or 2 cards */
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    /* (100% / 3) minus slightly more than the gap to ensure it fits */
    flex: 0 0 calc(33.333% - 25px); 
    width: calc(33.333% - 25px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px; /* Allows cards to be slightly narrower to fit the row */
    background: #ffffff;
    border: 1px solid #d4a017;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: #dd4b0d; /* Shifts from gold to brand orange on hover */
}

/* Fix for mobile: Switch to 1 column on small screens */
@media (max-width: 992px) {
    .post-card {
        flex: 0 0 calc(50% - 15px); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .post-card {
        flex: 0 0 100%; /* 1 column on phones */
    }
}

.post-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.post-info {
    padding: 25px;
}

.post-info h2 {
    font-size: 1.25rem;
    color: #dd4b0d; /* Matches your H1 orange accent */
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
}

.post-title-link {
    text-decoration: none;
}

.post-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.post-link {
    color: #d4a017;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- Post Header (Hero) --- */
.post-hero {
    position: relative;
    height: 60vh; /* Controlled height so it doesn't take over the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #373737; /* Fallback color */
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This mimics the 'background-size: cover' behavior */
    filter: brightness(0.7); /* Maintains text readability */
}

.post-title-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.post-title-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    max-width: 700px;
    border: 1px solid #d4a017; /* Gold Frame */
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.post-title-card h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #dd4b0d;
    margin: 10px 0;
    text-shadow: none; /* Cleaner look for individual posts */
}

/* --- Post Content --- */
.post-content-area {
    background-color: #f4f1ea; /* Parchment background */
    background-image: url('/assets/images/2026/01/textured-catering-menu-paper.png');
    padding: 60px 0;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

/* Fix for Table of Contents and Lists from WP */
.post-body ul {
    list-style: none;
    padding-left: 0;
}

.post-body li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.post-body li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d4a017;
    font-weight: bold;
}

/* --- Post Body Image Fix --- */
.post-body img {
    max-width: 100%;    /* Forces image to stay inside the text container */
    height: auto;       /* Maintains the original aspect ratio */
    display: block;     /* Removes weird bottom spacing */
    margin: 30px auto;  /* Centers images with vertical breathing room */
    border: 1px solid #d4a017; /* Optional: adds a thin gold frame to match the theme */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ensure captions or centered images from WP also behave */
.post-body figure {
    margin: 0;
    max-width: 100%;
}

.post-body figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
    font-style: italic;
}

.content-optimized {
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 30px auto;
}

/* Restricts huge content images to only the width of the parchment paper */
.parchment-theme img {
    max-width: 100%;
    height: auto;
    width: auto; /* Ensures smaller images don't stretch to fill the width */
    object-fit: contain;
}

/* --- 5. Footer --- */
.main-footer {
    background: #373737;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 0; /* Removed the 80px gap that was causing the white space */
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: #d4a017;
    text-decoration: none;
    line-height: 2;
}

.emoji-gold {
    filter: sepia(1) saturate(5) hue-rotate(10deg);
    display: inline-block;
    margin-right: 10px;
    font-size: 1.1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #4a4a4a;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #999;
}

.footer-bottom a {
    color: #fff;
}