/* Premium Global CSS for Archai - "Elemental Elegance" */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Premium Color Palette */
    --color-bg: #FCF9F2;
    /* Cream/Off-white */
    --color-primary: #1A3C34;
    /* Deep Moss Green */
    --color-accent: #D4AF37;
    /* Muted Gold */
    --color-text-dark: #121212;
    --color-text-light: #5A5A5A;
    --color-white: #FFFFFF;
    --color-cream: #FCF9F2;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(26, 60, 52, 0.95), rgba(44, 95, 45, 0.85));

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

button {
    font-family: 'Montserrat', sans-serif;
}

/* --- Header (Glassmorphism) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 2.5rem;
    /* Increased padding */
    background: rgba(252, 249, 242, 0.85);
    /* Semi-transparent cream */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping for mobile */
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

nav {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover::before {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
    color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg);
}

/* Organic Background Shape */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(151, 188, 98, 0.2) 0%, rgba(252, 249, 242, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: pulse 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(252, 249, 242, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    /* Gradient Text */
    background: -webkit-linear-gradient(45deg, var(--color-primary), #2C5F2D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeUp 1s 0.2s forwards var(--ease-out-expo);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeUp 1s 0.4s forwards var(--ease-out-expo);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(26, 60, 52, 0.2);
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    animation: fadeUp 1s 0.6s forwards var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 60, 52, 0.3);
    background-color: #142e28;
}

/* --- Values Grid (Floating Cards) --- */
.values-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.value-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
    opacity: 0;
    /* Handled by JS observer */
    transform: translateY(30px);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.1);
}

.card-title-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.value-card img {
    height: 80px;
    margin: 0 auto 2rem;
    filter: invert(18%) sepia(12%) saturate(1635%) hue-rotate(113deg) brightness(97%) contrast(93%);
    /* Adjust to match branding color roughly or use SVG */
    transition: transform 0.5s ease;
}

.value-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* --- Elements Showcase --- */
.elements-showcase {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 2rem;
    flex-wrap: wrap;
}

.element-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.element-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.element-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.element-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.element-circle:hover::before {
    background: rgba(0, 0, 0, 0);
}

.element-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.element-circle:hover img {
    transform: scale(1.1);
}


/* --- Footer --- */
footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--color-white);
    opacity: 0.7;
    transition: all 0.3s;
}

.social-links a:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--color-accent);
}

/* --- Utilities & Animations --- */
.reveal-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade-in.visible {
    opacity: 1;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Menu Button --- */
#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1100;
}

/* Responsive */
@media (max-width: 950px) {
    .header-container {
        gap: 1rem;
        position: relative;
    }

    .logo {
        order: 1;
    }

    .logo img {
        /* Smaller logo for mobile */
        margin-bottom: 0.5rem;
        /* Add margin as requested */
    }

    /* Mobile Menu Button - Show on Mobile */
    #mobile-menu-btn {
        display: block;
        order: 3;
    }

    .user-actions {
        order: 2;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(252, 249, 242, 0.95);
        /* High opacity cream */
        backdrop-filter: blur(15px);
        padding: 0;
        max-height: 0;
        /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.4s var(--ease-out-expo), padding 0.4s ease;
        border-bottom: 2px solid var(--color-primary);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    /* Open State */
    nav.active {
        max-height: 300px;
        /* Adjust based on content */
        padding: 2rem 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        width: 100%;
    }

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

/* --- Products Page --- */

.products-hero {
    padding: 12rem 2rem 4rem;
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Grid */
.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

/* Product Card */
.product-card {
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    cursor: pointer;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    /* Standard fashion ratio */
    overflow: hidden;
    border-radius: 12px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 60, 52, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.add-to-cart-btn {
    background: var(--color-cream);
    color: var(--color-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .add-to-cart-btn {
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem 0.5rem;
    text-align: center;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* --- Materials Page --- */

.materials-hero {
    height: 60vh;
    min-height: 400px;
    background: url('images/materiales-hero.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

.materials-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overly for text readability */
}

.materials-hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-cream);
    max-width: 800px;
    padding: 0 1rem;
}

.materials-hero-content .page-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.materials-hero-content .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.info-section {
    padding: 4rem 2rem 8rem;
    background: var(--color-bg);
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

.info-block {
    text-align: center;
    padding: 3rem;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateY(-5px);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.info-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Responsive Materials */
@media (min-width: 768px) {
    .info-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }



}

/* --- Shopping Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hide off screen */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: #333;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 0;
    color: #999;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-image {
    width: 80px;
    height: 100px;
    background: #f9f9f9;
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.remove-btn:hover {
    color: #ff4444;
}

.cart-item-size {
    font-size: 0.85rem;
    color: #666;
    margin: 0.3rem 0;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-controls button {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    color: #666;
}

.quantity-controls span {
    font-size: 0.9rem;
    padding: 0 5px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--color-primary);
}

.cart-footer {
    padding: 1.5rem;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.clear-cart-btn {
    display: block;
    margin: 1rem auto 0;
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.shipping-note {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
}

/* Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    pointer-events: none;
}


.philosophy-hero {
    height: 60vh;
    min-height: 400px;
    background: url('images/philosophy-hero.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}


/* --- Contact Page --- */

.contact-hero {
    height: 50vh;
    min-height: 350px;
    background: url('images/contact-hero.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.contact-section {
    padding: 0 2rem 6rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Glass Form */
.glass-form {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 60, 52, 0.2);
}

.submit-btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation Styles */
.error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2em;
    /* Prevent layout shift */
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #e74c3c;
}

.form-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.form-feedback.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
    border: 1px solid #c0392b;
}

/* Contact Info Card */
.contact-info {
    background: var(--color-primary);
    color: var(--color-cream);
    padding: 2.5rem;
    border-radius: 20px;
    height: fit-content;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-accent);
}

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    width: 20px;
    text-align: center;
}

.social-links-contact {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-links-contact a {
    color: var(--color-cream);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}