/* Custom styles for Technode */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Root */
:root {
    --tn-preto: #0c0d14;
    --tn-branco: #ffffff;
    --tn-cinza: #686868;
    --tn-cinza-medio: #bfbaba;
    --tn-cinza-claro: #f5f5f5;
    --tn-azul: #68c6df;
    --tn-roxo: #784695;
    --tn-magenta: #c55299;
    --tn-gradiente: linear-gradient(45deg, #68c6df 0%, #784695 50%, #c55299 100%);
}

/* Color Gradient */
.color-gradient {
    background: var(--tn-gradiente);
    width: 100%;
    height: 10px;
}

.color-gradient-footer {
    background: var(--tn-gradiente);
    width: 100%;
    height: 5px;
}

.bg-cinza-claro{
    background-color: var(--tn-cinza-claro);
}

/* Body */
body {
    font-family: "Work Sans", sans-serif;
    margin: 0;
}

/* Header */
header {
    border-bottom: 1px solid var(--tn-roxo);
}

.header-container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.header-rs {
    gap: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Links */
a {
    text-decoration: none;
    color: var(--tn-magenta);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--tn-roxo);
}

a:focus-visible {
    outline: 3px solid rgba(120, 70, 149, 0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

a:active {
    color: var(--tn-roxo);
}

/* Botão */
.btn:focus {
    box-shadow: none;
}

.btn:focus-visible {
    outline: 2px solid var(--tn-roxo);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--tn-roxo);
    border: none;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background: var(--tn-gradiente);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(120, 70, 149, 0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

.btn-outline-primary {
    color: var(--tn-roxo);
    border: 2px solid var(--tn-roxo);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--tn-gradiente);
    color: var(--tn-branco);
    border: 2px solid var(--tn-roxo);
}

.btn-outline-primary:focus-visible {
    outline: 3px solid rgba(120, 70, 149, 0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

.btn-secondary {
    background-color: var(--tn-azul);
    border: none;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background: var(--tn-gradiente);
}

.btn-secondary:focus-visible {
    outline: 3px solid rgba(120, 70, 149, 0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

.btn-outline-secondary {
    color: var(--tn-azul);
    border: 2px solid var(--tn-azul);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-secondary:hover {
    background: var(--tn-gradiente);
    color: var(--tn-branco);
    border: 2px solid var(--tn-azul);
}

.btn-outline-secondary:focus-visible {
    outline: 3px solid rgba(120, 70, 149, 0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--tn-roxo);
    padding: 0;
}

.btn-ghost:hover {
  color: var(--tn-magenta);
}

.btn-ghost:focus-visible {
    outline: 3px solid rgba(120, 70, 149, 0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

/* Breadcrumbs */
.breadcrumb-content {
    margin-bottom: 40px;
}

.technode-breadcrumb {
    --bs-breadcrumb-divider: ">";
}

/* Technode Logo */
.technode-logo {
    width: 75%;
    height: auto;
}

.technode-header-logo {
    width: 250px;
    height: auto;
}

/* Text */
p {
    font-size: 1.125rem;
    margin: 1rem 0;
}

.txt-sm {
    color: var(--tn-roxo);
    font-size: 0.95rem;
}

/* Social Icons */
.social-icon {
    font-size: 48px;
    color: var(--tn-preto);
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: var(--tn-magenta);
}

.social-icon:focus-visible {
    outline: 3px solid rgba(120, 70, 149, 0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

.header-social-icon {
    font-size: 24px;
    color: var(--tn-preto);
    transition: color 0.2s ease;
}

.header-social-icon:hover {
    color: var(--tn-magenta);
}

/* Card*/
.card .card-title {
    color: var(--tn-roxo);
    font-weight: 600;
}

.card-home {
    border: 2px solid var(--tn-roxo);
    box-shadow: 0 4px 8px rgba(120, 70, 149, 0.1);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    max-width: 560px;
}

.card-home p {
    font-size: 14px;
    color: var(--tn-cinza);
    border-radius: 16px;
}


/* Footer */
footer {
    background-color: var(--tn-cinza-claro);
}

footer p {
    margin: 0;
    color: var(--tn-branco);
}

.technode-footer-logo{
    width: 180px;
}

/* Acessibilidade */
/* A11y floating widget */
.tn-a11y {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1050;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.tn-a11y__toggle {
    border-radius: 999px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.tn-a11y__panel {
    width: min(280px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    padding: 12px;
}

.tn-a11y__title {
    font-weight: 700;
    margin-bottom: 10px;
}

/* Back to top */
.tn-back-to-top {
    width: 42px;
    height: 42px;
    position: fixed;
    right: 16px;
    bottom: 76px;
    /* acima do botão de acessibilidade */
    z-index: 1049;
    border-radius: 999px;
}

/* Alto contraste (toggle via classe no <html>) */
html.tn-contrast body {
    background: #0c0d14;
    color: #ffffff;
}

html.tn-contrast p,
html.tn-contrast .text-muted,
html.tn-contrast .breadcrumb,
html.tn-contrast a {
    color: #ffffff !important;
}

html.tn-contrast .border,
html.tn-contrast .tn-product-card,
html.tn-contrast .tn-card-dark {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Tamanho do texto (controlado por variável) */
:root {
    --tn-font-scale: 1;
}

body {
    font-size: calc(1rem * var(--tn-font-scale));
}


/* Media Queries */
@media (min-width: 992px) {
    .technode-logo {
        width: 450px;
    }
}

@media (max-width: 576px) {
    .header-container {
        text-align: center;
        gap: 20px;
        flex-direction: column;
    }

    .technode-logo {
        width: 90%;
    }
}