/*
Theme Name: Doutor Odonto
Theme URI: https://doutorodonto.com.br
Author: Doutor Odonto
Author URI: https://doutorodonto.com.br
Description: Tema profissional para clínica odontológica Doutor Odonto. Design moderno com tons de turquesa e branco.
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: doutor-odonto
Tags: dentist, clinic, healthcare, one-column, custom-colors, custom-menu, featured-images
*/

/* ========================================
   CSS Variables / Design Tokens
======================================== */
:root {
    /* Colors */
    --background: hsl(180, 20%, 99%);
    --foreground: hsl(200, 25%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(200, 25%, 15%);
    --primary: hsl(175, 65%, 40%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(165, 45%, 92%);
    --secondary-foreground: hsl(175, 65%, 30%);
    --muted: hsl(180, 15%, 95%);
    --muted-foreground: hsl(200, 15%, 45%);
    --accent: hsl(175, 50%, 88%);
    --accent-foreground: hsl(175, 65%, 25%);
    --border: hsl(180, 20%, 90%);
    --ring: hsl(175, 65%, 40%);
    --radius: 0.75rem;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(175, 65%, 40%) 0%, hsl(185, 60%, 45%) 100%);
    --gradient-hero: linear-gradient(180deg, hsl(180, 20%, 99%) 0%, hsl(175, 30%, 96%) 100%);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(175, 65%, 40%, 0.15);
    --shadow-card: 0 8px 30px -8px hsla(200, 25%, 15%, 0.1);
    --shadow-elevated: 0 20px 50px -15px hsla(175, 65%, 40%, 0.2);
}

/* ========================================
   Reset & Base Styles
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Typography
======================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--muted-foreground);
}

/* ========================================
   Layout
======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-soft);
}

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

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

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

/* ========================================
   Header
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: hsla(180, 20%, 99%, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
}

.logo-text span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-nav a {
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsla(180, 20%, 99%, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--foreground);
    font-weight: 500;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 5rem;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: hsla(175, 65%, 40%, 0.05);
    border-radius: 50%;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20rem;
    height: 20rem;
    background: hsla(175, 50%, 88%, 0.3);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-foreground);
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

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

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

.hero-stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .hero-stat-value {
        justify-content: flex-start;
    }
}

.hero-stat-value svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.hero-stat-value span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    transform: rotate(3deg);
    opacity: 0.2;
}

.hero-image {
    position: relative;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-elevated);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.hero-floating-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--card);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.hero-floating-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-floating-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-foreground);
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: 6rem 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

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

.section-description {
    color: var(--muted-foreground);
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.service-card {
    background: linear-gradient(145deg, var(--card) 0%, hsl(175, 20%, 98%) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: hsla(175, 65%, 40%, 0.3);
    box-shadow: var(--shadow-card);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary-foreground);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ========================================
   About Section
======================================== */
.about {
    padding: 6rem 0;
    background: var(--muted);
}

.about-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    transform: rotate(-3deg);
    opacity: 0.1;
}

.about-image {
    position: relative;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-elevated);
}

.about-badge-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-badge-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.about-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

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

.about-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.benefits-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefit-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: hsla(175, 65%, 40%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.benefit-text {
    font-weight: 500;
    color: var(--foreground);
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials {
    padding: 6rem 0;
    background: var(--background);
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

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

.testimonial-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: hsla(175, 65%, 40%, 0.3);
    box-shadow: var(--shadow-card);
}

.testimonial-quote {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: hsla(175, 65%, 40%, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    fill: var(--primary);
}

.testimonial-content {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--foreground);
}

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

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 6rem 0;
    background: var(--muted);
}

.contact-grid {
    display: grid;
    gap: 4rem;
}

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

.contact-info-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

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

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-foreground);
}

.contact-info-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.contact-info-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: pre-line;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.contact-form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

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

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

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

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(175, 65%, 40%, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted-foreground);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background: var(--foreground);
    color: var(--background);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-copyright,
.footer-cro {
    font-size: 0.875rem;
    color: hsla(180, 20%, 99%, 0.6);
}

/* ========================================
   Animations
======================================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* ========================================
   WordPress Specific Styles
======================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Gutenberg Blocks */
.wp-block-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}
