/**
 * Marco's Table Custom Styles
 * Chef-driven, elevated trattoria aesthetic
 * Colors: Deep Olive #23331E / #1C2819, Warm Brick/Terracotta #8B3A2B,
 *         Antique Gold #C5A059, Aged Parchment #F5F2EB
 */

/* =========================================
   1. TYPOGRAPHY & BODY
   ========================================= */
.marcos-body {
    font-family: 'Lora', serif;
    color: #2A2420;
    padding-top: 80px !important;
    background-color: #F5F2EB;
}

.marcos-body h1,
.marcos-body h2,
.marcos-body h3,
.marcos-body h4 {
    font-family: 'Playfair Display', serif;
}

.marcos-script {
    font-family: 'Great Vibes', 'Bickham Script Pro', cursive;
    font-weight: 400;
    font-style: italic;
}

/* Form fields (overrides the base theme's dark #0e1215 form-control, which
   reads as black-on-black once .marcos-body sets dark text on top of it) */
.marcos-body .form-control,
.marcos-body .form-select,
.marcos-body select,
.marcos-body textarea {
    background-color: #F5F2EB !important;
    color: #23331E !important;
    border: 1px solid #D9CFB6 !important;
}

.marcos-body .form-control:focus,
.marcos-body .form-select:focus,
.marcos-body select:focus,
.marcos-body textarea:focus {
    background-color: #FFFFFF !important;
    color: #23331E !important;
    border-color: #C5A059 !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15) !important;
    outline: 0;
}

.marcos-body .form-control::placeholder {
    color: #8A8072;
    opacity: 1;
}

.marcos-eyebrow {
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.marcos-header {
    background-color: #23331E !important;
}

.marcos-header .header-top {
    background-color: #1C2819 !important;
    border-bottom: 1px solid #3E4F35;
}

.marcos-header .header-upper {
    background-color: #23331E !important;
}

.marcos-header .logo-box {
    background-color: #23331E !important;
    opacity: 1 !important;
    padding: 20px 0 !important;
}

/* Text Colors */
.marcos-header .header-top a,
.marcos-header .header-top li,
.marcos-header .navigation a {
    color: #F5F2EB !important;
}

.marcos-header .navigation a:hover {
    color: #C5A059 !important;
}

/* Accents (Dividers & Underlines) */
.marcos-header .header-top .top-info li:after,
.marcos-header .main-menu .navigation>li.dropdown>a:after,
.marcos-header .main-menu .navigation>li>a::before {
    border-color: #C5A059 !important;
    color: #C5A059 !important;
}

/* Back Link */
.back-to-pasta-prego {
    font-size: 0.9em;
    opacity: 0.8;
}

.back-to-pasta-prego:hover {
    opacity: 1;
}

/* =========================================
   3. LOGO STYLES
   ========================================= */
.marcos-text-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Desktop Logo */
.logo-photo {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 5px solid #F5F2EB !important;
    background-color: #F5F2EB !important;
    padding: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s ease;
}

.marcos-text-logo a:hover .logo-photo {
    border-color: #C5A059 !important;
}

.logo-script {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 40px;
    color: #F5F2EB !important;
    line-height: 1.2;
    margin-bottom: 5px;
}

.logo-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C5A059 !important;
    font-weight: 500;
}

.marcos-text-logo a:hover .logo-script,
.marcos-text-logo a:hover .logo-subtitle {
    color: #C5A059 !important;
}

/* =========================================
   4. FIXED HEADER (SCROLL) BEHAVIOR
   ========================================= */
.marcos-header.fixed-header .header-upper,
body.marcos-body .main-header.fixed-header,
body.marcos-body .main-header.fixed-header .header-upper {
    background: #23331E !important;
}

.marcos-header.header-down,
.marcos-header.header-up {
    top: 0 !important;
}

/* Shrink Logo on Scroll */
.marcos-header.fixed-header .logo-photo {
    width: 60px !important;
    height: 60px !important;
}

.marcos-header.fixed-header .logo-script {
    font-size: 28px !important;
}

