/*
 * Design system da vitrine SyherTech (PDV Nexus / SyherFood).
 * Carregado DEPOIS de css/style.css (residual do template Furni) em
 * includes/layout.php — todo seletor aqui vence por ordem de cascata
 * (mesma especificidade, declarado por último). Não há pipeline de build:
 * este é o CSS realmente servido, junto com scss/style.scss (só documental).
 *
 * Modified by Hércules <contato@herculesgoncalves.com.br>
 */

:root {
    /* Base da marca guarda-chuva (loja).
       Paleta clara (repaginada em 2026-09-07 a pedido do dono, que achou o
       tema anterior quase-preto #0A0E1A "muito dark"): fundo predominante
       claro com texto escuro, priorizando contraste WCAG AA (>= 4.5:1 texto
       normal, >= 3:1 texto grande/UI) em vez de manter dark mode.
       Modified by Hércules <contato@herculesgoncalves.com.br> */
    --st-bg: #F5F7FB;
    --st-bg-alt: #FFFFFF;
    --st-surface: #FFFFFF;
    --st-border: rgba(15, 23, 42, .12);
    --st-text: #0F172A;
    --st-text-muted: #46516B;
    --st-ink: #06121D; /* texto escuro usado sobre superficies claras/gradiente */

    /* PDV Nexus */
    --st-indigo: #4318FF;
    --st-indigo-hover: #3712D1;
    --st-radius-pdv: 8px;

    /* Loja: variacao de fundo pra separar secoes (hero/cards/como funciona),
       agora um tom de cinza-azulado bem sutil sobre a base clara.
       Modified by Hércules <contato@herculesgoncalves.com.br> */
    --st-bg-section: #EEF1F8;

    /* SyherFood. --st-sky escurecido de #38BDF8 pra #0369A1 (5.93:1 sobre
       branco) porque e usado como TEXTO/icone/link em fundo claro -- o tom
       antigo so batia 2.14:1. O gradiente do botao (abaixo) continua com os
       tons mais claros/vibrantes pois ali o texto por cima e --st-ink, nao
       precisa do mesmo ajuste. Modified by Hércules <contato@herculesgoncalves.com.br> */
    --st-sky: #0369A1;
    --st-sky-dark: #0284C7;
    --st-violet: #A78BFA;
    --st-green: #15803D; /* era #22C55E (2.28:1 sobre branco); usado como texto em heading/icone */
    --st-gradient-food: linear-gradient(135deg, #0EA5E9, #0284C7);
    --st-gradient-accent: linear-gradient(135deg, #0EA5E9 0%, #A78BFA 50%, #22C55E 100%);
    --st-radius-food: 16px;

    /* PDV: mesmo tratamento de profundidade que o botao do SyherFood ja tinha
       (--st-gradient-food), so que no indigo da marca -- pedido do usuario
       pra paleta clara nao ficar "chapada". Ambos os stops sao escuros o
       bastante pra texto branco continuar >= 4.5:1 (o stop mais claro,
       #4318FF, ja passava sozinho antes; o mais escuro so melhora).
       Modified by Hércules <contato@herculesgoncalves.com.br> */
    --st-gradient-indigo: linear-gradient(135deg, #5B3AFF, #3712D1);
}

/* ---------- Base ---------- */

body {
    background-color: var(--st-bg);
    color: var(--st-text-muted);
}

a {
    color: var(--st-sky);
    text-decoration: none;
}
a:hover {
    color: var(--st-text);
}

.section-title {
    color: var(--st-text);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.st-section-head {
    max-width: 640px;
    margin: 0 0 3rem;
}
.st-section-head p {
    color: var(--st-text-muted);
    margin-bottom: 0;
}

/* ---------- Navbar ---------- */

.custom-navbar {
    background: var(--st-bg-alt) !important;
    border-bottom: 1px solid var(--st-border);
}
.custom-navbar .navbar-brand {
    color: var(--st-text) !important;
    font-weight: 800;
}
.custom-navbar .navbar-brand span {
    color: var(--st-indigo);
    opacity: 1;
}
.custom-navbar .custom-navbar-nav li a {
    color: var(--st-text-muted) !important;
    opacity: 1;
}
.custom-navbar .custom-navbar-nav li a:before {
    background: var(--st-indigo);
}
.custom-navbar .custom-navbar-nav li a:hover,
.custom-navbar .custom-navbar-nav li.active a {
    color: var(--st-text) !important;
}

/* ---------- Botões ---------- */

.btn {
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

/* CTA geral da loja (hero, "voltar", "ir para o sistema"): indigo, pill. */
.btn.btn-secondary {
    background: var(--st-gradient-indigo);
    border-color: transparent;
    color: #ffffff;
    border-radius: 999px;
    padding: .9rem 2rem;
}
.btn.btn-secondary:hover {
    filter: brightness(1.08);
    color: #ffffff;
}

/* Botão de assinar em sistema.php: assume a identidade do produto. */
.st-btn-accent.st-accent-pdv {
    background: var(--st-gradient-indigo);
    border-color: transparent;
    border-radius: var(--st-radius-pdv);
    color: #ffffff;
}
.st-btn-accent.st-accent-pdv:hover {
    filter: brightness(1.08);
}
.st-btn-accent.st-accent-syherfood {
    background: var(--st-gradient-food);
    border-color: transparent;
    border-radius: var(--st-radius-food);
    color: var(--st-ink);
}
.st-btn-accent.st-accent-syherfood:hover {
    filter: brightness(.96);
    color: var(--st-ink);
}
.st-btn-accent.st-accent-default {
    background: var(--st-gradient-indigo);
    border-color: transparent;
    border-radius: 999px;
    color: #ffffff;
}

/* ---------- Hero ----------
 * Estrutura de duas colunas do template original (texto a esquerda / midia a
 * direita) — o pedido do usuario foi "layout do Furni, skin nosso": sem
 * badge/eyebrow, sem gradiente grande no titulo, fundo escuro CHAPADO (sem
 * os dois radial-gradient "borrao" que pareciam gerado por IA).
 * Modified by Hércules <contato@herculesgoncalves.com.br>
 */

.hero {
    position: relative;
    overflow: hidden;
    /* Degrade diagonal indigo -> sky (as duas cores de marca, sem misturar
       num terceiro tom "cyan-roxo generico" -- cada uma aparece no seu canto).
       Tons ainda claros o bastante (luminancia alta) pra nao afetar o
       contraste do texto por cima -- ver calculo no relato da tarefa.
       Modified by Hércules <contato@herculesgoncalves.com.br> */
    background: linear-gradient(135deg, #E3E5FC 0%, #FFFFFF 45%, #DCF1FC 100%);
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem);
}
.hero .intro-excerpt {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-weight: 800;
    color: var(--st-text);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.hero p {
    color: var(--st-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

/* Carrossel de paineis no hero (substitui a foto unica/estatica do Furni):
   autoplay controlado por js/hero-carousel.js, aqui so a apresentacao. */
.st-hero-carousel {
    position: relative;
}
.st-hero-carousel__slide {
    display: none;
}
.st-hero-carousel__slide.is-active {
    display: block;
    animation: st-hero-fade .5s ease;
}
@keyframes st-hero-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.st-hero-carousel__slide--pdv .st-browser-frame {
    --st-card-radius: var(--st-radius-pdv);
}
.st-hero-carousel__slide--syherfood .st-browser-frame {
    --st-card-radius: var(--st-radius-food);
}
.st-hero-carousel__dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: 1.25rem;
}
.st-hero-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    /* rgba(255,255,255,.25) era pensado pra fundo escuro; no hero claro
       ficava invisivel (branco sobre branco). Modified by Hércules
       <contato@herculesgoncalves.com.br> */
    background: rgba(15, 23, 42, .18);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.st-hero-carousel__dot.is-active {
    background: var(--st-indigo);
    transform: scale(1.2);
}
.st-hero-carousel__dot:focus-visible {
    outline: 2px solid var(--st-indigo);
    outline-offset: 3px;
}

/* ---------- Cards de produto ---------- */

.product-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    /* Transicao suave em vez de cor solida lisa -- entra do branco do hero
       e sai de volta pro branco antes do "como funciona".
       Modified by Hércules <contato@herculesgoncalves.com.br> */
    background: linear-gradient(180deg, var(--st-bg-alt) 0%, #E7EBF6 20%, #E7EBF6 80%, var(--st-bg-alt) 100%);
}

.product-item {
    --st-card-accent: var(--st-indigo);
    --st-card-radius: var(--st-radius-pdv);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    text-decoration: none;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.product-item:hover {
    transform: translateY(-6px);
    border-color: var(--st-card-accent);
    box-shadow: 0 24px 48px -28px var(--st-card-accent);
}
.product-item--pdv {
    --st-card-accent: var(--st-indigo);
    --st-card-radius: var(--st-radius-pdv);
}
.product-item--syherfood {
    --st-card-accent: var(--st-sky);
    --st-card-radius: var(--st-radius-food);
}
.product-item--default {
    --st-card-accent: var(--st-indigo);
    --st-card-radius: var(--st-radius-pdv);
}

.st-browser-frame {
    border-radius: var(--st-card-radius, 14px);
    overflow: hidden;
    background: #060911;
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
    margin-bottom: 1.25rem;
}
.st-browser-frame__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .04);
}
.st-browser-frame__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.st-browser-frame__bar span:nth-child(1) { background: #FF5F57; }
.st-browser-frame__bar span:nth-child(2) { background: #FEBC2E; }
.st-browser-frame__bar span:nth-child(3) { background: #28C840; }
.st-browser-frame__body {
    aspect-ratio: 8 / 5;
    overflow: hidden;
}
.st-browser-frame__body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.product-item:hover .st-browser-frame__body img {
    transform: scale(1.05);
}

/* Card mostrando o LOGO do produto em vez do screenshot do painel (index.php,
   $capaEhLogo): as duas logos reais tem proporcao/fundo bem diferentes entre
   si (uma retrato com espaco em branco, outra paisagem com fundo acinzentado)
   -- caixa padronizada com fundo claro e object-fit:contain deixa os dois
   cards com a logo no mesmo tamanho/enquadramento. So se aplica quando a capa
   e logo; quando e o screenshot do painel (.st-browser-frame__body sem esse
   modificador), continua preenchendo o frame como antes.
   Modified by Hércules <contato@herculesgoncalves.com.br> */
.st-browser-frame__body--logo {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem;
}
.st-browser-frame__body--logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-item:hover .st-browser-frame__body--logo img {
    transform: none;
}

.st-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: .9rem;
    align-self: flex-start;
}
.st-badge--gradient {
    background: var(--st-gradient-accent);
    color: var(--st-ink);
}

.product-item .product-title {
    color: var(--st-text);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: .4rem;
}
.st-product-summary {
    color: var(--st-text-muted);
    font-size: .9rem;
    margin-bottom: 1rem;
}

.st-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.st-bullets li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--st-text-muted);
    font-size: .85rem;
    line-height: 1.4;
}
.st-bullets li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: .15rem;
    color: var(--st-card-accent, var(--st-indigo));
    font-size: .7rem;
}

.product-item .product-price {
    margin-top: auto;
    color: var(--st-text);
    font-size: 1.5rem;
    font-weight: 800;
}
.product-item .product-price span {
    font-size: .8rem;
    color: var(--st-text-muted);
    font-weight: 500;
}
.st-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .9rem;
    font-weight: 700;
    font-size: .85rem;
    color: var(--st-card-accent, var(--st-indigo));
}

/* ---------- Como funciona ---------- */

.st-how-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--st-bg-alt);
}
.st-how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
}
@media (max-width: 991px) {
    .st-how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .st-how-grid { grid-template-columns: 1fr; }
}
.st-how-step h3 {
    color: var(--st-text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .35rem;
}
.st-how-step p {
    color: var(--st-text-muted);
    font-size: .9rem;
    margin-bottom: 0;
}
.st-how-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 24, 255, .15);
    color: var(--st-indigo);
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}

