/* CSS Variables for Theme */
:root {
    --primary-color: #0d9488;
    /* Teal / soothing medical tone */
    --primary-hover: #0f766e;
    --text-main: #1f2937;
    /* Dark Gray */
    --text-muted: #4b5563;
    /* Medium Gray */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --accent: #14b8a6;
    --whatsapp: #25d366;
    --whatsapp-hover: #20BA56;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3 {
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Ajuste do tamanho da marca no menu */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-outline) {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:not(.btn-outline):hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    /* Using #0A746A (rgba(10, 116, 106)) with lower opacity for a softer look */
    background: linear-gradient(90deg, rgba(10, 116, 106, 0.85) 0%, rgba(10, 116, 106, 0.6) 55%, rgba(10, 116, 106, 0) 100%), url('hero-bg.jpeg') no-repeat center right / cover;
    background-color: var(--primary-color);
    overflow: hidden;
}

.hero-container {
    display: block;
}

.hero-content {
    max-width: 650px;
    animation: fadeIn 0.8s ease-out;
}

.hero .badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: white;
}

.hero .highlight {
    color: #ccfbf1;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero .btn-primary {
    background-color: white;
    color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.hero .btn-primary:hover {
    background-color: #f0fdfa;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3f4f6;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

.benefits-box {
    background-color: #f0fdfa;
    padding: 3rem;
    border-radius: 20px;
    margin-top: 2rem;
    border: 1px solid #ccfbf1;
}

.benefits-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-hover);
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.check-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: #f0fdfa;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-hover);
    position: relative;
    padding-bottom: 1rem;
}

/* Divisor decorativo charmoso embaixo do título */
.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: justify;
}

.about-image img {
    max-width: 100%;
    width: 100%;
    /* Removendo o antigo border-radius simples */
    border-radius: 0;
    /* Aplicando um clip-path orgânico moderno (formato fluido), removendo 10% do topo e base */
    clip-path: polygon(10% 10%, 100% 10%, 90% 90%, 0% 90%);
    /* O box-shadow não funciona com clip-path, então aplicamos no container-pai usando filter */
    transition: transform 0.4s ease;
}

.about-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    /* Usar drop-shadow no pai para a sombra respeitar a máscara irregular */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem 3.5rem;
    /* padding bottom extra pra imagem do google */
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stars {
    color: #fbbc04;
    /* Cor da estrela do Google Maps */
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

.google-icon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo-box {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.footer-logo-box img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Aplica máscara branca limpa logo no footer escuro */
}

.footer-content p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float svg {
    margin-top: 2px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-hover);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-container,
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero {
        background: linear-gradient(180deg, rgba(10, 116, 106, 0.8) 0%, rgba(10, 116, 106, 0.9) 100%), url('hero-bg.jpeg') no-repeat center right / cover;
        padding: 5rem 0;
        min-height: auto;
    }

    .hero-content {
        margin: 0 auto;
    }

    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        /* height of header */
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }

    .nav-links a.btn-outline {
        display: none;
        /* Hides the WhatsApp btn from mobile menu to focus on main buttons */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}