/* Trihealth Oncology & Hematology Infusion Center — Custom Styles */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Base typography */
body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure serif headings render well */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 600;
}

/* Navbar transition */
#navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Mobile menu button animation */
.mobile-menu-btn.active #bar1 {
    transform: translateY(5px) rotate(45deg);
}
.mobile-menu-btn.active #bar2 {
    opacity: 0;
}
.mobile-menu-btn.active #bar3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* Pill badge */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Decorative divider */
.divider-ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.divider-ornament::before,
.divider-ornament::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #d44068, transparent);
}
.divider-ornament svg {
    color: #d44068;
    flex-shrink: 0;
}

/* Service card hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(104, 25, 60, 0.12);
}
.service-card:hover .service-icon {
    background: #681930;
    color: #fff;
}
.service-icon {
    transition: background 0.3s ease, color 0.3s ease;
}

/* Primary CTA button */
.btn-primary {
    background: #681930;
    color: #fff;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    background: #7c1a34;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(104, 25, 60, 0.3);
    color: #fff;
}

/* Secondary CTA button */
.btn-secondary {
    border: 2px solid #681930;
    color: #681930;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
    background: #681930;
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
    max-height: 400px;
}

/* Scroll-triggered animations (below fold only) */
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .btn-primary,
    .btn-secondary {
        transition: none;
    }
}

/* Form styling */
input, textarea, select {
    font-family: 'Lato', sans-serif;
    font-size: 0.9375rem;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #d44068;
    box-shadow: 0 0 0 3px rgba(212, 64, 104, 0.15);
}

/* Remove default link underline on custom links */
a.no-underline {
    text-decoration: none;
}

/* Print styles */
@media print {
    nav, .mobile-menu-btn, #contactForm, #formSuccess {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero-image-col img {
        display: none;
    }
}

/* Utility: ensure all interactive elements have visible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d44068;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle animation for hero image */
@keyframes subtleZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
.hero-image-col img {
    animation: subtleZoom 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .hero-image-col img {
        animation: none;
    }
}
