/* ============================================================
   BASEGO ESTRUTURAS — Tema "Rig" (escuro + iluminado)
   Inspirado no logotipo: preto de palco, laranja de refletor,
   arco de luz prateado. Feito para ficar bonito sob luz de show.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    /* ---- cor ---- */
    --bg: #0a0a0e;
    --bg-elevated: #111116;
    --surface: #17171f;
    --surface-2: #1e1e28;
    --border: #2a2a36;
    --border-bright: #3c3c4c;

    --accent: #ff7a1a;
    --accent-bright: #ffa04d;
    --accent-dim: #c75e0f;
    --accent-glow: rgba(255, 122, 26, 0.35);

    --silver: #c9cbd6;
    --silver-dim: #7d7f8c;

    --text: #f3f3f6;
    --text-muted: #9497a8;
    --text-faint: #63657a;

    --raio: 12px;
    --raio-sm: 8px;

    /* ---- tipografia ---- */
    --f-display: 'Space Grotesk', sans-serif;
    --f-body: 'Inter', sans-serif;
    --f-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--f-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* textura sutil de "piso de palco" no fundo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255,122,26,0.10), transparent 60%),
        radial-gradient(ellipse 700px 500px at 110% 10%, rgba(201,203,214,0.06), transparent 60%);
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.01em; margin: 0; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

/* ---------- HEADER ---------- */
.site-header {
    background: rgba(10,10,14,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 94px;
}
.logo-img { height: 62px; width: auto; display: block; filter: drop-shadow(0 0 14px var(--accent-glow)); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
    color: var(--text-muted);
    font-family: var(--f-display);
    font-weight: 500;
    font-size: .95rem;
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
    transition: .2s;
}
.main-nav a:hover, .main-nav a.ativo { color: var(--text); border-color: var(--accent); }
.btn-carrinho {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #10090a !important;
    padding: 9px 18px !important;
    border-radius: 999px;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700 !important;
    box-shadow: 0 0 22px var(--accent-glow);
}
.btn-carrinho:hover { filter: brightness(1.08); border-color: transparent !important; }
.badge {
    background: #0a0a0e;
    color: var(--accent-bright);
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 7px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
    text-align: center;
    background:
        radial-gradient(ellipse 640px 340px at 50% -10%, var(--accent-glow), transparent 65%),
        radial-gradient(ellipse 500px 300px at 85% 30%, rgba(201,203,214,0.08), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}
.hero::after {
    /* arco de luz assinatura, ecoando o swoosh do logotipo */
    content: '';
    position: absolute;
    left: 50%;
    bottom: -180px;
    width: 1100px;
    height: 360px;
    transform: translateX(-50%);
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    opacity: .35;
    filter: blur(1px) drop-shadow(0 0 30px var(--accent-glow));
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow {
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-bright);
    display: block;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text);
}
.hero h1 .destaque { color: var(--accent); }
.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 32px;
}
.hero .btn { margin: 0 6px; }

/* ---------- BOTÕES ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--raio-sm);
    font-family: var(--f-display);
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: .2s;
}
.btn-primario {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #170d05;
    box-shadow: 0 0 26px var(--accent-glow);
}
.btn-primario:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secundario {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-bright);
}
.btn-secundario:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn-perigo { background: #3a1414; color: #ff8a8a; border: 1px solid #5c1f1f; }
.btn-perigo:hover { background: #4a1818; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none !important; }

/* ---------- SEÇÕES ---------- */
section { padding: 66px 0; position: relative; z-index: 1; }
.section-titulo { text-align: center; margin-bottom: 40px; }
.section-titulo h2 { font-size: 1.9rem; margin: 0 0 10px; color: var(--text); }
.section-titulo p { color: var(--text-muted); margin: 0; }

/* ---------- GRID DE ITENS ---------- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}
.card-item {
    background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: var(--raio);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card-item:hover {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 1px var(--accent-dim), 0 12px 30px -12px var(--accent-glow);
    transform: translateY(-3px);
}
.card-item img { width: 100%; height: 175px; object-fit: cover; background: var(--surface-2); }
.card-item .placeholder-img {
    width: 100%; height: 175px; background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-faint); font-size: .85rem; font-family: var(--f-mono);
}
.card-item .conteudo { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-item h3 { margin: 0; font-size: 1.08rem; color: var(--text); }
.card-item .categoria-tag {
    font-family: var(--f-mono); font-size: .68rem; color: var(--accent-bright);
    text-transform: uppercase; letter-spacing: .1em;
}
.card-item p.descricao { color: var(--text-muted); font-size: .89rem; margin: 0; flex: 1; }
.card-item .preco { font-family: var(--f-mono); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.card-item .preco small { font-size: .72rem; font-weight: 400; color: var(--text-faint); }

/* ---------- FILTRO CATEGORIA ---------- */
.filtros-categoria { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filtros-categoria a {
    padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); font-size: .88rem; font-weight: 500; color: var(--text-muted);
    font-family: var(--f-display);
}
.filtros-categoria a.ativo, .filtros-categoria a:hover {
    background: var(--accent); color: #170d05; border-color: var(--accent); font-weight: 700;
}

