/* Custom styles — overrides and enhancements beyond Tailwind */

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

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom selection color */
::selection {
    background-color: #d49a42;
    color: #102a43;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

/* Hero decorative gradient */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(212, 154, 66, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Service card hover lift */
#services .group:hover {
    transform: translateY(-2px);
}

#services .group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .group:hover {
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.3);
}

/* About section accent image border */
#about img {
    transition: transform 0.6s ease;
}

#about:hover img {
    transform: scale(1.02);
}

/* CTA gold section subtle pattern */
.bg-gold-500 {
    background-image: linear-gradient(135deg, #d49a42 0%, #c47f2f 100%);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base — visible by default (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    #about img {
        transition: none;
    }
}

/* Mobile menu button active state */
#menu-btn:active {
    transform: scale(0.95);
}

/* Subtle card shadow on light sections */
#services .group {
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.04);
}

/* Input placeholder styling */
::placeholder {
    color: #bcccdc;
}

/* 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;
}
