/* Scoped styles for H8 Colaboradores Page */
/* Variables */
.h8-colaboradores {
    --h8-bg: #ffffff;
    --h8-text: #000000;
    --h8-text-muted: #666666;
    --h8-accent: #000000;
    /* Button color, can change to yellow if needed */
    --h8-accent-text: #ffffff;
    --h8-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --h8-line-height: 24px;
    --h8-gap: 2rem;
    --h8-card-bg: #f9f9f9;
    /* Subtle bg for text area of card if needed, or keeping it clean white */

    font-family: var(--h8-font);
    background-color: var(--h8-bg);
    color: var(--h8-text);
    line-height: var(--h8-line-height);
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset for internal elements */
.h8-colaboradores *,
.h8-colaboradores *::before,
.h8-colaboradores *::after {
    box-sizing: border-box;
}

/* Container */
.h8-colaboradores .h8-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
.h8-colaboradores h1,
.h8-colaboradores h2,
.h8-colaboradores h3 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.h8-colaboradores p {
    margin-bottom: 1.5rem;
}

/* Hero Section */
.h8-colaboradores .h8-hero {
    padding: 80px 0 40px;
    text-align: left;
    /* Or center? Prompt says "Hero (topo)" but design "clean/corporate" usually implies left or center. Sticking to left for modern clean look. */
}

.h8-colaboradores .h8-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.h8-colaboradores .h8-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    max-width: 800px;
    margin-bottom: 1rem;
}

.h8-colaboradores .h8-description {
    font-size: 1rem;
    color: var(--h8-text-muted);
    max-width: 700px;
}

/* Controls / Search */
.h8-colaboradores .h8-controls {
    margin-bottom: 40px;
}

.h8-colaboradores input#h8-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly rounded, clean */
    font-family: var(--h8-font);
    font-size: 1rem;
}

.h8-colaboradores input#h8-search:focus {
    outline: 2px solid var(--h8-accent);
    border-color: transparent;
}

/* Grid Section */
.h8-colaboradores .h8-grid-section {
    padding-bottom: 80px;
}

.h8-colaboradores .h8-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Desktop: 4 cols */
    gap: 30px;
    /* Respiratory space */
}

/* Tablet */
@media (max-width: 1024px) {
    .h8-colaboradores .h8-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .h8-colaboradores .h8-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .h8-colaboradores .h8-title {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .h8-colaboradores .h8-grid {
        grid-template-columns: 1fr;
        /* Mobile: 1 col */
    }
}

/* Card */
.h8-colaboradores .h8-card {
    display: flex;
    flex-direction: column;
    /* Clean, no borders usually, but maybe for structure during dev? Prompt says "Sem bordas aparentes" */
    border: 0;
}

/* Image Container - 1:1 Aspect Ratio */
.h8-colaboradores .h8-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background-color: #f0f0f0;
    /* Loading placeholder color */
    margin-bottom: 16px;
    /* Rounded corners? Prompt says clean/modern. Let's do slight radius or sharp. Modern often implies sharp or very small radius. Let's go with 4px. */
    border-radius: 4px;
}

.h8-colaboradores .h8-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 220ms ease-in-out;
}

/* Image State Logic */
.h8-colaboradores .img-hover {
    opacity: 0;
    z-index: 2;
}

.h8-colaboradores .img-main {
    opacity: 1;
    z-index: 1;
}

/* Hover / Focus Effects */
.h8-colaboradores .h8-card:hover .img-hover,
.h8-colaboradores .h8-card:focus-within .img-hover {
    opacity: 1;
}

/* Accessbility focus styles */
.h8-colaboradores .h8-card:focus-within {
    outline: none;
}

.h8-colaboradores .h8-card a:focus {
    outline: 2px solid var(--h8-accent);
    outline-offset: 4px;
}

/* Text Content */
.h8-colaboradores .h8-card-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    color: var(--h8-text);
}

.h8-colaboradores .h8-card-role {
    font-size: 0.9rem;
    color: var(--h8-text-muted);
    margin: 4px 0 0 0;
    font-weight: 400;
}

/* Enrichment Section */
.h8-colaboradores .h8-enrichment {
    background-color: #f9f9f9;
    /* Slight separation */
    padding: 80px 0;
}

.h8-colaboradores .h8-section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.h8-colaboradores .h8-enrichment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .h8-colaboradores .h8-enrichment-grid {
        grid-template-columns: 1fr;
    }
}

.h8-colaboradores .h8-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* CTA Section */
.h8-colaboradores .h8-cta {
    padding: 80px 0;
    text-align: center;
}

.h8-colaboradores .h8-cta-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.h8-colaboradores .h8-btn-cta {
    display: inline-block;
    background-color: #25D366;
    /* WhatsApp Green */
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    /* Modern button */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h8-colaboradores .h8-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    /* Green shadow */
}

/* Fade In Helper for Search */
.h8-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile/JS Toggle State */
.h8-colaboradores .h8-card-img-wrapper.active-mobile .img-hover {
    opacity: 1;
}

/* Footer */
.h8-colaboradores .h8-footer {
    background-color: #f7f7f7;
    padding: 60px 0 30px;
/* Email under card name */
.h8-colaboradores .h8-card-email {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--h8-text-muted);
    margin: 4px 0 0 0;
    text-decoration: none;
    word-break: break-all;
    line-height: 1.3;
}
.h8-colaboradores .h8-card-email:hover {
    color: #0066ff;
    text-decoration: underline;
}
