/* =========================================
   Dr. Bartholomew Hott — Custom Styles
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf0f3;
}
::-webkit-scrollbar-thumb {
    background: #f9c4cf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f497a8;
}

/* Selection */
::selection {
    background: #f9c4cf;
    color: #6b001a;
}

/* Nav link underline on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #800020;
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}
.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu active state */
.mobile-nav-link.active {
    background: #fdf0f3;
    color: #800020;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #800020, #f497a8);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::before {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 80px;
    font-family: 'Lora', serif;
    color: #fce4e9;
    line-height: 1;
    pointer-events: none;
}

/* Decorative dots pattern */
.dot-pattern {
    background-image: radial-gradient(circle, #f9c4cf 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Reduced motion — always show content */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Pulse animation for status badge */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}
.animate-pulse {
    animation: soft-pulse 2.5s ease-in-out infinite;
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.float-animation {
    animation: float 4s ease-in-out infinite;
}
.float-animation-delay {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Image hover zoom */
img.hover-zoom {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
img.hover-zoom:hover {
    transform: scale(1.03);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #800020, #f497a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
