/* RESET E FUNDO */
* {
    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: #10437c;
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1.5px, transparent 1.5px);
    background-size: 150px 150px, 30px 30px, 30px 30px;
}

/* CONTAINER QUE ORGANIZA OS CARTÕES */
.card-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 60px;
    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 (FORMATO ORIGINAL) */
.card {
    width: 90%;
    max-width: 550px;
    min-height: 310px;
    height: auto;
    aspect-ratio: 1.7 / 1;
    padding: 20px;
    background-color: #E6E6E6; 
    background-image: url('/ricardo-laragnoit-4x1q/natural-paper.webp');
    background-repeat: repeat;
    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 */
.bronze-edge {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 0 3px #7A5F4D; 
    pointer-events: none;
    border-radius: 25px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 1;
}

/* TIPOGRAFIA FRENTE */
.logo-img {
    width: 130px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: #4B3621; 
    margin-bottom: 10px;
}

.specialties {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px; 
    color: #5A5A5A; 
    padding-top: 12px;
    border-top: 1px solid rgba(122, 95, 77, 0.3);
    width: 90%; 
    line-height: 1.6; 
}

/* LINKS DAS ESPECIALIDADES (Frente) */
.spec-item, 
.spec-item:visited {
    text-decoration: none;
    color: #5A5A5A;
    transition: 0.3s;
    outline: none;
}

/* VERSO E QR CODE */
.logo-verso {
    width: 60px;
    height: auto;
    display: block;
    margin: 0 auto 8px auto;
}

.qrcode-container {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

/* MOLDURA DO QR CODE */
.qrcode-border {
    width: 135px; 
    height: 135px;
    border: 2px solid #553a2a;
    padding: 5px;
    border-radius: 8px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* BLOCO DE CONTATO */
.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.link-contato,
.link-contato:visited { 
    text-decoration: none;
    color: #5A5A5A;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    outline: none; 
}

/* HOVER APENAS PARA COMPUTADOR (Evita travar azul no mobile) */
@media (hover: hover) {
    .link-contato:hover, 
    .spec-item:hover { 
        color: #0000EE; 
    }
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: #0da545 !important;
}

/* 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 #7A5F4D;
}

.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(44%) sepia(13%) saturate(823%) hue-rotate(358deg) brightness(95%) contrast(88%);
}

.share-float__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background-color: #7A5F4D;
    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;
}

@media (hover: hover) {
    .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: #6a5343;
}

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

.share-float:active {
    background-color: #f0ebe6;
    border-color: #6a5343;
}

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

.share-toast {
    position: fixed;
    left: 50%;
    bottom: 180px;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(16, 67, 124, 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
   ============================================================ */
@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));
        gap: 30px; 
    }

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

    .card { 
        width: 100%;
        max-width: 550px;
        aspect-ratio: 1.7 / 1; 
        padding: 15px; 
    }

    .logo-img {
        width: 30vw; 
        max-width: 130px;
    }

    .name { 
        font-size: 5.5vw; 
    }

    .specialties {
        font-size: 2.5vw; 
        width: 95%;
    }

    .logo-verso {
        width: 15vw; /* Corrigido de 50vw para 15vw */
        max-width: 60px;
    }

    /* Ajuste da moldura no celular */
    .qrcode-border {
        width: 28vw; 
        height: 28vw;
        max-width: 130px;
        max-height: 130px;
        padding: 5px;
    }

    .link-contato,
    .link-contato:visited { 
        font-size: 3.5vw; 
    }

    /* Efeito de clique (Active) no Celular */
    .link-contato:active, 
    .spec-item:active { 
        color: #0000EE;
        transition: 0s;
    }

    .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;
    }
}