/* Custom CSS - Cabelo e Saúde - Professional Medical Design */

/* ==========================================================================
   HEADER MINIMALISTA - Stanley's Hair Inspired (ESTÁTICO, NÃO FIXED)
   ========================================================================== */

/* Header estático com fundo preto sólido */
#main-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 50;
}

/* Faixa de oferta abaixo do header */
#offer-banner {
    position: relative;
    z-index: 40;
}

/* Stats grid no hero */
.stats-grid {
    animation: fadeInUp 1.2s ease 0.6s both;
}

/* Hero section - garante que stats apareçam */
#inicio {
    overflow: visible !important;
}

#inicio > * {
    overflow: visible !important;
}

/* ==========================================================================
   OFFER BANNER - Faixa de Oferta Destaque
   ========================================================================== */

#offer-banner {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Professional Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    line-height: 1.7;
    color: #4a5568;
}

/* Smooth Animations - Professional */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Professional Shadows */
.shadow-professional {
    box-shadow: 0 4px 20px rgba(15, 73, 64, 0.08);
}

.shadow-professional-lg {
    box-shadow: 0 12px 40px rgba(15, 73, 64, 0.12);
}

.shadow-professional-xl {
    box-shadow: 0 20px 60px rgba(15, 73, 64, 0.15);
}

/* Glassmorphism - Medical Grade */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hover Effects - Subtle & Professional */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 73, 64, 0.12);
}

.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Professional Button Styles */
.btn-primary-gradient {
    background: linear-gradient(135deg, #b8e986 0%, #2a9d8f 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.btn-primary-gradient:hover {
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

/* Professional Icon Backgrounds */
.icon-professional {
    background: linear-gradient(135deg, rgba(15, 73, 64, 0.1) 0%, rgba(26, 107, 94, 0.05) 100%);
    transition: all 0.3s ease;
}

.icon-professional:hover {
    background: linear-gradient(135deg, rgba(15, 73, 64, 0.15) 0%, rgba(26, 107, 94, 0.1) 100%);
    transform: scale(1.1);
}

/* Card Styles - Medical Professional */
.card-professional {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-professional:hover {
    border-color: #cbd5e0;
    box-shadow: 0 12px 40px rgba(15, 73, 64, 0.1);
    transform: translateY(-4px);
}

.card-professional-highlight {
    border-left: 4px solid #b8e986;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

/* Pricing Cards - Professional */
.pricing-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8e986 0%, #2a9d8f 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    border-color: #b8e986;
    box-shadow: 0 20px 50px rgba(46, 204, 113, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.pricing-card-featured {
    background: linear-gradient(135deg, #1e7c70 0%, #2a9d8f 100%);
    border: none;
    transform: scale(1.05);
    position: relative;
}

.pricing-card-featured::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #b8e986, #2a9d8f, #b8e986, #2a9d8f);
    border-radius: inherit;
    z-index: -1;
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    opacity: 0.6;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Badge Styles - Professional */
.badge-professional {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    color: #166534;
}

.badge-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* Section Dividers - Elegant */
.section-divider {
    position: relative;
    padding-top: 2rem;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b8e986, transparent);
    border-radius: 2px;
}

/* Stats Counter */
.stat-item {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e7c70 0%, #b8e986 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* WhatsApp Button - Professional Pulse */
@keyframes professionalPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: professionalPulse 2.5s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
}

/* Smooth transitions */
a, button, input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar - Professional */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f7fafc;
    border-left: 1px solid #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e7c70 0%, #2a9d8f 100%);
    border-radius: 6px;
    border: 2px solid #f7fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #165c54 0%, #1e7c70 100%);
}

/* Focus States - Accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #b8e986;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
}

/* Loading State */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

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

/* Text Selection */
::selection {
    background-color: #b8e986;
    color: white;
}

::-moz-selection {
    background-color: #b8e986;
    color: white;
}

/* Prevent text selection on interactive elements */
button, .no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Print styles */
@media print {
    header.fixed, footer, .whatsapp-float, .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}

/* Responsive refinements */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .pricing-card-featured {
        transform: scale(1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-professional {
        border-width: 2px;
    }

    button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
