/* ==========================================================================
   CSS Variables & Typography (Victorian/Premium Aesthetic)
   ========================================================================== */
:root {
    --color-bg-dark: #121010;
    /* Very dark grayish red */
    --color-bg-light: #1A1717;
    --color-gold: #D4AF37;
    /* Metallic Gold */
    --color-gold-hover: #F3E5AB;
    --color-burgundy: #4A0404;
    /* Deep Burgundy Red */
    --color-text-main: #E0E0E0;
    --color-text-muted: #A0A0A0;
    --color-white: #FFFFFF;

    --font-heading: 'Cinzel', serif;
    --font-text: 'Lato', sans-serif;

    --transition-smooth: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--color-gold);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-gold-hover);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-gold {
    color: var(--color-gold);
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.w-100 {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.dark-bg {
    background-color: var(--color-bg-light);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-white);
    font-style: italic;
    margin-bottom: 30px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
}

.card {
    background-color: rgba(26, 23, 23, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.framed-img {
    border: 3px solid var(--color-gold);
    padding: 10px;
    background-color: var(--color-bg-dark);
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 16, 16, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-icon {
    font-size: 2rem;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list li a {
    color: var(--color-white);
    font-weight: 400;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.nav-list li a:hover {
    color: var(--color-gold);
}

/* Mobile Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1518043681729-23ce429f57dd?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0.7) 0%, rgba(18, 16, 16, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Tournaments & Chess Rules
   ========================================================================== */
.tournaments-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.chess-rules {
    max-width: 600px;
    margin: 40px auto 0 auto;
}

.chess-rules h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
}

.chess-rules ul li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.chess-rules ul li i {
    margin-top: 5px;
    font-size: 1.2rem;
}

/* ==========================================================================
   Menu Grid
   ========================================================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.menu-category-container {
    grid-column: 1 / -1;
    /* Спанить на всі колонки */
    margin-top: 20px;
}

.menu-category-title {
    font-size: 2rem;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.menu-item {
    background-color: var(--color-bg-light);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

.menu-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.menu-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-img-wrapper img {
    transform: scale(1.1);
}

.menu-details {
    padding: 20px;
}

.menu-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.menu-head h4 {
    font-size: 1.2rem;
    margin: 0;
}

.menu-price {
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.menu-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Reservation Form
   ========================================================================== */
.reservation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.half-width {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-gold);
    font-family: var(--font-heading);
}

input,
textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-white);
    font-family: var(--font-text);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-grid img:hover {
    border-color: var(--color-gold);
    transform: scale(1.02);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--color-bg-dark);
    /* Darker inside the dark bg */
    border-left: 3px solid var(--color-gold);
    padding: 25px;
}

.review-stars {
    color: var(--color-gold);
    margin-bottom: 10px;
}

.review-text {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.review-author {
    font-family: var(--font-heading);
    font-weight: bold;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0A0909;
    padding: 60px 0 20px 0;
    border-top: 2px solid var(--color-burgundy);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-gold);
}

.contact-list li,
.hours-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-list i {
    color: var(--color-gold);
}

.hours-list span {
    font-weight: bold;
    color: var(--color-gold);
    min-width: 60px;
    display: inline-block;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--color-gold);
}

.social-links a:hover {
    background-color: var(--color-gold);
    color: #0A0909;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {

    .about-container,
    .reservation-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 16, 16, 0.98);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--color-gold);
    }

    .nav-list.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}