/* RESET E CONFIGURAÇÕES BÁSICAS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1E3F3A; 
    background-image: 
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 25px 25px;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* CONTAINER DOS CARTÕES */
.card-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 40px; 
    padding: 40px 20px calc(170px + env(safe-area-inset-bottom, 0px));
}

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 550px;
}

/* O CARTÃO (Cor Bege Original) */
.card {
    width: 90%;
    max-width: 550px;
    min-height: 310px;
    height: auto;
    aspect-ratio: 1.7 / 1;
    padding: 25px;
    background-color: #F3E5DE; 
    border-radius: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden; 
}

/* MOLDURA BRONZE INTERNA */
.bronze-edge {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 0 2px #b88d6f; 
    pointer-events: none;
    border-radius: 25px;
    z-index: 2;
}

/* CONTEÚDO CENTRALIZADO */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 1;
}

/* VERSO: ESTILIZAÇÃO DA LOGO */
.logo-container-back {
    margin: 0 auto 12px auto;
}

.logo-verso-img {
    width: 70px; 
    height: auto;
    display: block;
}

/* FOTO CIRCULAR (FRENTE) */
.foto-container {
    width: 160px;
    height: 160px;
    margin-bottom: 15px;
    border-radius: 50%;
    padding: 3px; 
    background: #b88d6f; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* TIPOGRAFIA */
.name {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.prof-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.main-role {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 4px;
    color: #555;
    margin-bottom: 12px;
}

.creci-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    color: #666;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: bold;
}

.creci-number a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: color 0.3s ease;
}

/* ESPECIALIDADES */
.specialties {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px; 
    color: #666;
    padding-top: 4px;
    border-top: 1px solid rgba(0,0,0,0.1);
    width: 85%; 
    line-height: 1.7; 
}

.specialties a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* QR CODE CENTRALIZADO */
.qrcode-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.qrcode-border {
    width: 120px; 
    height: 120px;
    border: 2px solid #b88d6f;
    padding: 5px;
    border-radius: 12px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CONTATOS */
.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.link-contato {
    text-decoration: none;
    color: #555;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.whatsapp-icon {
    fill: #25D366 !important;
    width: 22px;
    height: 22px;
}

/* MARCA CORUX (rodapé) */
.corux-brand {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    user-select: none;
    z-index: 500;
    opacity: 0.55;
}

.corux-brand__link {
    display: inline-block;
    pointer-events: auto;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.35px;
    line-height: 1.2;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.corux-brand__link:hover,
.corux-brand__link:focus-visible {
    color: #ffffff;
}

.corux-brand__link:active {
    opacity: 0.85;
}

.corux-brand__tagline {
    margin-top: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    line-height: 1.2;
}

/* BOTÕES FLUTUANTES */
.whatsapp-float,
.share-float {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: 0.3s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-float {
    right: 30px;
    bottom: calc(30px + 60px + 12px);
    background-color: #25D366;
    border: none;
}

.share-float {
    right: 30px;
    background-color: #ffffff;
    border: 2px solid #b88d6f;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF !important;
}

.share-float img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(58%) sepia(18%) saturate(650%) hue-rotate(345deg) brightness(95%) contrast(88%);
}

.share-float__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background-color: #b88d6f;
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.share-toast {
    position: fixed;
    left: 50%;
    bottom: 180px;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(30, 63, 58, 0.95);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.share-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* RESPONSIVIDADE (CELULAR) */
@media (max-width: 600px) {
    body {
        justify-content: flex-start;
        padding-top: 24px;
    }

    .card-container {
        padding: 20px 16px calc(150px + env(safe-area-inset-bottom, 0px));
    }

    .corux-brand {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        margin-top: 4px;
    }

    .card {
        width: 100%;
        max-width: 550px;
    }

    .name { font-size: 24px; }
    .foto-container { width: 100px; height: 100px; }
    .qrcode-border { width: 110px; height: 110px; }

    .whatsapp-float,
    .share-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float {
        bottom: calc(30px + 50px + 10px);
    }

    .share-float img {
        width: 38px;
        height: 38px;
    }

    .share-toast {
        bottom: 160px;
        max-width: calc(100vw - 40px);
        text-align: center;
    }
}

/* INTERAÇÕES DE HOVER (APENAS COMPUTADOR) */
@media (hover: hover) {
    .link-contato:hover, 
    .specialties a:hover,
    .creci-number a:hover { 
        color: #0000EE !important;
        text-decoration: none !important;
    }

    .share-float:hover .share-float__tooltip {
        opacity: 1;
        visibility: visible;
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
        background-color: #20ba5a;
    }

    .share-float:hover {
        transform: scale(1.1);
        background-color: #faf8f6;
        border-color: #9a7358;
    }
}

.whatsapp-float:active,
.share-float:active {
    transform: scale(0.95);
}

.share-float:active {
    background-color: #f0ebe6;
    border-color: #9a7358;
}

.whatsapp-float:active {
    background-color: #1da851;
}