/*ЗМІННІ (Кольори)*/
:root {
    --primary-color: #6F4E37; /* Кавовий */
    --accent-color: #D2B48C;  /* Світло-бежевий */
    --dark-color: #2C1B10;
    --light-color: #FDF5E6;
}

/*БАЗОВІ СТИЛІ ТА ОБНУЛЕННЯ*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    padding-top: 70px; /* Відступ для фіксованого меню */
    background-color: var(--light-color);
    background-image: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(210,180,140,0.1) 100%);
    background-attachment: fixed;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Глобальні класи*/
.full-menu, .hero, .about { margin-top: 0 !important; }

.section-title {
    margin-top: 0;
    padding-top: 40px; 
    font-size: 2.5rem; 
    margin-bottom: 40px;
}

.sub-title {
    margin: 30px 0 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: 0.3s;
}

.btn:hover { background: var(--dark-color); }
.back-home { display: none; }

/*НАВІГАЦІЯ ТА ЛОГОТИП*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(44, 27, 16, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.logo-container, .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.logo-text .orange { color: #f39c12; }
.highlight { color: var(--accent-color); margin-left: 2px; }

.logo-icon { height: 45px; width: auto; transition: 0.3s; }
.logo:hover .logo-icon { transform: rotate(-10deg); }

/* Малюємо чашку */
.cup-icon { position: relative; width: 40px; height: 30px; }
.cup-body {
    width: 34px; height: 26px;
    background-color: var(--primary-color);
    border-radius: 0 0 12px 12px;
    position: relative;
    border: 2px solid white;
}
.handle {
    position: absolute; right: -10px; top: 4px;
    width: 12px; height: 14px;
    border: 2px solid white;
    border-radius: 0 10px 10px 0;
}
.steam {
    position: absolute; top: -12px; left: 8px;
    width: 2px; height: 8px; background: white;
    box-shadow: 6px 0 white, 12px 0 white;
    border-radius: 2px;
    animation: steamAnim 2s infinite ease-in-out;
}

@keyframes steamAnim {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-3px); opacity: 1; }
}

/* Меню навігації */
.nav-menu { display: block; }
.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links li a:hover { color: var(--accent-color); }

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 21px;
    cursor: pointer; background: none; border: none; padding: 0;
}

/*ГОЛОВНИЙ ЕКРАН (Hero) & ПРО НАС*/
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/photo.jpg') center/cover;
    display: flex;
    align-items: center; justify-content: center;
    text-align: center; color: white;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }

.about { padding: 100px 5%; background-color: white; }
.about-container { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 50px; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 15px; box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1); }
.about-text { flex: 1; }
.about-text h2 { margin-bottom: 20px; text-align: left; }
.about-text p { margin-bottom: 15px; font-size: 1.1rem; color: #555; line-height: 1.8; }

/*МЕНЮ ТА КАРТКИ ТОВАРІВ*/
.menu { padding: 100px 5%; text-align: center; }
.full-menu { padding: 80px 5% 40px; max-width: 1100px; margin: 0 auto; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.menu-item {
    background: white; padding: 30px; border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.menu-item:hover { transform: translateY(-10px); }

.price { display: block; margin-top: 10px; font-weight: bold; color: var(--primary-color); font-size: 1.2rem; }
.bar { width: 100%; height: 3px; background-color: white; transition: 0.3s; }

/* Вертикальний список меню */
.menu-list { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }
.menu-card {
    display: flex; align-items: center; background: white; border-radius: 12px;
    overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s;
}
.menu-card:hover { transform: scale(1.02); }
.menu-card img { width: 200px; height: 150px; object-fit: cover; }

.menu-info { padding: 20px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.menu-info h3 { margin-bottom: 5px; font-size: 1.4rem; color: var(--dark-color); }
.menu-info p { font-size: 0.95rem; color: #4a3c31; margin-bottom: 15px; line-height: 1.4; }

/* Топові позиції */
.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 50px; }
.top-item {
    position: relative; background: #fff; padding: 20px; border-radius: 20px; text-align: center;
    box-shadow: 0 10px 25px rgba(111, 78, 55, 0.15); border: 2px solid var(--accent-color); transition: 0.3s;
}
.top-item:hover { box-shadow: 0 15px 35px rgba(111, 78, 55, 0.25); background-color: #fafafa; }
.top-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 15px; margin-bottom: 15px; }
.top-item h3 { margin-bottom: 10px; }

.badge {
    position: absolute; top: 10px; right: 10px; background: #e67e22;
    color: white; padding: 5px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: bold; text-transform: uppercase;
}

/* КОНТАКТИ ТА КАРТА */
.gps-container { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 50px; align-items: flex-start; }
.gps-info {
    flex: 1; min-width: 300px; text-align: left; background: #fff;
    padding: 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.gps-info h3 { color: var(--primary-color); margin-top: 20px; margin-bottom: 10px; }
.map-wrapper { flex: 1.5; min-width: 300px; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

/* Картка контактів */
.contact-card {
    background: #ffffff; padding: 30px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); max-width: 400px; line-height: 1.6;
}
.contact-card h3 { color: #4b2c20; font-size: 1.4rem; margin-bottom: 20px; border-bottom: 2px solid #f0e6d2; padding-bottom: 10px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; align-items: center; margin-bottom: 15px; color: #555; }
.contact-list span { margin-right: 12px; font-size: 1.2rem; min-width: 25px; text-align: center; }
.contact-list a { color: #8d6e63; text-decoration: none; font-weight: bold; transition: color 0.3s; }
.contact-list a:hover { color: #4b2c20; }

/* АДАПТИВНІСТЬ (Медіа-запити) */
@media (max-width: 850px) {
    .menu-btn { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0;
        width: 100%; background: var(--dark-color); padding: 20px 0; text-align: center;
    }
    .nav-menu.active { display: block; }
    .nav-links { flex-direction: column; gap: 20px; }
}

@media (max-width: 768px) {
    .about-container { flex-direction: column; text-align: center; }
    .about-text h2 { text-align: center; }
}

@media (max-width: 600px) {
    .menu-card { flex-direction: column; }
    .menu-card img { width: 100%; height: 200px; }
}