/* O & M Construction — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4603c;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c44b2c;
}

/* Selection color */
::selection {
    background: #d4603c;
    color: #fff;
}

/* Service card hover - handled by Tailwind group */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(212, 96, 60, 0.1);
}

/* Geometric decorative shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    .gallery-item img {
        transition: none;
    }
}

/* Custom tailwind color classes for sand palette */
.bg-sand-50 { background-color: #faf8f5; }
.bg-sand-100 { background-color: #f5f0e8; }
.bg-sand-200 { background-color: #ebe0cc; }
.bg-sand-300 { background-color: #dfc9a8; }
.bg-sand-400 { background-color: #cfb07a; }
.bg-sand-500 { background-color: #bf9654; }
.bg-sand-600 { background-color: #a67a42; }
.bg-sand-700 { background-color: #855e34; }
.bg-sand-800 { background-color: #6d4b2d; }
.bg-sand-900 { background-color: #5a3e27; }
.bg-sand-950 { background-color: #302014; }

.text-sand-50 { color: #faf8f5; }
.text-sand-100 { color: #f5f0e8; }
.text-sand-200 { color: #ebe0cc; }
.text-sand-300 { color: #dfc9a8; }
.text-sand-400 { color: #cfb07a; }
.text-sand-500 { color: #bf9654; }
.text-sand-600 { color: #a67a42; }
.text-sand-700 { color: #855e34; }
.text-sand-800 { color: #6d4b2d; }
.text-sand-900 { color: #5a3e27; }
.text-sand-950 { color: #302014; }

.border-sand-50 { border-color: #faf8f5; }
.border-sand-100 { border-color: #f5f0e8; }
.border-sand-200 { border-color: #ebe0cc; }
.border-sand-300 { border-color: #dfc9a8; }
.border-sand-400 { border-color: #cfb07a; }
.border-sand-500 { border-color: #bf9654; }
.border-sand-600 { border-color: #a67a42; }
.border-sand-700 { border-color: #855e34; }
.border-sand-800 { border-color: #6d4b2d; }
.border-sand-900 { border-color: #5a3e27; }
.border-sand-950 { border-color: #302014; }

/* Hero underline animation */
@keyframes underline-draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
