/* Fonts */
@font-face {
    font-family: 'Arquitecta';
    src: url('Fonts/Arquitecta.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Arquitecta';
    src: url('Fonts/ArquitectaBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Arquitecta';
    src: url('Fonts/ArquitectaLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Randrake';
    src: url('Fonts/Randrake.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Variables */
:root {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-accent: #d4af37;
    /* Gold-ish */
    --font-main: 'Arquitecta', sans-serif;
    --font-display: 'Randrake', serif;
    --spacing-unit: 1rem;
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 150px;
    opacity: 0;
    animation: elegantReveal 2s ease-out forwards;
}

@keyframes elegantReveal {
    0% {
        transform: scale(0.95);
        opacity: 0;
        filter: blur(5px);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 5px;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--color-text);
}

/* Audio Control */
.audio-control {
    margin-left: 20px;
}

.audio-btn {
    background: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    padding: 5px 15px;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: var(--font-main);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.audio-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: absolute;
    bottom: 15%;
    left: 0;
    text-align: center;
    z-index: 1;
    opacity: 0;
    animation: fadeUp 1s ease-out 2.8s forwards;
    /* Delay to wait for loader */
    width: 100%;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: normal;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2rem;
    /* Additional space */
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections General */
section {
    padding: 100px 40px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: none;
}

/* About / Concept */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 300;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Gallery / Atmosphere */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #050505;
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 80px;
    margin: 0 auto 2rem auto;
    opacity: 0.8;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-text);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 60px 20px;
        overflow-x: hidden;
        /* Prevent horizontal overflow */
    }

    header {
        padding: 15px 20px;
        flex-direction: column;
        height: auto;
        background-color: rgba(10, 10, 10, 0.95);
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    nav a {
        font-size: 0.8rem;
    }

    .lang-switch {
        display: none;
        /* Hide language switch on mobile to save space */
    }

    .audio-control {
        display: none;
        /* Hide audio control on mobile */
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
        left: 0;
        bottom: 20%;
    }

    .hero h1 {
        font-size: 2rem;
        /* Reduced from 2.5rem */
        margin-top: 0;
        letter-spacing: 1px;
        /* Reduced spacing */
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
        justify-content: center;
        /* Ensure grid is centered */
    }

    .menu-container {
        padding: 20px;
        margin-top: 100px;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title,
    .page-title {
        font-size: 2rem;
        /* Reduced from 3rem/2.5rem */
        letter-spacing: 0.1em;
        /* Reduced from 0.3em */
        word-wrap: break-word;
        /* Ensure long words break */
    }

    .menu-grid {
        gap: 40px;
        grid-template-columns: 1fr;
    }
}

/* Menu Page Styles */
.menu-page {
    background: url('img/SALLE.JPG') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.menu-container {
    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    /* Darker semi-transparent background */
    backdrop-filter: blur(10px);
    /* Blur the background image behind */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.page-title {
    font-family: var(--font-main);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 3rem;
    color: #ffffff;
    text-shadow: none;
    text-align: center;
    margin-bottom: 60px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.menu-section {
    margin-bottom: 50px;
}

.menu-section h2 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.menu-item {
    margin-bottom: 25px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.item-name {
    font-family: var(--font-main);
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.item-price {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.item-desc {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Reservation Page Styles */
.reservation-page {
    background: url('img/SALLE.JPG') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: block;
    padding-top: 180px;
}

.reservation-page .page-title {
    font-family: var(--font-main);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 3rem;
    color: #ffffff;
    text-shadow: none;
    margin-bottom: 40px;
}

.reservation-container {
    max-width: 850px;
    width: 95%;
    margin: 0 auto 60px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.reservation-widget-placeholder {
    background: transparent;
    border: none;
    padding: 0;
    margin: 20px 0;
    width: 100%;
    display: block;
}

.reservation-info {
    text-align: center;
    margin-top: 20px;
}

.reservation-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 300;
}

/* Contact Page Styles */
.contact-page {
    background: url('img/SALLE.JPG') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.contact-container {
    max-width: 1000px;
    width: 90%;
    margin: 40px auto;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    text-align: left;
}

.contact-info h2 {
    font-family: var(--font-main);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    width: 100%;
    background-color: transparent;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center;
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }

    .contact-container {
        padding: 30px 15px;
        width: 98%;
    }

    /* Specific fix for Contact Page Title */
    .contact-page .page-title {
        font-size: 1.8rem;
        letter-spacing: 0;
        white-space: nowrap;
        margin-bottom: 30px;
    }
}