:root {
  --ink: #142521;
  --muted: #60716d;
  --brand: #087f6d;
  --brand-dark: #075e54;
  --brand-soft: #dff5ef;
  --accent: #f2b84b;
  --surface: #ffffff;
  --canvas: #f4f8f7;
  --line: #dfe9e6;
  --shadow: 0 12px 32px rgba(13, 57, 49, 0.09);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 2;
  color: #fff;
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 72px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand > span:last-child > span { color: var(--accent); }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px 11px 11px 3px;
  color: var(--brand-dark);
  background: var(--accent);
  font-weight: 900;
}

.header-tagline { color: #cce4de; font-size: .92rem; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: #d9ece8; font-size: .9rem; font-weight: 700; text-decoration: none; }
.header-nav a:hover { color: #fff; }
.header-nav .nav-cta { padding: 9px 13px; color: var(--brand-dark); background: var(--accent); border-radius: 9px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 86px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #0b7569 68%, #128b79);
}

.hero::before, .hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.hero::before { width: 420px; height: 420px; right: -110px; top: -220px; }
.hero::after { width: 260px; height: 260px; left: -100px; bottom: -170px; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { color: #aee3d8; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 12px 0 14px; font-size: clamp(2.15rem, 5vw, 3.7rem); line-height: 1.06; letter-spacing: -.045em; }
h1 span { color: var(--accent); }
.hero p { max-width: 660px; margin: 0; color: #d6e9e5; font-size: 1.08rem; }

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(185px, 1fr) minmax(170px, .8fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 36px;
  padding: 18px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 44, 37, .22);
}

.field label, .sort-wrap label { display: block; margin: 0 0 7px; color: #435651; font-size: .76rem; font-weight: 750; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 13px; top: 50%; color: var(--brand); font-size: 1.4rem; transform: translateY(-54%); }
input, select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #f8fbfa;
  border: 1px solid #cfdedb;
  border-radius: 10px;
  outline: none;
}
input { padding-left: 42px; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,127,109,.14); }
.search-button, .secondary-button {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}
.search-button { color: #fff; background: var(--brand); }
.search-button:hover { background: var(--brand-dark); }

.jobs-section { padding: 48px 0 72px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.results-label { margin: 0 0 3px; color: var(--brand); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.results-toolbar h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.sort-wrap { min-width: 190px; }
.sort-wrap select { height: 42px; background: var(--surface); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters:empty { display: none; }
.filter-chip { padding: 6px 10px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-size: .79rem; font-weight: 700; }
.filter-chip button { margin-left: 5px; padding: 0 2px; color: inherit; background: transparent; border: 0; font-weight: 900; }

.job-list { display: grid; gap: 14px; }
.job-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(13,57,49,.035);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.job-card:hover { border-color: #b8d5cf; box-shadow: var(--shadow); transform: translateY(-2px); }
.company-logo { display: grid; width: 56px; height: 56px; place-items: center; color: var(--brand-dark); background: var(--brand-soft); border-radius: 14px; font-size: 1.08rem; font-weight: 900; }
.job-title { margin: 0 0 3px; font-size: 1.14rem; letter-spacing: -.015em; }
.company-name { margin: 0 0 12px; color: var(--muted); font-size: .92rem; font-weight: 650; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; color: var(--muted); font-size: .85rem; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta span::before { color: var(--brand); font-weight: 900; }
.meta-location::before { content: "●"; font-size: .55rem; }
.meta-salary::before { content: "R$"; font-size: .68rem; }
.job-actions { display: flex; min-width: 145px; flex-direction: column; align-items: end; gap: 12px; }
.posted-date { color: var(--muted); font-size: .78rem; }
.mode-badge { display: inline-flex; padding: 5px 9px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-size: .72rem; font-weight: 800; }
.mode-badge.hybrid { color: #77530a; background: #fff0cb; }
.mode-badge.remote { color: #3b528e; background: #e7edff; }
.view-button { padding: 9px 15px; color: #fff; background: var(--brand); border: 0; border-radius: 9px; font-size: .86rem; font-weight: 800; }
.view-button:hover { background: var(--brand-dark); }

.empty-state { padding: 64px 20px; text-align: center; background: var(--surface); border: 1px dashed #bdcfcb; border-radius: var(--radius); }
.empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 50%; font-size: 2rem; }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.secondary-button { color: var(--brand-dark); background: var(--brand-soft); }

.site-footer { padding: 28px 0; color: #cfe0dc; background: #113d36; }
.footer-brand { color: #fff; font-size: 1.05rem; }
.footer-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px 9px 9px 3px; }
.site-footer p { margin: 0; font-size: .8rem; text-align: center; }

@media (max-width: 900px) {
  .search-panel { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
  .search-button { width: 100%; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: 64px; }
  .header-tagline { display: none; }
  .header-nav a:first-child { display: none; }
  .header-nav { gap: 8px; }
  .hero { padding: 46px 0 70px; }
  .hero p { font-size: .98rem; }
  .search-panel { grid-template-columns: 1fr; margin-top: 26px; padding: 14px; }
  .field-search { grid-column: auto; }
  .jobs-section { padding: 36px 0 56px; }
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .sort-wrap { min-width: 0; }
  .job-card { grid-template-columns: 46px minmax(0,1fr); gap: 13px; padding: 17px; }
  .company-logo { width: 46px; height: 46px; border-radius: 12px; }
  .job-actions { grid-column: 1 / -1; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
  .view-button { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
