/*
 Theme Name: Il bacio
 Template: astra
 Author: Poonam Sanepara
 Description: A customisation created speacially for Ilbacio
 Version: 1.0.0
*/

.ast-site-identity{
    padding: unset !important;
}
.site-content .ast-container{
    flex-direction: column;
}
.main-header-bar-navigation nav .menu-item-object-page a.menu-link{
    color: white;
    font-size: 22px;
    font-weight: 600;
}
.ast-builder-layout-element .ast-custom-button-link{
    font-weight: 600;
}

/* Custom CSS for Il bacio theme */
/* sticky header */
header#masthead.sticky {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #fef1e4;
}
header#masthead.sticky .main-header-bar-navigation nav .menu-item-object-page a.menu-link {
    color: #333;
}
header#masthead.sticky img.custom-logo {
    max-width: 180px;
    width: 180px;
}

.menu-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 40px;
}
.elementor-icon-box-icon i::before{
    color: var(--ast-global-color-0);
}
/* This class swaps the order of the flex children */
/* ==========================================================================
   Custom CPT Full Menu Layout Styles 
   ========================================================================== */

.menu-template-wrapper {
    padding-top: 60px;
    padding-bottom: 60px;
}

.menu-page-header {
    text-align: center;
    margin-bottom: 50px;
}
.menu-main-title {
    font-size: 2.8rem;
    font-weight: 700;
}

/* Layout Engine */
.menu-section {
    display: flex;
    align-items: flex-start;
    gap: 5%;
    margin-bottom: 80px;
}
.menu-section.row-reverse {
    flex-direction: row-reverse;
}

/* Category Graphic Columns */
.menu-category-visual {
    flex: 0 0 45%;
    max-width: 45%;
}
.menu-cat-title {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.menu-cat-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--ast-global-color-0);
}
.menu-section.row-reverse .menu-cat-title::after {
    left: auto;
    right: 0;
}
.menu-section.row-reverse .menu-category-visual {
    text-align: right;
}
.menu-cat-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.menu-cat-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Fallback Container Styling */
.menu-cat-img-fallback {
    width: 100%;
    height: 300px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
}
.menu-cat-img-fallback span {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Astra Child - Custom Full Menu Display Layout Styles
   ========================================================================== */

/* 1. Hero Background Title Banner */
.menu-hero-banner {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 120px 0; /* Vertical space inside the image banner */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Fallback color if no Featured Image is selected for the page */
.menu-hero-banner.no-hero-bg {
    background: #1e293b;
    padding: 80px 0;
}

.hero-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-hero-banner .menu-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff !important; /* Forces white title over the dark mask */
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    line-height: 1.2;
}

/* 2. Main Page Layout Grid Wrap */
.menu-template-wrapper {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Layout Engine: Alternating Flex Rows */
.menu-section {
    display: flex;
    align-items: flex-start;
    gap: 6%;
    margin-bottom: 100px;
}

.menu-section:last-of-type {
    margin-bottom: 0;
}

.menu-section.row-reverse {
    flex-direction: row-reverse;
}

/* 3. Category Graphic Columns */
.menu-category-visual {
    flex: 0 0 47%;
    max-width: 47%;
}

.menu-cat-title {
    text-align: center;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 500;
    letter-spacing:0.7px
}

/* Underline accent line matching Astra brand colour */
.menu-cat-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 48%;
    width: 50px;
    height: 4px;
    background-color: var(--ast-global-color-0); 
}

.menu-section.row-reverse .menu-cat-title::after {
    left: auto;
    right: 0;
}

.menu-section.row-reverse .menu-category-visual {
    text-align: right;
}

.menu-cat-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.menu-cat-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-cat-image-wrapper:hover .menu-cat-img {
    transform: scale(1.02); /* Soft hover lift effect */
}

/* Fallback Box Container Styling if ACF Image is Missing */
.menu-cat-img-fallback {
    width: 100%;
    height: 340px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    box-sizing: border-box;
}

.menu-cat-img-fallback span {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    padding: 0 20px;
    text-align: center;
}

/* 4. Menu Items List Column & Dotted Leader Line Engine */
.menu-items-list {
    flex: 0 0 47%;
    max-width: 47%;
}

.single-menu-item {
    margin-bottom: 30px;
    padding-bottom: 5px;
}

.single-menu-item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.item-title {
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 2px;
}

/* Generates dynamic dots linking title to price dynamically across widths */
.item-leader-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #cbd5e1;
    position: relative;
    top: -5px;
    margin: 0 10px;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ast-global-color-2); /* Inherits theme content link/accent color */
    white-space: nowrap;
    padding-left: 2px;
}

.currency-symbol {
    font-size: 1.05rem;
    font-weight: 600;
    vertical-align: top;
    margin-right: 1px;
}

.item-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

/* ==========================================================================
   5. Tablet and Mobile Responsive Layout Rules
   ========================================================================== */
@media (max-width: 920px) {
    .menu-hero-banner {
        padding: 80px 0;
    }
    
    .menu-hero-banner .menu-main-title {
        font-size: 2.6rem;
    }

    .menu-template-wrapper {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .menu-section, 
    .menu-section.row-reverse {
        flex-direction: column;
        gap: 35px;
        margin-bottom: 70px;
    }

    .menu-category-visual,
    .menu-items-list {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .menu-section.row-reverse .menu-category-visual {
        text-align: left;
    }

    .menu-section.row-reverse .menu-cat-title::after {
        right: auto;
        left: 0;
    }

    .menu-cat-img-fallback {
        height: 240px;
    }
    
    .item-title,
    .item-price {
        font-size: 1.2rem;
    }
}
