/* ===== Custom Styles for Traditions Health Home Health ===== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #064e3b 0%, #059669 35%, #10b981 60%, #34d399 80%, #6ee7b7 100%);
    position: relative;
}

/* Hero decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #a7f3d0;
    top: -100px;
    right: -100px;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #34d399;
    bottom: -50px;
    left: -50px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #6ee7b7;
    top: 40%;
    left: 60%;
    animation: blobFloat 6s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    animation: scrollBounce 2s ease-in-out infinite;
    color: white;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== Badge Styles ===== */
.badge-emerald {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.badge-light {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Primary Button ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857, #065f46);
}

/* ===== Hero Buttons ===== */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== CTA Button ===== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== Navbar ===== */
.nav-fixed {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}

.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0fdf4;
}

/* ===== Service Cards ===== */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #f0fdf4;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.06);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.12);
    border-color: #a7f3d0;
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    transform: scale(1.05);
}

/* ===== Feature Cards ===== */
.feature-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.feature-icon-light {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6ee7b7;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #f0fdf4;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.12);
}

/* ===== Reveal Animations ===== */
/* Default: content is visible (no JS required) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS adds the hidden state, content transitions in */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Prefers-reduced-motion: disable animations entirely */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-blob {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-blob {
        opacity: 0.2;
    }
    
    .blob-1 {
        width: 300px;
        height: 300px;
    }
    
    .blob-2 {
        width: 200px;
        height: 200px;
    }
    
    .blob-3 {
        width: 150px;
        height: 150px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-fixed {
        height: 64px;
    }
    
    .hero-gradient {
        min-height: calc(100vh - 64px);
    }
}
