/* styles.css - Main Design System for LUNAYA */

/* Color Palette */
:root {
    --color-lavender-pastel: #e9d7f1;
    --color-white-pure: #ffffff;
    --color-rose-sand: #f4e4d6;
    --color-golden-champagne: #d9b8a7;
    --color-night-gray: #2c2c2c;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Poppins', sans-serif;
    color: var(--color-night-gray);
    background-color: var(--color-white-pure);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-night-gray);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 { font-size: 3.5em; } /* Hero titles */
h2 { font-size: 2.8em; } /* Section titles */
h3 { font-size: 2.2em; } /* Sub-section titles, product names */
h4 { font-size: 1.8em; } /* Card titles */
h5 { font-size: 1.4em; }
h6 { font-size: 1.1em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-golden-champagne);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--color-lavender-pastel);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1em 2.5em;
    border: 2px solid var(--color-golden-champagne);
    background-color: var(--color-golden-champagne);
    color: var(--color-white-pure);
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-lavender-pastel);
    border-color: var(--color-lavender-pastel);
    color: var(--color-white-pure);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-golden-champagne);
}

.btn-outline:hover {
    background-color: var(--color-golden-champagne);
    color: var(--color-white-pure);
}

/* Layout & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

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

/* Header */
.header {
    background-color: var(--color-white-pure);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-night-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu ul li {
    margin-left: 40px;
}

.nav-menu ul li a {
    color: var(--color-night-gray);
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--color-golden-champagne);
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

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

.nav-icons a {
    color: var(--color-night-gray);
    font-size: 1.4em;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white-pure);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--color-white-pure);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--color-white-pure);
}

/* Product Grid / Category Mosaic */
.product-grid, .category-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card, .category-card {
    background-color: var(--color-white-pure);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img, .category-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.product-card-content, .category-card-content {
    padding: 20px;
}

.product-card h3, .category-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.product-card p.price {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--color-golden-champagne);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-rose-sand);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: var(--color-night-gray);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--color-golden-champagne);
}

/* Instagram Block */
.instagram-block {
    text-align: center;
    background-color: var(--color-lavender-pastel);
    padding: 60px 0;
    color: var(--color-white-pure);
}

.instagram-block h2 {
    color: var(--color-white-pure);
    margin-bottom: 30px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.instagram-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

/* Newsletter */
.newsletter-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.newsletter-content {
    background-color: var(--color-white-pure);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.newsletter-content .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--color-night-gray);
}

.newsletter-content h3 {
    color: var(--color-golden-champagne);
    margin-bottom: 20px;
}

.newsletter-content p {
    margin-bottom: 25px;
}

.newsletter-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-content input[type="email"] {
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

/* Footer */
.footer {
    background-color: var(--color-night-gray);
    color: var(--color-white-pure);
    padding: 60px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-golden-champagne);
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

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

.footer-col ul li a {
    color: var(--color-white-pure);
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--color-lavender-pastel);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }