/* ============================================
   Rhett's Construction Consulting Firm
   Custom Styles & Animations
   ============================================ */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Hero section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 50%, #fffbeb 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 42, 67, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Navbar scroll effect */
.nav-scrolled {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-scrolled.scrolled {
    box-shadow: 0 4px 20px rgba(16, 42, 67, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

/* Mobile menu */
.mobile-link {
    transition: all 0.2s ease;
}

/* Button hover effects */
a {
    transition: all 0.2s ease;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #334e68;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.2);
    color: #102a43;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.15;
    }
    
    .hero {
        padding-top: 1rem;
    }
    
    section[id] {
        scroll-margin-top: 70px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .nav-scrolled,
    .hero::before {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
