/* La Smile Denter Supply — Custom Styles */

/* Base reset and utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0a0a0a;
    color: #fdf9f0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fdf9f0;
}

/* Smooth focus outlines */
:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Typography scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

/* Gold gradient text utility */
.gold-gradient {
    background: linear-gradient(135deg, #d4a853 0%, #f0d078 50%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Emerald glow effect */
.emerald-glow {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15), 0 0 80px rgba(16, 185, 129, 0.08);
}

/* Pattern overlay for backgrounds */
.pattern-overlay {
    background-image: radial-gradient(rgba(212, 168, 83, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Card hover lift effect */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.1);
}

/* Gold border effect */
.gold-border {
    border: 1px solid rgba(212, 168, 83, 0.2);
    transition: border-color 0.3s ease;
}
.gold-border:hover {
    border-color: rgba(212, 168, 83, 0.5);
}

/* Emerald gradient line */
.emerald-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float-delayed 5s ease-in-out infinite; }
.float-3 { animation: float 4.5s ease-in-out infinite; }

/* Pulse animation for CTAs */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(212, 168, 83, 0); }
}
.pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }

/* Scroll reveal (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.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; }

/* Only apply hidden state when JS is available and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Mobile menu overlay */
.mobile-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .font-display {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    .no-print {
        display: none;
    }
}
