/* Custom styles for Grandview Salt Brothers */

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

/* Base font settings */
body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display font */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Scroll reveal base - content is always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal active state - applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar glass effect */
nav.glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(107, 58, 93, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #A05A7A;
}

/* Form select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b3a5d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Hero gradient overlay for image */
.hero-img-overlay {
    position: relative;
}

.hero-img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 21, 34, 0.3) 0%, transparent 40%);
    border-radius: 1.5rem;
}

/* Subtle pattern for sections */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(107, 58, 93, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(232, 165, 32, 0.3);
}

/* Selection color */
::selection {
    background: #D4A0BA;
    color: #2A1522;
}
