/* --- 1. LOCAL FONT DECLARATIONS (Must be at the absolute top) --- */
@font-face {
    font-family: 'Brittany Signature';
    src: url('brittanysignature.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght=300;400;600;700&display=swap');

/* --- Vivido Silver & Charcoal Brand Theme Palette --- */
:root {
    --bg-white: #989797;      /* Vivido main silver brand background */
    --bg-driftwood: #a6a5a5;    /* Deep charcoal structural panels */
    --border-light: #c4c3c3;    /* Clean integrated layout dividers */
    --border-nautical: #000000; /* Solid architectural black lines */
    --text-black: #000000;     
    --text-charcoal: #262626;  
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; /* Clean modern base font matching 'CAFE' logo style */
    scroll-behavior: smooth;
}

/* Base Body Text styling */
body {
    background-color: var(--bg-white);
    color: var(--text-black);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography Overhaul inspired by riversidelogo.jpg --- */

/* Main Brand Hero Heading */
.hero-content h1 {
    font-family: 'Brittany Signature', cursive;
    font-size: 5.5rem; /* Large and flowing like 'Riverside' */
    color: var(--text-black);
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-transform: none; /* Keep natural script casing */
    letter-spacing: 0;
    line-height: 1.1;
}

/* Secondary Section Headings (Captured Moments, Our Menus, etc.) */
.section-title {
    text-align: center;
    font-family: 'Brittany Signature', cursive;
    font-size: 4.8rem;
    color: var(--text-black);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Menu Category Titles, Sub-headings & Nav Links (Crisp, Spaced Sans-Serif like 'CAFE') */
h3, .nav-tabs a, .btn, .hours-row strong, .review-author {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px; /* Clean, intentional spacing */
}

/* --- Header / Navigation Layout --- */
header {
    background-color: var(--bg-white);
    width: 100%;
    border-bottom: 3px double var(--border-nautical);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem 1.5rem 2rem;
}

.logo-row {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-img {
    height: 180px; 
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav-row {
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-nautical);
    padding-top: 1.2rem;
}

.nav-tabs {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-tabs li a {
    color: var(--text-black);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-tabs li a:hover {
    opacity: 0.7;
}

.nav-tabs li a.active-nav {
    border-bottom: 2px solid var(--text-black);
    padding-bottom: 0.2rem;
}

/* --- Global Sections --- */
section {
    padding: 80px 2rem; 
    max-width: 1200px;
    margin: 0 auto;
}

/* --- CRISP, LONG REAL IMAGE VIADUCT SEPARATOR --- */
.panoramic-viaduct {
    width: 100%;
    height: 120px; 
    background-image: url('viaduct.png');
    background-repeat: repeat-x; 
    background-size: auto 100%;  
    background-position: center bottom;
    background-color: var(--bg-white);
}

/* --- About Us Section --- */
#about {
    background-color: var(--bg-white); /* Keeps the crisp silver background */
}

.about-content {
    max-width: 800px; /* Keeps the text from stretching too wide on desktop */
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.about-content p {
    color: var(--text-charcoal);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-signature {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 2.5rem;
    color: var(--text-black);
}

/* --- Home / Hero Section --- */
#home {
    height: 65vh; /* Adjusted from 80vh to pull back the zoom effect */
    min-height: 480px; /* Balanced minimum height */
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)), 
                url('riverside.jpg') center center/cover no-repeat; /* Centered background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
}

.hero-content {
    background: rgba(255, 255, 255, 0.96);
    padding: 3.5rem 2.5rem;
    border-radius: 0px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-nautical);
    outline: 4px double var(--border-nautical); 
    outline-offset: -12px;
    max-width: 520px; 
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-charcoal);
    margin-bottom: 2.5rem;
}

.btn {
    background-color: var(--text-black);
    color: #ffffff !important; /* Forces the button font color to clear white */
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn:hover {
    background-color: var(--bg-white);
    color: #1a1a1a !important; /* Transitions to a dark charcoal contrast color on hover */
    border: 1px solid var(--text-black);
}

/* --- Hours Section --- */
#hours {
    background-color: var(--bg-driftwood);
    max-width: 100%;
}

.hours-container {
    max-width: 500px;
    margin: 0 auto;
    background: #FFFFFF; /* Retained card panel brightness structure for copy readability */
    padding: 3.5rem 3rem;
    border: 1px solid var(--border-nautical);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.hours-card-header {
    margin-bottom: 2.5rem;
}

.hours-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.hours-card-header p {
    font-size: 0.9rem;
    color: var(--text-charcoal);
    font-style: italic;
}

.hours-table {
    display: flex;
    flex-direction: column;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row strong {
    color: var(--text-black);
    font-weight: 700;
    font-size: 0.85rem;
}

.time-slot {
    font-size: 0.95rem;
    font-weight: 600;
}

.hours-row.closed-day {
    opacity: 0.9;
}

.status-closed {
    color: #D9383A; 
    font-size: 0.85rem;
    font-weight: 700;
}

/* --- New Weather Note Styling --- */
.weather-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #000000;
    font-weight: 600;
    font-style: italic;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

/* --- Menus Section --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.menu-category h3 {
    color: var(--text-black);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--text-black);
    padding-bottom: 0.5rem;
}

.menu-item {
    margin-bottom: 1.8rem;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-black);
    font-size: 1.05rem;
}

.menu-item-price {
    color: var(--text-black);
    font-weight: 600;
}

.menu-item p {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    margin-top: 0.4rem;
    font-style: italic;
}

/* --- Reviews Section --- */
#reviews {
    background-color: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.review-card {
    background: #FFFFFF; /* High contrast backdrop preserved for clear layout readability */
    padding: 3rem 2rem;
    border: 1px solid var(--border-nautical);
    text-align: center;
    position: relative;
}

.review-card::before {
    content: ""; 
    position: absolute;
    
    /* 1. Perfect Centering & Sizing */
    width: 100px;
    height: 100px;
    top: -50px;             /* Pulls it up exactly half its height */
    left: calc(50% - 50px); /* Centers it horizontally */
    
    /* 2. The Magic Mask: 
       Layers your transparent logo on top of a 50/50 Grey & White background.
       This completely erases the black border line behind it without breaking the layout! */
    background-image: url('riversidelogo.png'), linear-gradient(to bottom, var(--bg-white) 50%, #FFFFFF 50%);
    background-size: contain, 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
}

.stars {
    color: var(--text-black);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    letter-spacing: 4px;
}

.review-card p {
    color: var(--text-black);
    font-style: italic;
    font-size: 1rem;
}

.review-card-wrapper {
    background: var(--bg-white);
}

.review-author {
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-charcoal);
}

/* --- Location Section --- */
#location {
    background-color: var(--bg-driftwood);
    max-width: 100%;
}

.location-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.location-details h3 {
    color: var(--text-black);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.location-details p {
    color: var(--text-charcoal);
    margin-bottom: 0.6rem;
}

/* --- Contact Hyperlinks --- */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.map-container {
    width: 100%;
    height: 340px;
    position: relative;
    background-color: #E5E7EB;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}
.review-link {
    color: inherit !important; /* 🌟 Forces the link to match the charcoal text color exactly */
    text-decoration: none !important; /* 🌟 Ensures no underlines appear */
    transition: opacity 0.3s ease;
}

.review-link:hover {
    opacity: 0.7; /* Keeps a subtle, premium fade effect when hovered so users know it's clickable */
    text-decoration: none !important; 
}

/* --- Separate Gallery Section (Borderless & Interactive Lightbox) --- */
#gallery-section {
    background-color: var(--bg-white);
    padding-bottom: 120px;
}

.gallery-grid.borderless {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem; 
}

.gallery-item-pure {
    width: 100%;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-driftwood);
}

.gallery-item-pure .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-item-pure:hover .gallery-img {
    transform: scale(1.03);
    opacity: 0.9;
}

/* --- Lightbox Modal Overlay System (Updated Circular Arrows) --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    z-index: 10001;
}

.close-btn:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.nav-btn, .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; 
    color: #ffffff;
    font-size: 1.5rem; 
    width: 60px; 
    height: 60px; 
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 0; 
}

.nav-btn:hover, .lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.1); 
    border: 2px solid rgba(255, 255, 255, 0.8); 
    opacity: 1;
}

.arrow-left { left: 2rem; }
.arrow-right { right: 2rem; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.8rem;
    }
    .section-title {
        font-size: 3.4rem;
        margin-bottom: 1.5rem;
    }
    .header-inner {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    .logo-row {
        margin-bottom: 1.2rem;
    }
    .logo-img {
        height: 120px; 
    }
    .nav-row {
        padding-top: 1rem;
    }
    .nav-tabs {
        gap: 0.5rem;
    }
    .nav-tabs li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    .hero-content {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
    }
    section {
        padding: 40px 1rem;
    }
    .panoramic-viaduct {
        height: 60px; 
    }
    .map-container {
        height: 280px;
    }
    .gallery-grid.borderless {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
    }
    .gallery-item-pure {
        height: 240px;
    }
    .nav-btn, .lightbox-arrow {
        font-size: 1.2rem;
        width: 45px;
        height: 45px;
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
    .arrow-left { left: 0.5rem; }
    .arrow-right { right: 0.5rem; }
    .close-btn {
        top: 1rem;
        right: 1.5rem;
        font-size: 2rem;
    }
    .lightbox-content-wrapper {
        width: 90%;
        height: 70%;
    }
}

/* ==========================================================================
   SIDE-BY-SIDE MENU IMAGE LAYOUT
   ========================================================================== */
#menu-page-section {
    background-color: var(--bg-white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 120px 20px;
}

.menu-images-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates the 2-column side-by-side split */
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-image-box {
    background-color: var(--bg-driftwood);
    padding: 15px;
    border: 1px solid var(--border-nautical);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.menu-display-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-light);
}

/* Responsive rule: Stacks the two menu pictures vertically on small screens */
@media(max-width: 768px) {
    .menu-images-row {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
}

/* ==========================================================================
   MENU LIGHTBOX ZOOM SLIDER UI
   ========================================================================== */
.lightbox-zoom-container {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.85);
    padding: 12px 25px;
    border-radius: 30px;
    z-index: 10010;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-zoom-container i {
    color: #ffffff;
    font-size: 0.9rem;
    opacity: 0.7;
}

.zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.zoom-value-label {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.lightbox-content-wrapper.is-dragging {
    cursor: grabbing !important;
}

.lightbox-img.pannable {
    cursor: grab;
}

.lightbox-img.pannable:active {
    cursor: grabbing;
}

/* ==========================================================================
   SOCIAL MEDIA FOOTER STYLING
   ========================================================================== */
footer {
    background-color: var(--bg-white);
    color: var(--text-charcoal);
    text-align: center;
    padding: 3rem;
    border-top: 3px double var(--border-nautical);
    font-size: 0.85rem;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.socials-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-charcoal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-socials a,
.footer-socials a *,
.footer-socials .TA_socialButtonIcon,
.footer-socials .TA_socialButtonIcon * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.footer-socials a {
    color: var(--text-charcoal);
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    color: var(--text-black);
    transform: translateY(-2px);
}

.footer-socials .TA_socialButtonIcon {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.footer-socials .TA_socialButtonIcon ul,
.footer-socials .TA_socialButtonIcon li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
}

.footer-socials .TA_socialButtonIcon img {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    filter: grayscale(100%) opacity(0.8);
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.footer-socials .TA_socialButtonIcon:hover img {
    transform: translateY(-2px);
    filter: grayscale(100%) opacity(1);
}