/* ============================================
   Craft Pharmacy & Clinic — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #1B4D3E;
    color: #F7F5F0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F7F5F0;
}
::-webkit-scrollbar-thumb {
    background: #1B4D3E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #143A2F;
}

/* ============================================
   Hero Animations (above the fold — always visible)
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-headline {
    animation: heroFadeIn 0.8s 0.15s ease forwards;
}

.hero-subtitle {
    animation: heroFadeIn 0.8s 0.3s ease forwards;
}

.hero-ctas {
    animation: heroFadeIn 0.8s 0.45s ease forwards;
}

.hero-stats {
    animation: heroFadeIn 0.8s 0.6s ease forwards;
}

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

/* ============================================
   Scroll Reveal (below the fold only)
   Gated behind prefers-reduced-motion
   ============================================ */
@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);
    }
}

/* Fallback: always visible if JS disabled */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(247, 245, 240, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 77, 62, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 1;
}

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

/* ============================================
   Images
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Form
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 1023px) {
    #hero {
        padding-top: 6rem;
    }
    
    #hero .lg\:absolute {
        position: relative;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
