/* Main stylesheet for Sustainable Crafting Website */
:root {
    /* Color variables */
    --color-primary: #6E8B5E;
    --color-secondary: #C7A86E;
    --color-accent: #F7F4ED;
    --color-highlight: #C67A53;
    --color-text: #2E2E2E;

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

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

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

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

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* CSS 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-secondary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-accent);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

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

button, .button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    display: inline-block;
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

input, textarea, select {
    width: 100%;
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

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

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.site-title a {
    color: var(--color-primary);
}

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

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-item a {
    font-weight: 600;
    font-family: var(--font-primary);
}

.nav-item.active a {
    color: black;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    background: url("../img/26.webp") center center / cover no-repeat;
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
}

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

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: var(--space-md);
}

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

.hero-button {
    background-color: white;
    color: var(--color-primary);
    padding: var(--space-md) var(--space-lg);
    font-size: 1.1rem;
}

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

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

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

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

/* Feature Cards */
.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
    margin: var(--space-xl) 0;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

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

.feature-card-image {
    height: 200px;
    overflow: hidden;
}

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

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

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

.feature-card-title {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

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

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

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

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

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

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

.product-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}

.product-price {
    font-weight: bold;
    color: var(--color-highlight);
    margin: var(--space-sm) 0;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

/* Map */
.map-container {
    height: 400px;
    margin: var(--space-xl) 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

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

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav-item a {
    color: white;
    opacity: 0.8;
}

.footer-nav-item a:hover {
    opacity: 1;
}

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

.social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start;
    margin-bottom: var(--space-md);
}

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

/* Privacy Policy Popup */
.privacy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition-medium);
}

.privacy-popup.active {
    transform: translateY(0);
}

.privacy-popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

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

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

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

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

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

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

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Material cards for "Materials" page */
.material-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.material-image {
    height: 200px;
    overflow: hidden;
}

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

.material-content {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.material-certification {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 2px var(--space-sm);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-right: var(--space-xs);
    margin-bottom: var(--space-xs);
}

/* Projects page */
.difficulty-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.difficulty-filter {
    background-color: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.difficulty-filter.active {
    background-color: var(--color-primary);
    color: white;
}

.project-steps {
    counter-reset: step;
    margin: var(--space-lg) 0;
}

.project-step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.project-step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
}

.project-step-number:before {
    counter-increment: step;
    content: counter(step);
}

.project-step-content {
    flex: 1;
}

/* Benefits Page */
.benefit-section {
    margin-bottom: var(--space-xl);
}

.infographic {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: var(--space-lg) 0;
}

.stat-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.stat-block {
    padding: var(--space-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 1rem;
}

/* Plain pages */
.plain-page {
    background-color: white;
    color: black;
    padding: var(--space-lg);
    line-height: 1.6;
}

.plain-page h1, .plain-page h2, .plain-page h3 {
    color: black;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .two-columns, .three-columns {
        grid-template-columns: 1fr;
    }

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

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

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: var(--space-md) 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-medium);
        z-index: 100;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 var(--space-sm);
    }

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

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

    .product-list {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-lg) 0;
    }
}