:root {
    --green: #2e7d32;
    --green-dark: #1b5e20;
    --blue: #1565c0;
    --bg: #fafcff;
    --text: #333;
    --light: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header {
    background: var(--light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo img { height: 55px; }
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--green);
    display: block;
}
.nav { display: flex; gap: 25px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--green); }
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--light);
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 6px;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 10px 15px; }
.main { padding: 40px 0; min-height: 60vh; }
h1 { color: var(--green-dark); font-size: 2.2rem; margin-bottom: 10px; }
h2 { color: var(--green); }
.featured-image { width: 100%; max-height: 450px; object-fit: cover; border-radius: 8px; margin: 20px 0; box-shadow: var(--shadow); }
.btn {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.btn:hover { background: var(--green-dark); }
.btn-outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}
.banner-slider { position: relative; margin-bottom: 40px; }
.banner-slider img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; }
.slides { display: none; }
.slides.active { display: block; }
.footer {
    background: #f5f7fa;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.footer a { color: var(--blue); text-decoration: none; }
.copyright { text-align: center; margin-top: 30px; font-size: 0.9rem; color: #666; }
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    animation: blink 1s infinite;
    z-index: 1000;
    font-weight: bold;
}
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}
.whatsapp-text { font-size: 14px; }
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .nav.active { display: flex; }
    .dropdown-content { position: static; box-shadow: none; }
}
.card { background: white; border-radius: 8px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}
.form-group textarea { min-height: 120px; }
.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.faq-question { cursor: pointer; font-weight: 600; color: var(--green); }
.faq-answer { display: none; padding-top: 10px; }
.faq-answer.show { display: block; }
.anuncio-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-bottom: 30px; }
@media (max-width: 600px) { .anuncio-card { grid-template-columns: 1fr; } }

/* ===== HOME HERO ===== */
.home-hero {
    text-align: center;
    padding: 20px 0 10px;
}
.hero-title {
    font-size: 2.4rem;
    color: var(--green-dark);
    margin: 0 0 8px;
    font-weight: 700;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #555;
    margin: 0 0 24px;
}
.hero-doctor {
    max-width: 480px;
    margin: 0 auto 20px;
}
.doctor-photo {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.hero-doctor-info {
    margin-top: 10px;
}
.doctor-label { margin: 0; color: #666; font-size: 0.95rem; }
.doctor-name { margin: 4px 0 0; font-weight: 600; color: var(--green); }

.banner-section {
    margin: 10px 0 30px;
    position: relative;
}
.banner-slider img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
}
.banner-dots {
    text-align: center;
    margin-top: 12px;
}
.banner-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px;
    cursor: pointer;
}
.banner-dots span.active { background: var(--green); }

.home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 25px 0 40px;
}
.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { background: #1da851; }

.home-intro { max-width: 900px; margin: 0 auto; }

/* ===== CLASSIFICADOS PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.page-info {
    font-weight: 500;
    color: #555;
}
.anuncio-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== AGENTE IA CHAT ===== */
.agente-wrapper {
    max-width: 720px;
    margin: 0 auto;
}
.agente-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.agente-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 3px solid var(--green);
}
.agente-header h1 {
    margin: 0;
    font-size: 1.6rem;
}
.agente-status {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #666;
}
.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #25D366;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.agente-intro {
    background: #f0f7f0;
    border-left: 4px solid var(--green);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 0.98rem;
}

.chat-box {
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 12px;
    height: 340px;
    overflow-y: auto;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.msg {
    display: flex;
    margin-bottom: 12px;
}
.msg.user { justify-content: flex-end; }
.msg.bot { justify-content: flex-start; }
.msg-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.msg.bot .msg-bubble {
    background: #f0f4f0;
    color: #222;
    border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
    background: var(--green);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg-bubble a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
}
.msg.user .msg-bubble a { color: #e3f2fd; }

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.chip {
    background: #fff;
    border: 1.5px solid var(--green);
    color: var(--green-dark);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.chip:hover {
    background: var(--green);
    color: #fff;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}
.chat-input-area input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}
.chat-input-area input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}
.chat-input-area .btn {
    border-radius: 25px;
    padding: 12px 22px;
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.8rem; }
    .banner-slider img { height: 240px; }
    .agente-header { flex-direction: column; text-align: center; }
    .chat-box { height: 280px; }
    .chip { font-size: 0.8rem; padding: 7px 11px; }
}

/* ========== HOME HERO ========== */
.home-hero {
    text-align: center;
    padding: 24px 0 16px;
}
.hero-title {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    color: #555;
    font-size: 1.05rem;
    margin: 0 0 22px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.hero-doctor {
    max-width: 280px;
    margin: 0 auto 28px;
}
.doctor-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 4px solid #fff;
    display: block;
    margin: 0 auto;
}
.hero-doctor-info {
    margin-top: 14px;
}
.doctor-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}
.doctor-name {
    font-weight: 600;
    color: var(--green);
    margin: 4px 0 0;
    font-size: 0.95rem;
}
@media (min-width: 768px) {
    .hero-title { font-size: 2.6rem; }
    .hero-doctor { max-width: 320px; }
    .doctor-photo {
        width: 220px;
        height: 220px;
    }
}

