/* ===========================
   CUSTOM STYLES - DR. JOÃO MARCOS
   =========================== */

/* Scroll Behavior */
* {
    scroll-behavior: smooth;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* ===========================
   ANIMATIONS
   =========================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.visible {
    animation-play-state: running;
}

/* ===========================
   HEADER
   =========================== */

.header-sticky {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================
   GRADIENTS
   =========================== */

.gradient-bg {
    background: linear-gradient(135deg, #0d5c30 0%, #73b54a 50%, #7dae91 100%);
}

/* ===========================
   CARDS
   =========================== */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===========================
   BEFORE/AFTER SLIDER
   =========================== */

.before-after-slider {
    position: relative;
    overflow: hidden;
}

.before-after-slider img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-handle {
    position: absolute;
    width: 4px;
    height: 100%;
    background: white;
    left: 50%;
    top: 0;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-handle::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===========================
   WHATSAPP BUTTON
   =========================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* ===========================
   RATINGS
   =========================== */

.stars {
    color: #fbbf24;
}

/* ===========================
   LOADING BUTTON
   =========================== */

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}