.marcos-header.fixed-header .logo-subtitle {
    font-size: 9px !important;
}

.marcos-header.fixed-header .main-menu .navigation>li {
    padding: 15px 0 !important;
}

.marcos-header.fixed-header .header-upper .links-box {
    padding: 10px 0 !important;
}

/* =========================================
   5. MOBILE MENU & HIDDEN BAR
   ========================================= */

/* Hamburger Icon & Colors */
html body.marcos-body .marcos-header .nav-toggler .hamburger i,
html body.marcos-body .marcos-header .nav-toggler .hamburger,
html body.marcos-body .marcos-header .nav-toggler .icon-bar {
    color: #F5F2EB !important;
    border-color: #F5F2EB !important;
}

/* Menu Background */
html body.marcos-body .hidden-bar .inner-box {
    background-color: #1C2819 !important;
    border-left: 1px solid #3E4F35;
}

/* Logo Styling */
html body.marcos-body .hidden-bar .logo-box img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 auto 20px auto;
    border: 3px solid #C5A059 !important;
    background: transparent !important;
}

/* Font Styling */
html body.marcos-body .hidden-bar .side-menu ul.navigation>li>a {
    color: #F5F2EB !important;
    font-family: 'Lora', serif !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    padding-left: 0 !important;
    background: none !important;
}

/* MOBILE MENU DIAMOND FIX - Consolidated Single Solution */
html body.marcos-body .hidden-bar .side-menu ul.navigation>li>a::before,
html body.marcos-body .hidden-bar .side-menu ul.navigation>li:hover>a::before,
html body.marcos-body .hidden-bar .side-menu ul.navigation>li:focus>a::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    border: none !important;
}

/* Show gold diamond ONLY on current page */
html body.marcos-body .hidden-bar .side-menu ul.navigation>li.current>a {
    color: #C5A059 !important;
    padding-left: 25px !important;
    position: relative !important;
}

html body.marcos-body .hidden-bar .side-menu ul.navigation>li.current>a::before {
    content: "◆" !important;
    display: block !important;
    color: #C5A059 !important;
    font-size: 14px !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    border-radius: 0 !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    margin-top: -12px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Close Button Colors */
html body.marcos-body .hidden-bar .cross-icon {
    color: #F5F2EB !important;
    background-color: #23331E !important;
}

html body.marcos-body .hidden-bar h2 {
    color: #C5A059 !important;
}

html body.marcos-body .hidden-bar .info li {
    color: #F5F2EB !important;
}

/* =========================================
   6. BUTTONS
   ========================================= */
body.marcos-body .btn,
body.marcos-body .marcos-btn,
body.marcos-body .marcos-btn-gold,
.marcos-header .btn {
    background-color: #C5A059 !important;
    background: #C5A059 !important;
    border-color: #C5A059 !important;
    color: #1C2819 !important;
}

body.marcos-body .btn:hover,
.marcos-header .btn:hover {
    background-color: #F5F2EB !important;
    background: #F5F2EB !important;
    border-color: #C5A059 !important;
    color: #1C2819 !important;
}

/* Secondary / outline button (terracotta) */
body.marcos-body .marcos-btn-brick {
    background-color: #8B3A2B !important;
    background: #8B3A2B !important;
    border-color: #8B3A2B !important;
    color: #F5F2EB !important;
}

body.marcos-body .marcos-btn-brick:hover {
    background-color: #6E2E22 !important;
    background: #6E2E22 !important;
    border-color: #6E2E22 !important;
    color: #F5F2EB !important;
}

/* Button Slide Effect */
body.marcos-body .btn:before,
body.marcos-body .btn:after {
    background: #C5A059 !important;
    display: block !important;
}

body.marcos-body .btn:hover:before,
body.marcos-body .btn:hover:after {
    width: 0 !important;
}

/* =========================================
   7. HERO & BANNERS
   ========================================= */
.marcos-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marcos-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #23331E 0%, #1C2819 100%) !important;
    z-index: 1;
}

