/* ============================================
   MediNatura — Custom Styles
   Classic & Elegant Medical Website
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(240, 90, 26, 0.15);
    color: #1a1c20;
}

/* ---- Scroll Reveal ---- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ---- Section Labels ---- */
.section-label {
    letter-spacing: 0.2em;
}

/* ---- Hero Animations ---- */
@media (prefers-reduced-motion: no-preference) {
    .hero-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.4;
        animation: orb-float 8s ease-in-out infinite;
    }
    
    .hero-orb-1 {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(240, 90, 26, 0.5), transparent 70%);
        top: -10%;
        right: -5%;
        animation-delay: 0s;
    }
    
    .hero-orb-2 {
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(190, 51, 12, 0.4), transparent 70%);
        bottom: 10%;
        left: -5%;
        animation-delay: -3s;
    }
    
    .hero-orb-3 {
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(255, 173, 122, 0.3), transparent 70%);
        top: 40%;
        right: 20%;
        animation-delay: -5s;
    }
    
    @keyframes orb-float {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(30px, -20px) scale(1.05); }
        66% { transform: translate(-20px, 15px) scale(0.95); }
    }
    
    .hero-badge {
        animation: fadeInDown 0.8s ease forwards;
    }
    
    .hero-headline {
        animation: fadeInUp 0.8s ease 0.2s forwards;
        opacity: 0;
    }
    
    .hero-subtitle {
        animation: fadeInUp 0.8s ease 0.4s forwards;
        opacity: 0;
    }
    
    .hero-cta {
        animation: fadeInUp 0.8s ease 0.6s forwards;
        opacity: 0;
    }
    
    .hero-scroll-indicator {
        animation: fadeInUp 0.8s ease 0.8s forwards;
        opacity: 0;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ---- Service Cards ---- */
.service-card {
    border-radius: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ---- Philosophy Cards ---- */
.philosophy-card {
    transition: transform 0.4s ease;
}

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

/* ---- Testimonial Cards ---- */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ---- Navbar Scrolled State ---- */
.navbar-scrolled {
    background: rgba(13, 14, 17, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-scrolled .nav-logo-text {
    color: #ffffff !important;
}

.navbar-scrolled .nav-link-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f05a1a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Smooth Image Loading ---- */
img {
    background-color: #f6f6f7;
}

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

::-webkit-scrollbar-track {
    background: #f6f6f7;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a5a9b0;
}
