/*
 * Global CSS for Organized Workspace website
 * A minimalist, zen-inspired design system
 */

/* CSS Reset and Base Styles */
:root {
    /* Color Variables */
    --color-primary: #607D8B; /* Cool Slate Blue */
    --color-secondary: #FFB300; /* Soft Amber */
    --color-accent: #AED581; /* Sage Green */
    --color-background: #FAFAF9; /* Paper White */
    --color-text: #333333; /* Dark Text */
    --color-text-light: #666666; /* Light Text */
    --color-border: #DDDDDD; /* Light Border */

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

    /* Typography Variables */
    --font-primary: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Container Widths */
    --width-narrow: 800px;
    --width-default: 1140px;
    --width-wide: 1440px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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

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



.button {
    background-color: transparent;
    color: #575656;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

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

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

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

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

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

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

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

/* Header Styles */
.site-header {
    background-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;
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
}

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

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

.main-nav a {
    font-family: var(--font-primary);
    font-weight: 500;
}

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

/* Mobile Menu */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 200;
    padding: var(--space-xl) var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style-type: none;
    padding: 0;
}

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

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

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

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
}

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

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

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}

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

.hero-button-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

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

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

.feature-card {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    height: 100%;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

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

/* Product Cards */
.product-grid {
    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);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

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

.product-category {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

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

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

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

/* Form Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

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

input, textarea, select {
    width: 100%;
    padding: var(--space-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: white;
}

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

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

.checkbox-group input {
    width: auto;
    margin-right: var(--space-sm);
    margin-top: 0.3rem;
}

.form-button {
    background-color: var(--color-accent);
    color: var(--color-text);
    font-weight: 600;
}

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

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

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

.contact-icon {
    font-size: 1.5rem;
    margin-right: var(--space-md);
    color: var(--color-primary);
}

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

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

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

.footer-column h3 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

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

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

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

.footer-links a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.social-icon:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Privacy Policy Popup */
.privacy-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: var(--space-lg);
    z-index: 300;
}

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

.privacy-popup p {
    margin: 0 var(--space-lg) 0 0;
}

.privacy-popup-buttons {
    display: flex;
    gap: 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);
    line-height: 1;
    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-accent);
    margin-bottom: var(--space-lg);
}

/* Responsive Styles */
@media (max-width: 1140px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

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

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

    .main-nav {
        display: none;
    }

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

    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }

    .feature-section .grid-3 {
        grid-template-columns: 1fr;
    }

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

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
    }

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow) forwards;
}

.animate-slide-up {
    animation: slideUp var(--transition-slow) forwards;
}

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

.mt-0 { margin-top: 0; }
.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); }

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

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

.subtle-text {
    color: var(--color-text-light);
    font-size: 0.875rem;
}