/*
 * Main stylesheet for Eco-Inspired 3D Projects
 * Focus on nature forms and sustainable design themes
 */

/* CSS Variables */
:root {
    /* Brand colors */
    --color-primary: #E57373;    /* Rose Pink: Warm and comforting */
    --color-secondary: #81C784;  /* Leaf Green: Natural balance */
    --color-accent: #FFF176;     /* Soft Yellow: Joyful and radiant */
    --color-background: #FFFDF9; /* Ivory White: Clean and airy */
    --color-text: #3E2723;       /* Rich Brown: Elegant contrast */

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Nunito Sans', sans-serif;

    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--space-md);
}

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

a:hover {
    color: var(--color-secondary);
}

/* Additional styles specific to this page */
.shop-category {
    margin-bottom: var(--space-xl);
}

.category-title {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.product-grid {
    display: grid;
    gap: var(--space-lg);
}

.product-card {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-fast);
}

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

.product-image-container {
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

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

.product-content {
    padding: var(--space-lg);
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.product-description {
    margin-bottom: var(--space-md);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.product-price {
    font-weight: bold;
    font-size: 1.2rem;
}

.product-badges {
    display: flex;
    gap: var(--space-xs);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-eco {
    background-color: var(--color-secondary);
    color: white;
}

.badge-new {
    background-color: var(--color-accent);
    color: var(--color-text);
}

.scent-notes {
    font-style: italic;
    margin-bottom: var(--space-md);
    color: #666;
}

.product-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* Subscription styles */
.subscription-card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background-color: white;
    text-align: center;
    transition: all var(--transition-fast);
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.subscription-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.subscription-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.subscription-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.subscription-period {
    font-size: 1rem;
    color: #666;
}

.subscription-features {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.feature-icon {
    color: var(--color-primary);
    margin-right: var(--space-sm);
}

/* Seasonal box styles */
.seasonal-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

.seasonal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.seasonal-box:hover .seasonal-image {
    transform: scale(1.05);
}

.seasonal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.seasonal-title {
    margin-bottom: var(--space-sm);
    font-size: 2rem;
}

.seasonal-description {
    margin-bottom: var(--space-md);
    max-width: 700px;
}

/* Additional styles specific to this page */
.guide {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.guide-title {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: var(--space-sm);
}

.guide-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.guide-text {
    flex: 2 1 300px;
}

.guide-image {
    flex: 1 1 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

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

.testimonial {
    background-color: rgba(255, 241, 118, 0.1);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-family: var(--font-primary);
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: var(--color-primary);
    opacity: 0.2;
}

/* Interactive Flower Selector */
.selector-container {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.mood-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.mood-option {
    flex: 1 1 120px;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: rgba(229, 115, 115, 0.1);
}

.mood-option:hover, .mood-option.active {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.flower-results {
    display: none;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--color-primary);
}

.flower-results.visible {
    display: block;
}

.flower-content {
    display: none;
}

.flower-content.active {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.flower-details {
    flex: 2 1 300px;
}

.flower-image {
    flex: 1 1 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.flower-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Additional styles specific to this page */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    align-items: stretch;
}

.contact-info {
    flex: 1 1 300px;
    padding: var(--space-lg);
    background-color: rgba(129, 199, 132, 0.1);
    border-radius: var(--radius-md);
}

.contact-form-container {
    flex: 2 1 500px;
}

.info-item {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 40px;
    text-align: center;
}

.form-error {
    color: #e53935;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.error {
    border-color: #e53935 !important;
}

.error + .form-error {
    display: block;
}

.form-success {
    display: none;
    padding: var(--space-md);
    background-color: rgba(129, 199, 132, 0.2);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    text-align: center;
}

/* Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
}

/* Header */
.site-header {
    padding: var(--space-md) 0;
    background-color: var(--color-background);
    box-shadow: var(--shadow-sm);
    position: relative;
}

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

.site-brand {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: var(--space-md);
}

.nav-link {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-primary);
    transition: all var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url('../images/3.webp') no-repeat center center/cover;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-size: 3rem;
}

.hero-subtitle {
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Sections */
.section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

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

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.feature-title {
    margin-bottom: var(--space-sm);
}

/* Products */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.product {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: var(--space-md);
}

.product-title {
    margin-bottom: var(--space-sm);
}

.product-price {
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: var(--space-md);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: var(--space-sm);
}

.checkbox-input {
    margin-top: 0.2rem;
}

/* Map */
.map-container {
    height: 400px;
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.site-footer {
    padding: var(--space-lg) 0;
    background-color: var(--color-text);
    color: white;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 250px;
    margin-bottom: var(--space-md);
}

.footer-title {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

.footer-nav {
    list-style: none;
}

.footer-nav-item {
    margin-bottom: var(--space-xs);
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav-link:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    color: white;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Privacy Policy Popup */
.privacy-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
}

.privacy-popup.active {
    display: block;
}

.popup-content {
    margin-bottom: var(--space-md);
}

.popup-buttons {
    display: flex;
    gap: var(--space-sm);
}

/* System Pages */
.system-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.system-message {
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

/* Plain Pages */
.plain-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    line-height: 1.8;
}

.plain-page h2 {
    margin-top: var(--space-lg);
}

.plain-page ul {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.plain-page li {
    margin-bottom: var(--space-sm);
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .container {
        width: 95%;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-background);
        box-shadow: var(--shadow-md);
        z-index: 10;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: var(--space-sm) var(--space-md);
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

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

    .features,
    .products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

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

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

    .btn {
        width: 100%;
        margin-bottom: var(--space-sm);
    }

    .site-brand {
        font-size: 1.5rem;
    }
}