/* ===========================================================
   Sele Sistemas — site novo (redesign moderno)
   Design system próprio sobre Bootstrap 5. Marca:
   smalt #002F8E · conifer #AEE046 · dodger #2391ff · flint #6C6764
   =========================================================== */

:root {
    --smalt: #002F8E;
    --smalt-dark: #001f63;
    --conifer: #AEE046;
    --conifer-dark: #95c92f;
    --dodger: #2391ff;
    --flint: #6C6764;
    --ink: #1d2433;
    --muted: #6b7280;
    --bg-soft: #f4f7fb;
    --radius: 14px;
    --shadow-sm: 0 4px 16px rgba(0,32,92,.08);
    --shadow: 0 12px 40px rgba(0,32,92,.12);
    --font-head: 'Raleway', sans-serif;
    --font-body: 'Titillium Web', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, .display { font-family: var(--font-head); font-weight: 800; color: var(--smalt); line-height: 1.15; }

a { color: var(--dodger); text-decoration: none; }
a:hover { color: var(--smalt); }

.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-smalt { background: var(--smalt); color: #fff; }
.section-smalt h1, .section-smalt h2, .section-smalt h3 { color: #fff; }

.eyebrow { font-family: var(--font-head); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--dodger); font-size: .8rem; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: .4rem 0 1rem; }
.lead-muted { color: var(--muted); font-size: 1.1rem; max-width: 720px; }

/* ---- Cores utilitárias da marca ---- */
.text-smalt { color: var(--smalt) !important; }
.text-conifer { color: var(--conifer) !important; }
.text-dodger { color: var(--dodger) !important; }
.text-flint { color: var(--flint) !important; }
.bg-smalt { background: var(--smalt) !important; }
.bg-conifer { background: var(--conifer) !important; }
.bg-soft { background: var(--bg-soft) !important; }

/* ---- Botões ---- */
.btn-sele {
    background: var(--conifer); color: var(--smalt);
    font-weight: 700; border: 0; border-radius: 999px;
    padding: .6rem 1.5rem; transition: all .2s ease;
}
.btn-sele:hover { background: var(--conifer-dark); color: var(--smalt-dark); transform: translateY(-1px); }
.btn-smalt { background: var(--smalt); color: #fff; font-weight: 700; border: 0; border-radius: 999px; padding: .6rem 1.5rem; transition: all .2s; }
.btn-smalt:hover { background: var(--smalt-dark); color: #fff; }
.btn-outline-sele { background: transparent; color: var(--smalt); border: 2px solid var(--smalt); font-weight: 700; border-radius: 999px; padding: .55rem 1.45rem; transition: all .2s; }
.btn-outline-sele:hover { background: var(--smalt); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); font-weight: 700; border-radius: 999px; padding: .55rem 1.45rem; }
.btn-ghost-light:hover { background: #fff; color: var(--smalt); }

/* ===================== HEADER ===================== */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: #fff;
    transition: box-shadow .2s ease, padding .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .navbar { padding: .5rem 0; }
.navbar-brand img { height: 50px; width: auto; }
.site-header .nav-link {
    color: var(--ink) !important; font-weight: 600;
    padding: .5rem .9rem !important; position: relative;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--smalt) !important; }
.site-header .nav-link.active::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 2px; height: 3px;
    background: var(--conifer); border-radius: 2px;
}
.site-header .dropdown-menu { border: 0; box-shadow: var(--shadow); border-radius: 12px; padding: .5rem; margin-top: .4rem; }
.site-header .dropdown-item { border-radius: 8px; font-weight: 600; color: var(--ink); padding: .55rem .8rem; }
.site-header .dropdown-item:hover { background: var(--bg-soft); color: var(--smalt); }
.site-header .btn-sele { color: var(--smalt); }

/* ===================== HERO (home) ===================== */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, var(--smalt-dark) 0%, var(--smalt) 55%, #0a4bb3 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: url('/assets/theme/inc/assets/imagens/bg-contato.svg') right center / cover no-repeat;
    opacity: .25;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding: 96px 0; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 900; }
.hero h1 .hl { color: var(--conifer); }
.hero p.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.9); max-width: 560px; }
.hero-img { max-width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-badge { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.92); font-weight: 600; }
.hero-badge i { color: var(--conifer); }

/* ===================== PRODUTOS (cards) ===================== */
.product-card {
    background: #fff; border: 1px solid #eef1f6; border-radius: var(--radius);
    padding: 2rem 1.6rem; height: 100%; transition: all .25s ease; position: relative; overflow: hidden;
}
.product-card::before { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%; background: var(--conifer); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card .pc-icon {
    width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-soft); color: var(--smalt); font-size: 1.7rem; margin-bottom: 1rem;
}
.product-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.product-card p { color: var(--muted); }
.product-card .pc-link { font-weight: 700; color: var(--dodger); }
.product-card .pc-link i { transition: transform .2s; }
.product-card:hover .pc-link i { transform: translateX(4px); }

