/* ── Custom CSS for Pulver Family Chiropractic ── */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c9a227;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(10, 25, 47, 0.06);
}

#navbar.scrolled .nav-link {
    color: #0a192f;
}

#navbar.scrolled .mobile-link {
    color: #0a192f;
}

/* Mobile Menu */
.mobile-link {
    transition: color 0.3s ease;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

#menu-toggle.active .menu-line:first-child {
    transform: translateY(5px) rotate(45deg);
}

#menu-toggle.active .menu-line:last-child {
    transform: translateY(-5px) rotate(-45deg);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Staggered reveals for grid items */
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.grid .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Input focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #c9a227 !important;
}

/* Subtle hover lift on service cards */
#services .group:hover {
    transform: translateY(-2px);
}

#services .group {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.4s ease;
}

/* Image hover zoom */
aspect-ratio\:4\/5 .overflow-hidden img,
.grid .overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.aspect-\[4\/5\]\:overflow-hidden:hover img,
.grid:hover .overflow-hidden img {
    transform: scale(1.03);
}

/* Selection color */
::selection {
    background-color: rgba(201, 162, 39, 0.2);
    color: #0a192f;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(10, 25, 47, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 25, 47, 0.3);
}
