/* --- CSS VARIABLES & CORE TOKENS --- */
:root {
    /* Brand Palette */
    --brand-primary: #B58F53;     
    --brand-secondary: #4A3223;   
    --brand-dark: #1a1a1a;        
    --brand-light: #F8F9FA;       
    --brand-accent: #D4AF37;      
    --brand-surface: #ffffff;     
    
    /* Functional Colors (Soft Variants) */
    --primary-soft: rgba(181, 143, 83, 0.1);
    --success-soft: rgba(40, 167, 69, 0.1);
    --info-soft: rgba(23, 162, 184, 0.1);
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-lg: 1.25rem;
    --radius-pill: 50px;
    
    /* Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Bootstrap Overrides - Fixes the "Blue" UI/UX bug */
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 181, 143, 83;
    --bs-link-color: var(--brand-primary);
    --bs-link-hover-color: var(--brand-secondary);
}

/* --- BOOTSTRAP COMPONENT OVERRIDES --- */
.btn-primary {
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: var(--brand-secondary);
    --bs-btn-hover-border-color: var(--brand-secondary);
    --bs-btn-active-bg: var(--brand-secondary);
    --bs-btn-active-border-color: var(--brand-secondary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    border-radius: var(--radius-pill);
    font-weight: 600;
}

/* --- ACCORDION BRANDING OVERRIDES --- */
.accordion-button:not(.collapsed) {
    color: var(--brand-primary) !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(181, 143, 83, 0.2);
}

.accordion-button::after {
    filter: grayscale(1) brightness(0.5);
}

.accordion-button:not(.collapsed)::after {
    filter: sepia(1) saturate(5) hue-rotate(10deg);
}

/* --- BASE STYLES --- */
body { 
    font-family: 'Open Sans', sans-serif; 
    color: #333;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--brand-surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

/* --- UTILITIES --- */
.bg-primary { background-color: var(--brand-primary) !important; }
.bg-secondary { background-color: var(--brand-secondary) !important; }
.bg-surface-light { background-color: var(--brand-light) !important; }
.text-primary { color: var(--brand-primary) !important; }
.text-secondary { color: var(--brand-secondary) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* Typography Utilities */
.ls-2 { letter-spacing: 0.15em; }
.ls-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.15em; }

/* Special Layout Utilities */
.backdrop-blur { 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}
.mt-n5 { margin-top: -3.5rem !important; }

/* Soft Background Utilities */
.bg-primary-soft { background-color: var(--primary-soft) !important; }
.bg-success-soft { background-color: var(--success-soft) !important; }
.bg-info-soft { background-color: var(--info-soft) !important; }

/* Icon and Shape Utilities */
.icon-shape { 
    width: 70px; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition-smooth);
}

/* --- INTERACTIVE & HOVERS --- */
.hover-lift { 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.hover-lift:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important; 
}

.transform-hover {
    transition: var(--transition-smooth);
}
.transform-hover:hover {
    transform: translateY(-3px) scale(1.02);
}

/* --- NAVIGATION --- */
.navbar {
    padding: 15px 0;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}
@media (min-width: 992px) {
    .navbar { padding: 20px 0; }
    .navbar.scrolled { 
        padding: 10px 0; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    }
}

/* --- HERO & BACKGROUNDS --- */
.hero {
    position: relative;
    color: white;
}
.bg-gradient-to-b {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.9) 100%);
}
.object-fit-cover {
    object-fit: cover;
}

/* --- CATEGORY CARDS --- */
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.category-card .img-container {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
}
.category-card:hover img { transform: scale(1.1); }
.category-card .opacity-0 {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.category-card:hover .opacity-0 {
    opacity: 1 !important;
    transform: translateY(0);
}

/* --- WORKFLOW / PROCESS --- */
.step-circle { 
    width: 45px; 
    height: 45px; 
    background: var(--brand-primary); 
    color: white; 
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
    position: relative; 
    z-index: 2; 
}
@media (min-width: 768px) {
    .process-step { position: relative; }
    .process-step:not(:last-child)::after { 
        content: ''; 
        position: absolute; 
        top: 22px; 
        left: 50%; 
        width: 100%; 
        height: 2px; 
        background: rgba(0,0,0,0.05); 
        z-index: 0; 
    }
}

/* --- BUTTONS & CTA --- */
.btn-brand-primary { 
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white; 
    border: none; 
    padding: 14px 35px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white { 
    background: white; 
    color: var(--brand-primary); 
    border: 2px solid white; 
}
.btn-white:hover { 
    background: var(--brand-light); 
    color: var(--brand-secondary);
}

.cta-card { 
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%); 
    position: relative; 
    overflow: hidden; 
}

/* --- STATS SECTION --- */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(0,0,0,0.1);
    }
}

/* --- FOOTER DESIGN --- */
.footer {
    background-color: var(--brand-dark);
    padding: 80px 0 40px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.footer-logo:hover {
    color: #ffffff;
}

.footer h6 {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.footer .list-unstyled li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer .list-unstyled li a:hover {
    color: var(--brand-primary);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

.footer hr {
    margin: 50px 0 30px;
}