
:root{
  --bg:#0f172a; --fg:#0b1220; --card:#ffffff; --muted:#6b7280; --brand:#2563eb; --brand-2:#0ea5e9;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#f1f5f9;color:#0f172a}
.container{max-width:1100px;margin:0 auto;padding:24px}
header{background:linear-gradient(90deg,var(--bg),#111827);color:#fff;position:sticky;top:0;z-index:10}
.nav{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:16px 24px}
.nav a{color:#cbd5e1;text-decoration:none;font-weight:500}
.nav a:hover{color:#fff}
.brand{display:flex;gap:10px;align-items:center;font-weight:800;color:#fff;text-decoration:none}
.brand .logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand-2));display:inline-block}
.badge{background:#e2e8f0;border-radius:999px;padding:2px 10px;font-size:12px;color:#0f172a}
.btn{display:inline-block;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;border:none;border-radius:12px;padding:10px 14px;font-weight:700;text-decoration:none;cursor:pointer}
.btn.secondary{background:#0f172a1a;color:#fff;border:1px solid #cbd5e1}
.btn:disabled{opacity:.6;cursor:not-allowed}
.card{background:var(--card);border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 10px 30px rgba(2,6,23,.04);padding:18px}
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}
.input, select, textarea{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
label{font-weight:600;margin-bottom:8px;display:block}
small.muted{color:#64748b}
footer{color:#64748b;padding:24px;text-align:center}
.kicker{font-size:13px;color:#94a3b8;letter-spacing:.12em;text-transform:uppercase;margin-bottom:8px}
h1{font-size: clamp(28px, 3vw, 44px); margin: 0 0 10px; line-height:1.15}
.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:center}

/* A imagem ocupa todo o bloco com corte elegante */
.visual{ position: relative; overflow: hidden; }
.visual-img{
  width: 100%;
  height: 100%;
  object-fit: cover;      /* preenche sem distorcer */
  display: block;
  border-radius: 22px;
  /* borda igual ao container */
  outline: 1px solid #e2e8f0;
  outline-offset: -1px;
}

/* Se quiser um leve escurecimento por cima para contraste: */
.visual::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(2,6,23,.08), rgba(2,6,23,.18));
  border-radius: 22px;
}





.tag{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid #e5e7eb;background:#f8fafc;color:#334155;display:inline-flex;gap:6px;align-items:center}
.flex{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.hide{display:none}
.product{display:grid;grid-template-columns:100px 1fr;gap:12px;align-items:start}
.product .img{width:100px;height:100px;border-radius:12px;background:linear-gradient(135deg,#e2e8f0,#f8fafc)}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #e5e7eb;padding:10px;text-align:left}
footer a{color:inherit}
.q{margin-bottom:14px}
.badge.type{background:#ecfeff;color:#0e7490;border-color:#a5f3fc}
.notice{background:#f0f9ff;border:1px solid #bae6fd;color:#0c4a6e;padding:10px 12px;border-radius:12px}
.success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412}


/* === Mobile-Responsive Navbar Enhancements === */
.site-header{position:sticky;top:0;background:linear-gradient(90deg,var(--bg),#111827);color:#fff;z-index:20;border-bottom:1px solid rgba(255,255,255,.06)}
.site-header.scrolled{box-shadow:0 8px 24px rgba(2,6,23,.15)}

.nav{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:12px 24px}
.nav .brand{display:flex;gap:10px;align-items:center;font-weight:800;color:#fff;text-decoration:none}
.nav .brand .logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand-2))}

.nav-links.desktop{display:flex;gap:14px;align-items:center}
.nav-links.desktop a{color:#cbd5e1;text-decoration:none;font-weight:500}
.nav-links.desktop a:hover{color:#fff}

.auth.desktop{display:flex;gap:10px;align-items:center}
.auth .badge.user-email{background:#1f2937;color:#e5e7eb;border:1px solid rgba(255,255,255,.1)}

/* Burger button */
.nav-toggle{display:none;background:transparent;border:none;cursor:pointer;width:44px;height:44px;border-radius:10px}
.nav-toggle .bar{display:block;width:22px;height:2px;background:#e5e7eb;margin:4px auto;transition:transform .2s ease, opacity .2s ease}

/* Mobile drawer + overlay */
.mobile-overlay{position:fixed;inset:0;background:rgba(2,6,23,.5);backdrop-filter:saturate(130%) blur(2px);z-index:40}
.mobile-drawer{position:fixed;top:0;right:0;height:100dvh;width:min(86%,340px);background:#0b1220;color:#e5e7eb;z-index:41;border-left:1px solid rgba(255,255,255,.06);transform:translateX(100%);transition:transform .2s ease}
.mobile-drawer.open{transform:translateX(0)}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.06)}
.drawer-head .brand{color:#fff;text-decoration:none;display:flex;gap:8px;align-items:center}
.drawer-close{background:transparent;border:none;color:#e5e7eb;font-size:22px;cursor:pointer}
.drawer-links{display:flex;flex-direction:column;padding:8px}
.drawer-links a{color:#cbd5e1;text-decoration:none;padding:12px;border-radius:10px}
.drawer-links a:hover{background:rgba(255,255,255,.06);color:#fff}
.drawer-auth{padding:12px;display:grid;gap:10px}
.drawer-auth .btn{width:100%}

/* Responsive rules */
@media (max-width: 900px){
  .nav-links.desktop, .auth.desktop{display:none}
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
}

/* Prevent background scroll when drawer open */
body.menu-open{overflow:hidden}


/* --- Tiles com imagem --- */
.tile--media{
  position: relative;
  display: block;
  height: 180px;                 /* ajusta a altura aqui */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(2,6,23,.05);
}
.tile--media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.tile--media::after{
  /* overlay suave para contraste do texto */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 200px at 80% -20%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(to top, rgba(2,6,23,.18), rgba(255,255,255,0) 60%);
}
.tile--media:hover img{ transform: scale(1.04); }
.tile--media .label{
  position: absolute; left: 14px; bottom: 12px;
  padding: 6px 10px;
  font-weight: 700; color: #0f172a;
  background: rgba(255,255,255,.82);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  backdrop-filter: saturate(160%) blur(2px);
}

/* responsividade */
@media (max-width: 640px){
  .tile--media{ height: 150px; }
}
