/* Custom styles for Hijamah Heals LLC */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom selection color */
::selection {
    background-color: #d4502e;
    color: #fdfbf7;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #d4502e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c13d22;
}

/* Hero animations - only for below-fold content, hero is visible immediately */
#hero #heroEyebrow,
#hero #heroTitle,
#hero #heroSub,
#hero #heroCTAs {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#hero #heroEyebrow {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

#hero #heroTitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

#hero #heroSub {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

#hero #heroCTAs {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations - progressive enhancement, content visible without JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        animation: revealUp 0.7s ease forwards;
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(-100%);
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .font-display {
    color: #25120f !important;
}

.navbar-scrolled .mobile-link {
    color: #462721 !important;
}

.navbar-scrolled a:not(.mobile-link):not([href^="tel:"]) {
    color: #6c3b2c !important;
}

.navbar-scrolled a:not(.mobile-link):not([href^="tel:"]):hover {
    color: #d4502e !important;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 80, 46, 0.15);
}

/* Image hover zoom */
.group:hover img {
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

/* Smooth image transitions */
img {
    transition: transform 0.4s ease;
}
