:root {
    --primary: #8d6e63;
    /* Brown */
    --secondary: #d7ccc8;
    /* Beige */
    --accent: #5d4037;
    --text: #3e2723;
    --white: #fff;
    --warm-bg: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text);
    background-color: #fafafa;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

/* Header */
.furn-header {
    padding: 25px 0;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand h1 {
    font-size: 1.8rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.brand p {
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.furn-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.furn-nav a {
    color: var(--text);
    font-size: 1.1rem;
    position: relative;
}

.furn-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: 0.3s;
}

.furn-nav a:hover::after {
    width: 100%;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--primary);
    padding: 5px 15px;
    cursor: pointer;
    font-family: inherit;
    color: var(--primary);
}

.lang-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent);
    cursor: pointer;
    padding: 5px;
}

/* Sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

html[dir="ltr"] .sidebar {
    right: auto;
    left: -100%;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

html[dir="ltr"] .sidebar.active {
    left: 0;
    right: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--secondary);
}

.sidebar-header h2 {
    font-size: 1.3rem;
    color: var(--accent);
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent);
    cursor: pointer;
    padding: 5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-nav a {
    padding: 15px 20px;
    color: var(--text);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--secondary);
    transition: background-color 0.3s;
}

.sidebar-nav a:hover {
    background-color: var(--warm-bg);
    color: var(--accent);
}

.sidebar-nav .sidebar-lang {
    margin: 15px 20px;
    width: auto;
    text-align: center;
}

/* Hero */
.hero-furn {
    height: 80vh;
    background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-furn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-text {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 50px;
    max-width: 500px;
    margin-right: 10%;
    /* RTL default */
    border-right: 5px solid var(--primary);
}

html[dir="ltr"] .hero-text {
    margin-right: 0;
    margin-left: 10%;
    border-right: none;
    border-left: 5px solid var(--primary);
}

.hero-text h2 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 300;
}

.btn-furn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: var(--accent);
    color: var(--white);
    letter-spacing: 1px;
}

.btn-furn:hover {
    background-color: var(--primary);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.bg-warm {
    background-color: var(--secondary);
}

.section-title span {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 50px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.prod-card {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.prod-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.prod-card:hover img {
    transform: scale(1.1);
}

.prod-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.prod-info h3 {
    color: var(--accent);
    font-weight: 400;
}

/* About/Features */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-img img {
    width: 100%;
    box-shadow: 20px 20px 0 var(--accent);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent);
}

.feature-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-row i {
    font-size: 2rem;
    color: var(--accent);
}

.feature-row h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Contact */
.contact-box {
    background-color: var(--white);
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.c-unit i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.map-link {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.map-frame-furn {
    margin-top: 30px;
    filter: grayscale(100%);
}

.map-frame-furn:hover {
    filter: none;
    transition: 0.5s;
}

/* Footer */
.furn-footer {
    background-color: var(--accent);
    color: var(--secondary);
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .furn-nav {
        display: none;
    }

    .sidebar-overlay {
        display: block;
    }
    
    .sidebar-overlay:not(.active) {
        display: none;
    }

    .d-flex.justify-between {
        flex-direction: row;
        gap: 20px;
    }

    .hero-text {
        margin: 20px;
        border: none;
        padding: 30px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .about-img img {
        box-shadow: 10px 10px 0 var(--accent);
    }
}