/*
Theme Name: Clínica Dr Niéphore Niépce
Description: Tema WordPress completo para clínica odontológica - Design idêntico ao Lovable
Version: 2.0
Author: Clínica Dr Niéphore Niépce
Text Domain: clinica
*/

/* CSS Variables - Color Palette Idêntica ao Lovable */
:root {
    /* Core Colors */
    --primary: 186 56% 44%; /* #16C7C7 - Turquesa principal */
    --primary-foreground: 0 0% 100%;
    --secondary: 185 72% 32%; /* #0E8D96 - Azul escuro */
    --secondary-foreground: 0 0% 100%;
    --muted: 210 40% 98%; /* #F3F7F9 - Background claro */
    --muted-foreground: 215 20% 65%;
    --accent: 186 56% 44%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 62% 52%;
    --destructive-foreground: 0 0% 100%;
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 186 56% 44%;
    --background: 0 0% 100%;
    --foreground: 222 84% 5%;
    --card: 0 0% 100%;
    --card-foreground: 222 84% 5%;
    --popover: 0 0% 100%;
    --popover-foreground: 222 84% 5%;
    
    /* Gradientes Lovable */
    --gradient-primary: linear-gradient(135deg, hsl(186 56% 44%) 0%, hsl(185 72% 32%) 100%);
    --gradient-turquoise: linear-gradient(135deg, hsl(186 56% 44% / 0.1) 0%, hsl(185 72% 32% / 0.05) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(210 40% 98%) 0%, hsl(185 7% 93%) 100%);
    
    /* Shadows */
    --shadow-card: 0 4px 6px -1px hsl(var(--secondary) / 0.1);
    --shadow-hover: 0 10px 15px -3px hsl(var(--secondary) / 0.1);
    
    /* WhatsApp Green */
    --whatsapp: 142 70% 49%; /* #25D366 */
    --whatsapp-hover: 142 70% 44%;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Header Styles - Idêntico ao Lovable */
.site-header {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0;
    text-align: center;
    font-size: 0.75rem;
    position: relative;
    z-index: 40;
}

@media (min-width: 768px) {
    .site-header {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }
}

.main-navigation {
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background-color: hsl(var(--background) / 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.site-logo h1 {
    font-size: 1.25rem;
    color: hsl(var(--primary));
    margin: 0;
    font-weight: 700;
}

.site-logo .tagline {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: hsl(var(--foreground));
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: hsl(var(--primary));
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: hsl(var(--primary));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Hero Section - Idêntico ao Lovable */
.hero-section {
    background: var(--gradient-hero);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid hsl(var(--primary) / 0.2);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-hover);
}

.hero-image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-card);
}

/* Button Styles - Idêntico ao Lovable */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    line-height: 1.5;
    min-height: 44px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
}

.btn-secondary:hover {
    background-color: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: hsl(var(--whatsapp));
    color: white;
    border: 1px solid transparent;
}

.btn-whatsapp:hover {
    background-color: hsl(var(--whatsapp-hover));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Card Styles - Idêntico ao Lovable */
.card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.card-gradient {
    background: var(--gradient-turquoise);
    border: 1px solid hsl(var(--primary) / 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: hsl(var(--card-foreground));
    font-family: 'Playfair Display', serif;
}

.card-content {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

/* Section Styles - Idêntico ao Lovable */
.section {
    padding: 4rem 0;
    position: relative;
}

.section-alt {
    background: var(--gradient-turquoise);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    border: 1px solid hsl(var(--primary) / 0.2);
}

/* Grid Layouts - Idêntico ao Lovable */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}

/* Footer Styles - Idêntico ao Lovable */
.site-footer {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.footer-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-tagline {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    opacity: 0.75;
}

/* Animations - Idêntico ao Lovable */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.team-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid hsl(var(--primary) / 0.2);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.team-role {
    color: hsl(var(--primary));
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: hsl(var(--primary));
}

.service-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
    font-family: 'Playfair Display', serif;
}

.service-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        justify-content: center;
        text-align: center;
    }
    
    .nav-badge {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
}

/* WordPress Specific Classes */
.wp-post-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.aligncenter {
    text-align: center;
    margin: 1rem auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

/* Comments */
.comments-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--border));
}

.comment {
    background: hsl(var(--muted));
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }