:root{
    --primary:#8B5E3C;
    --secondary:#C79A63;
    --light:#F5EFE7;
    --dark:#3D2B1F;
    --accent:#D7B38A;
    --white:#ffffff;
}

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

body{
    font-family:'Poppins',sans-serif;
    background:var(--light);
    color:var(--dark);
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

.navbar{
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(10px);
    padding:18px 0;
    box-shadow:0 2px 15px rgba(0,0,0,0.08);
}

.navbar-brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.navbar-brand img{
    width:58px;
    height:58px;
    object-fit:contain;
}

.brand-text{
    font-family:'Playfair Display',serif;
    font-size:1.7rem;
    font-weight:700;
    color:var(--primary);
}

.nav-link{
    color:var(--dark);
    font-weight:500;
    margin:0 10px;
    transition:0.3s;
    position:relative;
}

.nav-link:hover{
    color:var(--primary);
}

.notification-btn{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:var(--primary);
    color:white;
    transition:0.3s;
}

.notification-btn:hover{
    background:var(--secondary);
    transform:translateY(-2px);
}

.hero{
    min-height:100vh;
    background:
    linear-gradient(rgba(61,43,31,0.70), rgba(61,43,31,0.70)),
    url('../images/hero1.jpg');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    text-align:center;
    padding:100px 20px;
    color:white;
}

.hero-content{
    max-width:850px;
    margin:auto;
}

.hero h1{
    font-family:'Playfair Display',serif;
    font-size:5rem;
    margin-bottom:20px;
    font-weight:700;
}

.hero p{
    font-size:1.15rem;
    line-height:1.8;
    margin-bottom:35px;
    color:#f3f3f3;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn-main{
    background:var(--secondary);
    color:white;
    border:none;
    padding:16px 34px;
    border-radius:50px;
    font-weight:600;
    transition:0.3s;
}

.btn-main:hover{
    background:#b8844c;
    transform:translateY(-3px);
}

.btn-outline-custom{
    border:2px solid white;
    color:white;
    padding:16px 34px;
    border-radius:50px;
    transition:0.3s;
}

.btn-outline-custom:hover{
    background:white;
    color:var(--primary);
}

.benefits{
    padding:90px 0;
}

.benefit-card{
    background:white;
    border-radius:25px;
    padding:40px 30px;
    text-align:center;
    transition:0.3s;
    height:100%;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.benefit-card:hover{
    transform:translateY(-10px);
}

.benefit-icon{
    width:80px;
    height:80px;
    background:var(--accent);
    margin:auto;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    color:var(--primary);
    margin-bottom:25px;
}

.categories{
    padding:110px 0;
    background:white;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

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

.section-title p{
    max-width:700px;
    margin:auto;
    color:#7b6d62;
    line-height:1.8;
}

.categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(380px,1fr));
    gap:30px;
}

.category-card{
    background:white;
    border-radius:32px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(61,43,31,0.08);
    transition:0.35s;
    border:1px solid rgba(139,94,60,0.08);
}

.category-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 60px rgba(61,43,31,0.14);
}

.category-image{
    position:relative;
    height:300px;
    overflow:hidden;
}

.category-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.5s;
}

.category-card:hover .category-image img{
    transform:scale(1.08);
}

.category-overlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        to top,
        rgba(61,43,31,0.7),
        rgba(61,43,31,0.1)
    );
}

.category-content{
    padding:28px;
}

.category-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}

.category-top h3{
    font-size:28px;
    color:var(--dark);
    font-family:'Playfair Display',serif;
    margin:0;
}

.toggle-subcategories{
    width:48px;
    height:48px;
    border:none;
    border-radius:16px;
    background:rgba(139,94,60,0.12);
    color:var(--primary);
    font-size:18px;
    transition:0.3s;
    flex-shrink:0;
}

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

.category-description{
    color:#7c7066;
    line-height:1.8;
    margin-bottom:24px;
}

.subcategory-wrapper{
    display:flex;
    flex-direction:column;
    gap:14px;

    max-height:0;
    overflow:hidden;

    transition:0.45s ease;
}

.category-card.active .subcategory-wrapper{
    max-height:1200px;
    margin-top:10px;
}

.category-card.active .toggle-subcategories i{
    transform:rotate(45deg);
}

.subcategory-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;

    background:#faf6f1;

    border:1px solid rgba(139,94,60,0.08);

    border-radius:22px;

    padding:16px;

    transition:0.3s;
}

.subcategory-link:hover{
    background:#f2e7da;
    transform:translateX(6px);
}

.subcategory-left{
    display:flex;
    align-items:center;
    gap:16px;
}

