/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #1F1F23;
    background-color: #F7F3F2;
}

/* Color Variables */
:root {
    --primary-dark: #0E0E10;
    --accent-pink: #E5B8A7;
    --light-bg: #F7F3F2;
    --text-dark: #1F1F23;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.btn-primary {
    background-color: var(--accent-pink);
    color: var(--primary-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #d4a693;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 184, 167, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(247, 243, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(14, 14, 16, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--accent-pink);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a2e 100%);
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 14, 16, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    background-color: var(--light-bg);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 24px;
    color: var(--accent-pink);
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.benefit-card p {
    color: var(--text-dark);
    opacity: 0.8;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 48px;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.product-info p {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 16px;
    font-size: 14px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 16px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 16px;
    line-height: 1.7;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--light-bg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.reviews-slider {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.review-card {
    display: none;
    text-align: center;
    padding: 40px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.review-card.active {
    display: block;
}

.review-stars {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 16px;
}

.review-card p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-pink);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-author span {
    font-weight: 600;
    color: var(--primary-dark);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(14, 14, 16, 0.1);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}

.faq-question:hover,
.faq-question:focus-visible {
    color: var(--accent-pink);
}

.faq-icon {
    transition: var(--transition);
    color: var(--accent-pink);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 24px 0;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
}

.newsletter-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto 32px;
}

.form-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--white);
    color: var(--text-dark);
}

.form-group input:focus {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}

.form-group input::placeholder {
    color: rgba(31, 31, 35, 0.6);
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    opacity: 1;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    opacity: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus-visible {
    background-color: var(--accent-pink);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--primary-dark);
    color: var(--white);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    opacity: 1;
    color: var(--accent-pink);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--light-bg);
        border-top: 1px solid rgba(14, 14, 16, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
    }
    
    .nav-list a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(14, 14, 16, 0.05);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 0 12px;
    }
    
    .benefits,
    .products,
    .about,
    .reviews,
    .faq,
    .newsletter {
        padding: 60px 0;
    }
    
    .benefit-card,
    .product-info {
        padding: 24px 16px;
    }
    
    .review-card {
        padding: 24px 16px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus indicators for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-secondary {
        border-width: 3px;
    }
    
    .benefit-card,
    .product-card,
    .review-card {
        border: 2px solid var(--primary-dark);
    }
}
