/* Custom styles to complement Tailwind */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, #fdfdf8 0%, #f5f3e1 100%);
    border-right: 1px solid rgba(214, 211, 209, 0.5);
    z-index: 50;
    overflow-y: auto;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #57534e;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    background-color: rgba(20, 97, 52, 0.08);
    color: #146134;
}

.nav-link.active {
    background-color: rgba(20, 97, 52, 0.12);
    color: #146134;
}

.nav-link .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
}

.nav-link.active .dot {
    background-color: #146134;
    box-shadow: 0 0 0 3px rgba(20, 97, 52, 0.2);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #146134 0%, #1f7a44 100%);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 97, 52, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 97, 52, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: white;
    color: #146134;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid #e7e5e4;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #146134;
    background: rgba(20, 97, 52, 0.05);
    transform: translateY(-2px);
}

/* Section Spacing */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

/* Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f3e1;
}

::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 60;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e7e5e4;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: #146134;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #fdfdf8 0%, #f5f3e1 100%);
    z-index: 60;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    space-y: 8px;
}

.mobile-nav li {
    margin-bottom: 8px;
}

.mobile-nav a {
    display: block;
    padding: 16px 20px;
    color: #57534e;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(20, 97, 52, 0.12);
    color: #146134;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .sidebar-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-overlay {
        display: block;
        pointer-events: none;
    }
    
    .mobile-nav-overlay.active {
        pointer-events: all;
    }
    
    .mobile-nav {
        display: block;
    }
    
    main {
        padding-top: 0;
    }
}

/* Animation Delays for Staggered Effects */
.animate-fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* Print Styles */
@media print {
    .sidebar-nav,
    .mobile-menu-btn,
    .mobile-nav {
        display: none !important;
    }
    
    main {
        padding: 0 !important;
    }
    
    .section {
        padding: 2rem 0 !important;
        page-break-inside: avoid;
    }
}
