/* =========================================================================
   Phero Bistro - Stylesheet
   Modern, Urban/Street Vibe
   ========================================================================= */

/* --- Variables --- */
:root {
    /* Color Palette */
    --bg-main: #0F0F0F;
    --bg-secondary: #161616;
    --bg-card: #1c1c1c;

    --accent-color: #f05427;
    /* Orange from menu */
    --accent-hover: #b45635;

    --text-primary: #f5f5f5;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;

    --border-color: rgba(212, 165, 116, 0.15);
    /* Tinted with gold */
    --input-bg: rgba(255, 255, 255, 0.04);

    /* Typography */
    --font-text: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Spacing */
    --section-padding: 6rem 0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.accent-i {
    color: var(--accent-color);
}


h1 {
    font-weight: 700;
}

.section-title {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: var(--font-text);
    margin-bottom: 3rem;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

/* --- Layout Settings --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-darker {
    background-color: var(--bg-secondary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-text);
    font-weight: 500;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    text-align: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-main);
    border-color: var(--accent-color);
}

.btn-primary:hover,
.btn-outline:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(240, 84, 39, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}



.btn-facebook {
    background-color: transparent;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: none;
    letter-spacing: normal;
}

.btn-facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(15, 15, 15, 0.98);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.logo:hover {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 1px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-image: url('assets/images/hero.jpg');
    background-image: image-set(url('assets/images/hero.webp') type('image/webp'), url('assets/images/hero.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero .slogan {
    font-size: 1.4rem;
    font-family: var(--font-text);
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 300;
}

.about-text strong {
    color: var(--accent-color);
    font-weight: 500;
}

.img-placeholder {
    background-color: #1a1a1a;
    border: 1px dashed rgba(212, 165, 116, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 2rem;
}

.interior-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 4px;
}

/* --- Horizontal Scroll Sections (Menu & Gallery) --- */
.scroll-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding-bottom: 2rem;
    padding-top: 1rem;
    scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    scroll-snap-align: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.scroll-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.1);
}

.scroll-item span {
    font-family: var(--font-text);
    line-height: 1.5;
}

/* Menu Frames */
.menu-item {
    width: 320px;
    height: 320px;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.menu-item picture,
.menu-item picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery Frames */
.gallery-item {
    width: 384px;
    height: 288px;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.gallery-item picture,
.gallery-item picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.scroll-section:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: var(--accent-color);
    color: var(--bg-main);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 1rem;
}

.scroll-right {
    right: 1rem;
}

.hint-text {
    text-align: center;
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.8;
    animation: pulseText 2s infinite ease-in-out;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* --- Hours Table --- */
.hours-table-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table td:nth-child(2) {
    text-align: right;
    color: var(--accent-color);
    font-weight: 500;
}

/* --- Contact Info --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .card-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item .icon {
    color: var(--accent-color);
    margin-top: 2px;
}

.contact-item strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.contact-item div {
    color: var(--text-secondary);
}

/* --- Contact Form --- */
.contact-card {
    background-color: var(--bg-card);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-text);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- Map --- */
.map-section {
    width: 100%;
    line-height: 0;
}

.map-section iframe {
    color-scheme: light;
}

/* --- Footer --- */
.footer {
    background-color: #0a0a0a;
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    max-width: 400px;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 300;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--accent-color);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-main);
}

.footer-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: #050505;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* --- Media Queries --- */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero {
        background-attachment: scroll;
        /* Zamezí nekonečnému stretchingu na iOS */
        background-position: top center;
        /* Lépe směřuje náhled fotky pro vertikální mobily */
    }

    .hero-buttons {
        flex-direction: column;
    }

    .scroll-arrow {
        width: 40px;
        height: 40px;
        opacity: 0.85;
    }
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--text-primary);
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.3);
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--accent-color);
    color: var(--bg-main);
    border-color: var(--accent-color);
}

.clickable-image {
    cursor: pointer;
}