/*
* Main stylesheet for Air-Purifying Plants for Small Dutch Apartments
* Created: November 2025
* Description: Responsive styles using flexbox, grid and relative units
*/

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #6A994E;
    --color-secondary: #A7C957;
    --color-accent: #FFD6A5;
    --color-background: #F6F7F2;
    --color-text: #2E2E2E;
    --color-text-light: #6c6c6c;
    --color-white: #ffffff;
    --color-error: #e63946;
    --color-success: #2a9d8f;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

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

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

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

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

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

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);
}

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

ul, ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.menu-close {
   display: none;
}

button, .button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    text-align: center;
    display: inline-block;
}

button:hover, .button:hover {
}

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

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

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--space-md);
}

.col {
    padding: 0 var(--space-md);
    flex: 1;
    min-width: 0; /* Fix for flex issues */
}

/* For mobile to handle columns better */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col {
        width: 100%;
        margin-bottom: var(--space-md);
    }
}

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

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

.site-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

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

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

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

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

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: var(--space-xl) var(--space-md);
        transition: right var(--transition-medium);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: var(--space-sm) 0;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
        background: none;
        border: none;
        color: var(--color-text);
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Hero Section */
.hero {
    padding: var(--space-xl) 0;
    background-image: url("../img/22.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

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

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

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

@media (max-width: 768px) {
    .hero {
        padding: var(--space-lg) 0;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-image {
        opacity: 0.2;
        width: 100%;
    }
}

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

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

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.25rem;
    margin-top: -var(--space-md);
    margin-bottom: var(--space-lg);
}

/* Card Styles */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    height: 100%;
}

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

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

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

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

.card-description {
    color: var(--color-text-light);
}

.card-footer {
    padding: 0 var(--space-md) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-weight: bold;
    color: var(--color-primary);
}

/* Plant Grid */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .plant-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

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

/* Plant Card */
.plant-card {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

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

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

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

.plant-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.plant-type {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.plant-features {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.plant-feature {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-background);
    border-radius: var(--radius-sm);
}

.plant-description {
    font-size: 0.9rem;
}

.plant-actions {
    margin-top: var(--space-sm);
}

/* Feature Block */
.feature-block {
    text-align: center;
    margin-bottom: var(--space-lg);
}

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

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

/* Testimonial */
.testimonial {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: var(--space-sm);
}

.testimonial-name {
    font-weight: 600;
}

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

/* Contact Form */
.contact-form {
    background-color: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

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

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

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

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

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

.form-checkbox input {
    margin-top: 0.25rem;
}

.form-error {
    color: var(--color-error);
    font-size: 0.9rem;
    margin-top: var(--space-xs);
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Store Card */
.store-card {
    display: flex;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.store-image {
    width: 120px;
    object-fit: cover;
}

.store-content {
    padding: var(--space-md);
    flex: 1;
}

.store-name {
    margin-bottom: var(--space-xs);
}

.store-address {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.store-phone {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.store-hours {
    font-size: 0.9rem;
}

/* Filter System */
.filter-container {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-button {
    background-color: var(--color-background);
    color: var(--color-text);
    border: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-button:hover, .filter-button.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Air Quality Chart */
.air-quality-chart {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

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

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: var(--space-lg);
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.footer-contact-icon {
    margin-right: var(--space-sm);
    font-size: 1.2rem;
}

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

.footer-menu li {
    margin-bottom: var(--space-xs);
}

.footer-menu a {
    color: var(--color-white);
    transition: opacity var(--transition-fast);
}

.footer-menu a:hover {
    opacity: 0.8;
}

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

.footer-copyright {
    font-size: 0.9rem;
}

/* Cookie Policy Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    z-index: 1000;
    display: none;
}

.cookie-popup.show {
    display: block;
}

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

.cookie-text {
    flex: 1;
    margin-right: var(--space-md);
}

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

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-text {
        margin-right: 0;
        margin-bottom: var(--space-md);
    }
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: var(--space-xl) 0;
}

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

.error-message {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

/* Thank You Page */
.thank-you-page {
    text-align: center;
    padding: var(--space-xl) 0;
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.thank-you-title {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.py-1 {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.py-2 {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.py-3 {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.py-4 {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

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

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