/*
Theme Name: PMS Sogo
Theme URI: http://example.com
Author: Ton Nom
Author URI: http://example.com
Description: Un thème WordPress créé de A à Z.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pms-sogo
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* --- Global Restaurant Section Styles --- */
.section-title-premium {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    font-size: 2.2rem;
}

.title-separator {
    width: 60px;
    height: 2px;
    background: #f3c623;
    margin: 20px auto;
}

.emotional-intro-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #666;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Tabs */
.food-menu-tabs .nav-tabs {
    border-bottom: none !important;
    justify-content: center;
}

.food-menu-tabs .nav-link {
    color: #f3c623 !important;
    background: transparent !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 10px 25px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.food-menu-tabs .nav-link:hover {
    opacity: 1;
}

/* Force the active underline to be white and remove any orange residuals */
.food-menu-tabs ul.nav-tabs li.nav-item a.nav-link.active {
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 3px solid #fff !important;
    opacity: 1 !important;
}

/* Force hide any theme-specific pseudo-underlines */
.food-menu-tabs .nav-tabs .nav-link:before,
.food-menu-tabs .nav-tabs .nav-link:after,
.food-menu-tabs .nav-tabs li a:before,
.food-menu-tabs .nav-tabs li a:after {
    display: none !important;
    background: transparent !important;
    height: 0 !important;
}

/* Restaurant Cards on Home */
.food-menu .img-wrap:hover img {
    transform: scale(1.1);
}

.food-menu .btn-outline-white:hover {
    background: #fff;
    color: #000;
}

.btn-outline-white-primary {
    border: 2px solid #fff !important;
    color: #fff !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.btn-outline-white-primary:hover {
    background: #fff !important;
    color: #f3c623 !important;
    border-color: #fff !important;
}

/* Home Restaurant Dishes (Capture 2 Style) */
.food-menu .text-primary {
    color: #f3c623 !important;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.food-menu h3.text-white {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.food-menu .text-opacity-7 {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Plats inside Single Restaurant */
/* Full-screen Modal for Menu Gastronomique */
.modal-full .modal-dialog {
    max-width: 100vw !important;
    margin: 0 !important;
    min-height: 100vh !important;
}

.modal-full .modal-content {
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: visible;
    /* Let the body or scrollable parent handle it */
    position: relative;
    color: #fff;
    /* Default text to white for dark backgrounds */
}

/* Background Overlay */
.modal-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    /* Darker overlay for better contrast */
    z-index: 1;
}

.modal-full .modal-header .menu-category-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 5px;
    font-weight: 700;
    color: #fff;
}

.modal-full .modal-header .btn-modal-close {
    color: #fff !important;
    /* White X */
    background: #ff4d4d !important;
    /* Red Background */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    text-shadow: none;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    border: 3px solid #fff;
    /* White border for extra contrast */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    top: 60px !important;
    right: 60px !important;
}

.modal-full .modal-header .btn-modal-close span {
    font-size: 3rem !important;
    font-weight: 400 !important;
    line-height: 1;
    margin-top: -6px;
    /* Perfect centering for &times; */
}

.modal-full .modal-header .btn-modal-close:hover {
    background: #e60000 !important;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* --- E-commerce Dish Card Styles --- */
.dish-ecommerce-card {
    background: #ffffff !important;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    /* Ensure vertical separation */
}

.dish-ecommerce-card:hover {
    border-color: #f3c623;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.dish-card-image-wrapper {
    background: #fff;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.dish-card-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.dish-ecommerce-card:hover .dish-card-image-wrapper img {
    transform: scale(1.1);
}

.dish-card-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dish-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.dish-card-excerpt {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 10px;
    text-align: left;
}

/* Tab Content Spacing - Restore default gutters for more air */
.tab-content .row {
    margin-left: -15px;
    margin-right: -15px;
}

.tab-content [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.modal-full .title-separator {
    margin: 15px auto;
}

/* Menu List Style */
.menu-list-container {
    padding-top: 20px;
}

.menu-list-item {
    position: relative;
    transition: all 0.3s ease;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle light border */
}

.menu-item-label {
    cursor: pointer;
    margin-bottom: 0;
}

/* Custom Checkbox before Title */
.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #f3c623;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
}

.custom-checkbox::after {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #000;
    font-size: 12px;
    transition: all 0.2s ease;
}

.plat-card-checkbox:checked+.menu-item-label .custom-checkbox {
    background: #f3c623;
}

.plat-card-checkbox:checked+.menu-item-label .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

.menu-item-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #fff;
    /* White title */
    text-transform: uppercase;
}

