/* Neal Douglas Professional Hair Care — Custom Styles */

/* Base resets and custom properties */
:root {
    --burgundy-700: #a11435;
    --burgundy-950: #3d0714;
    --cream-50: #fdfbf7;
    --warm-950: #1a150f;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(161, 20, 53, 0.2);
    color: #3d0714;
}

/* Body background pattern — very subtle */
body {
    background-color: #fdfbf7;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(245, 168, 184, 0.06) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(161, 20, 53, 0.04) 0%, transparent 50%);
}

/* Navbar text color transitions */
.nav-scrolled .nav-logo-text {
    color: #3d0714 !important;
}
.nav-scrolled .nav-logo-sub {
    color: #a11435 !important;
}

/* Hero text shadow for readability */
#hero h1,
#hero p {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Service card icon container */
.service-card > div:first-child {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.service-card:hover > div:first-child {
    transform: scale(1.05);
    background-color: #fce7eb !important;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a11435;
    outline-offset: 2px;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a11435' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .service-card,
    .testimonial-card,
    .btn-primary {
        transition: none !important;
    }

    .service-card:hover,
    .testimonial-card:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #mobile-menu, .reveal {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    #hero {
        min-height: auto !important;
        padding: 2rem !important;
    }

    #hero .hero-overlay {
        background: rgba(255,255,255,0.9) !important;
    }

    section {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card,
    .testimonial-card {
        border: 1px solid ButtonText;
    }
}
