/* ========================================
   Day Powers Care — Custom Styles
   Classic & Elegant | Teal + Slate
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Selection color */
::selection {
    background: #0f766e;
    color: #f0fdfa;
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement: content is
   visible by default, JS adds animation
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ========================================
   Navbar transitions
   ======================================== */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #1e293b;
}

#navbar.scrolled .nav-link {
    color: #475569;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488;
}

#navbar.scrolled #nav-logo-icon {
    color: #0f766e;
}

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

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

/* ========================================
   Button hover effects
   ======================================== */
button, a {
    transition: all 0.3s ease;
}

/* ========================================
   Focus styles for accessibility
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
    }

    #hero .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    #hero .relative.min-h-\[50vh\] {
        min-height: 40vh;
        max-height: 50vh;
    }

    #hero .px-8.sm\:px-12.lg\:px-16.xl\:px-20 {
        padding: 3rem 1.5rem;
    }
}

/* ========================================
   Print styles
   ======================================== */
@media print {
    #navbar,
    #contact-form,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
