/* Custom Styles for Tmp Contracting */

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

/* Navbar transitions */
.nav-text {
    color: #1a2744;
    transition: color 0.3s ease;
}

.nav-color {
    color: #1a2744;
    transition: color 0.3s ease;
}

.nav-link {
    color: #1a2744;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Scrolled navbar state */
.navbar-scrolled .nav-text {
    color: #1a2744;
}

.navbar-scrolled .nav-link {
    color: #1a2744;
}

.navbar-scrolled .nav-color {
    color: #1a2744;
}

/* Hero section navbar state */
.navbar-hero .nav-text {
    color: #ffffff;
}

.navbar-hero .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-hero .nav-link:hover {
    color: #c9a84c;
}

.navbar-hero .nav-color {
    color: #ffffff;
}

/* Mobile menu */
.mobile-link {
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
    padding-bottom: 0.75rem;
}

.mobile-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Service card hover */
.service-card {
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery items */
.gallery-item {
    overflow: hidden;
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* Gold accent line */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #c9a84c;
}

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

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

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

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

/* Selection color */
::selection {
    background: #c9a84c;
    color: #1a2744;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-scrolled header,
    .navbar-hero header {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* Print styles */
@media print {
    header, footer, .gallery-item, #contactForm {
        display: none;
    }
}
