/*
 * Aroomikoon - Ароматичні свічки ручної роботи
 * Стиль: Світлий мінімалізм
 *
 * НОТАТКИ:
 * - Основні кольори: білий (#fff), бежевий (#f9f7f4), акцент (#c9a86c)
 * - Шрифти: системні для швидкості завантаження
 * - Адаптивний дизайн: mobile-first
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* === COLORS (CSS Variables) === */
:root {
    --color-primary: #c9a86c;      /* Золотистий акцент */
    --color-secondary: #8b7355;    /* Коричневий */
    --color-bg: #fff;
    --color-bg-alt: #f9f7f4;       /* Бежевий фон */
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #e5e5e5;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --transition: 0.3s ease;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* НОТАТКА: Логотип - текстовий, мінімалістичний */
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text);
}

.logo span {
    color: var(--color-primary);
}

/* === NAVIGATION === */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
    padding: 5px 0;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--color-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

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

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

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

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

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

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

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-secondary);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* === SECTIONS === */
section {
    padding: 80px 0;
}

section.alt-bg {
    background: var(--color-bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* === FEATURES === */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.feature p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-info .price {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.product-info .price-old {
    color: var(--color-text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-left: 8px;
}

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item-text p,
.contact-item-text a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.contact-item-text a:hover {
    color: var(--color-primary);
}

/* === CONTACT FORM === */
.contact-form {
    background: var(--color-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* === FOOTER === */
footer {
    background: #2c2c2c;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.footer-col p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #999;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    nav li {
        border-bottom: 1px solid var(--color-border);
    }

    nav a {
        display: block;
        padding: 15px 0;
    }

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

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

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

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

    section {
        padding: 50px 0;
    }
}

/* === PAGE-SPECIFIC STYLES === */

/* Catalog page */
.page-header {
    background: var(--color-bg-alt);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* About page */
.about-full {
    max-width: 800px;
    margin: 0 auto;
}

.about-full p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    padding: 30px;
    background: var(--color-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.value-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* === REVIEWS === */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--color-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.review-text {
    margin-bottom: 20px;
}

.review-text p {
    color: var(--color-text-light);
    font-style: italic;
    line-height: 1.7;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-name {
    font-weight: 600;
    color: var(--color-text);
}

.review-city {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.review-city::before {
    content: "—";
    margin-right: 5px;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* === LEGAL PAGES === */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-content ul li {
    margin-bottom: 8px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
