/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-color: #3d2817;
    --secondary-color: #8b6f47;
    --accent-color: #c9a961;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #faf8f5;
    --bg-cream: #f5f1ea;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation
   =========================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(61, 40, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.main-nav.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: rgba(61, 40, 23, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.main-nav.scrolled .logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.lang-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

/* ===========================
   Hero Section with Parallax
   =========================== */
.hero-parallax {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(61, 40, 23, 0.4), rgba(61, 40, 23, 0.6)), 
                url('hero-bg.jpg') center/cover no-repeat;
    z-index: -1;
    transform: translateZ(0);
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 1;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===========================
   About Section
   =========================== */
.about-section {
    padding: 8rem 0 6rem;
    background: var(--bg-light);
    text-align: center;
}

.about-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-section p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    color: #555;
}

/* ===========================
   Materials Section
   =========================== */
.materials-section {
    padding: 6rem 0;
    background: #fff;
}

.materials-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.material-card {
    background: var(--bg-cream);
    overflow: hidden;
    border-radius: 2px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.material-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.material-image.oak {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), 
                url('materials/oak.jpg') center/cover;
    background-color: #b8956a;
}

.material-image.walnut {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), 
                url('materials/walnut.jpg') center/cover;
    background-color: #5d4e37;
}

.material-image.ash {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), 
                url('materials/ash.jpg') center/cover;
    background-color: #d4c5a9;
}

.material-image.elm {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), 
                url('materials/elm.jpg') center/cover;
    background-color: #a88e6c;
}

.material-image.cherry {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), 
                url('materials/cherry.jpg') center/cover;
    background-color: #c47451;
}

.material-image.maple {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), 
                url('materials/maple.jpg') center/cover;
    background-color: #f0e6d2;
}

.material-content {
    padding: 2rem;
}

.material-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.material-content p {
    color: #666;
    line-height: 1.7;
}

/* ===========================
   Parallax Divider
   =========================== */
.parallax-divider {
    height: 400px;
    background: linear-gradient(rgba(61, 40, 23, 0.5), rgba(61, 40, 23, 0.5)), 
                url('parallax-divider.jpg') center/cover no-repeat fixed;
    position: relative;
}

/* ===========================
   Gallery Section
   =========================== */
.gallery-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.gallery-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gallery-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(61, 40, 23, 0.9));
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===========================
   Process Section
   =========================== */
.process-section {
    padding: 6rem 0;
    background: #fff;
}

.process-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.process-number {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.process-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-card p {
    color: #666;
    line-height: 1.7;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-cream);
    text-align: center;
}

.contact-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-section > .container > p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item p {
    font-size: 1.1rem;
    color: #666;
}

.contact-item a {
    color: var(--secondary-color);
    transition: var(--transition);
}

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

/* ===========================
   Footer
   =========================== */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

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

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

footer p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        padding: 2rem;
    }

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

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .language-selector {
        margin-top: 2rem;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.material-card:nth-child(1) { animation-delay: 0.1s; }
.material-card:nth-child(2) { animation-delay: 0.2s; }
.material-card:nth-child(3) { animation-delay: 0.3s; }
.material-card:nth-child(4) { animation-delay: 0.4s; }
.material-card:nth-child(5) { animation-delay: 0.5s; }
.material-card:nth-child(6) { animation-delay: 0.6s; }

.process-card:nth-child(1) { animation-delay: 0.1s; }
.process-card:nth-child(2) { animation-delay: 0.2s; }
.process-card:nth-child(3) { animation-delay: 0.3s; }
.process-card:nth-child(4) { animation-delay: 0.4s; }