/* ===== Кольорова схема ===== */
:root {
    --color-dark-brown: #1E1A17;
    --color-accent: #C8A27E;
    --color-light: #F4EDE4;
    --color-text-dark: #2a2520;
    --color-text-light: #e8e0d8;
    --color-border: #3d3530;
    --color-shadow: rgba(0, 0, 0, 0.5);
}

/* ===== Глобальні стилі ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-dark-brown);
    color: var(--color-text-light);
    line-height: 1.75;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.02) 2px, rgba(255,255,255,.02) 4px);
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--color-light);
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e8b896;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-light {
    background-color: var(--color-light);
    color: var(--color-text-dark);
}

.section-light h1, 
.section-light h2, 
.section-light h3 {
    color: var(--color-text-dark);
}

.section-light p {
    color: var(--color-text-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    margin: 0 auto;
}

/* ===== Навігація ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(30, 26, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
    background: rgba(30, 26, 23, 0.94);
    border-bottom-color: rgba(200, 162, 126, 0.35);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.navbar-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

/* Logo image and text */
.logo-img {
    height: 42px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.logo-text {
    display: inline-block;
    vertical-align: middle;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--color-accent);
}

@media (max-width: 480px) {
    .logo-text { display: none; }
    .logo-img { height: 36px; }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active-link {
    color: var(--color-accent);
}

.nav-links a.active-link::after {
    width: 100%;
}

/* ===== Hero секція ===== */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(30, 26, 23, 0.3), rgba(30, 26, 23, 0.5)), 
                url('images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(200, 162, 126, 0.05), rgba(30, 26, 23, 0.7));
    z-index: 1;
    transition: transform 0.2s linear;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    transition: transform 0.2s linear;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 40px;
    font-style: italic;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 14px 45px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-dark-brown);
}

.btn-primary:hover {
    background-color: #e8b896;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 162, 126, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-dark-brown);
    transform: translateY(-3px);
}

.section-light .btn-primary {
    background-color: var(--color-dark-brown);
    color: var(--color-light);
}

.section-light .btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-dark-brown);
}

/* ===== Про нас ===== */
#about .container {
    max-width: 800px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-content strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* ===== Меню ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.menu-card {
    background: linear-gradient(135deg, rgba(60, 55, 50, 0.6), rgba(30, 26, 23, 0.8));
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 162, 126, 0.2), transparent);
    transition: left 0.6s ease;
}

.menu-card:hover::before {
    left: 100%;
}

.menu-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 40px rgba(200, 162, 126, 0.2);
    background: linear-gradient(135deg, rgba(80, 70, 60, 0.7), rgba(50, 45, 40, 0.9));
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.menu-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--color-accent);
}

.menu-card p {
    font-size: 0.95rem;
    color: transparent;
    transition: color 0.3s ease;
}

.menu-card:hover p {
    color: var(--color-text-light);
}

/* ===== Галерея ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-block {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: var(--color-dark-brown);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slides img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    aspect-ratio: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 26, 23, 0.6);
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.3s ease, background 0.3s ease;
    opacity: 0;
}

.gallery-block:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(30, 26, 23, 0.9);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--color-accent);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox .close:hover {
    color: #e8b896;
}

/* ===== Відгуки ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: linear-gradient(135deg, rgba(60, 55, 50, 0.5), rgba(30, 26, 23, 0.7));
    border-left: 4px solid var(--color-accent);
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.review-card:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(200, 162, 126, 0.15);
}

.review-card .stars {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-card p {
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.reviewer-name {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== Контакти ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    margin-top: 40px;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.contact-info p {
    font-size: 1rem;
    color: var(--color-text-dark);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Mobile bottom navigation ===== */
.mobile-footer-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-dark-brown);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 6px 0;
    z-index: 1500;
    justify-content: space-around;
}

.mobile-nav-item {
    color: var(--color-text-light);
    font-size: 1.4rem;
    text-decoration: none;
    display: inline-block;
    width: 20%;
    text-align: center;
    transition: color 0.3s ease;
}

.mobile-nav-item:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .mobile-footer-nav { display: flex; }
}

/* ===== Footer / Site credit ===== */
.cta-footer {
    padding: 30px 0 50px;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.cta-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.cta-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Центруємо кнопки у футері */
.cta-actions {
    justify-content: center;
}

.site-credit {
    text-align: center;
    margin-top: 6px;
    color: rgba(232,216,200,0.9);
}

.github-link {
    display: inline;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s ease;
}

.github-link:hover {
    opacity: 0.75;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(232,216,200,0.85);
    margin-top: 6px;
    letter-spacing: 0.4px;
}

@media (min-width: 800px) {
    .cta-inner {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .site-credit {
        text-align: center;
    }
}

.footer-bottom {
    padding-top: 22px;
    padding-bottom: 24px;
}

.footer-bottom .footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    flex-wrap: wrap;
    color: rgba(232,216,200,0.9);
}

/* Видимість та стилі для світлого фонового блоку (section-light) */
.section-light .cta-footer .footer-text {
    color: var(--color-text-dark);
}

.section-light .footer-bottom .github-link {
    color: inherit;
}

/* ===== Анімації ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Затримки для послідовної анімації */
.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.2s; }
.menu-card:nth-child(3) { animation-delay: 0.3s; }
.menu-card:nth-child(4) { animation-delay: 0.4s; }
.menu-card:nth-child(5) { animation-delay: 0.5s; }
.menu-card:nth-child(6) { animation-delay: 0.6s; }
.menu-card:nth-child(7) { animation-delay: 0.7s; }
.menu-card:nth-child(8) { animation-delay: 0.8s; }

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

.contact-info:nth-child(1) { animation-delay: 0.1s; }
.contact-info:nth-child(2) { animation-delay: 0.2s; }
.contact-info:nth-child(3) { animation-delay: 0.3s; }

/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    #hero {
        margin-top: 0;
    }

    body {
        padding-bottom: 64px;
    }

    .navbar-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 10px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 15px;
    }
}
