/* Custom styles for Grandpa & Grandma Primary Home Care */

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

/* Navigation transitions */
.nav-link {
    color: rgba(130, 25, 55, 0.8);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #821937;
}

.nav-text-white {
    color: #3b0713;
    transition: color 0.3s ease;
}

.nav-text-muted {
    color: #9c1c40;
    transition: color 0.3s ease;
}

/* Navbar scrolled state */
nav.scrolled {
    background: rgba(255, 248, 240, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(130, 25, 55, 0.08);
}

nav.scrolled .nav-link {
    color: rgba(130, 25, 55, 0.7);
}

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

nav.scrolled .nav-text-white {
    color: #3b0713;
}

nav.scrolled .nav-text-muted {
    color: #9c1c40;
}

nav.scrolled .menu-line {
    background: #821937 !important;
}

/* Mobile menu */
.mobile-link {
    font-family: 'Playfair Display', serif;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #d43f6c;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Menu animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.4rem;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Button hover glow */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(130, 25, 55, 0.1);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Geometric decorative shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9c1c40;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #3b0713;
}
</style>
