/* ===========================================
   AMO+ Saude - Main Styles
   =========================================== */

html {
    scroll-behavior: smooth;
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 112, 65, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 112, 65, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 112, 65, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===========================================
   GRADIENTS
   =========================================== */
.gradient-primary {
    background: linear-gradient(135deg, #007041 0%, #00945a 50%, #007041 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #6C1D6E 0%, #8B2B8E 50%, #6C1D6E 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 50%, #f0f7f4 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #007041, #00945a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn-primary {
    background: linear-gradient(135deg, #007041 0%, #00945a 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 112, 65, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-purple {
    background: linear-gradient(135deg, #6C1D6E 0%, #8B2B8E 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-purple:hover::before {
    left: 100%;
}

.btn-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 29, 110, 0.4);
}

.btn-outline {
    border: 2px solid #007041;
    color: #007041;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #007041;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover {
    color: white;
}

/* ===========================================
   CARDS
   =========================================== */
.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 112, 65, 0.08);
}

.card-shadow:hover {
    box-shadow: 0 20px 50px rgba(0, 112, 65, 0.15);
    transform: translateY(-8px);
    border-color: rgba(0, 112, 65, 0.2);
}

.plan-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.plan-card.green::before {
    background: linear-gradient(135deg, #007041, #00945a);
}

.plan-card.purple::before {
    background: linear-gradient(135deg, #6C1D6E, #8B2B8E);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* ===========================================
   SERVICE ICONS
   =========================================== */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 112, 65, 0.2);
    transition: all 0.4s ease;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 112, 65, 0.25);
}

.service-icon:hover::after {
    border-color: rgba(0, 112, 65, 0.5);
    transform: rotate(-10deg);
}

.icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   HERO
   =========================================== */
.hero-image {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 112, 65, 0.2);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid rgba(0, 112, 65, 0.15);
    z-index: -1;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(108, 29, 110, 0.15);
    z-index: -2;
    animation: spin 30s linear infinite;
}

/* ===========================================
   DECORATIVE ELEMENTS
   =========================================== */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.decoration-dots {
    background-image: radial-gradient(#007041 2px, transparent 2px);
    background-size: 20px 20px;
}

/* ===========================================
   WHATSAPP FLOAT
   =========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    animation: pulse-ring 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

.cta-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 1000;
}

/* ===========================================
   NAVIGATION
   =========================================== */
.nav-link {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007041;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: #007041;
}

.nav-link.active {
    background-color: #007041;
    color: white;
    border-color: #007041;
}

.nav-link.active::after {
    display: none;
}

/* ===========================================
   HEADER
   =========================================== */
.header-blur {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #007041, #00945a);
    border-radius: 2px;
}

/* ===========================================
   STATS
   =========================================== */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 112, 65, 0.1);
}

/* ===========================================
   BENEFITS
   =========================================== */
.benefit-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #007041, #00945a);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    background: linear-gradient(135deg, #007041 0%, #005a34 50%, #003d24 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

/* ===========================================
   TESTIMONIAL
   =========================================== */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: rgba(0, 112, 65, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===========================================
   GLASSMORPHISM
   =========================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===========================================
   SCROLL INDICATOR
   =========================================== */
.scroll-indicator {
    animation: bounce 2s infinite;
}

/* ===========================================
   LOADING SPINNER
   =========================================== */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 112, 65, 0.1);
    border-radius: 50%;
    border-top-color: #007041;
    animation: spin 1s linear infinite;
}

/* ===========================================
   ALERTS
   =========================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #dc3545;
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    color: #0c5460;
}

/* Auto-dismiss animation */
.alert-dismissing {
    animation: fadeOutUp 0.5s ease-out forwards;
}

@keyframes fadeOutUp {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===========================================
   LOADING OVERLAY
   =========================================== */
.loading-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

/* ===========================================
   FORM INPUTS
   =========================================== */
.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #007041;
    box-shadow: 0 0 0 3px rgba(0, 112, 65, 0.1);
}

.input-field.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-field.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}