.marcos-hero .auto-container {
    position: relative;
    z-index: 2;
}

.marcos-hero h1 {
    font-size: 5em;
    color: #F5F2EB;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.marcos-hero .hero-subtitle {
    font-size: 1.4em;
    color: #F5F2EB;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Page Banners (Interior Pages) */
.marcos-body .page-banner-area {
    padding-top: 250px !important;
    padding-bottom: 100px !important;
}

.page-banner-area .hero-cta {
    margin-top: 60px !important;
}

.page-banner-area .hero-subtitle {
    margin-bottom: 20px !important;
}

/* =========================================
   8. CONTENT SECTIONS
   ========================================= */
.section-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.85em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8B3A2B;
    margin-bottom: 15px;
    font-weight: 500;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background-color: #C5A059;
    margin: 20px auto;
}

/* Intro & Text */
.marcos-intro {
    background-color: #F5F2EB;
}

.marcos-intro h2 {
    font-size: 2.5em;
    color: #1C2819;
    margin-bottom: 20px;
    font-weight: 700;
}

.marcos-intro .lead-text {
    font-size: 1.3em;
    color: #2A2420;
    line-height: 1.8;
    font-weight: 500;
}

.marcos-intro p {
    font-size: 1.1em;
    color: #4A4136;
    line-height: 1.8;
}

/* Story Preview */
.marcos-story-preview {
    background-color: #EFEADD;
    padding: 100px 0;
}

.vintage-photo {
    max-width: 100%;
    border: 8px solid #F5F2EB;
    box-shadow: 0 4px 20px rgba(28, 40, 25, 0.2);
}

.photo-caption {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5em;
    color: #23331E;
    margin-top: 20px;
    font-style: italic;
}

.story-content h2 {
    font-size: 2.2em;
    color: #1C2819;
    margin-bottom: 25px;
    font-weight: 700;
}

.marcos-link {
    display: inline-block;
    color: #8B3A2B;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.marcos-link:hover {
    color: #C5A059;
}

/* Experience Cards */
.marcos-experience {
    background-color: #F5F2EB;
}

.experience-card {
    text-align: center;
    padding: 40px 20px;
    background-color: #EFEADD;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(35, 51, 30, 0.15);
}

.experience-icon {
    font-size: 3em;
    color: #C5A059;
    margin-bottom: 20px;
}

.experience-card h3 {
    font-size: 1.5em;
    color: #23331E !important;
    margin-bottom: 15px;
    font-weight: 700 !important;
}

.experience-card p {
    color: #2A2420 !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
}

/* CTA Section */
.marcos-cta {
    background: linear-gradient(135deg, #23331E 0%, #1C2819 100%);
    padding: 100px 0;
    color: #F5F2EB;
}

.marcos-cta h2 {
    font-size: 4em;
    color: #F5F2EB;
    margin-bottom: 20px;
}

.marcos-cta .cta-text {
    font-size: 1.3em;
    color: #F5F2EB;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Feature Badges (Chef-Prepared / Wine Pairings / Intimate Setting) */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    justify-content: center;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #F5F2EB;
}

.feature-badge i {
    color: #C5A059;
    font-size: 1.3em;
}

/* Chef quote block */
.chef-quote {
    font-family: 'Great Vibes', cursive !important;
    font-size: 1.8em !important;
    color: #C5A059;
    font-style: italic;
    line-height: 1.4;
}

.chef-quote-attribution {
    font-family: 'Cinzel', serif;
    font-size: 0.85em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #F5F2EB;
    opacity: 0.85;
}

/* Story Page Specifics */
.family-quote {
    font-family: 'Lora', serif !important;
    font-style: italic;
    font-size: 1.3em !important;
    color: #23331E;
    padding: 30px 40px;
    border-left: 4px solid #C5A059;
    background-color: #EFEADD;
    margin: 30px 0;
    font-weight: 500;
}

/* Scarcity callout ("Limited Seating Available") */
.scarcity-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #8B3A2B;
    color: #F5F2EB;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.85em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scarcity-badge i {
    color: #C5A059;
}

