/* ========================================
   Prunedale Chiropractic — Custom Styles
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(31, 168, 116, 0.15);
    color: #0f2a42;
}

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

.hero-title {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

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

.hero-cta-primary,
.hero-cta-secondary {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-float-card {
    animation: floatIn 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
    transform: translateX(-30px);
}

.hero-image-wrapper {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

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

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Service Cards --- */
.service-card {
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    border-color: rgba(114, 217, 176, 0.4);
    box-shadow: 0 8px 40px rgba(114, 217, 176, 0.08);
}

.service-card-title {
    transition: color 0.3s ease;
}

/* --- Approach Steps --- */
.approach-step {
    transition: background-color 0.5s ease;
}

/* --- Form Inputs --- */
.form-input {
    border-radius: 0;
}

.form-input::placeholder {
    color: #406898;
}

.form-input:focus {
    border-color: #72d9b0;
    box-shadow: 0 0 0 1px #72d9b0;
}

/* --- Navbar --- */
.nav-logo {
    transition: color 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #708eb2;
}

/* --- Mobile Menu --- */
.mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu-link {
    transition: color 0.3s ease;
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #72d9b0;
    outline-offset: 2px;
}

/* --- Smooth Image Loading --- */
img {
    display: block;
}

/* --- Print Styles --- */
@media print {
    nav, .hero-float-card, #contact-form {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
