/* ============================================
   Wfafn Medical & Health — Custom Styles
   Clean Minimalist | Deep Navy + Warm Gold
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    color: #0a1628;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ---- Selection ---- */
::selection {
    background-color: #c8a84e;
    color: #040d1a;
}

/* ---- Reveal Animations (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        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);
    }

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

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

/* ---- Navbar Scroll State ---- */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

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

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

::-webkit-scrollbar-thumb {
    background: #c8a84e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10223d;
}

/* ---- Typography Enhancements ---- */
.font-serif {
    line-height: 1.2;
}

/* ---- Service Card Hover ---- */
.group:hover .group-hover\:bg-navy-800 {
    background-color: #0a1628 !important;
}

/* ---- Input Focus Ring ---- */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(200, 168, 78, 0.3);
}

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

/* ---- Mobile Menu Transitions ---- */
#mobile-menu.menu-open {
    opacity: 1;
    pointer-events: all;
}

/* ---- Image Hover Zoom ---- */
.aspect-\[4\/5\] img,
.aspect-square img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ---- Thin Line Decorations ---- */
.h-px {
    background: linear-gradient(to right, transparent, rgba(10, 22, 40, 0.1), transparent);
}

/* ---- Gold Accent Line ---- */
.border-l-gold-400 {
    border-left-color: rgba(200, 168, 78, 0.4);
}

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

/* ---- Loading State for Form ---- */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- Utility: Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
