/* TezCare — shared stylesheet
   Custom classes not covered by the Tailwind CDN utility set. */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A1628;
}

/* Hero image gradient used on Services / Why TezCare interior heroes */
.hero-overlay-gradient {
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.35) 0%,
        rgba(15, 23, 42, 0.75) 55%,
        rgba(15, 23, 42, 0.98) 100%
    );
}

/* Abstract topography texture used in place of stock photography */
.topography-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 380c20-10 40-10 60 0s40 10 60 0 40-10 60 0 40 10 60 0 40-10 60 0 40 10 60 0v20H0v-20z' fill='%23EB1922' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.dotted-line {
    background-image: radial-gradient(circle, #EB1922 1.5px, transparent 1.5px);
    background-size: 12px 100%;
    background-repeat: repeat-x;
    background-position: center;
}

/* Cursor-follow ambient glow, injected by js/main.js on pointer-fine devices */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(235, 25, 34, 0.16) 0%, rgba(235, 25, 34, 0) 70%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    will-change: transform;
}

/* Hero/main title 3D rotate-away as the page scrolls past it */
.scroll-rotate-title {
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .cursor-glow {
        display: none;
    }
}

/* Mobile nav menu */
#mobile-menu.hidden {
    display: none;
}

@media (min-width: 768px) {
    #mobile-menu {
        display: flex !important;
    }
}

/* Dotted "How It Works" connector line draw-in */
.draw-path {
    stroke-dashoffset: 1;
    animation: draw-line 1.6s ease-out 0.2s forwards;
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

/* Smart-match modal */
dialog#smart-match-modal {
    color: inherit;
}

dialog#smart-match-modal::backdrop {
    background: rgba(6, 13, 24, 0.75);
    backdrop-filter: blur(4px);
}

dialog#smart-match-modal.modal-open {
    opacity: 1 !important;
}

/* Scanning-state progress ring: 2*pi*45 ≈ 282.74 */
.ring-fill-4-5 {
    stroke-dasharray: 282.74;
    stroke-dashoffset: 282.74;
    animation: ring-fill 4.5s linear forwards;
}

@keyframes ring-fill {
    to {
        stroke-dashoffset: 0;
    }
}

.pulse-heart-1-2 {
    animation: pulse-heart 1.2s ease-in-out infinite;
}

@keyframes pulse-heart {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

/* Exit intent toast */
#exit-intent-toast.toast-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Staff match result cards rendered by js/main.js */
.staff-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.staff-result-card:hover {
    border-color: rgba(235, 25, 34, 0.5);
    background: rgba(235, 25, 34, 0.06);
}