/* ---------- Detalhe do sistema (sistema.php) ---------- */

.untree_co-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--st-bg);
}
.st-product-detail--pdv {
    --st-card-accent: var(--st-indigo);
    --st-card-radius: var(--st-radius-pdv);
}
.st-product-detail--syherfood {
    --st-card-accent: var(--st-sky);
    --st-card-radius: var(--st-radius-food);
}
.st-product-detail--default {
    --st-card-accent: var(--st-indigo);
    --st-card-radius: var(--st-radius-pdv);
}
.st-product-detail .lead {
    color: var(--st-text);
    font-size: 1.1rem;
    font-weight: 500;
}
.st-product-detail p {
    color: var(--st-text-muted);
}
.st-product-detail h3 {
    color: var(--st-text);
    font-weight: 800;
}
.st-product-detail h3 span {
    color: var(--st-text-muted);
    font-weight: 500;
    font-size: .9rem;
}
.st-product-detail .text-muted {
    color: var(--st-text-muted) !important;
}
.st-product-detail .st-browser-frame {
    max-width: 560px;
}

/* ---------- Galeria + zoom (pagina de detalhe do sistema) ----------
 * Adaptado do que a producao ja tinha (zoom com lupa + miniaturas + modal),
 * so trocando a cor fixa laranja da miniatura ativa pelo acento do proprio
 * produto (var(--st-card-accent), ja definido em .st-product-detail--pdv/
 * --syherfood) e o wrapper de imagem pela nossa .st-browser-frame.
 * Modified by Hércules <contato@herculesgoncalves.com.br>
 */

