/* Custom styles for Rustburg Village Dental */

:root {
    --color-emerald-50: #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-200: #a7f3d0;
    --color-emerald-300: #6ee7b7;
    --color-emerald-400: #34d399;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    --color-emerald-700: #047857;
    --color-emerald-800: #065f46;
    --color-emerald-900: #064e3b;
    --color-emerald-950: #022c22;
    --color-cream-50: #fffef8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--color-cream-50);
    color: var(--color-emerald-950);
}

.font-display {
    font-family: 'DM Serif Display', Georgia, serif;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 254, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.1);
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(8px) rotate(-1deg); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-reverse 5s ease-in-out infinite;
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(24px);
}

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

/* Service card hover */
.group:hover .group-hover\:bg-emerald-500 {
    background-color: var(--color-emerald-500);
}

.group:hover .group-hover\:bg-amber-400 {
    background-color: var(--color-amber-400);
}

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

::-webkit-scrollbar-track {
    background: var(--color-cream-50);
}

::-webkit-scrollbar-thumb {
    background: var(--color-emerald-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-emerald-500);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Testimonial card hover */
.bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Geometric accent shapes */
.geo-accent {
    position: absolute;
    pointer-events: none;
}

.geo-accent.circle {
    border-radius: 50%;
}

.geo-accent.square {
    border-radius: 1rem;
}

/* Selection color */
::selection {
    background-color: var(--color-emerald-200);
    color: var(--color-emerald-950);
}