/* =========================================
   9. FOOTER & UTILITIES
   ========================================= */
.marcos-footer {
    background-color: #1C2819;
    color: #F5F2EB;
}

.marcos-footer .social-title {
    color: #C5A059;
}

.marcos-footer a {
    color: #F5F2EB;
    transition: color 0.3s ease;
}

.marcos-footer a:hover {
    color: #C5A059;
    text-decoration: none;
}

.marcos-footer .footer-bottom-area {
    background-color: #141F12;
    border-top: 1px solid #2E3D28;
}

.marcos-footer .motto {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6em;
    color: #C5A059;
}

.back-to-main {
    display: inline-block;
    margin-top: 20px;
    color: #C5A059 !important;
    font-weight: 600;
    font-size: 1.1em;
}

/* Scroll To Top */
.scroll-area i {
    background: #23331E !important;
    color: #F5F2EB !important;
}

.scroll-area::after,
.scroll-area::before {
    border-color: #23331E !important;
}

.scroll-area i:hover {
    background: #C5A059 !important;
}

/* Preloader */
.marcos-body .preloader {
    background-color: #23331E;
}

.marcos-body .spinner div {
    background-color: #C5A059;
}

/* =========================================
   10. RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 991px) {
    .marcos-hero h1 {
        font-size: 3.5em;
    }

    .story-content {
        padding: 40px 20px;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .marcos-hero h1 {
        font-size: 2.5em;
    }

    .marcos-hero .hero-subtitle {
        font-size: 1.1em;
    }

    .marcos-cta h2 {
        font-size: 2.5em;
    }

    .page-banner-area .hero-cta {
        margin-top: 40px !important;
    }

    .feature-badges {
        gap: 12px 20px;
    }
}

/* =========================================
   TEXT COLOR FIXES
   ========================================= */
.marcos-intro h2,
.story-content h2,
.marcos-experience h2 {
    color: #1C2819 !important;
}

.marcos-intro p:last-child {
    font-size: 1.4rem !important;
    font-style: italic !important;
    color: #8B3A2B !important;
    font-weight: 600 !important;
    margin-top: 25px !important;
    line-height: 1.4 !important;
}

.marcos-story-preview .story-content h2 {
    color: #1C2819 !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 3rem !important;
}

.marcos-story-preview .story-content p {
    color: #4A4136 !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
}

.marcos-story-preview .story-content a {
    color: #8B3A2B !important;
    font-weight: 700 !important;
}

/* =========================================
   RESERVATION / CALENDAR CARDS
   ========================================= */
.res-card {
    background: #fff;
    border: 1px solid #E3DCC8;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(28, 40, 25, 0.06);
}

.res-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.2);
    border-color: #C5A059;
}

.res-icon {
    font-size: 3rem;
    color: #C5A059;
    margin-bottom: 20px;
}

.res-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #23331E;
    margin-bottom: 15px;
}

.res-desc {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: #4A4136;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Tock widget placeholder container */
#tock-widget-container {
    margin-top: 60px;
    min-height: 400px;
    background-color: #EFEADD;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #C5A059;
}

/* =========================================
   HERITAGE / GALLERY STYLES
   ========================================= */
.gallery-frame {
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(28, 40, 25, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #E3DCC8;
}

.gallery-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 58, 43, 0.2);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-frame:hover .img-wrapper img {
    transform: scale(1.05);
}

/* Gold Reveal Border */
.img-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid #C5A059;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-frame:hover .img-wrapper::after {
    opacity: 1;
    transform: scale(1);
}

/* Icon Overlay */
.img-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 40, 25, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.gallery-frame:hover .img-wrapper .overlay {
    opacity: 1;
}

.img-wrapper .overlay i {
    color: #F5F2EB;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-frame:hover .img-wrapper .overlay i {
    transform: translateY(0);
}

/* =========================================
   PAGE TRANSITIONS
   ========================================= */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
