/* ===== Custom Styles for FHV Health – Brownwood ===== */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #0a1f3f;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: always visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animated state — only applied via JS when element enters viewport */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden initial state for animated elements (applied by JS) */
.reveal.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Staggered delays for grid items */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal.is-hidden {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Navbar Transition States ===== */
#navbar.scrolled {
    background-color: rgba(10, 31, 63, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Button Hover Effects ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Image Loading ===== */
img {
    -webkit-font-smoothing: antialiased;
}

/* ===== Form Focus States ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #b3c1df;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8da2cf;
}

/* ===== Mobile Menu Transitions ===== */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Service Card Hover ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Gold Accent Line Animation ===== */
@keyframes fadeInLine {
    from { width: 0; opacity: 0; }
    to { width: 3rem; opacity: 1; }
}

/* ===== Smooth Section Transitions ===== */
section {
    position: relative;
}

/* ===== Testimonial Quote Styling ===== */
.italic {
    font-style: italic;
}

/* ===== Print Styles ===== */
@media print {
    #navbar, #mobile-menu, .reveal.is-hidden {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
