:root {
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --primary-gradient: linear-gradient(135deg, #8B4513, #A0522D);
    --secondary-color: #8B7355;
    --success-color: #228B22;
    --warning-color: #DAA520;
    --info-color: #CD853F;
    --danger-color: #B22222;
    --light-bg: #fff;
    --dark-text: #2F1B14;
    --light-text: #8B7355;
    --shadow: 0 5px 15px rgb(139 69 19 / 10%);
    --shadow-hover: 0 10px 25px rgb(139 69 19 / 15%);
    --border-radius: 15px;
}

.hero-section {
    background: url('../images/Hero.jpg');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    transition: .3s ease;
}

#main-content {
    background: #fff;
    padding: 0;
}

#main-content > .container > div {
    margin-bottom: 60px;
}

#main-content > .container > div:last-child {
    margin-bottom: 0;
}

#main-content .section-title {
    margin-bottom: 40px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#main-content > .container > div {
    animation: fadeInUp .6s ease forwards;
}

#main-content > .container > div:nth-child(1) { animation-delay: .1s; }
#main-content > .container > div:nth-child(2) { animation-delay: .2s; }
#main-content > .container > div:nth-child(3) { animation-delay: .3s; }
#main-content > .container > div:nth-child(4) { animation-delay: .4s; }
#main-content > .container > div:nth-child(5) { animation-delay: .5s; }

#featured {
    padding: 40px 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 15px;
    color: var(--secondary-color);
    background: #fff;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#about {
    margin-bottom: 60px;
}

#about h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

#about p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 1.1rem;
}

#about .about-img {
    border-radius: var(--border-radius);
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #fff;
    transition: all .3s ease;
}

#about .about-img:hover {
    transform: scale(1.02);
}

.benefit-card {
    text-align: center;
    padding: 40px 25px 50px;
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: 0 4px 6px rgb(139 69 19 / 10%), 0 1px 3px rgb(139 69 19 / 8%);
    height: 100%;
    transition: all .4s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(.8);
    transform-origin: center;
    transition: all .3s ease;
}

.benefit-card:hover::after {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgb(139 69 19 / 15%), 0 8px 16px rgb(139 69 19 / 10%);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 28px;
    box-shadow: 0 8px 20px rgb(139 69 19 / 20%);
    transition: all .3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgb(139 69 19 / 30%);
}

.contact-info h4 {
    color: var(--dark-text);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-info h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info p {
    color: var(--light-text);
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgb(139 69 19 / 20%);
}

@media (width >= 1200px) {
    .hero-section {
        min-height: 600px;
        background-size: 100% 100%;
        background-position: center center;
    }
}

@media (width <= 1200px) {
    .hero-section {
        min-height: 350px;
        background-size: 100% 100%;
        background-position: center center;
    }
}

@media (width <= 992px) {
    .hero-section {
        min-height: 320px;
        background-size: 100% 100%;
        background-position: center center;
    }
}

@media (width <= 768px) {
    #main-content {
        padding: 20px 0;
    }
    
    #main-content > .container > div {
        margin-bottom: 40px;
    }
    
    .hero-section {
        min-height: 280px;
        background-size: 100% 100%;
        background-position: center center;
    }
    
    .benefit-card {
        padding: 30px 20px 40px;
    }
    
    #featured {
        padding: 30px 0;
    }
}

@media (width <= 576px) {
    #main-content {
        padding: 15px 0;
    }
    
    #main-content > .container > div {
        margin-bottom: 30px;
    }
    
    .hero-section {
        min-height: 250px;
        background-size: 100% 100%;
        background-position: center center;
    }
    
    .benefit-card {
        padding: 25px 15px 35px;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    #featured {
        padding: 20px 0;
    }
    
    #about {
        margin-bottom: 30px;
    }
}

@media (width <= 480px) {
    #main-content {
        padding: 15px 0;
    }
    
    #main-content > .container > div {
        margin-bottom: 25px;
    }
    
    .hero-section {
        min-height: 220px;
        background-size: 100% 100%;
        background-position: center center;
    }
    
    #featured {
        padding: 15px 0;
    }
    
    .benefit-card {
        padding: 20px 15px 30px;
    }
}

@media (width <= 360px) {
    #main-content {
        padding: 10px 0;
    }
    
    #main-content > .container > div {
        margin-bottom: 20px;
    }
    
    .hero-section {
        min-height: 200px;
        background-size: 100% 100%;
        background-position: center center;
    }
    
    #featured {
        padding: 10px 0;
    }
    
    .benefit-card {
        padding: 20px 10px 30px;
    }
}