/* 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;
    
    /* Substitui a cor sólida pela sua imagem de madeira */
    background-image: url('/carlos-albuquerque-k9f2/fundo.webp');
    
    /* Configurações para a imagem ficar perfeita na tela */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* Cor de segurança caso a imagem falhe */
    background-color: #846957; 
}

/* 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 */
.card {
    width: 90%;
    max-width: 550px;
    min-height: 310px;
    height: auto;
    aspect-ratio: 1.7 / 1;
    padding: 20px;
    background-color: #1B263B; /* Azul sólido */
    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 INTERNA - AGORA DOURADA */
.bronze-edge {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 0 3px #C5A059; /* Cor Dourada */
    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: 160px;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: #f2e7dc; /* Bege Claro */
    margin-bottom: 10px;
}

.specialties {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px; 
    color: #C5A059; /* Dourado */
    padding-top: 12px;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    width: 90%; 
    line-height: 1.6; 
}

/* LINKS DAS ESPECIALIDADES */
.spec-item, 
.spec-item:visited {
    text-decoration: none;
    color: #C5A059 !important;
    transition: 0.3s;
    outline: none;
}

/* VERSO E QR CODE */
.logo-verso {
    width: 90px;
    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 - AGORA DOURADA */
.qrcode-border {
    width: 135px; 
    height: 135px;
    border: 2px solid #C5A059; /* Cor Dourada */
    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 (E-mail e Telefone) */
.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.link-contato,
.link-contato:visited { 
    text-decoration: none;
    color: #C5A059 !important;
    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; 
}

/* ICONE WHATSAPP INTERNO (Mantido verde para destaque) */
.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;
}

.corux-brand__link {
    display: inline-block;
    pointer-events: auto;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1B263B;
    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: #253551;
}

.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(27, 38, 59, 0.62);
    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 #C5A059;
}

.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(72%) sepia(35%) saturate(450%) hue-rotate(5deg) brightness(95%) contrast(90%);
}

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

/* HOVER (Computador) */
@media (hover: hover) {
    .link-contato:hover, 
    .spec-item:hover { 
        color: #f2e7dc !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: #a8844a;
    }
}

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

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

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

/* RESPONSIVIDADE (Mobile) */
@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; 
    }

    .name { 
        font-size: 5.5vw; 
    }

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

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

    .link-contato:active, 
    .spec-item:active { 
        color: #f2e7dc !important;
        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;
    }
}