/* ===================================================
   EMPREGA INTERIOR SP — Apple-inspired design system
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #0071e3;
  --blue-hover:  #0064c8;
  --blue-light:  #dbeafe;
  --gray-50:     #f5f5f7;
  --gray-100:    #ebebeb;
  --gray-200:    #d2d2d7;
  --gray-400:    #86868b;
  --gray-700:    #3a3a3c;
  --text:        #1d1d1f;
  --white:       #ffffff;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --shadow-md:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);
  --transition:  0.2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--gray-700); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 980px;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.9rem;
}
.btn--primary:hover { background: var(--blue-hover); transform: scale(1.02); }
.btn--secondary {
  background: var(--gray-100);
  color: var(--text);
  padding: 10px 22px;
  font-size: 0.9rem;
}
.btn--secondary:hover { background: var(--gray-200); }
.btn--sm  { padding: 7px 16px; font-size: 0.82rem; }
.btn--lg  { padding: 16px 36px; font-size: 1rem; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__logo {
  text-decoration: none;
  font-size: 1.15rem;
  font-family: 'Poppins', Inter, sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.logo-word   { font-weight: 800; color: var(--text); text-transform: uppercase; font-family: 'Poppins', Inter, sans-serif; }
.logo-accent { font-weight: 800; color: var(--blue); margin-left: 6px; text-transform: uppercase; font-family: 'Poppins', Inter, sans-serif; }
.navbar__links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.navbar__links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--gray-700);
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--text); }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(175deg, #e8f0fe 0%, #dbeafe 50%, #eff6ff 100%);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(0,113,227,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after { display: none; }
.hero__inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.hero__title {
  margin-bottom: 20px;
  color: var(--text);
}
.hero__subtitle {
  font-size: 1.2rem;
  color: var(--gray-400);
  margin-bottom: 48px;
  font-weight: 400;
}

/* ─── SEARCH BAR ─── */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gray-100);
  display: flex;
  align-items: center;
  padding: 8px;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}
.search-bar__field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 6px 16px;
}
.search-bar__icon {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-bar__field input,
.search-bar__field select {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  width: 100%;
}
.search-bar__field select { cursor: pointer; }
.search-bar__field input::placeholder { color: var(--gray-400); }
.search-bar__divider {
  width: 1px;
  height: 28px;
  background: var(--gray-100);
  flex-shrink: 0;
}
.search-bar__btn { margin-left: 8px; padding: 12px 28px; flex-shrink: 0; }

/* ─── STATS ─── */
.stats {
  border-bottom: 1px solid var(--gray-100);
  padding: 28px 24px;
}
.stats__inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-item__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.stat-item__label {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-100);
  margin: 0 24px;
}

/* ─── VAGAS SECTION ─── */
.vagas-section { padding: 64px 24px; }
.vagas-section__inner { max-width: 1200px; margin: 0 auto; }

/* ─── FILTERS ─── */
.filters { margin-bottom: 32px; }
.filters__tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 4px;
  width: fit-content;
  margin-bottom: 16px;
}
.filter-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.filter-tab.active { color: var(--blue); }

.filters__area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 6px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip:hover { border-color: var(--gray-400); color: var(--text); }
.filter-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ─── VAGAS META ─── */
.vagas-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--gray-400);
}
.sort-select {
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
}

/* ─── JOB GRID ─── */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ─── JOB CARD ─── */
.job-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity var(--transition);
}
.job-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.job-card:hover::before { opacity: 1; }

.job-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.job-card__badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--blue-light);
  color: var(--blue);
}
.job-card__badge--new { background: #e6f9f0; color: #1a7f4b; }

.job-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.job-card__company { font-size: 0.88rem; color: var(--gray-700); }

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray-700);
  background: var(--gray-50);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.meta-tag svg { width: 12px; height: 12px; }

.job-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
}
.job-card__salary { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.job-card__salary span { font-size: 0.75rem; font-weight: 400; color: var(--gray-400); display: block; }
.job-card__city {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 980px;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--gray-400); margin-bottom: 24px; }
.hidden { display: none !important; }

/* ─── CITIES SECTION ─── */
.cities-section {
  background: var(--gray-50);
  padding: 80px 24px;
}
.cities-section__inner { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--gray-400); margin-bottom: 48px; }

.city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.city-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-100);
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }

.city-card__body { padding: 24px; }
.city-card__body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.city-card__count { font-size: 0.85rem; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.city-card__desc { font-size: 0.88rem; color: var(--gray-400); margin-bottom: 16px; }
.city-card__link { font-size: 0.88rem; font-weight: 600; color: var(--blue); }

/* ─── ABOUT SECTION ─── */
.about-section { padding: 80px 24px; }
.about-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-section__text h2 { margin-bottom: 20px; }
.about-section__text p { margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }

.about-section__visual {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.about-pill {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 980px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.about-pill:hover { background: var(--white); border-color: var(--blue); color: var(--blue); transform: scale(1.03); }

/* ─── PUBLISH SECTION ─── */
.publish-section {
  background: var(--text);
  padding: 100px 24px;
  text-align: center;
}
.publish-section__inner { max-width: 600px; margin: 0 auto; }
.publish-section h2 { color: var(--white); margin-bottom: 16px; }
.publish-section p  { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin-bottom: 36px; }
.publish-section .btn--primary { background: var(--white); color: var(--text); font-weight: 600; }
.publish-section .btn--primary:hover { background: var(--gray-50); }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--gray-100);
  padding: 40px 24px;
  background: var(--white);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer__brand {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: 0.78rem; color: var(--gray-400); }


/* ─── TOAST ─── */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 980px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 999;
  white-space: nowrap;
}
#toast.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    gap: 0;
  }
  .search-bar__divider { width: 100%; height: 1px; }
  .search-bar__field { width: 100%; }
  .search-bar__btn { width: 100%; }
  .job-grid { grid-template-columns: 1fr; }
  .about-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .city-cards { grid-template-columns: 1fr; }
  .stats__inner { gap: 0; }
  .stat-divider { margin: 0 12px; }
  .filters__tabs { width: 100%; overflow-x: auto; }
}

@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  .hero { padding: 60px 16px 50px; }
}
