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

a,
button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

a:focus,
a:active,
button:focus,
button:active,
[role="button"]:focus,
[role="button"]:active {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --sd-tech-teal: #2E8DA0;
    --sd-tech-teal-light: color-mix(in srgb, var(--sd-tech-teal) 78%, white);
    --sd-s-red: #A02828;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
    background-color: #1a1a2e;
    background-image: url('fundo-sd-tech.png');
    background-image: image-set(
        url('fundo-sd-tech.webp') type('image/webp'),
        url('fundo-sd-tech.png') type('image/png')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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: transparent;
    background-image: none;
}

/* 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 - Ajustado para fundo branco puro e sem degradê */
.card {
    width: 90%;
    max-width: 550px;
    min-height: 310px;
    height: auto;
    aspect-ratio: 1.7 / 1;
    padding: 30px; /* Leve ajuste de respiro para ajudar na centralização */
    
    /* Fundo alterado de #dce7f7 para branco puro conforme solicitado */
    background-color: #FFFFFF; 
    
    border-radius: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sombra leve para destacar o cartão branco sobre o fundo da tela */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    overflow: hidden; 
}


.card-front, .card-back {
    position: relative;
}


/* Contorno */
.bronze-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    border-radius: 25px;
    pointer-events: none;
    z-index: 2;

    box-shadow:
        /* Profundidade interna */
        inset 3px 3px 5px rgba(0, 0, 0, 0.20),
        inset -3px -3px 5px rgba(255, 255, 255, 0.60),

        /* Reflexos do vidro */
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 0 12px rgba(255,255,255,0.25),

        /* Camadas da borda de vidro */
        0 0 0 2px rgba(255,255,255,0.60),
        0 0 0 4px rgba(200,230,255,0.25),
        0 0 0 6px rgba(255,255,255,0.12),

        /* Sombra externa */
        0 8px 20px rgba(0,0,0,0.12);
}

.bronze-edge::before {
    content: "";
    position: absolute;
    inset: 3px;

    border-radius: 22px;

    border-top: 1px solid rgba(255,255,255,0.9);
    border-left: 1px solid rgba(255,255,255,0.5);

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.25) 0%,
        rgba(255,255,255,0.05) 20%,
        transparent 40%
    );

    opacity: 0.9;
}
.bronze-edge {
    overflow: hidden;
}
.bronze-edge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.12),
        transparent
    );

    transform: skewX(-25deg);
}


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

