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

:root {
    --primary-color: #d4af37;
    --primary-color-rgb: 212, 175, 55;
    --primary-dark: #b8941f;
    --secondary-color: #2c2c2c;
    --accent-color: #f8f8f8;
    --accent-color-dark: #f0f0f0;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --skeleton-base: #e6e6e6;
    --skeleton-highlight: #f4f4f4;
    --chat-primary: var(--primary-color);
    --chat-primary-dark: var(--primary-dark);
    --chat-accent: var(--accent-color);
}

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

body.is-loading {
    cursor: progress;
}

@keyframes skeletonShimmer {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

[data-skeleton].skeleton {
    position: relative;
    color: transparent !important;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
}

[data-skeleton].skeleton > * {
    visibility: hidden;
}

[data-skeleton].skeleton::after,
.skeleton-element::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--skeleton-highlight) 50%, rgba(255, 255, 255, 0) 100%);
    animation: skeletonShimmer 1.6s infinite;
    transform: translateX(-100%);
    z-index: 1;
}

.skeleton-element,
[data-skeleton].skeleton {
    background: var(--skeleton-base);
}

.skeleton-card {
    position: relative;
    overflow: hidden;
}

.skeleton-element {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.skeleton-element.skeleton-image {
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: calc(var(--border-radius) - 8px);
}

.skeleton-element.skeleton-image.tall {
    height: 250px;
}

.skeleton-element.skeleton-line {
    height: 16px;
    margin-bottom: 0.85rem;
    border-radius: 999px;
}

.skeleton-element.skeleton-line.large {
    height: 24px;
    margin-bottom: 1rem;
}

.skeleton-element.skeleton-line.short {
    width: 60%;
}

.skeleton-element.skeleton-line.stars {
    width: 140px;
    height: 20px;
    margin: 0 auto 1rem;
}

.skeleton-element.skeleton-button {
    height: 48px;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.skeleton-element.skeleton-pill {
    height: 40px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

[data-skeleton][data-skeleton-type="title"].skeleton {
    min-height: 3rem;
    max-width: min(100%, 540px);
}

[data-skeleton][data-skeleton-type="subtitle"].skeleton {
    min-height: 1.4rem;
    max-width: min(100%, 620px);
}

[data-skeleton][data-skeleton-type="text"].skeleton,
[data-skeleton][data-skeleton-type="card-text"].skeleton {
    min-height: 1.1rem;
    max-width: min(100%, 420px);
}

[data-skeleton][data-skeleton-type="cta-title"].skeleton {
    min-height: 2.4rem;
    max-width: min(100%, 400px);
}

[data-skeleton][data-skeleton-type="cta-text"].skeleton {
    min-height: 1.2rem;
    max-width: 100%;
}

[data-skeleton][data-skeleton-type="image"].skeleton {
    min-height: 340px;
    border-radius: var(--border-radius);
}

[data-skeleton][data-skeleton-type="badge"].skeleton {
    width: 180px;
    height: 36px;
    border-radius: 999px;
}

[data-skeleton][data-skeleton-type="footer"].skeleton {
    min-height: 1rem;
    max-width: min(100%, 360px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.hidden {
    display: none !important;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}

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

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

.nav-menu.active {
    right: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Mobile-first navigation drawer */
@media (max-width: 900px) {
    .nav {
        padding: 0.75rem 1rem;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(85vw, 320px);
        background: #fff;
        box-shadow: -12px 0 30px rgba(0,0,0,0.08);
        padding: 6rem 1.25rem 2rem;
        flex-direction: column;
        gap: 1.25rem;
        transition: right .3s ease;
        z-index: 1100;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-link {
        font-size: 1.05rem;
        padding: 0.5rem 0.25rem;
    }
    .header .btn#ctaSchedule {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-dark);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

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

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    transition: var(--transition);
}

/* Responsive layout adjustments */
@media (max-width: 1024px) {
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 3rem; }
    .hero-container { gap: 3rem; padding: 6rem 1.5rem; }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        padding: 6.25rem 1.25rem 3rem;
        text-align: left;
    }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-image-container { height: 420px; max-width: 100%; transform: none; }
}

@media (max-width: 700px) {
    .section-title { font-size: 1.9rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .btn { width: 100%; justify-content: center; }
    .btn-large { width: 100%; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; max-width: 100%; }
    .hero-image-container { height: 340px; }
}

.hero-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-floating-card.card-1 {
    top: 10%;
    left: -10%;
    animation: float 3s ease-in-out infinite;
}

.hero-floating-card.card-2 {
    bottom: 15%;
    right: -15%;
    animation: float 3s ease-in-out infinite 1.5s;
}

.hero-floating-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.hero-floating-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.hero-floating-card .rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
    font-size: 0.8rem;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    z-index: -1;
}

.hero-decoration.decoration-1 {
    top: 10%;
    right: 10%;
    animation: float 4s ease-in-out infinite;
}

.hero-decoration.decoration-2 {
    bottom: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--accent-color);
}

.section-header {
    margin-bottom: 4rem;
}

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

.empty-state {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
    font-size: 1rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.service-media {
    margin-bottom: 1.5rem;
}

.service-card.has-image .service-media {
    margin-bottom: 1.75rem;
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 12px);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

/* About Section */
.about {
    padding: 6rem 0;
}

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

@media (max-width: 900px) {
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-text .section-title { text-align: left; }
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    margin: 3rem 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-light);
}

.about-image {
    position: relative;
}

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

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-stars {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--accent-color);
}

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

@media (max-width: 900px) {
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-details {
    margin-bottom: 3rem;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    white-space: pre-line;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-cta {
    display: flex;
    align-items: center;
}

.cta-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
}

.cta-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-features {
    margin-top: 2rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-feature i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

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

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.booking-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.booking-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    z-index: 10;
}

.booking-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.booking-header h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.booking-header p {
    color: var(--text-light);
}

.booking-chat {
    height: 500px;
}

/* Floating AI Chat */
#exibeChat {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: min(400px, calc(100vw - 32px));
    z-index: 2600;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}

#exibeChat .chat-window-wrapper {
    pointer-events: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#exibeChat .chat-window-toggle {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--chat-primary, var(--primary-color)), var(--chat-primary-dark, var(--primary-dark)));
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    position: relative;
}

#exibeChat .chat-window-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.32);
}

#exibeChat .chat-window-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

#exibeChat .chat-icon {
    width: 26px;
    height: 26px;
}