.menu-item-price {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #f3c623;
    /* Gold price for visibility */
}

.menu-item-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    /* Slightly dimmed white */
    line-height: 1.6;
    max-width: 90%;
}

.menu-item-meta-details {
    margin-top: 10px;
}

.menu-item-ingredients {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.menu-item-culinary-details {
    color: #ffbaba;
    /* Lighter bordeaux/pink for legibility on dark */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-style: italic;
}

.menu-item-prep-time,
.menu-item-suggestion {
    color: rgba(255, 255, 255, 0.6);
}

.menu-list-item:hover {
    background: rgba(243, 198, 35, 0.02);
}

.menu-category-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.menu-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #f3c623;
}

.plat-item {
    transition: all 0.3s ease;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.plat-item:hover {
    padding-left: 10px;
    background: rgba(243, 198, 35, 0.05);
}

.plat-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.plat-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
    flex-shrink: 0;
}

.plat-dots {
    flex-grow: 1;
    border-bottom: 2px dotted rgba(0, 0, 0, 0.15);
    margin: 0 10px;
    height: 1.25rem;
    /* Match line height approx */
}

.plat-price {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #f3c623;
    font-size: 1.25rem;
}

.plat-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.plat-detail-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f3c623;
    font-weight: 700;
    display: inline-block;
    margin-top: 8px;
    cursor: pointer;
}

.plat-detail-link:hover {
    color: #000;
}

/* ============================================
   DISH SELECTION CARDS (Modal Grid)
   ============================================ */

.plat-card-container {
    position: relative;
    height: 100%;
}

.plat-card-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plat-card {
    display: block;
    height: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: all 0.25s ease;
    cursor: pointer;
    margin-bottom: 0;
}

.plat-card:hover {
    border-color: #f3c623;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Selected state using sibling selector */
.plat-card-checkbox:checked+.plat-card {
    border-color: #f3c623;
    background-color: rgba(243, 198, 35, 0.02);
    box-shadow: 0 8px 20px rgba(243, 198, 35, 0.15);
}

.plat-card-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #f0f0f0;
    transition: filter 0.3s ease;
}

.plat-card-checkbox:checked+.plat-card .plat-card-img {
    filter: brightness(0.9);
}

.plat-card-body {
    padding: 15px;
}

.plat-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.plat-card-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f3c623;
}

.plat-card-desc {
    font-size: 0.8rem;
    color: #777;
    margin-top: 8px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plat-card-check-indicator {
    display: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f3c623;
    font-weight: 700;
    align-items: center;
}

.plat-card-checkbox:checked+.plat-card .plat-card-check-indicator {
    display: flex;
}

/* ============================================
   MARAIS-STYLE CATEGORY IMAGE BLOCKS
   ============================================ */

.menu-blocks-section {
    /* Remove any padding that might interfere */
    padding: 0;
    margin: 0;
}

.menu-blocks-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 90vh !important;
    min-height: 500px !important;
    width: 100%;
}

.menu-block {
    flex: 1 1 0 !important;
    min-width: 0;
    height: 100% !important;
    position: relative;
    background-color: #1a1a1a;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-block:hover {
    flex: 1.6 1 0 !important;
}

.menu-block-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.4s ease;
}

.menu-block:hover .menu-block-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.menu-block-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.menu-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: letter-spacing 0.3s ease;
}

.menu-block:hover .menu-block-title {
    letter-spacing: 10px;
}

.menu-block-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 12px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-block-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: scale(1.05);
}

