/*
Theme Name: AD Clínica - Hello Elementor Child
Theme URI: https://adclinica.com.br
Description: Tema filho personalizado para AD Clínica Odontológica - Migrado do Lovable
Author: AD Clínica
Author URI: https://adclinica.com.br
Template: hello-elementor
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: adclinica
*/

/* ==========================================================================
   AD Clínica - CSS Customizado
   Replica o design system do projeto Lovable original
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIÁVEIS CSS (equivalente ao Tailwind config)
   -------------------------------------------------------------------------- */
:root {
    /* Cores principais */
    --ad-primary: #3b4456;
    --ad-secondary: #d4a574;
    --ad-text: #1a1a2e;
    --ad-text-light: #6b7280;
    --ad-background: #ffffff;
    --ad-background-alt: #f8f9fa;

    /* Cores de estado */
    --ad-gold: #d4a574;
    --ad-gold-light: #e8d4b8;
    --ad-gold-dark: #b8956a;

    /* Fontes */
    --ad-font-display: 'Playfair Display', serif;
    --ad-font-sans: 'Inter', sans-serif;

    /* Sombras */
    --ad-shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07),
                      0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --ad-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                      0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ad-shadow-gold: 0 4px 14px 0 rgba(212, 165, 116, 0.39);

    /* Transições */
    --ad-transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. TIPOGRAFIA GLOBAL
   -------------------------------------------------------------------------- */
body {
    font-family: var(--ad-font-sans);
    color: var(--ad-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: var(--ad-font-display);
    color: var(--ad-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION
   -------------------------------------------------------------------------- */
.ad-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.ad-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(59, 68, 86, 0.7) 0%,
        rgba(59, 68, 86, 0.5) 50%,
        rgba(59, 68, 86, 0.8) 100%
    );
    z-index: 1;
}

.ad-hero-section > .elementor-container {
    position: relative;
    z-index: 2;
}

/* Texto com highlight dourado */
.ad-highlight {
    color: var(--ad-secondary);
    position: relative;
}

.ad-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ad-secondary);
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   4. BOTÕES CUSTOMIZADOS
   -------------------------------------------------------------------------- */
.ad-btn-primary,
.elementor-button.ad-btn-primary {
    background-color: var(--ad-secondary) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    font-family: var(--ad-font-sans) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    transition: var(--ad-transition) !important;
    box-shadow: var(--ad-shadow-gold) !important;
}

.ad-btn-primary:hover,
.elementor-button.ad-btn-primary:hover {
    background-color: var(--ad-gold-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 rgba(212, 165, 116, 0.5) !important;
}

.ad-btn-secondary,
.elementor-button.ad-btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    padding: 14px 30px !important;
    border-radius: 8px !important;
    font-family: var(--ad-font-sans) !important;
    font-weight: 600 !important;
    transition: var(--ad-transition) !important;
}

.ad-btn-secondary:hover,
.elementor-button.ad-btn-secondary:hover {
    background-color: #ffffff !important;
    color: var(--ad-primary) !important;
}

/* --------------------------------------------------------------------------
   5. CARDS DE SERVIÇOS
   -------------------------------------------------------------------------- */
.ad-service-card {
    background: var(--ad-background);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: var(--ad-transition);
    box-shadow: var(--ad-shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ad-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ad-shadow-card);
}

.ad-service-card .service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--ad-secondary), var(--ad-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-service-card .service-icon svg,
.ad-service-card .service-icon i {
    color: #ffffff;
    font-size: 28px;
}

/* --------------------------------------------------------------------------
   6. SEÇÃO SOBRE
   -------------------------------------------------------------------------- */
.ad-about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ad-shadow-card);
}

.ad-about-image img {
    transition: var(--ad-transition);
}

.ad-about-image:hover img {
    transform: scale(1.02);
}

.ad-feature-list {
    list-style: none;
    padding: 0;
}

.ad-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}

.ad-feature-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--ad-secondary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. DEPOIMENTOS
   -------------------------------------------------------------------------- */
