/* ============================================
   Santarsiero Internal Medicine — Custom Styles
   ============================================ */

/* ── Base / Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(249, 115, 22, 0.15);
    color: inherit;
}

/* ── Nav ── */
.nav-text {
    color: #373a42;
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #ea550c;
}

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-headline {
    animation: slideUp 0.8s 0.15s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtext {
    animation: slideUp 0.8s 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-ctas {
    animation: slideUp 0.8s 0.45s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

/* ── Service Cards ── */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card:hover .w-10 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ── Form ── */
input:focus,
textarea:focus {
    border-color: #f97316 !important;
}

input::placeholder,
textarea::placeholder {
    color: #c7c8cc;
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── 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;
    }

    .reveal[data-revealed="false"] {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
