/*
Theme Name: Le Fort
Theme URI: https://lefort.com.br
Author: Le Fort
Author URI: https://lefort.com.br
Description: Tema personalizado para a Clínica Le Fort
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lefort
Tags: clinic, medical, health, custom
*/

/* Estilos customizados do tema Le Fort */
/* Sistema de Cores:
   - Azul: #142236 (lefort-blue)
   - Dourado: #C6B079 (lefort-gold)
   - Cinza Claro: #F5F5F5 (lefort-gray-light)
   - Texto: #1A1A1A (lefort-text)
*/

/* Fonte Inter para títulos - moderna e profissional */
h1, h2, h3, h4, h5, h6,
.font-cinzel {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Estilos para conteúdo do editor (prose) */
.prose {
    max-width: none;
}

.prose a {
    color: #142236;
    text-decoration: underline;
}

.prose a:hover {
    color: #C6B079;
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #1A1A1A;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose blockquote {
    border-left: 4px solid #C6B079;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #1A1A1A;
    background-color: #F5F5F5;
    padding: 1rem;
    border-radius: 0.25rem;
}

/* Navegação de posts */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #F5F5F5;
}

.post-navigation a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #F5F5F5;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #142236;
    transition: background-color 0.2s;
}

.post-navigation a:hover {
    background-color: #C6B079;
    color: #142236;
}

/* Header transparente e fixo */
.site-header {
    background: rgba(20, 34, 54, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease;
}

.site-header:hover {
    background: rgba(20, 34, 54, 0.2);
}

/* Links do menu */
.main-navigation a {
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.3s;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-navigation a:hover {
    color: #C6B079;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Menu responsivo */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Front Page - Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Front Page - Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Ajuste do título hero no mobile */
@media (max-width: 640px) {
    .hero-section {
        min-height: 100vh !important;
        height: 100vh !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-section .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-section .max-w-3xl {
        width: 100% !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.25rem !important;
    }
    
    .hero-section .mb-8 {
        margin-bottom: 0.25rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.25rem !important;
        padding: 0 0.5rem;
        text-align: center !important;
    }
    
    .hero-section p.text-xl,
    .hero-section p.text-lg {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }
    
    .hero-section .flex.flex-col {
        gap: 0.5rem !important;
        margin-top: 0.25rem !important;
        width: 100% !important;
        align-items: center !important;
    }
    
    .hero-section a {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 280px !important;
    }
}

.hero-section .absolute.inset-0 img {
    object-position: center;
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

.hero-section:hover .absolute.inset-0 img {
    transform: scale(1);
}

/* Front Page - Animações suaves */
section {
    scroll-margin-top: 80px;
}

/* Front Page - Cards de especialidades hover */
.bg-white.rounded-lg.shadow-sm:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Front Page - Ícones animados */
[data-lucide] {
    transition: transform 0.3s ease;
}

.bg-lefort-blue\/10:hover [data-lucide] {
    transform: scale(1.1);
}

/* Animações modernas - AOS customizações */
[data-aos] {
    pointer-events: auto;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Cards com efeito de profundidade */
.bg-white.rounded-lg.shadow-sm {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-white.rounded-lg.shadow-sm:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Efeito de brilho nos ícones */
.bg-lefort-blue\/10 {
    transition: all 0.3s ease;
}

.bg-lefort-blue\/10:hover {
    background-color: rgba(20, 34, 54, 0.2);
    transform: scale(1.1);
}

/* Animação de entrada suave para fotos */
.aspect-square {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aspect-square:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Efeito de gradiente animado no CTA */
#agendar {
    position: relative;
    overflow: hidden;
}

#agendar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(198, 176, 121, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

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

/* Melhorias de performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Animação discreta da seta para baixo */
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.scroll-indicator {
    animation: bounce-subtle 2s ease-in-out infinite;
}

/* Lightbox de Fotos */

#lightbox {
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#lightbox.hidden {
    display: none;
}

#lightbox.flex {
    display: flex;
}

#lightbox-img {
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.foto-item {
    position: relative;
    overflow: hidden;
}

.foto-item img {
    transition: transform 0.5s ease;
}

.foto-item:hover img {
    transform: scale(1.05);
}

.foto-item::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.foto-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile - Stories style */
@media (max-width: 768px) {
    /* Garantir que body não tenha scroll quando lightbox aberto */
    body:has(#lightbox.flex) {
        overflow: hidden !important;
    }
    
    #lightbox {
        touch-action: pan-y;
        background: #000;
        padding: 0 !important;
        margin: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
    }
    
    #lightbox .lightbox-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    #lightbox-container {
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        position: absolute !important;
        top: env(safe-area-inset-top) !important;
        left: 0 !important;
        height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    }
    
    #lightbox-img {
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        object-fit: cover !important;
        object-position: center;
        border-radius: 0 !important;
        will-change: transform, opacity;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        /* Ajustar para safe area */
        height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        top: env(safe-area-inset-top) !important;
    }
    
    #lightbox button {
        background: rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        padding: 10px;
        backdrop-filter: blur(8px);
    }
    
    /* Botão de fechar no topo - considerar safe area */
    #lightbox button[aria-label="Fechar"] {
        top: calc(16px + env(safe-area-inset-top));
        right: calc(16px + env(safe-area-inset-right));
    }
    
    #progress-bars {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
        padding-top: max(12px, env(safe-area-inset-top));
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
        padding-bottom: 8px;
    }
    
    #progress-bars > div {
        height: 2px;
    }
    
    #lightbox-container {
        transition: opacity 0.2s ease;
    }
    
    #lightbox-contact-btn {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
        white-space: nowrap;
        min-width: 200px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right));
    }
    
    #lightbox-contact-btn:active {
        transform: translateX(-50%) scale(0.95);
    }
    
    .foto-item::before {
        display: none;
    }
}

/* Botão de Contato Flutuante (página principal) */
#floating-contact-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
    z-index: 40;
}

#floating-contact-btn:hover {
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.6);
}

#floating-contact-btn i {
    width: 20px;
    height: 20px;
}

/* Responsivo do botão flutuante */
@media (max-width: 640px) {
    #floating-contact-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }
}

@media (min-width: 641px) {
    #floating-contact-btn {
        bottom: 24px;
        right: 24px;
        padding: 14px 20px;
    }
}

/* Botão de Contato no Lightbox */
#lightbox-contact-btn {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

#lightbox-contact-btn i {
    width: 20px;
    height: 20px;
}

/* Desktop - Lightbox melhorado */
@media (min-width: 769px) {
    #lightbox {
        background: rgba(0, 0, 0, 0.95);
    }
    
    #progress-bars {
        display: none !important;
    }
    
    #lightbox-img {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
}

/* Textura halftone (pontos) no hero */
.texture-pattern {
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.3) 1.5px, transparent 1.5px);
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
    pointer-events: none;
    mix-blend-mode: multiply;
}

