/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #8b4513;
    --secondary-color: #d2691e;
    --dark-bg: #2c1810;
    --light-bg: #faf8f5;
    --text-dark: #3e2723;
    --text-light: #fff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    --shadow-hover: 0 15px 40px rgba(139, 69, 19, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo img {
    width: 180px;
    height: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
    text-align: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image:
        linear-gradient(135deg, rgba(129, 116, 149, 0.7) 0%, rgba(83, 158, 44, 0.7) 100%),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.5s ease-out;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(83, 158, 44, 0.3);
}

.btn-primary:hover {
    background: #468224;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(83, 158, 44, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0;
}

.btn-link:hover {
    gap: 12px;
}

.btn-link svg {
    transition: var(--transition);
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-content p:nth-child(1) {
    animation-delay: 0.2s;
}

.about-content p:nth-child(2) {
    animation-delay: 0.4s;
}

/* ===== COLLECTION SECTION (SLIDER) ===== */
.collection {
    background: #fff;
}

.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    overflow: visible;
}

.slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card {
    min-width: calc((100% - 60px) / 3);
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

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

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: transparent;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.product-stats {
    display: flex;
    gap: 15px;
    padding: 0 20px 10px;
    flex-wrap: wrap;
}

.stat {
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-description {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
}

.product-card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

/* ===== ARTICLES SECTION ===== */
.articles {
    background: var(--light-bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }

.article-card:nth-child(4),
.article-card:nth-child(5) {
    grid-column: span 1.5;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ===== FEEDBACK SECTION ===== */
.feedback {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-light);
}

.feedback-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.feedback h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feedback p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.arrow-right {
    display: inline-block;
    animation: slideRight 2s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(83, 158, 44, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(83, 158, 44, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(83, 158, 44, 0.6);
    }
}

.chat-button:hover {
    transform: scale(1.1);
    background: #468224;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-nav ul {
    display: flex;
    gap: 25px;
}

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

.footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ===== BLOG PAGE ===== */
.blog-page {
    padding-top: 120px;
    min-height: 100vh;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.blog-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-item {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.blog-item-image {
    flex: 0 0 300px;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-item:hover .blog-item-image img {
    transform: scale(1.1);
}

.blog-item-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.blog-item-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.blog-item-content p {
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

/* ===== SECURITY PAGE ===== */
.security-page {
    padding-top: 120px;
    min-height: 100vh;
}

.security-content {
    max-width: 900px;
    margin: 0 auto;
}

.security-icon {
    text-align: center;
    margin-bottom: 30px;
}

.security-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.security-warning h2 {
    color: #856404;
    margin-bottom: 15px;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.security-block {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.security-block h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.security-list {
    margin: 20px 0;
}

.security-list li {
    margin-bottom: 25px;
    padding-left: 30px;
    position: relative;
}

.security-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.security-list strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.security-contact {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.security-contact h2 {
    margin-bottom: 20px;
}

.security-motto {
    font-size: 1.2rem;
    margin-top: 30px;
}

/* ===== ARTICLE PAGE ===== */
.article-page {
    padding-top: 100px;
    min-height: 100vh;
}

.article-header {
    max-width: 900px;
    margin: 0 auto 40px;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.article-page h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-cta {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
    border: 2px solid var(--primary-color);
}

.article-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.article-footer {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .slider-track {
        gap: 20px;
    }

    .product-card {
        min-width: calc((100% - 20px) / 2);
    }

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

    .article-card:nth-child(4),
    .article-card:nth-child(5) {
        grid-column: span 1;
    }
}

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

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    .product-card {
        min-width: 100%;
    }

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

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

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

    .blog-item {
        flex-direction: column;
    }

    .blog-item-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .article-hero-image {
        height: 250px;
    }

    .article-page h1 {
        font-size: 2rem;
    }
}

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

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

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    section {
        padding: 50px 0;
    }

    .page-title {
        font-size: 2rem;
    }
}