
:root{
  --navy:#072b5e;
  --navy-2:#0a376f;
  --blue:#124ec4;
  --blue-soft:#edf4ff;
  --ink:#0a1d3b;
  --text:#33445f;
  --muted:#6d7c93;
  --line:#e3e9f2;
  --panel:#ffffff;
  --page:#f7f9fc;
  --shadow:0 10px 26px rgba(18,43,78,.08);
  --amber:#f59e0b;
  --amber-soft:#fff7e8;
  --green:#21883b;
  --green-soft:#ecf8ef;
  --purple:#7255c9;
  --purple-soft:#f2edff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--page);
  font-size:15px;
}
button,input,select{font:inherit}
a{color:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.main-content{min-width:0;padding:30px clamp(24px,3vw,46px) 60px;max-width:1440px;margin:0 auto}
.main-content--full{padding-top:34px}
.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin-bottom:28px}
.title-block{display:flex;align-items:center;gap:12px}
.title-block h1{margin:0;font-size:clamp(32px,3vw,42px);line-height:1;font-weight:800;letter-spacing:-.04em}
.title-block p{margin:8px 0 0;color:var(--muted);font-size:14px}
.header-tools{display:flex;gap:12px;align-items:center}
.search-box{
  height:42px;border:1px solid var(--line);background:#fff;border-radius:8px;
  display:flex;align-items:center;box-shadow:0 3px 12px rgba(13,35,69,.02);
  width:min(360px,40vw);padding:0 14px;gap:10px;color:var(--muted)
}
.search-box input{border:0;outline:0;width:100%;color:var(--ink);background:transparent}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}
.metric-card{
  min-height:116px;padding:18px 20px;border-radius:16px;background:#fff;border:1px solid var(--line);
  box-shadow:var(--shadow);display:flex;align-items:center;gap:16px;text-align:left;
}
.metric-filter{cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease}
.metric-filter:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(18,43,78,.11)}
.metric-filter.is-active{border-color:#b9ccf3;background:linear-gradient(180deg,#fff 0%,#f4f8ff 100%);box-shadow:0 16px 34px rgba(18,78,196,.12)}
.metric-filter.is-active .metric-icon{transform:scale(1.02)}
.metric-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:24px;flex:0 0 auto;transition:transform .18s ease}
.metric-icon.blue{background:var(--blue-soft);color:var(--blue)}
.metric-icon.amber{background:var(--amber-soft);color:#e19100}
.metric-icon.green{background:var(--green-soft);color:var(--green)}
.metric-card span{display:block;color:var(--text);font-size:14px;margin-bottom:6px}
.metric-card strong{font-size:44px;line-height:1;color:var(--navy);letter-spacing:-.04em}
.section-title{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.section-title i{color:#275dd6;font-size:18px}.section-title h2{margin:0;font-size:28px;letter-spacing:-.03em}
.featured-section{margin-bottom:18px}
.featured-card{display:grid;grid-template-columns:300px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}
.featured-visual{position:relative;min-height:252px;background:#d7e5ff}
.featured-visual--photo{
  background-image:linear-gradient(180deg, rgba(7,43,94,.10), rgba(7,43,94,.20)), url('./capa-projeto-logistico.jpg');
  background-size:cover;
  background-position:center;
}
.featured-content{padding:28px 28px 22px}
.featured-topline{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.featured-topline h3{margin:0;font-size:38px;letter-spacing:-.04em;line-height:1.05}
.project-code{display:inline-block;margin-top:6px;color:#215cd0;text-decoration:none;font-weight:700}
.project-code:hover{text-decoration:underline}
.status-badge{
  display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;
  font-size:13px;font-weight:600;border:1px solid transparent;white-space:nowrap
}
.status-badge i{font-size:13px}
.status-badge.analysis{background:var(--amber-soft);color:#b86a00;border-color:#ffd69a}
.status-badge.deploy{background:#eef5ff;color:#1654bb;border-color:#cdddff}
.status-badge.done{background:var(--green-soft);color:var(--green);border-color:#bde5c6}
.status-badge.planning{background:#f1f4f9;color:#51617c;border-color:#dce4ef}
.featured-description{margin:18px 0 20px;color:#51617c;font-size:16px;line-height:1.7;max-width:760px}
.featured-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.featured-stats{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.mini-stat{
  min-width:148px;display:grid;grid-template-columns:38px 1fr;gap:0 10px;align-items:center;
  padding:12px 14px;border-radius:12px;background:#f7faff;border:1px solid #e3ecfb
}
.mini-stat i{grid-row:1/3;font-size:18px;color:#2959c6}
.mini-stat strong{font-size:26px;line-height:1;color:var(--navy)}
.mini-stat span{font-size:13px;color:var(--muted)}
.featured-actions{display:flex;gap:12px;flex-wrap:wrap}
.button{
  min-width:144px;height:44px;padding:0 18px;border-radius:10px;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;font-weight:700
}
.button.primary{background:#114fc6;color:#fff;box-shadow:0 14px 26px rgba(17,79,198,.18)}
.button.secondary{background:#fff;color:#154eb5;border:1px solid #2d69de}
.project-list-section{margin-top:18px}
.list-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.list-heading h2{margin:0;font-size:28px;letter-spacing:-.03em}.list-heading p{margin:6px 0 0;color:var(--muted)}
.project-table-wrap{border:1px solid var(--line);background:#fff;border-radius:18px;padding:10px;box-shadow:var(--shadow)}
.project-table-head,.project-row{display:grid;grid-template-columns:minmax(280px,1.8fr) minmax(120px,.8fr) minmax(140px,.9fr) minmax(140px,.8fr) minmax(130px,.7fr);align-items:center;gap:14px}
.project-table-head{padding:10px 14px 12px;color:#607089;font-weight:600;font-size:13px}
.project-list{display:flex;flex-direction:column;gap:8px}
.project-row{min-height:68px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 16px rgba(18,43,78,.04)}
.project-name-cell{display:flex;align-items:center;gap:12px;min-width:0}
.row-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-size:18px}
.row-icon.blue{background:var(--blue-soft);color:var(--blue)}
.row-icon.amber{background:var(--amber-soft);color:#d77e00}
.row-icon.purple{background:var(--purple-soft);color:var(--purple)}
.project-name-cell strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-name-cell small{display:block;color:var(--muted);margin-top:3px;font-size:12px}
.project-area,.project-date{color:#58677e;font-size:13px}
.project-action-cell{display:flex;justify-content:flex-end}
.list-action{min-width:128px;height:38px;border:1px solid #2869e3;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#1452bd;background:#fff;font-weight:700;font-size:12px}
.list-action.disabled{border-color:#d9e0ea;color:#8b98aa;background:#f8fafc;cursor:not-allowed}
.empty-state{padding:54px 20px;text-align:center;color:var(--muted);display:grid;justify-items:center;gap:8px}
.empty-state i{font-size:30px;color:#a2aec0}.empty-state strong{color:var(--ink)}

@media (min-width:1600px){
  body{font-size:16px}
  .main-content{max-width:1560px;padding-left:56px;padding-right:56px}
  .metric-card{min-height:124px}
  .featured-card{grid-template-columns:360px minmax(0,1fr)}
}
@media (max-width:1120px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-header{align-items:flex-start;flex-direction:column}
  .header-tools{width:100%}
  .search-box{flex:1;width:100%}
  .project-table-head,.project-row{grid-template-columns:minmax(240px,1.8fr) minmax(110px,.8fr) minmax(140px,.9fr) minmax(130px,.8fr) minmax(130px,.7fr)}
}
@media (max-width:860px){
  .main-content{padding:22px 20px 44px}
  .featured-card{grid-template-columns:1fr}
  .featured-visual{min-height:220px}
  .project-table-head{display:none}
  .project-row{grid-template-columns:1fr auto;gap:10px 14px;padding:14px}
  .project-name-cell{grid-column:1/3}
  .project-area::before,.project-date::before,.project-row [data-label]::before{content:attr(data-label) ': ';font-weight:600;color:var(--ink)}
  .project-action-cell{align-self:center}
}
@media (max-width:620px){
  .main-content{padding:18px 14px 40px}
  .page-header{margin-bottom:20px}
  .header-tools{width:100%}
  .metric-grid{grid-template-columns:1fr 1fr;gap:10px}
  .metric-card{min-height:92px;padding:12px;gap:10px}
  .metric-icon{width:44px;height:44px;font-size:19px}
  .metric-card strong{font-size:24px}.metric-card span{font-size:11px}
  .featured-content{padding:20px 18px}
  .featured-topline{flex-direction:column}
  .featured-topline h3{font-size:30px}
  .featured-bottom{align-items:stretch;flex-direction:column}
  .featured-stats{justify-content:space-between;gap:10px}
  .featured-actions{display:grid;grid-template-columns:1fr 1fr}
  .button{min-width:0;width:100%}
  .project-row{grid-template-columns:1fr}
  .project-name-cell{grid-column:1}
  .project-action-cell{justify-content:stretch}
  .list-action{width:100%}
}
