/* Base Variables */
:root {
    /* Colors */
    --color-primary: #F8F8F8; /* Snow White - purity, simplicity, light */
    --color-secondary: #D8CBB3; /* Warm Sand - cozy natural tone */
    --color-accent: #A6B8A0; /* Sage Green - calming organic freshness */
    --color-highlight: #4F4F4F; /* Soft Graphite - contrast and structure */
    --color-text: #2E2E2E; /* Charcoal */

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

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

    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

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

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

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

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

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

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

button, .button {
    cursor: pointer;
    font-family: var(--font-primary);
    background-color: var(--color-highlight);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

button:hover, .button:hover {
    background-color: var(--color-accent);
    color: black;
}

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

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

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

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

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

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

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

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

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-highlight);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transition: right var(--transition-medium);
    z-index: 1000;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-secondary);
}

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

.mobile-menu-items {
    padding: var(--space-md);
    list-style: none;
}

.mobile-menu-items li {
    margin-bottom: var(--space-md);
}

.mobile-nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.2rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 400px;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: var(--space-lg);
    background-color: rgba(248, 248, 248, 0.85);
    border-radius: var(--radius-md);
}

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

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

.hero-cta {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-highlight);
    color: white;
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.hero-cta:hover {
    background-color: var(--color-accent);
    color: white;
}

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

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

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

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

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

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

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

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

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

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

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 0 var(--space-md);
}

/* Product Section */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

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

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

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

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

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

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

/* Contact Section */
.contact-section {
    background-color: var(--color-secondary);
    padding: var(--space-xl) 0;
}

.contact-container {
    display: flex;
    flex-direction: column;
}

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

.contact-methods {
    list-style: none;
    margin-bottom: var(--space-lg);
}

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

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

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

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

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

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

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    margin-right: var(--space-sm);
    margin-top: 5px;
}

.form-submit {
    width: 100%;
    padding: var(--space-sm) 0;
    background-color: var(--color-highlight);
    color: white;
    font-family: var(--font-primary);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.form-submit:hover {
    background-color: var(--color-accent);
}

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

.map-container {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.footer-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

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

.footer-nav li {
    margin-bottom: var(--space-sm);
}

.footer-link {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.footer-social {
    display: flex;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 var(--space-xs);
    transition: background-color var(--transition-fast);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-highlight);
    color: white;
    padding: var(--space-md);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.cookie-consent.active {
    transform: translateY(0);
}

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

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

.cookie-buttons {
    display: flex;
}

.cookie-accept {
    background-color: white;
    color: var(--color-highlight);
    margin-right: var(--space-sm);
}

.cookie-accept:hover {
    background-color: var(--color-secondary);
    color: var(--color-highlight);
}

.cookie-decline {
    background-color: transparent;
    border: 1px solid white;
}

/* Thank You Page */
.thank-you-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-xl) 0;
}

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

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

/* 404 Page */
.not-found-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-xl) 0;
}

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

.not-found-title {
    margin-bottom: var(--space-md);
}

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

/* Privacy Policy Popup */
.privacy-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    overflow-y: auto;
}

.privacy-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

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

.privacy-popup-title {
    margin-bottom: 0;
}

.close-privacy-popup {
    background: none;
    border: none;
    color: var(--color-highlight);
    font-size: 1.5rem;
    cursor: pointer;
}

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

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

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

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

/* Before/After Slider */
.before-after-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: white;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: ew-resize;
    box-shadow: var(--shadow-md);
    z-index: 11;
}

.slider-icon {
    color: var(--color-highlight);
    font-size: 1.2rem;
}

/* Material Samples */
.material-samples {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.material-sample {
    position: relative;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
    cursor: pointer;
}

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

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

.material-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background-color: rgba(248, 248, 248, 0.9);
}

.material-title {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Color Palette */
.color-palette {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.color-swatch {
    height: 100px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: transform var(--transition-fast);
    cursor: pointer;
}

.color-swatch:hover {
    transform: scale(1.05);
}

.color-swatch.light {
    color: var(--color-highlight);
}

.color-swatch.dark {
    color: white;
}

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    margin-right: var(--space-xs);
    margin-bottom: var(--space-xs);
    background-color: var(--color-secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    transition: background-color var(--transition-fast);
}

.tag:hover {
    background-color: var(--color-accent);
    color: var(--color-highlight);
}

/* System Pages */
.system-page {
    padding: var(--space-xl);
}

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

/* Media Queries */
@media (min-width: 576px) {
    .feature-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .material-samples {
        grid-template-columns: repeat(2, 1fr);
    }

    .color-palette {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .header-container {
        padding: var(--space-sm) 0;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
    }

    .contact-container {
        flex-direction: row;
    }

    .contact-info {
        flex: 1;
        margin-right: var(--space-lg);
        margin-bottom: 0;
    }

    .contact-form {
        flex: 1;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-copyright {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .feature-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .material-samples {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .cookie-content {
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .hero-content {
        max-width: 600px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}