/*
 * Public careers page of Realmate, with the "Realmate Design System" of the
 * organization (decision 0029): its five colors, Spline Sans for headings and
 * Poppins for the text, capsule buttons and 20px cards. The values are the same
 * as the theme of the candidate pages of the SPA, in frontend/app/assets/css/main.css.
 * The fonts come from Google Fonts (SIL Open Font License), latin subset only,
 * served from here so the page calls no other site.
 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400-latin.43751174b6b8.woff2") format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500-latin.792477d09826.woff2") format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600-latin.b550bca8934b.woff2") format('woff2');
}

@font-face {
  font-family: 'Spline Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/spline-sans-latin.ea7462005c01.woff2") format('woff2');
}

:root {
  /* The five colors of the guide. */
  --midnight: #111e47;
  --celeste: #4d61ac;
  --cyan: #1eb8d0;
  --ice: #d5eef6;
  --white: #ffffff;
  /* Tones the design system builds around them. */
  --celeste-hover: #4457a0;
  --celeste-soft: #eff2fa;
  --text: #414a63;
  --muted: #5c6580;
  --border: #e1e5ee;
  --background: #f7f8fb;
  --shadow-sm: 0 1px 3px rgb(17 30 71 / 8%), 0 1px 2px rgb(17 30 71 / 4%);
  --shadow-lg: 0 12px 28px rgb(17 30 71 / 12%);
  --focus-ring: 0 0 0 3px rgb(30 184 208 / 38%);
  --radius-card: 20px;
  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
  --font-display: 'Spline Sans', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--font-display);
  color: var(--midnight);
  letter-spacing: -0.012em;
}

a {
  color: var(--celeste);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--midnight);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

::selection {
  background: var(--ice);
  color: var(--midnight);
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header: the color logo on white. */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 26px;
  width: auto;
}

.brand span {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

/* Hero: the dark gradient of the guide, with one soft Ciano glow at the top right. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  color: var(--ice);
  background:
    radial-gradient(circle at 92% -10%, rgb(30 184 208 / 30%), transparent 45%),
    linear-gradient(135deg, var(--midnight) 0%, var(--celeste) 100%);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.375rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero p {
  margin: 0;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero .back {
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.hero .back a {
  color: var(--ice);
  text-decoration: none;
}

.hero .back a:hover {
  color: var(--white);
  text-decoration: underline;
}

.page {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 56px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 500;
}

.empty {
  color: var(--muted);
}

/* Cards: white, 20px, a hairline border plus a soft shadow. */
.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.job-card,
.job,
.message {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.job-card {
  display: block;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition:
    box-shadow 200ms var(--ease),
    transform 200ms var(--ease);
}

.job-card:hover,
.job-card:focus-visible {
  color: var(--text);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-radius: var(--radius-card);
}

.job-card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--midnight);
}

.job-card-details {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.job,
.message {
  padding: 28px 24px;
}

.job-facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-facts li {
  padding: 4px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 22%);
  color: var(--white);
  font-size: 0.875rem;
}

.job-facts span {
  color: var(--ice);
  margin-right: 4px;
}

.job-text p {
  margin: 0 0 14px;
}

.job-text p:last-child {
  margin-bottom: 0;
}

.job-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.job-text .benefits {
  margin: 0 0 14px;
}

.job-text .list-label {
  margin: 18px 0 8px;
  font-weight: 600;
  color: var(--midnight);
}

.job-intro h2,
.job-section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 500;
}

.benefits {
  margin: 0;
  padding-left: 20px;
}

.benefits li {
  margin: 0 0 6px;
}

.benefits li::marker {
  color: var(--cyan);
}

.apply {
  margin: 32px 0 0;
}

.message h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.2;
}

.message p {
  color: var(--muted);
}

.message p:last-child {
  margin-bottom: 0;
}

/* Buttons: capsules, filled Azul Celeste or outlined, as the guide documents. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--celeste);
  border-radius: 999px;
  background: var(--celeste);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 140ms var(--ease),
    transform 80ms var(--ease);
}

.button:hover,
.button:focus-visible {
  background: var(--celeste-hover);
  border-color: var(--celeste-hover);
  color: var(--white);
  border-radius: 999px;
}

.button:active {
  transform: scale(0.975);
}

.button-secondary {
  background: var(--white);
  color: var(--celeste);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--celeste-soft);
  border-color: var(--celeste);
  color: var(--celeste);
}

/* Footer: the white logo on Azul Meia-Noite. */
.site-footer {
  background: var(--midnight);
  color: var(--white);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer img {
  display: block;
  height: 20px;
  width: auto;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .hero {
    padding: 36px 0 40px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .brand img {
    height: 22px;
  }

  .job,
  .message {
    padding: 24px 20px;
  }

  .apply .button {
    display: flex;
    width: 100%;
  }
}
