/* ═══════════════════════════════════════════════════════
   COPMS — Página de Clientes — CSS Dedicado
   ═══════════════════════════════════════════════════════ */

:root {
    --g-dark:   #1a5f4f;
    --g-mid:    #2d7a5f;
    --g-light:  #4a9b7f;
    --g-pale:   #e8f4ee;
    --g-bg:     #f2f5f2;
    --g-text:   #1b2e24;
    --g-muted:  #5a7a6a;
    --red:      #8c1c13;
}

/* ─── RESET ─── */
.pg-clientes * { box-sizing: border-box; }
.pg-clientes { font-family: 'Nunito', sans-serif; color: var(--g-text); }

/* ═══════════════════════════════════════════
   HERO — Premium com Mapa
   ═══════════════════════════════════════════ */
.hero-clientes {
    padding-top: 140px; /* Adjusting for sticky header */
    background: linear-gradient(150deg, #0d3d2e 0%, #1a5f4f 55%, #0f3328 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

/* Padrão decorativo sutil */
.hero-clientes::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(74,155,127,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
}

/* Curva inferior */
.hero-clientes::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 56px;
    background: var(--g-bg);
    clip-path: ellipse(54% 100% at 50% 100%);
}

.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content { position: relative; z-index: 1; }

/* ─── Breadcrumb ─── */
.hero-breadcrumb {
    display: flex; gap: 8px; align-items: center;
    font-size: 0.82rem; color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
}
.hero-breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb .sep { color: rgba(255,255,255,0.35); }

/* ─── Badge ─── */
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 50px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--g-light);
    animation: pulse-badge 2s infinite;
}

.hero-clientes h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700; color: #fff;
    line-height: 1.18; margin: 0 0 16px;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}
.hero-clientes h1 em { font-style: normal; color: var(--g-light); }

.hero-clientes .hero-desc {
    color: rgba(255,255,255,0.72);
    font-size: 1rem; line-height: 1.75;
    max-width: 500px; margin: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ─── Mapa SVG no Hero ─── */
.hero-map {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

.hero-map svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
}

/* Pontos no mapa */
.map-point {
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-origin: center;
    transform-box: fill-box;
}
.map-point:hover { transform: scale(1.3); }

.map-point-outer {
    fill: rgba(74, 155, 127, 0.3);
    animation: pulse-map 2.5s infinite;
}
.map-point-inner {
    fill: #4a9b7f;
    stroke: #fff;
    stroke-width: 1.5;
}
.map-point:hover .map-point-inner { fill: #fff; }

/* Tooltip do mapa */
.map-tooltip {
    position: absolute;
    background: rgba(13, 51, 40, 0.97);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 10;
    border: 1px solid rgba(74,155,127,0.3);
    white-space: nowrap;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.map-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}
.map-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%; transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(13, 51, 40, 0.97);
}
.map-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(74,155,127,0.25);
}
.map-tooltip-city {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}
.map-tooltip-count {
    background: var(--g-light);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
}
.map-tooltip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.map-tooltip-list li {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.map-tooltip-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--g-light);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   STATS BAR — Com Contadores Animados
   ═══════════════════════════════════════════ */
.stats-bar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    position: relative;
    z-index: 2;
}
.stats-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat {
    padding: 28px 20px; text-align: center;
    border-right: 1px solid #e8ede8;
}
.stat:last-child { border-right: none; }

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem; font-weight: 700;
    color: var(--g-dark); line-height: 1;
}
.stat-lbl {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--g-muted); margin-top: 6px;
}

/* ═══════════════════════════════════════════
   BODY
   ═══════════════════════════════════════════ */
.page-body { background: var(--g-bg); padding: 60px 0 80px; }
.container-cl { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ─── Intro ─── */
.eyebrow {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.eyebrow-line { width: 36px; height: 2px; background: var(--g-light); }
.eyebrow-txt {
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--g-light);
}
.intro-h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem; font-weight: 600;
    color: var(--g-text); margin: 0 0 10px;
}
.intro-p {
    color: var(--g-muted); font-size: 0.97rem;
    line-height: 1.8; max-width: 620px; margin: 0 0 32px;
}

