:root {
    --ivory: #F6F3EF;
    --warm-beige: #E8DED4;
    --neutral-gray: #DADADA;
    --creamy: #F5EFE6;
    --elegant-accent: #C4A987;
    --logo-accent: #B8956B;
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--ivory);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(196, 169, 135, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--logo-accent);
    stroke-width: 1.5;
    fill: none;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .primary {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text .secondary {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-desktop {
    display: flex;
    gap: 2.5rem;
}

.nav-desktop button {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-desktop button:hover,
.nav-desktop button.active {
    color: var(--text-dark);
    border-bottom-color: var(--logo-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.nav-mobile {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--neutral-gray);
    background: white;
}

.nav-mobile button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-mobile button:hover,
.nav-mobile button.active {
    color: var(--text-dark);
    background: var(--creamy);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--ivory);
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 25% 25%, var(--elegant-accent) 2px, transparent 2px);
    background-size: 60px 60px;
}

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

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

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 300;
    margin-bottom: 1rem;
}

.doctor-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--logo-accent);
    font-weight: 400;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-quote {
    font-size: 0.75rem;
    font-weight: 500;
    color: #445F6D;
    font-style: italic;
    margin-bottom: 2rem;
    border-left: 4px solid #445F6D;
    padding-left: 1.5rem;
}

.hero-image {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hero-image::before,
.hero-image::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.hero-image::before {
    top: -1.5rem;
    left: -1.5rem;
    width: 6rem;
    height: 6rem;
    background-color: var(--warm-beige);
    opacity: 0.3;
}

.hero-image::after {
    bottom: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background-color: var(--elegant-accent);
    opacity: 0.3;
}

.cta-button {
    background-color: #445F6D;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 120, 215, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 15px 40px rgba(0, 120, 215, 0.4);
    transform: translateY(-2px);
    background-color: #005a9e;
}

/* About Section */
.about {
    padding: 5rem 0 8rem;
    background-color: var(--creamy);
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 6rem;
    height: 4px;
    background-color: var(--elegant-accent);
    margin: 0 auto 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-images img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-images .image-column:last-child {
    padding-top: 2rem;
}

.about-text {
    space-y: 1.5rem;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-credentials {
    padding-top: 1rem;
}

.about-credentials h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-credentials ul {
    list-style: none;
}

.about-credentials li {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background-color: var(--ivory);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(196, 169, 135, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--elegant-accent);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--warm-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--text-dark);
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0 4rem;
    background-color: var(--warm-beige);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contact-info {
    space-y: 2rem;
}

.contact-info img {
    width: 100%;
    max-width: 400px;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--elegant-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.contact-details h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-medium);
}

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

.social-link {
    width: 3rem;
    height: 3rem;
    background-color: var(--elegant-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    background-color: var(--logo-accent);
}

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

.contact-form {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 169, 135, 0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--neutral-gray);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--logo-accent);
    box-shadow: 0 0 0 3px rgba(196, 169, 135, 0.15);
}

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

.submit-btn {
    width: 100%;
    background-color: var(--text-dark);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background-color: var(--logo-accent);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    color: #166534;
}

.loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.map-section {
    margin-top: 4rem;
}

.map-container {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 169, 135, 0.1);
}

.map-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-placeholder {
    width: 100%;
    height: 16rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 2px dashed var(--neutral-gray);
}

.map-placeholder svg {
    width: 3rem;
    height: 3rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.map-placeholder p {
    color: var(--text-medium);
    text-align: center;
}

.map-placeholder p:last-child {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 1rem;
    background: linear-gradient(180deg, var(--ivory) 0%, var(--creamy) 100%);
}

.timeline-content {
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding: 3rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--neutral-gray);
}

.timeline-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 3px;
    height: 0%;
    background: var(--logo-accent);
    transition: height 0.3s ease-out;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transition: all 0.6s ease-out;
    display: flex;
    align-items: flex-start;
}

/* Items ímpares - esquerda */
.timeline-item:nth-child(odd) {
    justify-content: flex-end;
    padding-right: calc(50% + 3rem);
    transform: translateX(-30px);
}

/* Items pares - direita */
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: calc(50% + 3rem);
    transform: translateX(30px);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    background: white;
    border: 3px solid var(--neutral-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-medium);
    transition: all 0.4s ease;
    z-index: 2;
}

.timeline-item.animate .timeline-marker {
    border-color: var(--logo-accent);
    background: var(--logo-accent);
    color: white;
    transform: translateX(-50%) scale(1.2);
}

.timeline-content-box {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--neutral-gray);
    transition: all 0.3s ease;
    max-width: 100%;
    width: 100%;
}

.timeline-item.animate .timeline-content-box {
    box-shadow: 0 8px 30px rgba(196, 169, 135, 0.2);
    border-color: var(--logo-accent);
}

.timeline-content-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.timeline-content-box p {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* Service Section (Atendimento) */
.service-section {
    padding: 5rem 1rem;
    background-color: var(--ivory);
}

.service-content {
    max-width: 1200px;
    margin: 0 auto;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(196, 169, 135, 0.25);
}

.service-header {
    background: linear-gradient(135deg, var(--logo-accent), var(--elegant-accent));
    padding: 2rem;
    text-align: center;
    color: white;
}

.service-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-header .subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 400;
}

.service-body {
    padding: 2rem;
}

.service-body p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-body p:last-child {
    margin-bottom: 0;
}

.service-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Presencial card with map */
.service-presencial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.service-presencial .service-body {
    order: 1;
}

.service-map {
    order: 2;
    position: relative;
    min-height: 350px;
    background: var(--neutral-gray);
}

.service-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.map-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.map-overlay p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #059669;
    transform: scale(1.05);
}

.whatsapp-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Footer Styles */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .doctor-name {
        font-size: 4rem;
    }

    .hero-quote {
        font-size: 2rem;
    }

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

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .service-presencial {
        grid-template-columns: 1fr 1fr;
    }

    .service-presencial .service-body {
        order: 1;
    }

    .service-map {
        order: 2;
    }
}

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

    .doctor-name {
        font-size: 4.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    /* Timeline em tablets - layout alternado reduzido */
    .timeline-item:nth-child(odd) {
        padding-right: calc(50% + 2rem);
    }

    .timeline-item:nth-child(even) {
        padding-left: calc(50% + 2rem);
    }

    .timeline-content-box {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .nav-desktop {
        display: none;
    }

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

    .logo-image {
        height: 36px;
        max-width: 200px;
    }

    .header-content {
        height: 64px;
    }

    .hero {
        padding-top: 64px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .doctor-name {
        font-size: 2.75rem;
    }

    .hero-quote {
        font-size: 1.25rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .whatsapp-btn .btn-text-full {
        display: none;
    }

    /* Timeline mobile - layout linear */
    .timeline-line,
    .timeline-progress {
        left: 1.5rem;
        transform: none;
    }

    .timeline-item {
        padding-left: 4rem;
        padding-right: 0;
        margin-bottom: 2rem;
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 4rem;
        padding-right: 0;
        justify-content: flex-start;
        transform: translateX(-30px);
    }

    .timeline-item:nth-child(odd).animate,
    .timeline-item:nth-child(even).animate {
        transform: translateX(0);
    }

    .timeline-marker {
        left: 0.75rem;
        transform: none;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.65rem;
    }

    .timeline-item.animate .timeline-marker {
        transform: scale(1.2);
    }

    .timeline-content-box {
        padding: 1rem;
    }

    .timeline-content-box h4 {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.fade-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.fade-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease;
}

.scale-up.animate {
    opacity: 1;
    transform: scale(1);
}