/* ---- diferenciais ---- */
.feature { text-align: center; padding: 1rem; }
.feature .f-ic { font-size: 2rem; color: var(--conifer); background: rgba(174,224,70,.15); width: 70px; height: 70px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature h4 { color: var(--smalt); }

/* ===================== PAGE BANNER (internas) ===================== */
.page-banner {
    background: linear-gradient(120deg, var(--smalt-dark), var(--smalt)); color: #fff;
    padding: 70px 0; position: relative; overflow: hidden;
}
.page-banner::after { content: ""; position: absolute; inset: 0; background: url('/assets/theme/inc/assets/imagens/bg-contato.svg') right center/cover no-repeat; opacity: .2; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-banner .crumb { color: rgba(255,255,255,.75); font-weight: 600; }
.page-banner .crumb a { color: var(--conifer); }
.page-banner .lead { color: rgba(255,255,255,.9); max-width: 700px; }

/* ---- benefícios em lista (produtos) ---- */
.benefit { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.benefit .b-ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: var(--bg-soft); color: var(--smalt); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.section-smalt .benefit .b-ic { background: rgba(255,255,255,.1); color: var(--conifer); }
.benefit h5 { margin: 0 0 .2rem; }
.benefit p { margin: 0; color: var(--muted); }
.section-smalt .benefit p { color: rgba(255,255,255,.8); }
.section-smalt .benefit h5 { color: var(--conifer); }

/* ===================== NOTÍCIAS ===================== */
.news-card { background: #fff; border: 1px solid #eef1f6; border-radius: var(--radius); overflow: hidden; height: 100%; transition: all .25s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16/9; background: var(--bg-soft) center/cover no-repeat; }
.news-card .nc-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: .82rem; color: var(--muted); margin-bottom: .4rem; }
.news-cat { display: inline-block; background: rgba(35,145,255,.12); color: var(--dodger); font-weight: 700; font-size: .72rem; padding: .15rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.news-card h3 { font-size: 1.2rem; margin: .3rem 0 .5rem; }
.news-card h3 a { color: var(--smalt); }
.news-card p { color: var(--muted); font-size: .95rem; }
.news-card .nc-more { margin-top: auto; font-weight: 700; color: var(--dodger); }

.article-body { font-size: 1.08rem; color: #2a3242; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body h2, .article-body h3 { margin-top: 1.6rem; }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); }

/* ===================== DEPOIMENTOS ===================== */
.quote { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2rem; }
.quote .q-mark { font-size: 2.4rem; color: var(--conifer); line-height: 1; }
.quote .q-author { font-weight: 700; color: var(--smalt); }
.quote .q-role { color: var(--muted); font-size: .9rem; }

/* ===================== FORMS ===================== */
.form-control, .form-select { border-radius: 10px; border: 1px solid #d8dee9; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--dodger); box-shadow: 0 0 0 .2rem rgba(35,145,255,.15); }
.form-label { font-weight: 600; color: var(--smalt); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--smalt-dark); color: rgba(255,255,255,.8); padding-top: 64px; margin-top: 0; }
.site-footer h5 { color: #fff; font-size: 1rem; letter-spacing: .5px; margin-bottom: 1rem; }
.footer-logo { height: 52px; margin-bottom: 1rem; }
.footer-desc { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-links a:hover { color: var(--conifer); }
.footer-ribbon { height: 10px; margin-top: 56px; background: repeating-linear-gradient(90deg, var(--smalt) 0 14px, var(--dodger) 14px 28px, var(--conifer) 28px 42px); }
.footer-bottom { background: #00164a; color: rgba(255,255,255,.6); font-size: .85rem; padding: 14px 0; }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ===================== FLOAT / COOKIE ===================== */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 6px 18px rgba(0,0,0,.28); z-index: 1040; transition: transform .2s; }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
#cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 3px solid var(--conifer); padding: 14px 0; z-index: 1050; box-shadow: 0 -4px 20px rgba(0,0,0,.1); }
#cookie-bar .cookie-text { color: var(--ink); font-size: .92rem; }

/* ===================== ADMIN ===================== */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg-soft); }
.admin-side { width: 250px; background: var(--smalt-dark); color: #fff; flex: 0 0 auto; padding: 1.2rem; }
.admin-side .brand { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 1.5rem; display: block; }
.admin-side a { display: block; color: rgba(255,255,255,.8); padding: .6rem .8rem; border-radius: 8px; font-weight: 600; margin-bottom: .25rem; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { flex: 1; padding: 1.8rem 2rem; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.4rem; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.3rem; border-left: 5px solid var(--conifer); }
.stat-card .stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--smalt); }
.stat-card .stat-label { color: var(--muted); font-weight: 600; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(120deg, var(--smalt-dark), var(--smalt)); padding: 1rem; }
.admin-login-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 2.4rem; width: 100%; max-width: 410px; }

.badge-status { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.badge-pub { background: rgba(174,224,70,.25); color: #5a7d12; }
.badge-draft { background: #eceff3; color: var(--muted); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { background: #fff; padding: 1rem; border-radius: 12px; box-shadow: var(--shadow); margin-top: .5rem; }
    .hero-inner { padding: 60px 0; text-align: center; }
    .hero-badges { justify-content: center; }
    .section { padding: 56px 0; }
    .admin-shell { flex-direction: column; }
    .admin-side { width: 100%; }
}
