
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Marcellus&display=swap');

:root {
    --color-bg: #F8F6F0;
    --color-text: #2B2927;
    --color-text-light: #5C5A55;
    --color-primary: #596854;
    --color-primary-hover: #455241;
    --color-accent: #C4A27B;
    --color-white: #FFFFFF;
    --color-border: #E5E2D9;
    --font-heading: 'Marcellus', serif;
    --font-body: 'Jost', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
    --radius: 2px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

p { margin-bottom: 1rem; color: var(--color-text-light); }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
.text-xs { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.text-sm { font-size: 0.95rem; }
.text-base { font-size: 1.1rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.heading-sm { font-size: 1.75rem; }
.heading-md { font-size: 2.5rem; }
.heading-lg { font-size: 3.5rem; }
.heading-xl { font-size: 4.5rem; }

@media (max-width: 768px) {
    .heading-lg { font-size: 2.5rem; }
    .heading-xl { font-size: 3rem; }
    .heading-md { font-size: 2rem; }
}

/* Layout Utilities */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 2rem; }
}

/* Section Spacing */
.section-py { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.section-pt { padding-top: var(--spacing-xl); }
.section-pb { padding-bottom: var(--spacing-xl); }
@media (max-width: 768px) {
    .section-py { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
    .section-pt { padding-top: var(--spacing-lg); }
    .section-pb { padding-bottom: var(--spacing-lg); }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.9rem;
    border: none; border-radius: var(--radius);
    cursor: pointer; transition: all 0.4s ease;
    text-align: center;
}
.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(89,104,84,0.2); }
.btn-outline { background-color: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background-color: var(--color-primary); color: var(--color-white); }
.btn-link { padding: 0; background: none; border-bottom: 1px solid var(--color-primary); color: var(--color-primary); border-radius: 0; }
.btn-link:hover { color: var(--color-text); border-color: var(--color-text); }

/* Header & Navigation */
header {
    background-color: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}
.header-inner { padding: 1.5rem 5%; }
.logo { font-size: 2rem; color: var(--color-primary); }
.nav-desktop { display: flex; gap: 2rem; }
.nav-desktop a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--color-primary); }

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

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2000; padding: 5rem 2rem 2rem;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4);
    z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
.close-menu { position: absolute; top: 1.5rem; right: 5%; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--color-text); padding: 1rem; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.mobile-nav-links a { font-size: 1.25rem; font-family: var(--font-heading); color: var(--color-text); border-bottom: 1px solid var(--color-border); padding-bottom: 0.5rem; }

@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: block; }
}

/* Hero Sections */
.hero {
    position: relative; height: 90vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--color-text); overflow: hidden;
}
.hero-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
    transform: scale(1.05); transition: transform 10s ease-out;
}
.hero.loaded .hero-img { transform: scale(1); }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2)); }
.hero-content {
    position: relative; z-index: 1; text-align: center; color: var(--color-white);
    max-width: 900px; padding: 0 2rem;
    opacity: 0; transform: translateY(30px); transition: all 1s ease 0.5s;
}
.hero.loaded .hero-content { opacity: 1; transform: translateY(0); }
.hero-subtitle { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 3px; font-size: 1rem; margin-bottom: 1.5rem; display: block; }
.hero-title { color: var(--color-white); margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-page { height: 60vh; min-height: 400px; }
.hero-page .hero-img { opacity: 0.7; }
.hero-page .hero-title { font-size: 3.5rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
    .hero { height: 80vh; min-height: 500px; }
    .hero-page { height: 50vh; }
    .hero-desc { font-size: 1rem; }
}

/* Story/About Section */
.story-section { position: relative; }
.story-content { padding-right: 3rem; }
.story-img-wrapper { position: relative; padding-bottom: 120%; }
.story-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
    .story-content { padding-right: 0; margin-bottom: 3rem; }
}

/* Collections / Product Cards */
.product-card { group; cursor: pointer; display: block; }
.product-img-wrap { position: relative; overflow: hidden; margin-bottom: 1.5rem; padding-bottom: 125%; background: var(--color-border); }
.product-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge { position: absolute; top: 1rem; left: 1rem; background: var(--color-white); padding: 0.2rem 0.8rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; z-index: 2; }
.product-info { text-align: center; }
.product-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-price { font-family: var(--font-body); font-weight: 500; color: var(--color-primary); }

/* Thematic Sections: Materials */
.materials-section { background-color: var(--color-white); }
.material-item { text-align: center; padding: 2rem; border: 1px solid var(--color-border); transition: all 0.3s; }
.material-item:hover { border-color: var(--color-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.material-icon { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; }

/* Masonry / Inspiration Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 250px; gap: 1.5rem; }
.gallery-item { position: relative; overflow: hidden; }
.gallery-item:nth-child(even) { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); padding: 2rem 1.5rem 1.5rem; color: var(--color-white); opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .gallery-item:nth-child(even) { grid-row: span 1; }
    .gallery-item { height: 350px; }
}

/* Footer */
footer { background-color: var(--color-text); color: var(--color-white); padding-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo { font-size: 2rem; color: var(--color-accent); margin-bottom: 1.5rem; display: inline-block; }
.footer-desc { color: #999; margin-bottom: 2rem; }
.footer-heading { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--color-white); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #aaa; transition: color 0.3s; }
.footer-links a:hover { color: var(--color-accent); }
.newsletter-form { display: flex; border-bottom: 1px solid #555; padding-bottom: 0.5rem; margin-top: 1rem; }
.newsletter-form input { background: transparent; border: none; color: white; width: 100%; outline: none; font-family: var(--font-body); }
.newsletter-form button { background: transparent; border: none; color: var(--color-accent); cursor: pointer; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.footer-bottom { border-top: 1px solid #333; padding: 2rem 0; text-align: center; color: #777; font-size: 0.9rem; }
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .newsletter-form { max-width: 300px; margin: 1rem auto; }
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Notifications / Modals */
.notification {
    position: fixed; bottom: 30px; right: 30px; background: var(--color-text); color: white;
    padding: 1rem 2rem; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); z-index: 3000;
}
.notification.show { transform: translateY(0); opacity: 1; }

/* Filter Bar (for category pages) */
.filter-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 1rem 0; margin-bottom: 3rem; }
.filter-tags { display: flex; gap: 1rem; flex-wrap: wrap; }
.filter-tags::-webkit-scrollbar { display: none; }
.filter-tag { white-space: nowrap; padding: 0.4rem 1.2rem; border: 1px solid var(--color-border); border-radius: 20px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; }
.filter-tag.active, .filter-tag:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* Utility Classes */
.show-mobile { display: none; }
@media (max-width: 768px) {
    .hidden-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}
