/* ============================================
   Delta Health Services — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(232, 106, 91, 0.3);
    color: #f6f6f6;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transform: translateY(0);
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    transform: translateY(0);
    opacity: 1;
}

.testimonial-card:hover {
    border-color: rgba(232, 106, 91, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form-container input:focus,
.contact-form-container select:focus,
.contact-form-container textarea:focus {
    outline: none;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 1;
}

/* ============================================
   Back to Top
   ============================================ */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

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

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #2C2C2C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f4f4f;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-images {
        margin-top: 2rem;
    }
    
    .about-image-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content h2 {
        font-size: 2.25rem;
    }
}

/* ============================================
   Focus Visible (Accessibility)
   ============================================ */
*:focus-visible {
    outline: 2px solid #E86A5B;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #backToTop,
    #mobileMenu {
        display: none !important;
    }
    
    body {
        background: white;
        color: #1a1a1a;
    }
    
    section {
        page-break-inside: avoid;
    }
}
