/* ===== Custom Styles for Dr. Shinners Website ===== */

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

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-reveal-state="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 68, 19, 0.08);
}

.navbar-scrolled .nav-link {
    color: #1a4213 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #2a6d1f !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-link {
    opacity: 1;
}

/* ===== Hero Section ===== */
#hero {
    position: relative;
}

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1a5428;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #b9dfaa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8bc778;
}

/* ===== Selection Color ===== */
::selection {
    background: #dcefd6;
    color: #1a4213;
}

/* ===== Service Card Hover ===== */
.group:hover .group-hover\:-translate-y-1 {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Form Input Focus ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 84, 40, 0.1);
}

/* ===== Testimonial Card ===== */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #contact-form, #form-success, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
