/* ========================================
   Happy Smile Dental — Custom Styles
   Burgundy + Blush Editorial Design
   ======================================== */

/* --- Base Reset & Smooth Scroll --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* --- Hero Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    100% {
        opacity: 0;
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 1.8s ease-in-out infinite;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Navbar Scroll State --- */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(124, 58, 93, 0.08);
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Custom Selection --- */
::selection {
    background: rgba(194, 39, 72, 0.15);
    color: #70172e;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c22748;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .reveal[data-reveal="hidden"] {
        opacity: 1;
        transform: none;
    }
    
    .reveal {
        transition: none;
    }
    
    .animate-scroll-line {
        animation: none;
        opacity: 0.6;
    }
    
    img:hover,
    .object-cover:hover {
        transform: none;
    }
}

/* --- Print Styles --- */
@media print {
    header, footer, .reveal[data-reveal="hidden"], #menu-toggle {
        display: none !important;
    }
    
    body {
        color: #1e1616;
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}
