/* ============================================================
   La Posta Restaurant - Catalan CSS
   Font: LALUNA
   Colours: #1D428A (navy) #EFBE7D (gold)
   ============================================================ */

@font-face {
    font-family: 'LALUNA';
    src: url('../fonts/LALUNA.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ------------------------------
   Reset / Global Styles
--------------------------------*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'LALUNA', Garamond, serif;
    background-color: #ffffff;
}

/* ------------------------------
   Front Page - Container
--------------------------------*/
.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1d428a;
    overflow: hidden;
}

/* ------------------------------
   Front Page - Background image
--------------------------------*/
.main-bg {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* ------------------------------
   Front Page - Language flags
--------------------------------*/
.lang-menu-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 3vw;
    z-index: 10;
}

.lang-menu {
    width: 80px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid #efbe7d;
    border-radius: 4px;
}

.lang-menu:hover {
    transform: scale(1.1);
}

/* ============================================================
   Menu Pages - Page Container
   ============================================================ */
.page-container {
    position: relative;
    width: 90vw;
    margin: 8vh auto;
    min-height: 60vh;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
}

/* ============================================================
   Menu Pages - Main content area (left of bar)
   ============================================================ */
.menu-content-area {
    flex: 1;
    padding: 20px 40px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   Menu Pages - Navy right-side bar
   ============================================================ */
.side-bar {
    width: 3.5vw;
    min-width: 12px;
    background-color: #1D428A;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-bar-graphic {
    width: 3vw;
    height: 3vw;
    min-width: 10px;
    min-height: 10px;
    position: absolute;
    bottom: 80px;
    opacity: 0.8;
}

.side-bar-graphic svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Menu Pages - Titles
   ============================================================ */
.menu-title {
    font-family: 'LALUNA', Garamond, serif;
    font-size: min(2.8em, 8vw);
    color: #1D428A;
    letter-spacing: 0.15em;
    font-weight: 400;
    text-align: center;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.menu-subtitle-lang {
    font-family: 'LALUNA', Garamond, serif;
    font-size: min(1.8em, 5vw);
    color: #1D428A;
    font-style: italic;
    text-align: center;
    margin: 0 0 30px 0;
    font-weight: 400;
}

.menu-section-title {
    font-family: 'LALUNA', Garamond, serif;
    font-size: 1.3em;
    color: #1D428A;
    letter-spacing: 0.2em;
    text-align: center;
    margin: 20px 0 10px 0;
    font-weight: 400;
}

/* ============================================================
   Menu Pages - Gold box style (Suggestions/Before Starting)
   ============================================================ */
.menu-box {
    position: relative;
    width: 100%;
    border: 3px solid #EFBE7D;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-box .menu-title {
    position: absolute;
    top: -1.5em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: white;
    padding: 0 1em;
    white-space: nowrap;
}

.bottom-straddle {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 30px;
    background-color: white;
    z-index: 10;
}

.menu-content {
    margin-top: 20px;
}

.menu-item {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px dashed #DDD;
}

.menu-item:last-of-type {
    border-bottom: none;
}

.production {
    font-style: normal;
    text-align: center;
    font-weight: bold;
    color: #1D428A;
    flex-grow: 1;
}

.menu-item-primary {
    font-family: 'LALUNA', Garamond, serif;
    font-size: 1.1em;
    color: #1D428A;
    margin: 0 0 3px 0;
    font-weight: 400;
}

.menu-item-secondary {
    font-family: 'LALUNA', Garamond, serif;
    font-size: 1em;
    color: #444;
    font-style: italic;
    margin: 0;
}

.menu-footer-note {
    font-family: 'LALUNA', Garamond, serif;
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

.artwork {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 5;
    opacity: 0.4;
    pointer-events: none;
}

.left-splash {
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    background: radial-gradient(circle at center, rgba(239, 190, 125, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

.right-splash {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    background: radial-gradient(circle at center, rgba(239, 190, 125, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

/* ============================================================
   Delimiter
   ============================================================ */
.delimiter {
    text-align: center;
    margin: 20px auto;
    width: 100%;
}

.delimiter hr {
    border: none;
    border-top: 1px dashed #EFBE7D;
    width: 120px;
    margin: 0 auto;
    opacity: 0.8;
}

/* ------------------------------
   Responsive adjustments
--------------------------------*/
@media (max-width: 1024px) and (min-width: 769px) {
    .main-bg { object-fit: contain; width: 90%; height: auto; max-height: 90vh; }
    .lang-menu-container { top: 15px; left: 15px; }
    .lang-menu { width: 60px; }
    .menu-title { font-size: min(2.4em, 7vw); }
}

@media (max-width: 768px) and (min-width: 481px) {
    .main-bg { object-fit: contain; width: 85%; height: auto; max-height: 85vh; }
    .lang-menu-container { top: 10px; left: 10px; }
    .lang-menu { width: 50px; }
    .menu-title { font-size: min(2em, 6vw); }
    .page-container { width: 95vw; margin: 5vh auto; }
}

@media (max-width: 480px) {
    .main-bg { object-fit: contain; width: 70%; height: auto; max-height: 70vh; }
    .lang-menu-container { top: 10px; left: 10px; }
    .lang-menu { width: 40px; }
    .menu-title { font-size: min(1.8em, 6vw); }
    .page-container { width: 98vw; margin: 3vh auto; }
    .menu-content-area { padding: 15px 20px 15px 15px; }
    .side-bar { width: 4vw; }
}