/* ─── Filter Tabs ─── */
.filters {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.ftab {
    padding: 7px 20px; border-radius: 50px;
    border: 1.5px solid #c4d4c4;
    background: transparent;
    color: var(--g-muted);
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s;
}
.ftab:focus-visible {
    outline: 2px solid var(--g-light);
    outline-offset: 2px;
}
.ftab[aria-pressed="true"], .ftab:hover {
    background: var(--g-dark);
    border-color: var(--g-dark);
    color: #fff;
}

/* ─── Section Title ─── */
.sec-title {
    display: flex; align-items: center; gap: 12px;
    border-bottom: 2px solid var(--g-dark);
    padding-bottom: 14px; margin-bottom: 28px;
}
.sec-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem; font-weight: 600;
    color: var(--g-dark); margin: 0;
}
.sec-badge {
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 12px; border-radius: 50px;
    background: var(--g-dark); color: #fff;
}
.sec-badge.amber { background: #92400e; }

/* ═══════════════════════════════════════════
   CARDS GRID
   ═══════════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ccard {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dce8dc;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    cursor: pointer;
    /* Animação de entrada */
    opacity: 0;
    transform: translateY(30px);
}
.ccard.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease, border-color 0.3s ease;
}
.ccard:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26,95,79,0.15);
    border-color: var(--g-light);
}
.ccard:focus-visible {
    outline: 3px solid var(--g-light);
    outline-offset: 2px;
}

.ccard-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--g-dark), var(--g-light));
}

.ccard-body { padding: 22px 22px 16px; flex: 1; }

.ccard-icon {
    width: 54px; height: 54px; border-radius: 12px;
    background: var(--g-pale);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ccard:hover .ccard-icon {
    background: var(--g-dark);
    transform: scale(1.08);
}
.ccard-icon i {
    font-size: 1.35rem; color: var(--g-dark);
    transition: color 0.3s;
}
.ccard:hover .ccard-icon i { color: #fff; }

.ccard-tag {
    display: inline-block;
    font-size: 0.67rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--g-light); background: var(--g-pale);
    padding: 2px 9px; border-radius: 4px;
    margin-bottom: 8px;
}
.ccard-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-weight: 600;
    color: var(--g-text); line-height: 1.3;
    margin: 0 0 6px;
}
.ccard-loc {
    font-size: 0.82rem; color: var(--g-muted);
    display: flex; align-items: center; gap: 5px;
}
.ccard-loc i { color: var(--g-light); font-size: 0.75rem; }

.ccard-foot {
    padding: 12px 22px;
    border-top: 1px solid #edf2ed;
    display: flex; align-items: center; justify-content: space-between;
}

/* Status indicators */
.status-indicator {
    display: flex; align-items: center; gap: 5px;
}
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    display: inline-block;
}
.status-dot.active {
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}
.status-dot.warning {
    background: #f59e0b;
    animation: pulse-dot 1.5s infinite;
}
.status-dot.expired {
    background: #ef4444;
}