/* Borda principal — frente e verso */
.card.card-front,
.card.card-back {
    background-color: #FFFFFF;
    border: 3px solid var(--sd-tech-teal-light);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.card.card-front {
    --sd-s-red: #A02828;
    --sd-s-red-light: color-mix(in srgb, var(--sd-s-red) 78%, white);
    padding: 12px 14px;
}

.card.card-back {
    --sd-s-red: #A02828;
    --sd-s-red-light: color-mix(in srgb, var(--sd-s-red) 78%, white);
    padding: 0 22px 16px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* Verso — moldura interna vermelha (mesmo estilo da frente) */
.card.card-back::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid var(--sd-s-red-light);
    border-radius: 18px;
    pointer-events: none;
    z-index: 3;
}

/* Frente — borda tripla (vinho + teal internos) */
.card.card-front::before,
.card.card-front::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.card.card-front::before {
    inset: 8px;
    border: 2px solid var(--sd-s-red-light);
    border-radius: 18px;
}

.card.card-front::after {
    inset: 14px;
    border: 2px solid var(--sd-tech-teal-light);
    border-radius: 14px;
}

.sd-front {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sd-front__logo {
    display: block;
    width: min(100%, 30rem);
    height: auto;
    object-fit: contain;
}

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

.link-contato {
    text-decoration: none;
    color: #555555;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, color 0.3s ease;
}

@media (hover: hover) {
    .link-contato:hover {
        transform: scale(1.05);
        color: #0055FF;
    }

    .link-contato:hover svg {
        fill: #0055FF !important;
    }
}

.whatsapp-icon {
    fill: #25D366;
    transition: fill 0.3s ease;
}

.phone-icon {
    fill: #333333;
    transition: fill 0.3s ease;
}

.email-icon {
    fill: var(--sd-s-red);
    transition: fill 0.3s ease;
}

.link-contato__icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.website-icon {
    fill: var(--sd-tech-teal);
    transition: fill 0.3s ease;
}

.address-block {
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, color 0.3s ease;
}

@media (hover: hover) {
    .address-block:hover {
        transform: scale(1.05);
        color: #0055FF;
    }
}

.address-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.maps-icon {
    width: 18px;
    height: 18px;
    fill: #0055FF;
    flex-shrink: 0;
}

/* 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: 1100;
    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 var(--sd-tech-teal-light);
}

.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(56%) sepia(18%) saturate(1200%) hue-rotate(152deg) brightness(91%) contrast(88%);
}

.share-float__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background-color: var(--sd-tech-teal);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    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: 1101;
}

.share-toast {
    position: fixed;
    left: 50%;
    bottom: 180px;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(26, 26, 46, 0.95);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    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: 1101;
    pointer-events: none;
}

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

@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: color-mix(in srgb, var(--sd-tech-teal) 8%, white);
        border-color: var(--sd-tech-teal);
    }
}

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

.share-float:active {
    background-color: color-mix(in srgb, var(--sd-tech-teal) 14%, white);
    border-color: var(--sd-tech-teal);
}

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

/* RESPONSIVIDADE — FRENTE */
@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;
        min-height: 280px;
    }
    .card-front {
        padding: 10px 12px;
    }

    .card.card-front::before {
        inset: 6px;
        border-radius: 16px;
    }

    .card.card-front::after {
        inset: 11px;
        border-radius: 12px;
    }

    .sd-front__logo {
        width: min(100%, 26rem);
    }

    .link-contato { font-size: 18px; }

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

/* Faixa superior — verso (retângulo centralizado) */
.back-header {
    position: relative;
    z-index: 4;
    width: 100%;
    margin: 10px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-header__banner {
    --banner-slope: 8px;
    width: min(100%, 18rem);
    margin: 0 auto;
    min-height: 44px;
    padding: 11px 22px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(90deg, var(--sd-s-red) 0%, var(--sd-tech-teal) 100%);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        calc(100% - var(--banner-slope)) 100%,
        var(--banner-slope) 100%
    );
}

.back-header__name {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #ffffff;
}

/* ========================================================================
   VERSO DA PLACA — QR à esquerda + contatos à direita
   ======================================================================== */

.content.content-back {
    align-items: stretch;
    justify-content: flex-start;
    text-align: initial;
}

.content-back {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    justify-items: stretch;
    gap: 4px 20px;
    padding: 0 8px 4px;
    width: 100%;
    flex: 1;
    margin-top: 0;
}

.back-qr-column {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-self: end;
    align-self: start;
    padding-left: 6px;
    padding-right: 4px;
    position: relative;
    z-index: 1;
}

.back-qr-code {
    width: 128px;
    height: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.08, 1.12);
    transform-origin: top center;
}

.back-qr-brand {
    width: 118px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.08, 1.06);
    transform-origin: top center;
}

.back-qr-brand-wrap {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.back-qr-brand--bottom {
    width: 96px;
    transform: scale(1.04, 1.02);
    transform-origin: center right;
}

.back-bottom-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--sd-tech-teal-light);
}

.back-phones-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    justify-self: center;
}

.back-bottom-row .back-social-links {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-left: 2px;
    justify-self: start;
}

.back-bottom-row .back-qr-brand-wrap {
    justify-self: end;
    align-self: center;
}

.content-back .contact-info-block {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-self: start;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    padding-right: 4px;
}

.content-back .back-address {
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-bottom: 0;
    margin-left: 0;
    position: relative;
    z-index: 5;
    color: #555555;
    font-weight: 600;
    text-align: left;
}

.content-back .link-contato--site {
    width: 100%;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--sd-tech-teal-light);
}

.content-back .link-contato--email {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.content-back .back-address .maps-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0;
}