/* Responsive: Stack blocks on mobile */
@media (max-width: 768px) {
    .menu-blocks-row {
        flex-direction: column;
        min-height: auto;
    }

    .menu-block {
        height: 60vh;
        flex: none;
    }

    .menu-block:hover {
        flex: none;
    }

    .menu-block-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.5rem;
    }

    .menu-block-btn {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Category Modals */
.category-modal .modal-content {
    background: #fff;
    min-height: 80vh;
}

.category-modal .close {
    opacity: 1;
    color: #000;
}

.category-modal .menu-category-title {
    font-size: 2.5rem;
    color: #1a1a1a;
}

.plat-ingredients {
    line-height: 1.4;
    margin-top: 5px;
}

.plat-suggestion {
    font-size: 0.85rem;
    color: #555;
}

/* Modals */
.modal-content {
    border-radius: 0;
    border: none;
}

.modal-body h2 {
    font-family: 'Playfair Display', serif;
}

.italic {
    font-style: italic;
}

/* Restaurant Intro & Services Section */
.restaurant-intro-section {
    background: #fff !important;
    position: relative;
    z-index: 5;
}

.section-title-premium {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.5rem !important;
    color: #333 !important;
    font-weight: 700 !important;
}

.emotional-intro-text {
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
    color: #666 !important;
    max-width: 800px;
    margin: 0 auto;
}

.title-separator {
    width: 60px;
    height: 3px;
    background: #f3c623;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3c623;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-item:hover .service-icon-box {
    background: #f3c623;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(243, 198, 35, 0.3);
}

.service-items-wrapper .service-name {
    color: #333 !important;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}


/* --- Unified Restaurant Menu Blocks Layout --- */
.menu-blocks-section {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.menu-blocks-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 90vh !important;
    min-height: 600px !important;
    width: 100% !important;
    margin: 0 !important;
}

.menu-block {
    flex: 1 !important;
    height: 100% !important;
    position: relative;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s ease;
    min-width: 200px;
}

.menu-block:hover {
    flex: 1.5 !important;
}

.menu-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgb(51, 160, 240); */
    z-index: 1;
    transition: background 0.3s ease;
}

.menu-block:hover .menu-block-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.menu-block-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.menu-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.menu-block:hover .menu-block-title {
    transform: scale(1.05);
}

.menu-block-btn {
    border-radius: 30px !important;
    padding: 12px 35px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: bold !important;
    border: 2px solid #fff !important;
    background: transparent !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.menu-block-btn:hover {
    background: #fff !important;
    color: #000 !important;
}

/* Tablet & Mobile Stacking (Override) */
@media (max-width: 991px) {
    .menu-blocks-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
    }

    .menu-block {
        flex: none !important;
        height: 350px !important;
        width: 100% !important;
        margin-bottom: 2px;
    }

    .menu-block-title {
        font-size: 1.6rem !important;
        letter-spacing: 4px !important;
        margin-bottom: 20px !important;
    }

    .menu-block:hover {
        flex: none !important;
    }
}


/* --- Restaurant Services Grid (Final Unified Version) --- */
.restaurant-services-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    justify-items: center !important;
    align-items: start !important;
    margin-top: 30px !important;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
}

/* Tablet (3 columns) */
@media (max-width: 991px) {
    .restaurant-services-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* Mobile (2 columns - Perfect Alignment) */
@media (max-width: 767px) {
    .restaurant-services-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 15px !important;
    }

    .service-icon-box {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
    }

    .service-name {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
        line-height: 1.3 !important;
        margin-top: 5px !important;
    }
}

/* Smallest Screens (Still 2 columns, smaller icons) */
@media (max-width: 375px) {
    .service-icon-box {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.1rem !important;
    }

    .service-name {
        font-size: 0.65rem !important;
    }
}

/* Split Restaurant Layout */
.restaurant-intro-section {
    position: relative;
    z-index: 5;
}

.emotional-intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

.section-title-premium {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
}

.restaurant-services-section {
    border-top: 1px solid #eee;
}

.restaurant-services-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.service-item .service-icon-box {
    width: 65px;
    height: 65px;
    background: #fdfaf0;
    border: 1px solid #f3c623;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #f3c623;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon-box {
    background: #f3c623;
    color: #fff;
    transform: translateY(-5px);
}

.service-name {
    color: #333;
}

@media (max-width: 991px) {
    .restaurant-services-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Testimonials --- */
.testimonial blockquote p {
    text-align: justify;
    text-justify: inter-word;
}

/* --- Responsive Menu Details --- */
@media (max-width: 768px) {
    .menu-item-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .menu-item-price {
        margin-top: 10px;
        display: block;
        font-size: 1.1rem;
        /* Slightly smaller on mobile to fit better */
    }
}