/* MK-Store Visual — Hotsite (modelo "padrao" do MK-Auth): visual moderno nas cores do tema escolhido no admin.
 * Carregado depois do style.css do modelo, junto do tema.php?css=hotsite (cores) e do hotsite/mkstore.js
 * (imagens novas, classes de apoio). Vale assim que carrega (antes do carrossel medir a tela); o instalador só o põe nas páginas do hotsite. */
:root {
    --mks-primaria: #5a67d8;
    --mks-primaria-600: #4c51bf;
    --mks-primaria-50: #eef0ff;
    --mks-rgb: 90, 103, 216;
    --mks-grad: linear-gradient(135deg, #5a67d8, #764ba2);
    --mks-sombra-cor: rgba(90, 103, 216, .28);
    --mks-brilho: rgba(240, 147, 251, .35);
    --mks-lateral: #1f2251;
    --mks-lateral2: #3b2f7a;
    --mks-suave: #c7cbf5;
    --mks-suave2: #e6e8ff;
    --mks-texto: #1a202c;
    --mks-cinza: #5b6782;
    --mks-borda: #e3e8f2;
    --mks-fundo: #f4f6fb;
    --mks-raio: 18px;
    --mks-sombra: 0 6px 20px rgba(20, 27, 46, .07), 0 1px 3px rgba(20, 27, 46, .05);
    --mks-sombra-lg: 0 22px 50px rgba(20, 27, 46, .13), 0 4px 10px rgba(20, 27, 46, .06);
    --mks-fonte: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base ---------- */
html body { background: var(--mks-fundo); color: var(--mks-texto); font-family: var(--mks-fonte); }
html .container-xxl.bg-white { background: var(--mks-fundo) !important; }
html h1, html h2, html h3, html h4, html h5,
html p, html .dropdown-item, html .navbar-light .navbar-nav .nav-link {
    font-family: var(--mks-fonte);
}
html body * { font-family: var(--mks-fonte); }
html h1, html h2, html h3 { font-weight: 800; letter-spacing: -.02em; color: var(--mks-texto); }
html p { font-size: 1rem; line-height: 1.65; color: var(--mks-cinza); }
html a { color: var(--mks-primaria); }
html a:hover { color: var(--mks-primaria-600); }
html .text-primary { color: var(--mks-primaria) !important; }
html .bg-primary { background: var(--mks-primaria) !important; }
html ::selection { background: rgba(var(--mks-rgb), .22); }

/* Botões */
html .btn { border-radius: 12px; font-weight: 600; transition: transform .15s, box-shadow .15s, filter .15s; }
html .btn.btn-primary {
    background: var(--mks-grad); border: 0; color: #fff;
    box-shadow: 0 10px 24px var(--mks-sombra-cor);
}
html .btn.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 30px var(--mks-sombra-cor); }
html .btn.btn-primary:focus { box-shadow: 0 0 0 4px rgba(var(--mks-rgb), .25); }
html .form-control, html .form-select {
    border-radius: 12px; border: 1px solid var(--mks-borda); font-family: var(--mks-fonte);
}
html .form-control:focus, html .form-select:focus {
    border-color: var(--mks-primaria); box-shadow: 0 0 0 4px rgba(var(--mks-rgb), .16);
}
html #spinner .spinner-border { color: var(--mks-primaria) !important; }

/* ---------- Barra do menu ---------- */
html .nav-bar { margin-top: 18px; padding: 0 24px; background: transparent !important; }
html .nav-bar.sticky-top { top: 10px; padding: 0 24px; }
html .nav-bar .navbar {
    border-radius: 20px; padding: 8px 18px !important;
    background: rgba(255, 255, 255, .86) !important; backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    box-shadow: 0 12px 34px rgba(20, 27, 46, .10), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
html .nav-bar .icon {
    padding: 6px 10px; border: 0 !important; border-radius: 14px; background: #fff !important;
    box-shadow: 0 0 0 1px var(--mks-borda), 0 4px 10px rgba(20, 27, 46, .06);
}
html .nav-bar .logo { width: auto; height: 46px; max-width: 190px; object-fit: contain; border-radius: 8px; display: block; }
/* Com a logo do provedor: só a logo, maior e sem moldura; sem logo: globo do MK-Auth + nome do provedor */
html.mks-hs-com-logo .navbar-brand { display: none !important; }
html.mks-hs-com-logo .nav-bar .icon { padding: 4px 0 !important; margin-right: auto !important; background: transparent !important; box-shadow: none; }
html.mks-hs-com-logo .nav-bar .logo { height: 54px; max-width: 240px; border-radius: 6px; }
html.mks-hs-sem-logo .nav-bar .icon { padding: 2px !important; background: transparent !important; box-shadow: none; }
html.mks-hs-sem-logo .nav-bar .logo { height: 46px; width: 46px; }
html .navbar-brand { min-width: 0; }
html .navbar-brand h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html .navbar-light .navbar-brand { height: 64px; }
html .navbar-brand h2 {
    font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em;
    background: var(--mks-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
html .navbar-light .navbar-nav .nav-link {
    margin-right: 6px; padding: 10px 14px; border-radius: 12px;
    font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #334155;
}
html .navbar-light .navbar-nav .nav-link:hover,
html .navbar-light .navbar-nav .nav-link.active,
html .navbar-light .navbar-nav .show > .nav-link {
    color: var(--mks-primaria); background: var(--mks-primaria-50);
}
html .navbar .dropdown-menu {
    border: 0 !important; border-radius: 16px !important; padding: 8px;
    box-shadow: var(--mks-sombra-lg); min-width: 220px;
}
html .dropdown-item { border-radius: 10px; padding: 9px 12px; font-weight: 600; font-size: 14px; color: #334155; }
html .dropdown-item:hover, html .dropdown-item:focus { background: var(--mks-primaria-50); color: var(--mks-primaria); }
html .navbar-toggler { border: 0; border-radius: 12px; padding: 8px 10px; background: var(--mks-primaria-50); }
html .navbar-toggler:focus { box-shadow: 0 0 0 4px rgba(var(--mks-rgb), .2); }

/* ---------- Topo (início e páginas internas) ---------- */
html .header {
    position: relative; width: auto; margin: 18px 24px 0; border-radius: 28px; overflow: hidden;
    background: #fff !important; box-shadow: var(--mks-sombra);
}
@media (min-width: 992px) { html .header { margin-top: -96px; padding-top: 96px !important; } }
html .header::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 80% at 0% 0%, rgba(var(--mks-rgb), .14), transparent 60%),
                radial-gradient(50% 70% at 100% 100%, var(--mks-brilho), transparent 65%);
    opacity: .7;
}
html .header > .row { position: relative; }
html .header .col-md-6.p-3, html .header .col-md-6.p-5 { padding: 40px 48px !important; }
html .header .display-5 { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 800; line-height: 1.08; }
html .header .display-5 .text-primary {
    background: var(--mks-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
html .header p { font-size: 1.1rem; max-width: 520px; }
html .header .btn-primary { padding: 14px 26px !important; font-size: 1.02rem; }
html .header .breadcrumb { background: transparent; padding: 0; }
html .header .breadcrumb-item, html .header .breadcrumb-item a { font-weight: 600; font-size: 14px; }
html .header .breadcrumb-item.active { color: var(--mks-cinza) !important; }
html .header .col-md-6.animated { padding: 18px; }
html .header-carousel, html .header .col-md-6 > img.img-fluid { border-radius: 22px; overflow: hidden; }
html .header .col-md-6 > img.img-fluid { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--mks-sombra-lg); }
html .header-carousel .owl-carousel-item img { aspect-ratio: 16 / 10; object-fit: cover; }
html .header-carousel .owl-nav { left: 18px; }
html .header-carousel .owl-nav .owl-prev, html .header-carousel .owl-nav .owl-next {
    width: 44px; height: 44px; border-radius: 14px; font-size: 18px;
    background: rgba(255, 255, 255, .9); color: var(--mks-primaria); box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
html .header-carousel .owl-nav .owl-prev:hover, html .header-carousel .owl-nav .owl-next:hover { background: #fff; color: var(--mks-primaria-600); }

/* Arte nova (cinza) pintada com o degradê do tema */
html .mks-hs-tinta { position: relative; overflow: hidden; isolation: isolate; }
html .mks-hs-tinta::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
    background: var(--mks-grad); mix-blend-mode: color;
}
html .header .col-md-6.mks-hs-tinta::after { inset: 18px; border-radius: 22px; }
html .about-img.mks-hs-tinta::after { inset: 0; border-radius: 22px; }

/* ---------- Busca (faixa escura do modelo): uma barra só, campo + buscador + botão ---------- */
html .container-fluid.bg-dark.mb-5 {
    margin: 22px 24px 40px !important; width: auto; border-radius: 22px; padding: 16px !important;
    background: var(--mks-grad) !important; box-shadow: 0 16px 36px var(--mks-sombra-cor);
}
/* a barra branca ocupa a faixa toda (mesma margem dos dois lados), em vez de 1040px centralizados */
html .container-fluid.bg-dark.mb-5 > .container { max-width: none; width: 100%; margin: 0; padding: 0; }
html .container-fluid.bg-dark.mb-5 .row { margin: 0; }
html .container-fluid.bg-dark.mb-5 .col-md-12 { padding: 0; margin-top: 0 !important; } /* a row g-2 do modelo dava 8px só em cima */
html .container-fluid.bg-dark.mb-5 .row.g-5 {
    --bs-gutter-x: 0; --bs-gutter-y: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 0;
    padding: 7px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
html .container-fluid.bg-dark.mb-5 .row.g-5 > div { padding: 0; margin: 0; width: auto; }
html .container-fluid.bg-dark.mb-5 .row.g-5 > .col-md-6 { flex: 1 1 auto; min-width: 0; position: relative; }
html .container-fluid.bg-dark.mb-5 .row.g-5 > .col-md-6::before {
    content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: var(--mks-cinza); font-size: 18px; pointer-events: none;
}
html .container-fluid.bg-dark.mb-5 .row.g-5 > .col-md-4 { flex: 0 0 190px; border-left: 1px solid var(--mks-borda); }
html .container-fluid.bg-dark.mb-5 .row.g-5 > .col-md-2 { flex: 0 0 auto; }
html .container-fluid.bg-dark.mb-5 .form-control,
html .container-fluid.bg-dark.mb-5 .form-select {
    height: 52px; border: 0 !important; border-radius: 12px !important; padding-top: 0 !important; padding-bottom: 0 !important;
    background-color: transparent; box-shadow: none !important; font-size: 16px;
}
html .container-fluid.bg-dark.mb-5 .form-control { padding-left: 48px !important; }
html .container-fluid.bg-dark.mb-5 .form-select { color: var(--mks-cinza); font-weight: 600; }
html .container-fluid.bg-dark.mb-5 .btn-primary {
    height: 52px; padding: 0 28px !important; border-radius: 12px; white-space: nowrap; font-size: 16px;
    background: var(--mks-grad); color: #fff; box-shadow: none;
}
html .container-fluid.bg-dark.mb-5 .btn-primary:hover { color: #fff; }

/* ---------- Blocos de conteúdo (notícias, empresa, suporte...) ---------- */
html .container-xxl > .bg-light.rounded { background: transparent !important; padding: 0 !important; }
html .container-xxl > .bg-light.rounded > .bg-white.rounded {
    border: 0 !important; border-radius: 26px !important; box-shadow: var(--mks-sombra); padding: 28px !important;
}
html .about-img { padding: 0 !important; border-radius: 22px; }
html .about-img::before { display: none; }
html .about-img img { border-radius: 22px !important; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--mks-sombra-lg); }
/* Coluna da 2ª arte: mesmo espaço de grade da 1ª coluna (g-5: margem de cima e recuo lateral do gutter), sem o
   mt-lg-5/p-3 do modelo — com margem 0 ela subia e com p-3 a imagem ficava mais larga que a primeira */
html .mks-hs-par {
    margin-top: var(--bs-gutter-y, 0) !important;
    padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
    display: flex; flex-direction: column; justify-content: center;
}
html .row:has(> .mks-hs-par) { align-items: center !important; }
html .mks-hs-par-img { animation: mks-hs-surge .5s ease both; }
@keyframes mks-hs-surge { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html #noticiasT > span {
    display: block; padding: 14px 16px 6px; margin-bottom: 10px; border-radius: 14px;
    background: var(--mks-fundo); font-family: var(--mks-fonte); font-size: 1rem; font-weight: 600;
}
html #noticiasT > span::before { color: var(--mks-primaria); margin-right: 6px; }
html #noticiasT > span a { color: var(--mks-texto); }
html #noticiasT > span a:hover { color: var(--mks-primaria); }
html #noticiasT > span p { margin: 4px 0 0; font-size: 12px !important; color: var(--mks-cinza); }

/* ---------- Planos ---------- */
html .container-xxl.py-3 h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
html #planosP { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }
html #planosP .cat-item { height: 100%; padding: 0 !important; border-radius: 26px !important; text-decoration: none; }
html #planosP .cat-item > div {
    position: relative; height: 100%; display: flex; flex-direction: column; align-items: center;
    padding: 0 26px 28px !important; border: 0 !important; border-radius: 26px !important; overflow: hidden;
    background: #fff !important; box-shadow: var(--mks-sombra); transition: transform .2s, box-shadow .2s;
}
html #planosP .cat-item:hover > div { transform: translateY(-6px); box-shadow: var(--mks-sombra-lg), 0 0 0 2px rgba(var(--mks-rgb), .35); }
/* No hover o modelo pinta todo o texto do card de branco (.cat-item:hover div *); aqui cada parte mantém a sua cor
   (antes era "inherit" em tudo, e o texto do botão ASSINE ficava escuro sobre o degradê) */
html #planosP .cat-item:hover div > h5 { color: rgba(255, 255, 255, .85) !important; }
html #planosP .cat-item:hover div > strong { color: var(--mks-texto) !important; }
html #planosP .cat-item:hover div > p, html #planosP .cat-item:hover div > p * { color: var(--mks-cinza) !important; }
html #planosP .cat-item:hover div > p > p { color: var(--mks-primaria) !important; }
html #planosP .cat-item:hover div .btn, html #planosP .cat-item:hover div .btn * { color: #fff !important; }
html #planosP .cat-item h5 {
    align-self: stretch; margin: 0 -26px 22px; padding: 16px 20px; font-size: 12px !important; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85) !important; background: var(--mks-grad);
}
html #planosP .cat-item h5 + strong { display: none; }
html #planosP .cat-item strong { font-size: 1.6rem; font-weight: 800; color: var(--mks-texto); letter-spacing: -.02em; }
html #planosP .cat-item > div > p { margin: 12px 0 20px; font-size: .95rem; color: var(--mks-cinza) !important; line-height: 1.9; }
html #planosP .cat-item > div > p > p { margin: 14px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--mks-primaria) !important; }
html #planosP .cat-item .btn { margin-top: auto; width: 100%; padding: 12px 18px; }

/* ---------- Rodapé ---------- */
html .footer {
    margin: 48px 24px 24px !important; width: auto; border-radius: 28px; overflow: hidden;
    background: linear-gradient(160deg, var(--mks-lateral), var(--mks-lateral2)) !important;
    padding-top: 0 !important; /* o modelo soma pt-5 no rodapé + py-5 no bloco de dentro (~96px em cima) */
}
html .footer > .container.py-5 { padding-top: 36px !important; padding-bottom: 24px !important; }
html .footer .btn-link, html .footer .btn-link *, html .footer .textF { font-family: var(--mks-fonte) !important; } /* o modelo põe PT Serif nos links */
html .footer h5 { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: #fff !important; }
html .footer .textF, html .footer p { color: rgba(255, 255, 255, .72); font-size: .95rem; }
html .footer .textF:hover { color: #fff; }
html .footer .btn-link { padding: 4px 0; font-weight: 500; }
html .footer .btn-link::before { content: "\F285"; font-family: "bootstrap-icons"; margin-right: 8px; font-size: 11px; opacity: .7; }
html .footer .btn-social {
    width: 40px; height: 40px; margin-right: 8px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff;
}
html .footer .btn-social:hover { background: #fff; color: var(--mks-lateral); }
html .footer .form-control { border: 0; background: rgba(255, 255, 255, .95); }
html .footer .botao.btn-primary { border-radius: 10px; }
html .footer .copyright { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; font-size: 14px; color: rgba(255, 255, 255, .6); }
html .footer .copyright a { color: #fff; border-color: rgba(255, 255, 255, .3) !important; }
html .footer .copyright .mks-hs-copia { font-weight: 700; color: #fff; }
html .footer .copyright .mks-hs-cred { margin-top: 2px; font-size: 13px; }
html .footer .copyright .mks-hs-cred a { border: 0; font-weight: 700; }
html .footer .copyright img { border-radius: 8px; max-height: 34px; }
html .back-to-top {
    right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 16px !important;
    background: var(--mks-grad); border: 0; box-shadow: 0 12px 26px var(--mks-sombra-cor);
}

/* ---------- Formulários (cadastro, fale conosco) ---------- */
html .container-xxl .bg-white.rounded label, html .container-xxl .bg-white.rounded .form-label { font-weight: 600; font-size: 14px; color: #334155; }
html .container-xxl .bg-white.rounded .form-control, html .container-xxl .bg-white.rounded .form-select { padding: 11px 14px; }

/* ---------- Celular e tablet ---------- */
@media (max-width: 991.98px) {
    html .nav-bar, html .nav-bar.sticky-top { padding: 0 12px; margin-top: 10px; top: 8px; }
    html .nav-bar .navbar { padding: 6px 12px !important; border-radius: 18px; }
    html .navbar-light .navbar-brand { height: 56px; }
    html .navbar-brand h2 { font-size: 1.1rem; }
    html .nav-bar .navbar { flex-wrap: wrap; }
    html .nav-bar .icon { margin-right: 8px !important; }
    html .nav-bar .logo { height: 38px; max-width: 150px; }
    html.mks-hs-com-logo .nav-bar .logo { height: 42px; max-width: 190px; }
    html.mks-hs-sem-logo .nav-bar .logo { width: 38px; }
    html .navbar-brand { flex: 1 1 0; margin-right: 8px; }
    html .navbar-toggler { margin-left: auto; }
    html .container-fluid.bg-dark.mb-5 .row.g-5 > .col-md-2 { flex: 0 0 52px; }
    html .navbar-light .navbar-nav { border-top: 1px solid var(--mks-borda); padding: 8px 0; }
    html .navbar-light .navbar-nav .nav-link { padding: 11px 12px; margin: 0; }
    html .navbar .dropdown-menu { box-shadow: none; background: var(--mks-fundo); }
    html .header { margin: 14px 12px 0; border-radius: 22px; }
    html .header .col-md-6.p-3, html .header .col-md-6.p-5 { padding: 22px 20px 26px !important; margin-top: 0 !important; }
    html .header .display-5 { padding-top: 0 !important; }
    html .header .col-md-6.animated { padding: 12px 12px 0; }
    html .header .col-md-6.mks-hs-tinta::after { inset: 12px 12px 0; border-radius: 18px; }
    html .header-carousel, html .header .col-md-6 > img.img-fluid { border-radius: 18px; }
    html .container-fluid.bg-dark.mb-5 { margin: 14px 12px 26px !important; padding: 10px !important; border-radius: 18px; }
    html .container-fluid.bg-dark.mb-5 .row.g-5 > .col-md-4 { flex-basis: 112px; }
    html .container-fluid.bg-dark.mb-5 .form-select { padding-left: 10px; font-size: 14px; }
    html .container-fluid.bg-dark.mb-5 .btn-primary { width: 52px; padding: 0 !important; font-size: 0; }
    html .container-fluid.bg-dark.mb-5 .btn-primary i { font-size: 18px; }
    html .container-xxl > .bg-light.rounded > .bg-white.rounded { padding: 18px !important; border-radius: 20px !important; }
    html .footer { margin: 32px 12px 12px !important; border-radius: 22px; }
    html .footer .btn-social { margin-bottom: 8px; }
    html .back-to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 575.98px) {
    html .header .display-5 { font-size: 1.9rem; }
    html .header .header-carousel .owl-nav { display: none; }
    html .footer .container.py-5 { padding-top: 28px !important; padding-bottom: 20px !important; }
}
