/* Custom styles — overrides and additions beyond Tailwind */

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

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f170f;
}
::-webkit-scrollbar-thumb {
    background: #2a4329;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #365635;
}

/* Selection color */
::selection {
    background: #c9952a;
    color: #0f170f;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9952a;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a2e1a 0%, #0f170f 100%);
}

/* Subtle gradient border effect for cards on hover */
.treatment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201,149,42,0.3), transparent, rgba(201,149,42,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.treatment-card:hover::before {
    opacity: 1;
}

.treatment-card {
    position: relative;
}

/* Gold shimmer animation for hero text */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-gold-shimmer {
    background: linear-gradient(90deg, #c9952a 0%, #e8c97a 50%, #c9952a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Parallax-like subtle float for hero images */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-float-1 { animation: float 6s ease-in-out infinite; }
.hero-float-2 { animation: float 6s ease-in-out infinite 1s; }
.hero-float-3 { animation: float 6s ease-in-out infinite 2s; }

@media (prefers-reduced-motion: no-preference) {
    .hero-float-1, .hero-float-2, .hero-float-3 { animation: float 6s ease-in-out infinite; }
    .hero-float-2 { animation-delay: 1s; }
    .hero-float-3 { animation-delay: 2s; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-float-1, .hero-float-2, .hero-float-3 { animation: none; }
}