.st-galeria-zoom {
    position: relative;
    cursor: zoom-in;
}
.st-galeria-zoom img {
    /* Fade de 180ms ao trocar de miniatura (js/galeria-zoom.js zera a
       opacidade antes de trocar o src e volta pra 1 depois do load).
       Modified by Hércules <contato@herculesgoncalves.com.br> */
    transition: opacity .18s ease;
}
.st-galeria-zoom__lens {
    /* 100px por pedido do usuario (mesmo valor usado do lado da producao,
       que recebeu o mesmo ajuste) -- lupa maior cobria a imagem inteira.
       Modified by Hércules <contato@herculesgoncalves.com.br> */
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    pointer-events: none;
    display: none;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    z-index: 5;
}
.st-galeria-legenda {
    color: var(--st-text-muted);
    font-size: .85rem;
    margin: .75rem 0 1.25rem;
    min-height: 1.2em;
}
.st-galeria-thumbs {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.st-galeria-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .6;
    transition: opacity .15s ease, border-color .15s ease;
}
.st-galeria-thumb:hover {
    opacity: 1;
}
.st-galeria-thumb.is-active {
    opacity: 1;
    border-color: var(--st-card-accent, var(--st-indigo));
}
.st-galeria-thumb:focus-visible,
.st-galeria-zoom img:focus-visible {
    outline: 2px solid var(--st-card-accent, var(--st-indigo));
    outline-offset: 2px;
}