.content-back .back-address .address-text {
    gap: 1px;
    align-items: flex-start;
    text-align: left;
}

.content-back .back-address .address-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
}

.content-back .link-contato {
    justify-content: flex-start;
    font-size: 13px;
    gap: 6px;
    min-width: 0;
    text-align: left;
}

.content-back .link-contato svg,
.content-back .link-contato__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.content-back .link-contato--site span,
.content-back .link-contato--email span {
    font-size: 11px;
    line-height: 1.25;
}

.back-phone-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.back-phone-social-row .link-contato--phone {
    flex: 1 1 auto;
    min-width: 0;
}

.back-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.back-social-links--qr {
    justify-content: center;
    width: 100%;
    gap: 14px;
}

.back-social-links--qr .back-social-link--facebook {
    width: 26px;
    height: 26px;
}

.back-social-links--qr .back-social-link--instagram {
    width: 22px;
    height: 22px;
}

.back-social-links--qr .facebook-icon {
    width: 26px;
    height: 26px;
}

.back-social-links--qr .instagram-icon {
    width: 22px;
    height: 22px;
}

.back-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.facebook-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.instagram-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

@media (hover: hover) {
    .back-social-link:hover {
        transform: scale(1.08);
    }
}

.back-social-link:active {
    transform: scale(1.05);
}

@media (hover: hover) {
    .content-back .link-contato:hover .website-icon {
        fill: var(--sd-tech-teal) !important;
    }

    .content-back .link-contato:hover .phone-icon {
        fill: #333333 !important;
    }
}

@media (hover: hover) {
    .content-back .back-address:hover,
    .content-back .back-address:hover .address-text p {
        color: #0055FF;
    }
}

.content-back .back-address .address-text p + p {
    margin-top: 1px;
}

/* RESPONSIVIDADE — VERSO */
@media (max-width: 600px) {
    .card.card-back {
        padding: 0 16px 14px;
    }

    .card.card-back::before {
        inset: 6px;
        border-radius: 16px;
    }

    .back-header {
        margin: 8px 0 12px;
    }

    .back-header__banner {
        --banner-slope: 7px;
        width: min(100%, 16rem);
        min-height: 38px;
        padding: 9px 18px 11px;
    }

    .back-header__name {
        font-size: 13px;
    }

    .content-back {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 2px 12px;
        padding: 2px 6px 0;
    }

    .back-qr-code {
        width: 104px;
        height: auto;
    }

    .back-qr-column {
        gap: 16px;
        padding-left: 4px;
        padding-right: 2px;
    }

    .back-qr-brand {
        width: 96px;
        transform: scale(1.06, 1.05);
        transform-origin: top center;
    }

    .content-back .contact-info-block {
        gap: 4px;
        padding-right: 2px;
    }

    .content-back .link-contato {
        font-size: 12px;
        gap: 5px;
    }

    .content-back .back-address {
        margin-top: 0;
        padding-top: 0;
        margin-bottom: 0;
        margin-left: 0;
        gap: 5px;
    }

    .content-back .link-contato--site {
        margin-top: 8px;
        padding-top: 7px;
    }

    .back-bottom-row {
        gap: 8px 10px;
        margin-top: 8px;
        padding-top: 7px;
    }

    .back-qr-brand--bottom {
        width: 76px;
    }

    .back-phones-column {
        gap: 4px;
    }

    .back-social-links {
        gap: 8px;
    }

    .content-back .back-address .address-text p {
        font-size: 12px;
        line-height: 1.28;
    }
}

/* EFEITO DE TOQUE NO MOBILE (APENAS TELEFONES, ENDEREÇO E BOTÃO FLUTUANTE) */
.link-contato:active,
.address-block:active,
.content-back .back-address:active {
    transform: scale(1.05) !important;
    color: #0055FF !important;
}

/* Força a troca de cor dos ícones internos dos telefones no toque */
.link-contato:active svg {
    fill: #0055FF !important;
}

/* Força a troca de cor do texto do endereço do verso no toque */
.content-back .back-address:active .address-text p {
    color: #0055FF !important;
}