/* Custom styles for Montana Drywall */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #6bbf8f;
    color: #102a43;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Hero animations */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-image-container {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobile-menu {
    pointer-events: none;
}

#mobile-menu.active {
    pointer-events: all;
}

/* Service cards */
.service-card {
    transition: background-color 0.5s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 67, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(16, 42, 67, 0.1);
}

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

.section-label::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 1px;
    background-color: #6bbf8f;
}

/* Form styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #42a869 !important;
}

input::placeholder,
textarea::placeholder {
    color: #d9e2ec;
}

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

/* Print styles */
@media print {
    nav,
    #contact-form,
    .gallery-item {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-label::before {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #42a869;
    outline-offset: 2px;
}

/* Subtle hover effects */
a {
    transition: color 0.3s ease;
}

button {
    transition: all 0.3s ease;
}