.st-galeria-modal {
    position: relative;
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--st-surface);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
.st-galeria-modal::backdrop {
    background: rgba(6, 9, 15, .82);
}
.st-galeria-modal img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
}
.st-galeria-modal__fechar {
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    color: var(--st-text);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.st-galeria-modal__fechar:hover {
    background: var(--st-indigo);
    border-color: var(--st-indigo);
    color: #ffffff;
}

/* ---------- Formulário ---------- */

.form-label {
    color: var(--st-text);
    font-weight: 600;
    margin-bottom: .4rem;
}
.form-control {
    height: auto;
    padding: .75rem 1rem;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 10px;
    color: var(--st-text);
    font-family: "Inter", sans-serif;
}
.form-control::placeholder {
    color: var(--st-text-muted);
    opacity: .7;
}
.form-control:focus {
    background: var(--st-surface);
    border-color: var(--st-indigo);
    color: var(--st-text);
    box-shadow: 0 0 0 3px rgba(67, 24, 255, .25);
}
.form-text {
    color: var(--st-text-muted);
}

/* ---------- Alertas (bloco_aviso) ---------- */

.alert {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 16px;
    color: var(--st-text);
    padding: 1.5rem;
}
.alert-heading {
    color: var(--st-text);
    font-weight: 700;
}
.alert-success { border-color: rgba(34, 197, 94, .4); }
.alert-success .alert-heading { color: var(--st-green); }
.alert-danger { border-color: rgba(239, 68, 68, .4); }
/* #F87171 batia so 2.77:1 sobre fundo claro; #DC2626 sobe pra 4.83:1 (AA).
   Modified by Hércules <contato@herculesgoncalves.com.br> */
.alert-danger .alert-heading { color: #DC2626; }
.alert-warning { border-color: rgba(56, 189, 248, .4); }
.alert-warning .alert-heading { color: var(--st-sky); }

/* ---------- checkout/sucesso.php ---------- */

.st-status-card {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
}
.st-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}
.st-status-icon--ok {
    background: rgba(34, 197, 94, .15);
    color: var(--st-green);
}
.st-status-icon--wait {
    background: rgba(56, 189, 248, .15);
    color: var(--st-sky);
}

/* ---------- Rodapé ---------- */

.footer-section {
    background: var(--st-bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--st-border);
}
.footer-section p {
    color: var(--st-text-muted);
}
.footer-section a {
    color: var(--st-text-muted);
}
.footer-section a:hover {
    color: var(--st-text);
}
.footer-section .footer-logo-wrap .footer-logo {
    color: var(--st-text);
    font-weight: 800;
}
.footer-section .footer-logo-wrap .footer-logo span {
    color: var(--st-indigo);
    opacity: 1;
}
.footer-section .border-top {
    border-color: var(--st-border) !important;
}
.footer-section .copyright p {
    color: var(--st-text-muted);
    font-size: .85rem;
}
