/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #2c3e50;
    --gold-color: #d4af37;
    --gold-light: #f4e4a6;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* ===== CLASSES UTILITÁRIAS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    padding: 0 20px;
}

.gold-text {
    color: var(--gold-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* ===== SELETOR DE IDIOMA ===== */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 5px;
}

.language-selector select {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

/* ===== HEADER E NAVEGAÇÃO ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: var(--transition);
}

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

.cta-button {
    background: var(--gold-color) !important;
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.cta-button:hover {
    background: #b8941f !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== MENU HAMBÚRGUER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1001;
    background: var(--white);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== CONTEÚDO DO HERO ===== */
.hero-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    animation: slideInFromBottom 1s ease-out;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--gold-color);
    color: var(--white);
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hero-image {
    flex: 1;
    position: relative;
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

.hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.measuring-tape-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--gold-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== SEÇÕES GERAIS ===== */
section {
    padding: 80px 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-layout.reverse {
    direction: rtl;
}

.grid-layout.reverse > * {
    direction: ltr;
}

.section-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.grid-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.grid-content p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===== SEÇÃO SOBRE ===== */
.about-section {
    background: var(--white);
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SEÇÃO ESPECIALIZAÇÃO ===== */
.specialization-section {
    background: var(--light-gray);
}

.specialization-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.spec-item i {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.spec-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.spec-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== SEÇÃO FORMAÇÃO ===== */
.education-section {
    background: var(--white);
    padding: 80px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-color), var(--gold-light));
    transition: var(--transition);
}

.education-item:hover::before {
    left: 0;
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.education-icon {
    margin-bottom: 1.5rem;
}

.education-icon i {
    font-size: 3rem;
}

.education-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.education-item p {
    font-weight: 500;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.education-item span {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== SEÇÃO RESULTADOS DOS PACIENTES ===== */
.results-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.results-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.patient-card {
    min-width: 300px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    scroll-snap-align: start;
}

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

.patient-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.patient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patient-image.no-image {
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    background: var(--gold-color);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.date-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.start-date {
    font-size: 0.7rem;
    opacity: 0.8;
}

.current-date {
    font-weight: 600;
}

.patient-info {
    padding: 1.5rem;
}

.patient-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.patient-dates {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.patient-weight {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.weight-before {
    color: var(--dark-gray);
}

.weight-after {
    font-size: 1.3rem;
}

.patient-description {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== CONTROLES DO SLIDER ===== */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--gold-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: #b8941f;
    transform: scale(1.1);
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--gold-color);
}

/* ===== SEÇÃO CONTATO ===== */
.contact-section {
    background: var(--white);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form h3,
.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* ===== FORMULÁRIO ===== */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--dark-gray);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--gold-color);
    background: var(--white);
    padding: 0 5px;
}

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

/* ===== INFORMAÇÕES DE CONTATO ===== */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== SEÇÃO AGENDAR ===== */
.appointment-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.appointment-section .section-title {
    color: var(--white);
}

.appointment-content {
    max-width: 800px;
    margin: 0 auto;
}

.appointment-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.appointment-text p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 15px 25px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    min-width: 150px;
    justify-content: center;
}

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

.social-btn.whatsapp:hover {
    background: #25d366;
    color: var(--white);
}

.social-btn.telegram:hover {
    background: #0088cc;
    color: var(--white);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: var(--white);
}

.social-btn i {
    font-size: 1.3rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold-color);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--gold-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    /* Menu mobile */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    /* Hero section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-img {
        height: 400px;
    }
    
    /* Grids */
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-layout.reverse {
        direction: ltr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-content h2 {
        font-size: 2rem;
    }
    
    /* Stats */
    .stats {
        justify-content: center;
        gap: 2rem;
    }
    
    /* Education grid */
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    /* Slider */
    .slider-container {
        gap: 1rem;
    }
    
    .patient-card {
        min-width: 280px;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Social buttons */
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        width: 200px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container,
    .container-full {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .patient-card {
        min-width: 250px;
    }
    
    .appointment-text h3 {
        font-size: 1.5rem;
    }
    
    .appointment-text p {
        font-size: 1rem;
    }
}

/* ===== ANIMAÇÕES DE SCROLL ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

