/* Reset and Variables */
:root {
    --primary-color: #722026; /* Burgundy/Wine */
    --primary-light: #933038;
    --accent-color: #C39953; /* Champagne Gold */
    --bg-light: #FAF9F6; /* Cream Off-white */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography */
.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

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

.section-title span {
    font-style: italic;
    font-weight: 400;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: -1.5rem auto 3rem auto;
    color: #666;
    font-size: 1.1rem;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 5px; /* modern sharper button */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(195, 153, 83, 0.3);
}

.btn-primary:hover {
    background-color: #B58A45;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(195, 153, 83, 0.4);
}

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

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a, .top-social a {
    margin-right: 1.5rem;
}

.top-contact a:hover, .top-social a:hover {
    color: var(--accent-color);
}

.top-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navbar */
.navbar {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo {
    height: 55px;
    object-fit: contain;
    transform: translateY(4px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.nav-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(114, 32, 38, 0.9) 0%, rgba(114, 32, 38, 0.7) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

.hero-container {
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    max-width: 600px;
    color: var(--text-light);
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-weight: 600;
}

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

.hero-title span {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-color);
}

.hero-text {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

/* Diferenciais Section */
.diferenciais {
    background-color: var(--bg-light);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.dif-card {
    background: #FFF;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.dif-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.dif-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.dif-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.dif-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Especialidades Section */
.especialidades {
    background-color: #FFFFFF;
}

.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.esp-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 350px;
    display: block;
}

.esp-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.esp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(114, 32, 38, 0.9), transparent);
    color: #FFF;
}

.esp-overlay h4 {
    font-size: 1.8rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

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

.esp-card:hover .esp-overlay h4 {
    transform: translateY(0);
}

/* Sobre Mim */
.sobre {
    background-color: var(--bg-light);
}

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

.sobre-img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sobre-img {
    width: 100%;
    display: block;
}

.sobre-text p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
}

.sobre-lista {
    list-style: none;
    margin-bottom: 2rem;
}

.sobre-lista li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.sobre-lista li i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Contact */
.contact {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.contact .section-title {
    color: var(--text-light);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text p, .contact-text a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-text a:hover {
    color: var(--accent-color);
}


.map-container {
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Convenios Section */
.convenios {
    background-color: #FFFFFF;
    text-align: center;
}

.convenios-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.convenio-card {
    background: #FFFFFF;
    padding: 20px 40px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    height: 120px;
}

.convenio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.convenio-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: #5A171D;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b858;
    transform: scale(1.1);
    color: #FFF;
}

/* Reviews Section */
.reviews {
    background-color: var(--bg-light);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-btn {
    background: #FFF;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #FFF;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.reviews-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.review-card {
    background: #FFF;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 280px;
    flex: 0 0 calc(33.333% - 1.35rem);
    scroll-snap-align: start;
}

.review-stars {
    color: #FFB400; /* Google yellow-orange */
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #EEE;
    padding-top: 1rem;
}

.author-info h5 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.author-info span {
    font-size: 0.8rem;
    color: #888;
}

.google-icon {
    font-size: 1.5rem;
    color: #DB4437; /* Google logo color approx */
}

/* Responsive */
@media (max-width: 992px) {
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .especialidades-grid {
        grid-template-columns: 1fr;
    }
    .sobre-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .review-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .nav-links, .nav-btn {
        display: none; /* simple hidden for mobile */
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }
    .review-card {
        flex: 0 0 100%;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}
