/* ========================================
   Grant Houses Re — Custom Styles
   ======================================== */

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

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

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08);
}

#navbar.scrolled .nav-link {
    color: #5B2C6F;
}

#navbar.scrolled .nav-link:hover {
    color: #D97706;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

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

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

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

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

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

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

/* Selection color */
::selection {
    background-color: #D4A017;
    color: #1A0E20;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D97706;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Service card hover image */
.group:hover .group-hover\:bg-amber-100 {
    background-color: #FEF3C7;
}

/* Subtle gradient on CTA section */
.bg-gradient-to-r.from-amber-500.via-amber-400.to-amber-500 {
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 50%, #D97706 100%);
}

/* Ensure hero text is readable */
#hero h1,
#hero p,
#hero a {
    position: relative;
    z-index: 10;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
