/* General Styles (from style.css) */
:root {
    --primary-color: #BB6B52;
    --secondary-color: #a05d49;
    --background-color: #F5F5DC;
    --text-color: #333;
    --white-color: #fff;
    --dark-grey: #555;
    --light-grey: #f4f4f4;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #F4F1E7;
}

html {
    scroll-behavior: smooth;
}

/* ========== HERO SECTION ========== */
.page-hero {
    background-image: linear-gradient(rgba(187, 107, 82, 0.75), rgba(187, 107, 82, 0.75)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    margin-top: 80px;
    text-align: center;
}
.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #f5f5dc;
    animation: fadeInDown 1s ease-out forwards;
}
.page-hero .breadcrumb {
    font-size: 16px;
    color: #f5f5dc;
    margin-top: 10px;
    animation: fadeInUp 1s 0.3s ease-out forwards;
    opacity: 0;
}
.page-hero .breadcrumb a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.page-hero .breadcrumb span {
    margin: 0 10px;
}

/* ========== INTERACTIVE HUB SECTION ========== */
.hub-section {
    padding: 80px 5%;
    background-color: #F4F1E7;
    background: url('https://www.transparenttextures.com/patterns/subtle-white-feathers.png');
}

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    min-height: 650px;
    overflow: hidden;
}

/* Left Navigation Menu */
.hub-nav {
    flex: 0 0 320px;
    padding: 20px;
    border-right: 1px solid #e9ecef;
    position: relative;
    display: flex;
    flex-direction: column;
}
.hub-nav-slider {
    position: absolute;
    top: 20px;
    left: 10px;
    width: calc(100% - 20px);
    background-color: rgba(187, 107, 82, 0.1);
    border-radius: 12px;
    transition: top 0.4s cubic-bezier(0.23, 1, 0.32, 1), height 0.4s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    box-shadow: 0 0 15px rgba(187, 107, 82, 0.2);
}
.hub-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    margin-bottom: 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.hub-nav-item:hover {
    background-color: #f8f9fa;
}
.hub-nav-item.active {
    color: #BB6B52;
}
.hub-nav-item i {
    font-size: 20px;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}
.hub-nav-item.active i {
    transform: scale(1.2) rotate(-5deg);
}

/* Right Content Display */
.hub-content {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}
.hub-content-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.hub-content-item.active {
    opacity: 1;
    visibility: visible;
}

.content-image {
    flex: 0 0 45%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), clip-path 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1.1) translateX(-20px);
}
.hub-content-item.active .content-image {
    transform: scale(1) translateX(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.content-text {
    flex: 1;
    padding: 50px 50px 50px 20px;
    overflow-y: auto;
}
.content-text h2, .content-text p, .content-text h4, .sub-category-grid {
    opacity: 0;
    transform: translateY(25px);
    animation-fill-mode: forwards;
}
.hub-content-item.active h2 { animation: slideUpFade 0.6s 0.2s forwards; }
.hub-content-item.active p { animation: slideUpFade 0.6s 0.3s forwards; }
.hub-content-item.active h4 { animation: slideUpFade 0.6s 0.4s forwards; }
.hub-content-item.active .sub-category-grid { animation: slideUpFade 0.6s 0.5s forwards; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #BB6B52;
    margin-bottom: 15px;
    line-height: 1.3;
}
.content-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
}
.content-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 3px solid #BB6B52;
    padding-left: 10px;
}

/* Visual Grid for Sub-categories */
.sub-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.sub-category-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sub-category-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.sub-category-card .card-icon {
    font-size: 24px;
    color: #BB6B52;
    margin-bottom: 10px;
    transition: transform 0.5s ease-in-out;
}
.sub-category-card:hover .card-icon {
    transform: rotate(360deg);
}
.sub-category-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.sub-category-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    opacity: 1;
    transform: none;
    animation: none;
}

/* ========== DETAILED SERVICES SECTIONS ========== */
.detailed-services {
    padding: 80px 5%;
    background-color: #fff;
}
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 2.5rem;
    color: #333;
}
.service-detail-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}
.service-detail-item:last-of-type {
    margin-bottom: 0;
}
.service-detail-image, .service-detail-text {
    flex: 1;
}
.service-detail-item.image-right .service-detail-image {
    order: 2;
}
.service-detail-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-detail-item:hover .service-detail-image img {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.service-detail-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #BB6B52;
}
.service-detail-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}
.service-detail-text ul {
    list-style: none;
    padding: 0;
}
.service-detail-text ul li {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.service-detail-text ul li i {
    color: #BB6B52;
    margin-right: 12px;
    font-size: 20px;
}

.service-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 14px 32px;
    background-image: linear-gradient(45deg, var(--primary-color) 0%, #d48a74 100%);
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(187, 107, 82, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-detail-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(187, 107, 82, 0.4);
}

.service-detail-btn .btn-icon {
    transition: transform 0.3s ease;
}

.service-detail-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Additional Services */
.additional-services {
    margin-top: 100px;
}
.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.additional-service-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.additional-service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}
.additional-service-card i {
    font-size: 36px;
    color: #BB6B52;
    margin-bottom: 15px;
}
.additional-service-card h4 {
    font-size: 18px;
    font-weight: 600;
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hub-container {
        flex-direction: column;
    }
    .hub-nav {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    .hub-content-item {
        flex-direction: column;
    }
    .content-image {
        flex: 0 0 250px;
        clip-path: none !important;
    }
    .content-text {
        padding: 40px;
    }
    .service-detail-item {
        flex-direction: column;
        gap: 30px;
    }
    .service-detail-item.image-right .service-detail-image {
        order: -1;
    }
}

@media (max-width: 612px) {
    .page-hero {
        margin-top: 40px;
        margin-bottom: -20px;
    }
    .hub-nav {
        padding: 10px;
        flex-direction: row;
        justify-content: space-around;
    }
    .hub-nav-item {
        padding: 15px;
        font-size: 14px;
        margin-bottom: 0;
    }
    .hub-nav-item span {
        display: none;
    }
    .hub-nav-item i {
        margin-right: 0;
    }
    .hub-nav-slider {
        width: 60px; /* Adjust width for icon-only buttons */
        height: 100%;
        top: 0;
        left: 0; /* Reset left position */
        transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .content-text {
        padding: 30px;
    }
    .sub-category-grid {
        grid-template-columns: 1fr;
    }
}