.status-txt { font-size: 0.78rem; font-weight: 700; }
.status-txt.active { color: #15803d; }
.status-txt.warning { color: #92400e; }
.status-txt.expired { color: #991b1b; }

.card-arr {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid #dce8dc;
    display: flex; align-items: center; justify-content: center;
    color: var(--g-light); font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
}
.card-arr:hover {
    background: var(--g-dark);
    border-color: var(--g-dark);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(26,95,79,0.3);
}
.ccard:hover .card-arr {
    border-color: var(--g-light);
}

/* ─── Card filter animation ─── */
.ccard.filter-hide {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}
.ccard.filter-show {
    animation: filterIn 0.35s ease forwards;
}

/* ═══════════════════════════════════════════
   MODAL DE DETALHES DO CLIENTE
   ═══════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #fff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--g-dark), var(--g-mid));
    padding: 28px 28px 24px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}
.modal-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.modal-icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.modal-icon i { font-size: 1.7rem; color: #fff; }

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem; font-weight: 700;
    color: #fff; margin: 0 0 4px;
}
.modal-subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

.modal-body { padding: 24px 28px 28px; }

.modal-info-row {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f4f0;
}
.modal-info-row:last-child { border-bottom: none; }

.modal-info-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 8px;
    background: var(--g-pale);
    display: flex; align-items: center; justify-content: center;
}
.modal-info-icon i { font-size: 0.9rem; color: var(--g-dark); }

.modal-info-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--g-muted); margin: 0;
}
.modal-info-value {
    font-size: 0.95rem; font-weight: 600;
    color: var(--g-text); margin: 2px 0 0;
}

/* ═══════════════════════════════════════════
   PROSPECT SECTION
   ═══════════════════════════════════════════ */
.prospect-sec { background: #fff; padding: 60px 0 80px; }

.prospect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.pcard {
    background: var(--g-bg);
    border: 1.5px dashed #b8d0b8;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    transition: all 0.25s ease;
    /* Animação de entrada */
    opacity: 0;
    transform: translateX(-20px);
}
.pcard.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease,
                background 0.25s ease, border-color 0.25s ease;
}
.pcard:hover { background: var(--g-pale); border-color: var(--g-mid); }

.pcard-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 10px; background: rgba(26,95,79,0.08);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.pcard:hover .pcard-icon {
    background: var(--g-dark);
}
.pcard-icon i {
    color: var(--g-dark); font-size: 1rem;
    transition: color 0.25s;
}
.pcard:hover .pcard-icon i { color: #fff; }

.pcard-name { font-size: 0.92rem; font-weight: 700; color: var(--g-text); margin: 0; }
.pcard-sub { font-size: 0.78rem; color: var(--g-muted); margin: 2px 0 0; }
.pcard-pill {
    margin-left: auto; flex-shrink: 0;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: #92400e; background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 3px 10px; border-radius: 50px;
}

.prospect-note {
    margin-top: 20px; font-size: 0.83rem;
    color: var(--g-muted); font-style: italic;
    display: flex; align-items: center; gap: 8px;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.cta-sec {
    background: linear-gradient(135deg, var(--g-dark) 0%, #0d3328 100%);
    padding: 72px 24px; text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-sec::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(74,155,127,0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.cta-sec h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; color: #fff; margin: 0 0 12px;
    position: relative;
}
.cta-sec p {
    color: rgba(255,255,255,0.68); font-size: 1rem;
    max-width: 440px; margin: 0 auto 32px; line-height: 1.7;
    position: relative;
}
.cta-btns {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    position: relative;
}

.btn-w {
    background: #fff; color: var(--g-dark);
    font-family: 'Nunito', sans-serif; font-weight: 700;
    font-size: 0.92rem; padding: 13px 32px;
    border-radius: 50px; border: none;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-w:hover {
    background: var(--g-pale); color: var(--g-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-o {
    background: transparent; color: rgba(255,255,255,0.85);
    font-family: 'Nunito', sans-serif; font-weight: 600;
    font-size: 0.92rem; padding: 13px 32px;
    border-radius: 50px; border: 1.5px solid rgba(255,255,255,0.3);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s;
}
.btn-o:hover {
    border-color: rgba(255,255,255,0.7); color: #fff;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; }
    50% { box-shadow: 0 0 0 4px transparent; }
}

@keyframes pulse-map {
    0%, 100% { opacity: 0.3; r: 8; }
    50% { opacity: 0.1; r: 14; }
}

@keyframes filterIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-map { order: -1; }
    .hero-map svg { max-width: 320px; }
    .hero-clientes .hero-desc { margin: 0 auto; }
}

@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-clientes {
    padding-top: 140px; /* Adjusting for sticky header */ padding: 50px 0 50px; }
    .hero-map svg { max-width: 260px; }
    .prospect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: none; border-bottom: 1px solid #e8ede8; }
    .stat:nth-child(odd) { border-right: 1px solid #e8ede8; }
    .stat:nth-last-child(-n+2) { border-bottom: none; }
    .filters { justify-content: center; }
    .modal-card { margin: 16px; border-radius: 16px; }
}

@media (max-width: 360px) {
    .hero-clientes {
    padding-top: 140px; /* Adjusting for sticky header */ padding: 36px 0 40px; }
    .hero-clientes h1 { font-size: 1.7rem; }
    .filters { gap: 6px; }
    .ftab { padding: 6px 14px; font-size: 0.78rem; }
    .stat-num { font-size: 1.9rem; }
    .cta-sec { padding: 48px 16px; }
    .cta-sec h2 { font-size: 1.6rem; }
}
