/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #800020;
    --secondary-color: #4a4a4a;
    --accent-color: #a30025;
    --text-color: #222222;
    --light-gray: #f0f0f0;
    --dark-gray: #333333;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background-color: var(--light-gray);
}

.center {
    text-align: center;
    margin: 2rem 0;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 15px;
}

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

.logo p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.logo-img {
    max-height: 70px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    margin: 0.2rem 0;
}

.logo-img:hover {
    transform: scale(1.02);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Botão do Sistema no Menu */
nav ul li a.btn-sistema {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: none;
}

nav ul li a.btn-sistema:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(128, 0, 32, 0.3);
    border-bottom: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(128, 0, 32, 0.8), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--light-gray);
    border-top: 1px solid rgba(128, 0, 32, 0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Services Preview */
.services-preview {
    padding: 5rem 0;
}

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

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, 
.service-card p {
    padding: 0 1rem;
}

.service-card h3 {
    margin: 1rem 0;
    color: var(--primary-color);
    font-weight: 600;
}

.service-card p {
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: var(--light-gray);
    border-top: 1px solid rgba(128, 0, 32, 0.1);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    text-align: right;
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(74, 74, 74, 0.8), rgba(128, 0, 32, 0.8)), url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(128, 0, 32, 0.7), rgba(51, 51, 51, 0.8)), url('../img/header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
}

/* About Us Page */
.about-us {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.mission-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-card h3 {
    margin-bottom: 1rem;
}

.our-mission {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.team {
    padding: 5rem 0;
}

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

.team-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.team-card .specialty {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.team-card p {
    padding: 0 1rem 1rem;
}

.clinic-structure {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.structure-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.structure-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.structure-card h3 {
    margin: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.structure-card p {
    padding: 0 1rem 1rem;
}

/* Services Page */
.services {
    padding: 5rem 0;
}

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

.service-item.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.service-item.reverse .service-details {
    direction: ltr;
}

.service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.service-details h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-details p {
    margin-bottom: 1.5rem;
}

.service-details ul {
    list-style: none;
}

.service-details ul li {
    margin-bottom: 0.5rem;
}

.service-details ul li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.pricing {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.payment-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.payment-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-card h3 {
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-info {
    padding: 5rem 0;
}

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

.contact-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: translateY(-5px);
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-form {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(128, 0, 32, 0.2);
}

.map {
    padding: 5rem 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

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

.accordion-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-left: 3px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(128, 0, 32, 0.05);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

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

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

.footer-info h3,
.footer-contact h3,
.footer-hours h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

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

.developer-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .logo-img {
        max-height: 60px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow);
        transition: right 0.3s ease;
        z-index: 101;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 2rem;
    }

    nav ul li {
        margin: 1rem 0;
    }

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

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .about-content,
    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .service-item {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0;
    }
    
    .logo-img {
        max-height: 50px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-grid,
    .services-grid,
    .testimonial-grid,
    .team-grid,
    .structure-grid,
    .contact-grid,
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366; /* Cor oficial WhatsApp */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active {
    transform: translateY(0);
    opacity: 0.9;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        right: 16px;
        bottom: 16px;
    }
}