/* ---------- DEPOIMENTOS ---------- */
.depoimento-card {
    background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: var(--raio);
    padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.depoimento-card .estrelas { color: var(--accent); letter-spacing: 2px; }
.depoimento-card .nome { font-family: var(--f-display); font-weight: 600; color: var(--text); }
.depoimento-card .texto { color: var(--text-muted); font-style: italic; }

/* ---------- FORMULÁRIOS ---------- */
.form-grupo { margin-bottom: 18px; }
.form-grupo label { display: block; font-family: var(--f-display); font-weight: 600; margin-bottom: 7px; font-size: .88rem; color: var(--text); }
.form-grupo input, .form-grupo select, .form-grupo textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--border);
    background: var(--bg-elevated); color: var(--text);
    border-radius: var(--raio-sm); font-size: .95rem; font-family: var(--f-body);
    transition: border-color .2s, box-shadow .2s;
}
.form-grupo input:focus, .form-grupo select:focus, .form-grupo textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-grupo textarea { resize: vertical; min-height: 90px; }
.form-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-linha { grid-template-columns: 1fr; } }

.card-form {
    background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: var(--raio);
    padding: 30px; max-width: 640px; margin: 0 auto;
}

/* ---------- CARRINHO / ORÇAMENTO ---------- */
.tabela-carrinho { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio); overflow: hidden; }
.tabela-carrinho th, .tabela-carrinho td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; }
.tabela-carrinho th { background: var(--bg-elevated); font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.tabela-carrinho input[type="number"] { width: 70px; padding: 7px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); border-radius: 6px; }
.status-disponibilidade { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; display: inline-block; }
.status-ok { background: rgba(46, 196, 111, 0.12); color: #4ade80; border: 1px solid rgba(74,222,128,.25); }
.status-alerta { background: rgba(255,90,90,0.1); color: #ff8a8a; border: 1px solid rgba(255,138,138,.25); }
.status-checando { background: rgba(201,203,214,0.1); color: var(--silver); border: 1px solid var(--border); }

.resumo-total { text-align: right; font-family: var(--f-mono); font-size: 1.3rem; font-weight: 600; margin: 22px 0; color: var(--text); }
.resumo-total span { color: var(--accent-bright); }

.alerta { padding: 15px 20px; border-radius: var(--raio-sm); margin-bottom: 22px; font-size: .9rem; border: 1px solid; }
.alerta-sucesso { background: rgba(46,196,111,.08); color: #4ade80; border-color: rgba(74,222,128,.25); }
.alerta-erro { background: rgba(255,90,90,.08); color: #ff8a8a; border-color: rgba(255,138,138,.25); }
.alerta-info { background: rgba(255,122,26,.08); color: var(--accent-bright); border-color: rgba(255,122,26,.25); }
.alerta a { text-decoration: underline; }

/* ---------- WHATSAPP FLUTUANTE ---------- */
.whatsapp-flutuante {
    position: fixed; bottom: 24px; right: 24px;
    background: #25D366; color: #fff;
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(37,211,102,.35);
    z-index: 999; transition: transform .2s;
}
.whatsapp-flutuante:hover { transform: scale(1.08); }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: 40px 0 18px;
    margin-top: 70px;
    position: relative;
    z-index: 1;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.footer-inner .logo-img { height: 46px; margin-bottom: 10px; }
.site-footer a { color: var(--accent-bright); font-weight: 600; }
.footer-inner .copy { width: 100%; text-align: center; margin-top: 22px; font-family: var(--f-mono); font-size: .74rem; color: var(--text-faint); border-top: 1px solid var(--border); padding-top: 18px; }

/* ---------- ADMIN ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 235px; background: var(--bg-elevated); border-right: 1px solid var(--border); color: #fff; padding: 26px 0; flex-shrink: 0; }
.admin-sidebar .logo-img { display: block; height: 56px; margin: 0 20px 26px; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.admin-sidebar a { display: block; padding: 12px 20px; color: var(--text-muted); font-family: var(--f-display); font-weight: 500; font-size: .92rem; border-left: 2px solid transparent; }
.admin-sidebar a:hover, .admin-sidebar a.ativo { background: rgba(255,122,26,.06); color: var(--text); border-left-color: var(--accent); }
.admin-content { flex: 1; padding: 32px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-topbar h1 { color: var(--text); font-size: 1.5rem; }
.admin-card { background: linear-gradient(180deg, var(--surface), var(--bg-elevated)); border: 1px solid var(--border); border-radius: var(--raio); padding: 24px; margin-bottom: 24px; }
.admin-card h3 { color: var(--text); margin-bottom: 14px; }
.admin-tabela { width: 100%; border-collapse: collapse; }
.admin-tabela th, .admin-tabela td { padding: 13px; border-bottom: 1px solid var(--border); text-align: left; font-size: .89rem; color: var(--text); }
.admin-tabela th { color: var(--text-muted); font-family: var(--f-mono); text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.admin-tabela a { color: var(--accent-bright); }
.admin-tabela img.thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.tag-status { padding: 4px 11px; border-radius: 999px; font-family: var(--f-mono); font-size: .7rem; font-weight: 600; border: 1px solid; }
.tag-pendente { background: rgba(255,180,60,.1); color: #ffb43c; border-color: rgba(255,180,60,.25); }
.tag-confirmado { background: rgba(74,222,128,.1); color: #4ade80; border-color: rgba(74,222,128,.25); }
.tag-cancelado { background: rgba(255,90,90,.1); color: #ff8a8a; border-color: rgba(255,138,138,.25); }
.login-box {
    max-width: 380px; margin: 100px auto; background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
    border: 1px solid var(--border); padding: 36px; border-radius: var(--raio);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
    text-align: center;
}
.login-box .logo-img { height: 68px; margin-bottom: 24px; filter: drop-shadow(0 0 16px var(--accent-glow)); }
.login-box h2 { display: none; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card { background: linear-gradient(180deg, var(--surface), var(--bg-elevated)); border: 1px solid var(--border); border-radius: var(--raio); padding: 22px; }
.stat-card .num { font-family: var(--f-mono); font-size: 2rem; font-weight: 600; color: var(--accent-bright); }
.stat-card .label { color: var(--text-muted); font-size: .85rem; margin-top: 4px; }

@media (max-width: 780px) {
    .admin-wrap { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; align-items: center; overflow-x: auto; padding: 10px 0; }
    .admin-sidebar .logo-img { display: none; }
    .main-nav { gap: 14px; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 14px 0; gap: 10px; }
}

/* ---------- AGENDA (CALENDÁRIO) ---------- */
.agenda-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .agenda-layout { grid-template-columns: 1fr; } }

.agenda-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.agenda-mes-titulo { font-size: 1.3rem; text-transform: capitalize; color: var(--text); }

.tabela-agenda { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tabela-agenda th {
    padding: 10px; text-align: center; font-family: var(--f-mono); font-size: .72rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.celula-dia {
    vertical-align: top; height: 100px; padding: 0; border: 1px solid var(--border);
    background: var(--bg-elevated); transition: border-color .15s;
}
.celula-dia:not(.celula-vazia):hover { border-color: var(--border-bright); }
.celula-vazia { background: transparent; border-color: transparent; }
.celula-hoje { box-shadow: inset 0 0 0 1px var(--accent-dim); }
.celula-selecionada { border-color: var(--accent) !important; box-shadow: inset 0 0 0 2px var(--accent); }
.link-dia { display: block; height: 100%; padding: 8px; color: inherit; }
.numero-dia { font-family: var(--f-mono); font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.celula-hoje .numero-dia { color: var(--accent-bright); font-weight: 700; }
.eventos-dia { display: flex; flex-direction: column; gap: 4px; }
.chip-evento {
    display: block; font-size: .72rem; padding: 3px 7px; border-radius: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border: 1px solid; font-family: var(--f-body);
}
.chip-confirmado { background: rgba(74,222,128,.12); color: #4ade80; border-color: rgba(74,222,128,.3); }
.chip-pendente { background: rgba(255,180,60,.12); color: #ffb43c; border-color: rgba(255,180,60,.3); }
.chip-mais { font-size: .68rem; color: var(--text-faint); padding: 2px 7px; }
.legenda-cor { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.legenda-confirmado { background: #4ade80; }
.legenda-pendente { background: #ffb43c; }

.agenda-painel-dia { position: sticky; top: 92px; }
.agenda-painel-dia h3 { color: var(--text); text-transform: capitalize; margin-bottom: 6px; }
.agenda-subtitulo { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 20px 0 10px; }
.lista-itens-comprometidos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lista-itens-comprometidos li { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.qtd-comprometida { font-family: var(--f-mono); font-size: .8rem; color: var(--accent-bright); background: rgba(255,122,26,.1); padding: 2px 9px; border-radius: 999px; }
.qtd-comprometida.qtd-esgotado { color: #ff8a8a; background: rgba(255,90,90,.12); }
.card-orcamento-mini { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--raio-sm); font-size: .88rem; color: var(--text); }
.card-orcamento-mini:hover { border-color: var(--accent-dim); }

@media (max-width: 700px) {
    .tabela-agenda th { font-size: .6rem; padding: 6px 2px; }
    .celula-dia { height: 70px; }
    .link-dia { padding: 5px; }
    .chip-evento { font-size: .62rem; padding: 2px 4px; }
    .agenda-painel-dia { position: static; }
}