.subcategory-image{
    width:68px;
    height:68px;
    border-radius:18px;
    overflow:hidden;
    flex-shrink:0;
}

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

.subcategory-left h5{
    margin:0 0 6px;
    color:var(--dark);
    font-size:16px;
    font-weight:600;
}

.subcategory-left span{
    color:#88796e;
    font-size:13px;
    line-height:1.5;
    display:block;
}

.subcategory-link i{
    color:var(--primary);
    font-size:15px;
}

.reviews{
    padding:90px 0;
}

.review-card{
    background:white;
    border-radius:20px;
    padding:35px;
    box-shadow:0 5px 18px rgba(0,0,0,0.05);
    height:100%;
}

.review-stars{
    color:#d4a94f;
    margin-bottom:15px;
}

footer{
    background:var(--dark);
    color:white;
    padding:70px 0 30px;
}

.footer-brand{
    font-family:'Playfair Display',serif;
    font-size:2rem;
    margin-bottom:20px;
}

.footer-links a{
    display:block;
    color:#d9d9d9;
    margin-bottom:12px;
    transition:0.3s;
}

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

.footer-divider{
    width:1px;
    background:rgba(255,255,255,0.2);
}

.developer-link{
    color:var(--secondary);
    font-weight:600;
}

.copyright{
    border-top:1px solid rgba(255,255,255,0.1);
    margin-top:50px;
    padding-top:25px;
    text-align:center;
}

.custom-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);
    backdrop-filter:blur(6px);
    z-index:99999;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:0.3s;

    overflow: hidden !important;
}

.custom-modal-overlay.active{
    opacity:1;
    visibility:visible;
}

.custom-modal{
    width:95%;
    max-width:950px;

    background:#fff;

    border-radius:35px;

    padding:50px;

    position:relative;

    transform:translateY(30px);

    transition:0.4s;

    box-shadow:0 25px 60px rgba(0,0,0,0.25);

    max-height:90vh;
    overflow-y:hidden;
}

.custom-modal-overlay.active .custom-modal{
    transform:translateY(0);
}

.custom-modal-close{
    position:absolute;
    top:25px;
    right:25px;

    width:48px;
    height:48px;

    border:none;
    border-radius:50%;

    background:#F5EFE7;
    color:#8B5E3C;

    font-size:20px;

    transition:0.3s;
}

.custom-modal-close:hover{
    background:#8B5E3C;
    color:white;
}

.custom-modal-header{
    margin-bottom:40px;
}

.custom-modal-header h2{
    font-family:'Playfair Display',serif;
    color:#8B5E3C;
    font-size:3rem;
    margin-bottom:15px;
}

.custom-modal-header p{
    color:#666;
    line-height:1.8;
}

.form-group label{
    display:block;
    margin-bottom:12px;
    color:#8B5E3C;
    font-weight:600;
}

.custom-input{
    border:none;
    background:#F5EFE7;

    border-radius:18px;

    padding:16px 20px;

    min-height:60px;

    color:#3D2B1F;

    box-shadow:none !important;
}

.custom-input:focus{
    background:#efe3d4;
    border:none;
}

.custom-textarea{
    min-height:170px;
    resize:none;
}

.custom-textarea-small{
    min-height:120px;
    resize:none;
}

.custom-submit-btn{
    margin-top:35px;

    width:100%;

    border:none;

    background:#8B5E3C;
    color:white;

    height:65px;

    border-radius:20px;

    font-size:1.05rem;
    font-weight:600;

    transition:0.3s;
}

.custom-submit-btn:hover{
    background:#C79A63;
}

body.modal-open{
    overflow:hidden !important;
}

@media(max-width:768px){

    .custom-modal{
        padding:35px 25px;
    }

    .custom-modal-header h2{
        font-size:2rem;
    }
    .custom-modal-overlay{
        align-items:flex-start;
        overflow-y:auto;
        padding:15px;
    }

    .custom-modal{
        width:100%;
        max-height:none !important;
        margin:20px 0;
        overflow-y:visible;
        border-radius:25px;
    }
}

@media(max-width:991px){

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

    .footer-divider{
        display:none;
    }

}


@media(max-width:992px){

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

}

@media(max-width:768px){

    .categories{
        padding:80px 0;
    }

    .section-title h2{
        font-size:2.4rem;
    }

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

    .category-image{
        height:240px;
    }

}

@media(max-width:480px){

    .category-content{
        padding:22px;
    }

    .subcategory-link{
        padding:14px;
    }

    .subcategory-image{
        width:58px;
        height:58px;
    }
    .custom-modal-overlay{
        overflow: auto !important;
    }

}