.ad-testimonial-card {
    background: var(--ad-background);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--ad-shadow-soft);
    text-align: center;
}

.ad-testimonial-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--ad-secondary);
}

.ad-testimonial-card .stars {
    color: var(--ad-secondary);
    margin-bottom: 16px;
}

.ad-testimonial-card .quote {
    font-style: italic;
    color: var(--ad-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.ad-testimonial-card .author {
    font-weight: 600;
    color: var(--ad-primary);
}

/* --------------------------------------------------------------------------
   8. SEÇÃO CONTATO
   -------------------------------------------------------------------------- */
.ad-contact-card {
    background: var(--ad-background);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--ad-shadow-soft);
    transition: var(--ad-transition);
}

.ad-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ad-shadow-card);
}

.ad-contact-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--ad-primary), #4a5568);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-contact-card .icon i {
    color: #ffffff;
    font-size: 24px;
}

.ad-contact-card a {
    color: var(--ad-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--ad-transition);
}

.ad-contact-card a:hover {
    color: var(--ad-gold-dark);
}

/* Botão WhatsApp especial */
.ad-whatsapp-btn,
.elementor-button.ad-whatsapp-btn {
    background: #25D366 !important;
    color: #ffffff !important;
}

.ad-whatsapp-btn:hover,
.elementor-button.ad-whatsapp-btn:hover {
    background: #128C7E !important;
}

/* --------------------------------------------------------------------------
   9. HEADER
   -------------------------------------------------------------------------- */
.ad-header {
    background: transparent;
    transition: var(--ad-transition);
}

.ad-header.sticky,
.ad-header.elementor-sticky--effects {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--ad-shadow-soft);
}

.ad-header .logo img {
    max-height: 60px;
    width: auto;
}

.ad-header .elementor-nav-menu a {
    font-family: var(--ad-font-sans);
    font-weight: 500;
    color: var(--ad-primary);
    transition: var(--ad-transition);
}

.ad-header .elementor-nav-menu a:hover {
    color: var(--ad-secondary);
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.ad-footer {
    background: var(--ad-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
}

.ad-footer .logo img {
    max-height: 50px;
    margin-bottom: 16px;
}

.ad-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.ad-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   11. ANIMAÇÕES
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Shimmer effect para loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ad-shimmer {
    background: linear-gradient(
        90deg,
        var(--ad-background-alt) 25%,
        #e5e7eb 50%,
        var(--ad-background-alt) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVIDADE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ad-hero-section {
        min-height: 80vh;
    }

    h1.elementor-heading-title {
        font-size: 36px !important;
    }
}

@media (max-width: 767px) {
    .ad-hero-section {
        min-height: 90vh;
        text-align: center;
    }

    h1.elementor-heading-title {
        font-size: 28px !important;
    }

    .ad-btn-primary,
    .ad-btn-secondary,
    .elementor-button.ad-btn-primary,
    .elementor-button.ad-btn-secondary {
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .ad-service-card,
    .ad-testimonial-card,
    .ad-contact-card {
        padding: 24px;
    }
}

/* --------------------------------------------------------------------------
   13. UTILITÁRIOS
   -------------------------------------------------------------------------- */
.text-gradient {
    background: linear-gradient(135deg, var(--ad-primary), var(--ad-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--ad-secondary), var(--ad-gold-light));
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 48px 0;
    }
}

/* --------------------------------------------------------------------------
   14. ELEMENTOR OVERRIDES
   -------------------------------------------------------------------------- */

/* Resetar cores padrão do Elementor */
.elementor-widget-heading .elementor-heading-title {
    color: var(--ad-primary);
}

.elementor-widget-text-editor {
    color: var(--ad-text);
}

/* Garantir que icons usem a cor correta */
.elementor-icon {
    color: var(--ad-secondary);
}

/* Gallery lightbox */
.elementor-lightbox .elementor-slideshow__header {
    background: var(--ad-primary);
}
