/* ========================================
   Hydrate Medical Ln — Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #e8a0b4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c23452;
}

/* Selection */
::selection {
    background: #fce7eb;
    color: #6f2032;
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible by default,
   animations only apply when JS runs and user prefers motion.
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-item {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-item.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delays handled via JS */
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(194, 52, 82, 0.08);
}

/* ========================================
   Buttons & Links
   ======================================== */
a {
    text-decoration: none;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #f4a8b8;
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Image Loading
   ======================================== */
img {
    background-color: #fce7eb;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, footer, #contact-form button, .reveal-item {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
