/* ==========================================================================
   CSS BEMCARD - Minimalista e Premium
   Paleta: Preto (#000), Branco (#fff), Cinza Claro (#f7f7f7, #eaeaea)
   ========================================================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f7f7f7;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --color-border: #eaeaea;
    --color-accent: #000000;
    --color-accent-hover: #333333;
    
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Tipografia */
h1, h2, h3 {
    margin: 0 0 20px 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-accent);
}

p {
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 20px 0;
    font-size: 17px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    letter-spacing: -0.01em;
}

/* Botões */
.btn {
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 14px 28px;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}

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

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* Hero Section (2 Columns) */
.hero {
    padding: 40px 20px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 54px;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--color-accent);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    animation: floatLogo 5s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.05));
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.1));
    animation-play-state: paused;
}

/* Info Cards Section (Top 3 Cards) */
.info-cards-section {
    padding: 60px 20px 20px;
    background: var(--color-bg);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.info-card {
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.info-card-gray {
    background: #f7f9fc;
    color: var(--color-text);
    border: 1px solid #eef1f6;
}

.info-card-white {
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid #eaeaea;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--color-text);
}

.info-card p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--color-text-muted);
}

.card-icon {
    margin-bottom: 20px;
    color: var(--color-accent); /* Usually black or dark gray in minimalist */
}

.card-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.card-link:hover {
    text-decoration: underline;
}

.card-link-bold {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    font-size: 16px;
}

.card-link-bold:hover {
    text-decoration: underline;
}

/* Credenciados List (Left Card) */
.credenciados-list {
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.credenciado-item strong {
    display: block;
    color: var(--color-text);
    font-size: 15px;
}

.credenciado-item span {
    display: block;
    color: var(--color-text-muted);
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-grid {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text h1 {
        text-align: center;
        font-size: 42px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        justify-content: center;
        margin-bottom: 40px;
    }
    .hero-logo {
        max-height: 200px;
    }
}

.click-highlight {
    margin-top: 25px;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.info-card:hover .click-highlight {
    transform: scale(1.05);
    background: var(--color-text-muted);
}

/* Sections Genéricas */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.section > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
}

/* ==========================================================================
   Efeitos de Texto Justificado e Imagem Flutuante (Estilo Credex)
   ========================================================================== */
.justified-text, .justified-text p, .justified-text div {
    text-align: justify;
    text-justify: inter-word; /* Evita o espaçamento grotesco entre palavras */
    hyphens: auto; /* Permite hifenização suave (necessita lang="pt-BR" no HTML) */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: -0.01em;
}

/* Limpa o float após o conteúdo para evitar sobreposições */
.text-content::after {
    content: "";
    display: table;
    clear: both;
}

.float-image {
    float: left;
    max-width: 350px;
    width: 100%;
    margin: 10px 40px 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}

@media (max-width: 768px) {
    .float-image {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 30px auto;
    }
}

/* Grid de Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    border: 1px solid var(--color-border);
    padding: 30px;
    background: var(--color-bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed) ease;
}

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

.card img {
    max-width: 100%;
    height: 180px;
    border-radius: 4px;
    margin-bottom: 20px;
    object-fit: cover;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 15px;
    margin-bottom: 0;
}

/* Call to Action */
.cta-section {
    text-align: center;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--color-bg);
    margin-bottom: 30px;
}

.cta-section .btn {
    background: var(--color-bg);
    color: var(--color-accent);
    border-color: var(--color-bg);
}

.cta-section .btn:hover {
    background: transparent;
    color: var(--color-bg);
}

/* Footer */
.footer {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid var(--color-border);
}

.footer p {
    margin: 0;
    line-height: 1.8;
}

/* ==========================================================================
   Estilos do Painel Administrativo
   ========================================================================== */
.admin-header {
    background: var(--color-accent);
    padding: 15px 0;
}
.admin-header .container {
    padding: 10px 20px;
}
.admin-header a {
    color: var(--color-bg);
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
}
.admin-header a:hover {
    text-decoration: underline;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
    background: var(--color-bg-alt);
    transition: border var(--transition-speed);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-text-muted);
    background: var(--color-bg);
}
.alert {
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: var(--color-bg);
}
table, th, td {
    border: 1px solid var(--color-border);
}
th, td {
    padding: 15px;
    text-align: left;
}
th {
    background-color: var(--color-bg-alt);
    font-weight: 600;
}
.actions {
    display: flex;
    gap: 10px;
}
.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
}
.btn-danger {
    background: transparent;
    color: #d32f2f;
    border-color: #d32f2f;
}
.btn-danger:hover {
    background: #d32f2f;
    color: var(--color-bg);
}

/* ==========================================================================
   WhatsApp Widget
   ========================================================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-btn:hover {
    transform: scale(1.1);
}
.whatsapp-popup {
    background: #fdfdfd;
    width: 320px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 75px;
    right: 0;
}
.whatsapp-popup.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}
.wa-header {
    background: #25d366; /* Verde do cabeçalho */
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}
.wa-close {
    background: rgba(0,0,0,0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s;
}
.wa-close:hover {
    background: rgba(0,0,0,0.4);
}
.wa-body {
    padding: 20px;
    background: #f5f7f9;
}
.wa-chat-bubble {
    background: white;
    padding: 18px;
    border-radius: 0 18px 18px 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    position: relative;
    margin-bottom: 25px;
}
.wa-chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid white;
}
.wa-chat-bubble p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    text-align: left;
}
.wa-chat-bubble p:last-child {
    margin-bottom: 0;
}
.wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4ade80; /* Verde mais claro para o botão (estilo credex) */
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.wa-btn:hover {
    background: #34d399;
}

/* ==========================================================================
   Modal Credenciados
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content-box {
    background: #fff;
    width: 95%;
    max-width: 850px;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content-box {
    transform: translateY(0);
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-alt);
}
.modal-header h2 {
    margin: 0;
    font-size: 20px;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-muted);
}
.modal-close:hover {
    color: var(--color-accent);
}
.modal-body {
    padding: 20px;
    overflow-y: auto;
}
.credenciados-full-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.credenciado-item-full {
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--color-border);
}
.credenciado-item-full:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.credenciado-item-full strong {
    font-size: 14px;
    color: var(--color-text);
}
.cred-details {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 5px;
    line-height: 1.4;
}
.modal-search {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    background: var(--color-bg-alt);
    transition: all 0.3s ease;
}
.modal-search:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-bg);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Acesso Section (Cliente, Credenciado, Usuário)
   ========================================================================== */
.acesso-section {
    padding: 60px 0;
    background: var(--color-bg-alt);
}
.acesso-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.acesso-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.acesso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom: 4px solid #111; /* Cor de destaque */
}
.acesso-icon {
    color: #111;
    margin-bottom: 20px;
}
.acesso-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-text-dark);
    font-weight: 700;
    text-transform: uppercase;
}
.acesso-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}
.acesso-link {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: center;
    gap: 5px;
}
