/* --- Global Settings & Variables --- */
:root {
    --color-dark: #141414;
    --color-gold: #C8A97E;
    --color-light-gray: #E5E5E5;
    --color-white: #FAFAFA;
    --font-body: 'Heebo', sans-serif;
    --font-title: 'Playfair Display', serif;
    --header-height: 80px;
}

/* --- Base & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-light-gray);
    font-size: 16px;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}
@media (min-width: 992px) {
    .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

/* --- Helper Classes --- */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-light-gray);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-gold);
    color: var(--color-dark);
    padding: 10px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* --- Header --- */
.header.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.header-scrolled {
    background-color: var(--color-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--color-white);
    font-weight: 700;
}
.logo:hover {
    color: var(--color-gold);
}

.navbar {
    display: none;
}

@media (min-width: 992px) {
    .navbar {
        display: block;
    }
    .navbar ul {
        list-style: none;
        display: flex;
        gap: 30px;
    }
    .navbar a, .navbar a:focus {
        color: var(--color-light-gray);
        font-weight: 500;
        position: relative;
        padding: 5px 0;
    }
    .navbar a::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--color-gold);
        transition: width 0.3s ease;
    }
    .nav-menu a:hover::after, .nav-menu a.active::after {
        width: 100%;
    }
}

.navbar .nav-link.active {
    color: var(--color-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-book-table {
    display: none;
}
@media (min-width: 992px) {
    .btn-book-table {
        display: inline-block;
    }
}

.mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 20px;
    position: relative;
    z-index: 1001;
}
@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    right: 0;
    transition: all 0.3s ease;
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-nav-toggle span:nth-child(3) { bottom: 0; }

.mobile-nav-active .mobile-nav-toggle span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.mobile-nav-active .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-active .mobile-nav-toggle span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Navigation */
.navbar-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--color-dark);
    padding: 100px 20px 20px 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: right 0.4s ease;
    right: -300px;
}

.mobile-nav-active .navbar-mobile {
    right: 0;
}

.mobile-nav-active body {
    overflow: hidden;
}

.mobile-nav-active #main-content::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.6);
    z-index: 999;
}

.navbar-mobile ul {
    list-style: none;
}

.navbar-mobile a, .navbar-mobile a:focus {
    font-size: 1.5rem;
    color: var(--color-white);
    display: block;
    padding: 10px 0;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-bg.webp') no-repeat center center/cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(3px) brightness(0.8); /* Glass overlay effect */
    z-index: -1;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.4rem; }
}

/* --- Demo Banner --- */
.demo-banner {
    background-color: var(--color-gold);
    color: var(--color-dark);
    text-align: center;
    padding: 15px 0;
    font-weight: 500;
}
.demo-banner a {
    color: var(--color-dark);
    text-decoration: underline;
    font-weight: 700;
}
.demo-banner a:hover {
    color: #000;
}

/* --- Menu Section --- */
.menu-grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

.menu-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.menu-item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 20px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed rgba(200, 169, 126, 0.3);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.menu-item-title {
    font-size: 1.2rem;
    color: var(--color-white);
    margin: 0;
}

.menu-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold);
}

.menu-item-description {
    font-size: 0.9rem;
    color: var(--color-light-gray);
    line-height: 1.5;
}

/* --- About Section --- */
.about-section {
    background-color: #1a1a1a;
}
.about-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}
@media (min-width: 992px) {
    .about-grid { grid-template-columns: 1fr 1.5fr; }
}

.about-image img {
    border-radius: 8px;
}

.chef-quote {
    border-right: 3px solid var(--color-gold);
    padding-right: 20px;
    margin: 30px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-white);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img {
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay span {
    color: var(--color-white);
    font-family: var(--font-title);
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: #1a1a1a;
}
.testimonial-item {
    background-color: var(--color-dark);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
.testimonial-rating {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-author {
    font-weight: 500;
    color: var(--color-light-gray);
}
.swiper-pagination-bullet {
    background-color: var(--color-light-gray);
}
.swiper-pagination-bullet-active {
    background-color: var(--color-gold);
}

/* --- Events Section --- */
.events-grid {
    display: grid;
}
@media (min-width: 992px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}
.events-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.events-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.events-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.events-features i {
    color: var(--color-gold);
    margin-left: 15px;
    font-size: 1.2rem;
    margin-top: 4px;
}

/* --- Reservations Section --- */
.reservation-form .form-grid {
    display: grid;
    gap: 20px;
}
@media (min-width: 768px) {
    .reservation-form .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-group-full {
        grid-column: 1 / -1;
    }
}

.form-group {
    position: relative;
}

input[type="text"],
input[type="tel"],
input[type="datetime-local"],
input[type="number"],
textarea {
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
}
input[type="datetime-local"] {
    color-scheme: dark;
}
textarea {
    min-height: 120px;
    resize: vertical;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-consent {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-consent label {
    font-size: 0.9rem;
}

.form-submit {
    text-align: center;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    display: none;
    position: absolute;
    bottom: -18px;
    right: 5px;
}
.form-group.error input, .form-group.error textarea, .form-consent.error input {
    border-color: #ff6b6b;
}
.form-group.error .error-message, .form-consent.error .error-message {
    display: block;
}
#form-status {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}
#form-status.success { color: #4caf50; }
#form-status.error { color: #ff6b6b; }

/* --- Footer --- */
.footer {
    background-color: #1a1a1a;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}
@media (min-width: 576px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-title {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}
.footer-links, .footer-contact, .footer-opening-hours {
    list-style: none;
}
.footer-links a, .footer-contact a {
    color: var(--color-light-gray);
}
.footer-links a:hover, .footer-contact a:hover {
    color: var(--color-gold);
}
.footer-contact li, .footer-opening-hours li {
    margin-bottom: 10px;
}
.footer-contact i {
    margin-left: 10px;
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.social-links a {
    color: var(--color-light-gray);
    font-size: 1.2rem;
    margin: 0 8px;
}
.social-links a:hover {
    color: var(--color-gold);
}

.credits a {
    color: var(--color-light-gray);
}
.credits a:hover {
    color: var(--color-gold);
}
