/* ============================================
   RENEW FAMILY DENTAL — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Selection --- */
::selection {
    background-color: #7B2D3B;
    color: #fff;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: #7B2D3B;
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* --- Navbar --- */
#navbar {
    background: rgba(250, 247, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
    background: rgba(250, 247, 245, 0.97);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* --- Mobile Menu --- */
#mobile-menu {
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.15);
}

.mobile-menu-link {
    position: relative;
}

/* --- Hero --- */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-image-composition {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Buttons --- */
button, [type="submit"] {
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* --- Form Inputs --- */
input, textarea {
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #6B6560;
    opacity: 0.4;
}

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

::-webkit-scrollbar-track {
    background: #FAF7F5;
}

::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5e212c;
}

/* --- Print --- */
@media print {
    #navbar, #mobile-menu, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #7B2D3B;
    }
}