#exibeChat .chat-notification {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 24px 45px rgba(15, 23, 42, 0.3);
        transform: translateY(0) scale(1);
    }
    50% {
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.4);
        transform: translateY(-2px) scale(1.04);
    }
}

#exibeChat.has-unread .chat-window-toggle {
    animation: pulse-glow 1.8s ease-in-out infinite;
}

#exibeChat .chat-window {
    width: 100%;
    max-height: min(640px, calc(100vh - 120px));
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.88));
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(18px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#exibeChat.active .chat-window {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#exibeChat .chat-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    min-height: 0;
}

#exibeChat .chat-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--chat-primary, var(--primary-color)), var(--chat-primary-dark, var(--primary-dark)));
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

#exibeChat .chat-header::before {
    content: '';
    position: absolute;
    inset: -40% 30% auto -40%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    transform: rotate(25deg);
}

#exibeChat .chat-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

#exibeChat .chat-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

#exibeChat .chat-brand-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

#exibeChat .chat-brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#exibeChat .chat-brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

#exibeChat .chat-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
}

#exibeChat .chat-brand-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

#exibeChat .chat-brand-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

#exibeChat .chat-close {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

#exibeChat .chat-close:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

#exibeChat .chat-subtitle {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

#exibeChat .chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    min-height: 0;
}

#exibeChat .chat-messages-list {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.35) 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.35) rgba(226, 232, 240, 0.4);
    min-height: 0;
}

#exibeChat .chat-message {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

#exibeChat .chat-message-from-bot,
#exibeChat .chat-message-system {
    justify-content: flex-start;
}

#exibeChat .chat-message-from-user {
    justify-content: flex-end;
}

#exibeChat .chat-message-markdown {
    max-width: 80%;
    padding: 0.85rem 1.1rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-dark);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
    line-height: 1.55;
}

#exibeChat .chat-message-from-user .chat-message-markdown {
    background: linear-gradient(135deg, var(--chat-primary, var(--primary-color)), var(--chat-primary-dark, var(--primary-dark)));
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

#exibeChat .chat-message-system .chat-message-markdown {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #f87171;
}

#exibeChat .chat-message-markdown p {
    margin: 0;
}

#exibeChat .chat-message-time {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    opacity: 0.6;
}

#exibeChat .chat-footer {
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(12px);
}

#exibeChat .chat-input {
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#exibeChat .chat-input:focus-within {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

#exibeChat .chat-inputs {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
}

#exibeChat .chat-inputs textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 28px;
    max-height: 160px;
    outline: none;
}

#exibeChat .chat-inputs textarea::placeholder {
    color: rgba(100, 116, 139, 0.7);
}

#exibeChat .chat-inputs-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#exibeChat .chat-input-send-button {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--chat-primary, var(--primary-color)), var(--chat-primary-dark, var(--primary-dark)));
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#exibeChat .chat-input-send-button:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.3);
}

#exibeChat .chat-input-send-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#exibeChat .typing-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0 1.5rem 1.1rem;
    color: rgba(100, 116, 139, 0.8);
    font-size: 0.85rem;
}

#exibeChat .typing-indicator[hidden] {
    display: none !important;
}

#exibeChat .typing-dots {
    display: inline-flex;
    gap: 0.3rem;
}

#exibeChat .typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.7);
    animation: typingDots 1.2s ease-in-out infinite;
}

#exibeChat .typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

#exibeChat .typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingDots {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

#exibeChat .chat-messages-list::-webkit-scrollbar {
    width: 6px;
}

#exibeChat .chat-messages-list::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.4);
    border-radius: 999px;
}

#exibeChat .chat-messages-list::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
}

#exibeChat .chat-messages-list::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.55);
}

@media (max-width: 640px) {
    #exibeChat {
        right: 16px;
        bottom: 16px;
        width: min(100%, calc(100vw - 16px));
    }
    #exibeChat .chat-window {
        border-radius: 20px;
        max-height: min(600px, calc(100vh - 80px));
    }
    #exibeChat .chat-header {
        padding: 1.25rem;
    }
    #exibeChat .chat-messages-list {
        padding: 1.25rem;
        min-height: 0;
    }
    #exibeChat .chat-footer {
        padding: 1rem 1.25rem 1.25rem;
    }
}

@media (max-width: 420px) {
    #exibeChat .chat-window-toggle {
        width: 60px;
        height: 60px;
    }
    #exibeChat .chat-window {
        border-radius: 18px;
    }
}


.doctors {
    padding: 6rem 0;
    background: var(--accent-color-dark);
}

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

@media (max-width: 600px) {
    .service-card, .testimonial-card, .doctor-card { padding: 1.5rem; }
    .service-image { height: 160px; }
    .doctor-image { height: 200px; }
}

.doctor-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.doctor-image {
    height: 250px;
    overflow: hidden;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.doctor-info {
    padding: 2rem;
}

.doctor-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.doctor-specialty {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.doctor-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.doctor-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.doctor-credentials span {
    color: var(--text-light);
    font-size: 0.9rem;
}
