/* =========================================================
   WorldCareHealths — typography, motion & signature elements
   ========================================================= */

:root {
    --wch-bg: #EEF2F6;
    --wch-card: #F8FAFC;
    --wch-ink: #0B192C;
    --wch-cta: #0284C7;
    --wch-verified: #059669;
    --wch-text: #111827;
    --wch-muted: #64748B;
    --wch-border: #CBD5E1;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--wch-bg);
    color: var(--wch-text);
    font-family: 'Inter', sans-serif;
}

.font-display {
    font-family: 'Libre Caslon Text', serif;
}

.font-mono {
    font-family: 'IBM Plex Mono', monospace;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Header ---------- */
#siteHeader {
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.wch-header-scrolled {
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.35);
}

/* ---------- Mobile menu ---------- */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#mobileMenu.wch-open {
    max-height: 480px;
}

/* ---------- Scroll reveal ---------- */
.wch-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wch-reveal.wch-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Back to top ---------- */
#backToTop {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.wch-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ---------- Toast ---------- */
@keyframes wchToastIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wch-toast-in {
    animation: wchToastIn 0.35s ease;
}

/* ---------- Signature: EKG pulse divider ---------- */
.wch-pulse-divider {
    position: relative;
    width: 100%;
    height: 44px;
    overflow: hidden;
}

.wch-pulse-divider svg {
    width: 200%;
    height: 100%;
    animation: wchPulseScroll 14s linear infinite;
}

@keyframes wchPulseScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wch-pulse-divider svg {
        animation: none;
    }
}

/* ---------- Verified seal pulse ---------- */
.wch-seal-ring {
    animation: wchSealPulse 2.6s ease-in-out infinite;
}

@keyframes wchSealPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.28);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(5, 150, 105, 0);
    }
}

/* ---------- Cards ---------- */
.wch-card {
    background-color: var(--wch-card);
    border: 1px solid var(--wch-border);
}

.wch-focus:focus-visible {
    outline: 2px solid var(--wch-cta);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Coordinate ping map ---------- */
.wch-ping {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #38BDF8;
}

.wch-ping::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #38BDF8;
    animation: wchPingGrow 2.4s ease-out infinite;
}

@keyframes wchPingGrow {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(3.4);
        opacity: 0;
    }
}

/* ---------- Range slider (fee filter) ---------- */
input[type="range"].wch-range {
    -webkit-appearance: none;
    height: 4px;
    border-radius: 999px;
    background: var(--wch-border);
}

input[type="range"].wch-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--wch-cta);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}


/* Hide Scrollbar */
html,
body {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Offset for fixed header (h-[76px]) — interior pages */
body {
    padding-top: 56px;
}

html {
    scroll-padding-top: 56px;
}