/* Banner section */
.banner-section {
    margin-bottom: 30px;
}
.banner-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.banner-slider img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.slides { display: none; }
.slides.active { display: block; animation: fadeIn 0.6s; }
@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.banner-dots {
    text-align: center;
    margin-top: 12px;
}
.banner-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px;
    cursor: pointer;
}
.banner-dots span.active { background: var(--green); }

.home-cta {
    text-align: center;
    margin: 30px 0 40px;
}
.home-cta .btn { margin: 6px; }
.btn-whatsapp {
    background: #25D366 !important;
}
.btn-whatsapp:hover { background: #1da851 !important; }

.tratamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 25px 0;
}
.trat-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.trat-card:hover {
    border-color: var(--green);
    color: var(--green-dark);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.home-cta-final {
    text-align: center;
    background: #f0f7f1;
    padding: 40px 20px;
    border-radius: 12px;
    margin-top: 40px;
}

/* ========== AGENTE IA CHAT ========== */
.agente-wrapper {
    max-width: 820px;
    margin: 0 auto;
}
.agente-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.agente-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--green);
}
@media (min-width: 768px) {
    .agente-avatar img {
        width: 90px;
        height: 90px;
    }
}
.agente-info h1 {
    font-size: 1.5rem;
    margin: 0 0 4px;
}
.agente-status {
    font-size: 0.9rem;
    color: #2e7d32;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 9px;
    height: 9px;
    background: #2e7d32;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.agente-desc {
    font-size: 0.92rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 25px;
}
.chat-messages {
    height: 380px;
    overflow-y: auto;
    padding: 20px;
    background: #f7faf8;
}
.msg {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: flex-end;
}
.msg.user {
    flex-direction: row-reverse;
}
.msg-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 2px;
}
.msg-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.55;
}
.msg.bot .msg-bubble {
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
    background: var(--green);
    color: white;
    border-bottom-right-radius: 4px;
}
.msg-bubble a {
    color: var(--green-dark);
    font-weight: 600;
}
.msg.user .msg-bubble a {
    color: #e8f5e9;
}

/* Sugestões flutuantes */
.suggestions-box {
    padding: 14px 18px 10px;
    background: #f0f7f1;
    border-top: 1px solid #e0e8e1;
    transition: opacity 0.3s;
}
.suggestions-title {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 10px;
    font-weight: 500;
}
.suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    background: white;
    border: 1px solid #c8e6c9;
    color: var(--green-dark);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.chip:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: white;
    border-top: 1px solid #eee;
}
.chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}
.chat-input-area input:focus {
    border-color: var(--green);
}
.btn-send {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-send:hover { background: var(--green-dark); }

.agente-footer-note {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
}
.agente-footer-note .btn {
    margin-top: 12px;
}

/* Classificados - Ver mais */
.anuncio-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 24px;
    align-items: start;
}
.anuncio-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}
.anuncio-card h3 {
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: 1.2rem;
}
.anuncio-card p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #555;
}
.anuncio-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.anuncio-actions .btn {
    padding: 9px 18px;
    font-size: 0.9rem;
}
@media (max-width: 600px) {
    .anuncio-card { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .banner-slider img { height: 240px; }
    .agente-header { flex-direction: column; text-align: center; }
    .chat-messages { height: 320px; }
}


/* Images optimized for mobile */
.featured-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
    margin: 16px 0;
    box-shadow: var(--shadow);
}
@media (min-width: 768px) {
    .featured-image {
        max-height: 400px;
    }
}
.banner-slider img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
@media (min-width: 768px) {
    .banner-slider img {
        height: 360px;
    }
}
.anuncio-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}
.logo img {
    height: 48px;
    width: auto;
}
@media (min-width: 768px) {
    .logo img { height: 55px; }
}
img {
    max-width: 100%;
    height: auto;
}
