/* 
 * Bdente Clínica - Styles principais
 * Arquivo CSS customizado para a clínica
 */

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis CSS para cores da marca */
:root {
    --bdente-red: #DC2626;
    --bdente-dark-red: #991B1B;
    --bdente-light-red: #FEE2E2;
    --bdente-blue: #1E40AF;
    --bdente-green: #059669;
    --bdente-gray: #6B7280;
    --bdente-dark: #1F2937;
    --bdente-yellow: #FBBF24;
}

/* Tipografia Moderna */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--bdente-dark);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-display {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

/* Espaçamento de parágrafos moderno */
p {
    letter-spacing: 0.01em;
}

/* Animações customizadas modernas */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

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

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

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

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

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

/* Classes de animação */
.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-up {
    animation: slideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-slide-right {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-form {
    animation: float 6s ease-in-out infinite;
}

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

/* Delays para efeitos em cascata */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Background gradiente moderno */
.gradient-bg {
    background: linear-gradient(135deg, var(--bdente-red) 0%, var(--bdente-dark-red) 50%, #7F1D1D 100%);
    position: relative;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Efeito glass moderno (glassmorphism) */
.glass-effect {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Botões modernos com micro-interações */
.btn-primary {
    background: linear-gradient(135deg, var(--bdente-red), var(--bdente-dark-red));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--bdente-dark-red), #7F1D1D);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Botão secundário com bordas */
.btn-secondary {
    border: 2px solid currentColor;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

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

.btn-secondary:hover::before {
    left: 0;
}

/* Tabs */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tab-panel {
    transition: all 0.3s ease;
}

.tab-panel.active {
    animation: fadeInTab 0.5s ease-out;
}

/* Dropdown menu */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cards hover effects modernos */
.card-hover {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.card-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

.card-hover:hover::after {
    opacity: 1;
}

/* Card com efeito de brilho (shimmer) */
.card-shimmer {
    position: relative;
    overflow: hidden;
}

.card-shimmer::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.7s ease;
}

.card-shimmer:hover::before {
    left: 100%;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--bdente-red);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Notificações */
.notification {
    z-index: 9999;
}

.notification-enter {
    transform: translateX(100%);
}

.notification-enter-active {
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}

.notification-exit {
    transform: translateX(0);
}

.notification-exit-active {
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
}

/* FAQ Accordion */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-form {
        animation: none;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Formulário de agendamento */
.agendamento-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.form-field-disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.form-field-loading {
    position: relative;
}

.form-field-loading::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--bdente-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bdente-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bdente-dark-red);
}

/* Estados de foco */
.focus-ring:focus {
    outline: 2px solid var(--bdente-red);
    outline-offset: 2px;
}

/* Utility classes */
.text-bdente-red {
    color: var(--bdente-red);
}

.text-bdente-dark {
    color: var(--bdente-dark);
}

.text-bdente-gray {
    color: var(--bdente-gray);
}

.bg-bdente-red {
    background-color: var(--bdente-red);
}

.bg-bdente-light-red {
    background-color: var(--bdente-light-red);
}

.border-bdente-red {
    border-color: var(--bdente-red);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .gradient-bg {
        background: var(--bdente-red) !important;
    }
}

/* ===================================
   MODERN DESIGN ENHANCEMENTS
   =================================== */

/* Seções com mais espaçamento (breathing room) */
.section-modern {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .section-modern {
        padding: 4rem 0;
    }
}

/* Título com efeito gradiente */
.text-gradient {
    background: linear-gradient(135deg, var(--bdente-red), var(--bdente-dark-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Elemento decorativo com linha */
.decorative-line {
    position: relative;
    display: inline-block;
}

.decorative-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--bdente-red), transparent);
    border-radius: 2px;
}

/* Hover com elevação suave */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
}

/* Ícones com efeito bounce no hover */
.icon-bounce {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-bounce:hover {
    transform: scale(1.15);
}

/* Badge moderno */
.badge-modern {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sombras sutis e modernas */
.shadow-modern {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.shadow-modern-lg {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.08),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-modern-xl {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* Grid assimétrico (inspirado no Rayo) */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.asymmetric-grid > :nth-child(3n+1) {
    grid-row: span 1;
}

.asymmetric-grid > :nth-child(3n+2) {
    grid-row: span 2;
}

/* Texto com espaçamento amplo */
.text-spaced {
    letter-spacing: 0.05em;
}

.text-wide {
    letter-spacing: 0.1em;
}

/* Fade in on scroll (preparação para Intersection Observer) */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero moderno com overlay escuro sutil */
.hero-overlay {
    position: relative;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

.hero-overlay > * {
    position: relative;
    z-index: 2;
}

/* CTA com pulso sutil */
.cta-pulse {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Dividers modernos */
.divider-modern {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.1) 50%,
        transparent
    );
    margin: 4rem 0;
}

/* Input fields modernos */
.input-modern {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.input-modern:focus {
    border-color: var(--bdente-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

/* Responsive spacing utilities */
.section-spacing {
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus visible para acessibilidade */
:focus-visible {
    outline: 2px solid var(--bdente-red);
    outline-offset: 4px;
    border-radius: 4px;
}

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

/* Parallax effect for sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* Floating background shapes */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

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