/* Accessibility & Chic Design System */
:root {
    --gold: #b38e44;      /* Темніше золото для кращого контрасту */
    --black: #121212;
    --off-white: #fafaf9;
    --text-main: #2d2d2d;
    --text-muted: #575757;
    --white: #ffffff;
    --spacing-lg: 120px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; } /* Збільшений базовий шрифт */

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; color: var(--black); }

.container { max-width: 1300px; margin: 0 auto; padding: 0 30px; }
.narrow { max-width: 800px; }

/* Skip Link для доступності */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--gold);
    color: white;
    padding: 10px;
    z-index: 2000;
    transition: 0.3s;
}
.skip-link:focus { top: 0; }

/* Header & Nav */
header {
    height: 100px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 24px; letter-spacing: 6px; font-weight: 600; text-decoration: none; color: var(--black); }

.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-list a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--black);
    font-weight: 600;
    padding: 10px 5px;
}
.nav-list a:hover, .nav-list a:focus { color: var(--gold); outline: 2px solid var(--gold); outline-offset: 5px; }

/* Hero Section */
.hero-slider { height: 85vh; background: var(--black); }
.slide { height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; color: white; }
.slide-content { max-width: 700px; }
.eyebrow { text-transform: uppercase; letter-spacing: 5px; color: var(--gold); display: block; margin-bottom: 20px; font-size: 0.8rem; }
.slide-content h1 { font-size: 3.5rem; color: white; margin-bottom: 30px; line-height: 1.2; }
.btn-primary {
    display: inline-block;
    padding: 20px 45px;
    background: transparent;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    transition: 0.4s;
}
.btn-primary:hover, .btn-primary:focus { background: white; color: var(--black); }

/* Sections Styling */
.section-padding { padding: var(--spacing-lg) 0; }

.intro-section { text-align: center; background: var(--off-white); }
.gold-text { color: var(--gold); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 4px; margin-bottom: 25px; }
.main-quote { font-size: 2rem; font-style: italic; margin-bottom: 30px; font-family: 'Playfair Display', serif; }

.cat-block { padding: 80px 0; }
.alternate { background: #fdfdfd; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.alternate .grid-2 { direction: rtl; }
.alternate .text-box { direction: ltr; }

.image-box img { width: 100%; height: auto; box-shadow: 20px 20px 60px rgba(0,0,0,0.03); transition: 0.6s; }
.image-box img:hover { transform: scale(1.02); }

.category-tag { font-size: 0.7rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.text-box h2 { font-size: 2.5rem; margin: 20px 0; }
.text-box p { color: var(--text-muted); font-size: 1rem; max-width: 500px; }

/* History Block */
.history-dark { background: var(--black); color: white; padding: 120px 0; text-align: center; }
.history-dark h2 { color: white; font-size: 3rem; margin-bottom: 30px; }
.history-text { max-width: 800px; margin: 0 auto; }

/* Showcase Grid */
.title-center { text-align: center; margin-bottom: 60px; font-size: 2.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-item { text-align: center; }
.product-item img { width: 100%; background: var(--off-white); padding: 30px; transition: 0.4s; }
.product-item h3 { font-size: 1.2rem; margin-top: 20px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; }

/* Footer - Chic & Accessible */
footer { background: var(--off-white); border-top: 1px solid #eee; padding-top: 100px; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 80px; }
.footer-brand .logo { font-size: 30px; letter-spacing: 10px; }
.footer-contacts { font-style: normal; display: flex; flex-direction: column; gap: 15px; }
.footer-contacts a {
    color: var(--black);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    width: fit-content;
}
.footer-contacts a:hover, .footer-contacts a:focus { color: var(--gold); border-bottom-color: var(--gold); }
.location { color: var(--text-muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }

.footer-bottom { border-top: 1px solid #eee; padding: 30px 0; text-align: center; }
.footer-bottom p { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Responsive */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .alternate .grid-2 { direction: ltr; }
    .text-box p { margin: 0 auto; }
    .nav-list { display: none; } /* Для продакшну варто додати мобільне меню-бургер */
    .hero-slider h1 { font-size: 2.5rem; }
    .footer-content { flex-direction: column; gap: 50px; text-align: center; }
    .footer-contacts { align-items: center; }
    .product-grid { grid-template-columns: 1fr; }
}

/* Slider Chic Styles */
.hero-slider {
    position: relative;
    height: 90vh; /* Висота слайдера - 90% екрана */
    width: 100%;
    background: #121212;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Фон слайда */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* Легкий зум для ефекту при появі */
    transition: transform 6s linear;
}

.slide.active .slide-image {
    transform: scale(1);
}

/* Затемнення для читабельності тексту */
.slide-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide-overlay h1, .slide-overlay h2 {
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Адаптивний розмір шрифту */
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.slide.active h1, .slide.active h2 {
    opacity: 1;
    transform: translateY(0);
}

.slide-overlay p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 2px;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0;
    transition: all 0.8s ease 0.8s;
}

.slide.active p {
    opacity: 1;
}

/* Крапки навігації */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #c5a059; /* Колір золота */
    transform: scale(1.3);
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh; /* Менша висота для телефонів */
    }
    .slide-overlay {
        background: rgba(0,0,0,0.3);
    }
}