/* =============================================
   Applied Contracting — Custom Styles
   ============================================= */

:root {
    --navy: #102a43;
    --navy-light: #243b53;
    --gold: #c9a227;
    --gold-light: #e5b830;
    --gold-dark: #a8841e;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* Selection color */
::selection {
    background: var(--gold);
    color: var(--navy);
}

/* =============================================
   Hero Animations
   ============================================= */
.hero-subtitle {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-desc {
    animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    animation: slideUp 0.8s ease-out 0.8s both;
}

.hero-trust {
    animation: slideUp 0.8s ease-out 1s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll line animation */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* =============================================
   Navigation
   ============================================= */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 26, 46, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* =============================================
   Section Labels
   ============================================= */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.section-label:hover::after {
    width: 100%;
}

/* =============================================
   Service Cards
   ============================================= */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* =============================================
   Gallery
   ============================================= */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* =============================================
   Mobile Menu
   ============================================= */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 80%;
}

/* Mobile menu button animation */
#menuToggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active #bar2 {
    opacity: 0;
}

#menuToggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* =============================================
   Scroll Reveal Animations
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   Form Styles
   ============================================= */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1) !important;
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title::after {
        content: ' Your Home Together';
    }
    
    .section-label::after {
        display: none;
    }
}

@media (min-width: 769px) {
    .hero-title br {
        display: block;
    }
    .hero-title::after {
        content: '';
    }
}

/* =============================================
   Utility Animations
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    #navbar,
    #menuToggle,
    .scroll-line {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-950,
    .bg-navy-900,
    .bg-navy-50 {
        background: #fff !important;
        color: #000 !important;
    }
}
