/* Custom styles for Nick Kessler Construction */

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

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(253, 252, 248, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link {
    color: #2f502f !important;
}

.navbar-scrolled .nav-logo-text {
    color: #1a2e1a !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #4a7c4a !important;
}

.navbar-scrolled .menu-line {
    background-color: #1a2e1a !important;
}

.navbar-scrolled #nav-logo-icon {
    stroke: #2f502f !important;
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-btn-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb88f;
}

/* Selection color */
::selection {
    background-color: #dce8dc;
    color: #1a2e1a;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e8f0e8 0%, #dce8dc 100%);
}

/* Subtle hover effects for cards */
.group:hover .group-hover\:scale-105 {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gold accent button shine effect */
.bg-gold-400 {
    position: relative;
    overflow: hidden;
}

.bg-gold-400::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.bg-gold-400:hover::after {
    left: 100%;
}

/* Testimonial quote marks */
blockquote::before {
    content: '\201C';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: #dce8dc;
    position: absolute;
    top: -0.2em;
    left: 0.5em;
}
