:root {
  --ink: #1a1a1a;
  --forest: #0a0a0a;
  --forest-2: #1a1a1a;
  --lime: #a5c737;
  --mint: #c4e052;
  --cream: #f9fafb;
  --paper: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --muted: #6b7280;
  --display: "Inter", sans-serif;
  --body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 14px; background: var(--lime); color: var(--forest); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 28px clamp(22px, 5vw, 76px); color: white; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 19px/1 var(--display); letter-spacing: .16em; text-decoration: none; }
.header-link { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 5px; }
.header-link span { color: var(--lime); margin-left: 6px; }

.hero { min-height: 760px; height: min(900px, 100vh); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: center; padding: 118px clamp(22px, 7vw, 110px) 100px; color: white; background: var(--forest); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .48; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to right, black, transparent 85%); }
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--mint); font: 700 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: var(--lime); }
.eyebrow.dark { color: #6b8a1f; }
.hero h1 { margin: 0; max-width: 780px; font: 700 clamp(48px, 6.4vw, 91px)/.99 var(--display); letter-spacing: -.055em; }
.hero h1 em { display: block; color: var(--lime); font-style: normal; }
.hero-lead { max-width: 620px; margin: 30px 0 36px; color: #9ca3af; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
.primary-action { display: inline-flex; align-items: center; gap: 34px; padding: 17px 20px 17px 24px; border-radius: 4px; background: var(--lime); color: var(--forest); text-decoration: none; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.primary-action span { font-size: 20px; }

.hero-footer { position: absolute; left: clamp(22px, 7vw, 110px); bottom: 32px; right: clamp(22px, 7vw, 110px); display: flex; align-items: center; gap: 17px; color: #9ca3af; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.hero-footer i { width: 3px; height: 3px; border-radius: 50%; background: var(--lime); }

.roles-section { padding: clamp(80px, 10vw, 140px) clamp(22px, 7vw, 110px); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 58px; }
.section-heading h2, .principles h2 { margin: 0; font: 700 clamp(40px, 5vw, 68px)/1.06 var(--display); letter-spacing: -.05em; }
.section-heading > p { margin: 0 0 6px; max-width: 460px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.role-card { --accent: var(--lime); position: relative; min-height: 355px; overflow: hidden; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); background: rgba(255,255,255,.52); border-radius: 7px; transition: transform .3s ease, background .3s ease, box-shadow .3s ease; }
.role-card:nth-child(2) { --accent: var(--lime); }
.role-card:nth-child(3) { --accent: var(--lime); }
.role-card:nth-child(4) { --accent: var(--lime); background: var(--forest); color: white; }
.role-card::after { content: attr(data-index); position: absolute; right: 20px; bottom: -26px; color: rgba(0,0,0,.04); font: 800 150px/1 var(--display); letter-spacing: -.1em; }
.role-card:nth-child(4)::after { color: rgba(255,255,255,.045); }
.role-card:hover { transform: translateY(-5px); background: white; box-shadow: 0 22px 60px rgba(0,0,0,.1); }
.role-card:nth-child(4):hover { background: #1a1a1a; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.level { padding: 7px 10px; border-radius: 3px; background: var(--accent); color: var(--forest); font: 700 10px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.card-number { color: #9ca3af; font: 600 12px/1 var(--display); }
.role-card h3 { max-width: 520px; margin: 54px 0 12px; font: 700 clamp(28px, 3vw, 42px)/1.08 var(--display); letter-spacing: -.045em; }
.role-card p { margin: 0 0 30px; color: var(--muted); font-size: 16px; }
.role-card:nth-child(4) p { color: #9ca3af; }
.role-terms { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; margin: -12px 0 25px; color: #6b7280; font: 700 10px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.role-card:nth-child(4) .role-terms { color: #9ca3af; }
.role-terms i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.open-role { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 17px 0 0; border: 0; border-top: 1px solid currentColor; background: transparent; color: inherit; font: 700 14px/1 var(--body); cursor: pointer; text-align: left; }
.open-role span:last-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--forest); font-size: 19px; transition: transform .25s ease; }
.role-card:hover .open-role span:last-child { transform: rotate(45deg); }

.principles { padding: clamp(85px, 10vw, 140px) clamp(22px, 7vw, 110px); background: #0a0a0a; color: white; }
.principles h2 { max-width: 900px; color: white; }
.principle-grid { margin-top: 68px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.15); }
.principle-grid article { min-height: 260px; padding: 30px 32px 20px 0; border-right: 1px solid rgba(255,255,255,.15); }
.principle-grid article + article { padding-left: 32px; }
.principle-grid article:last-child { border-right: 0; }
.principle-grid span { color: var(--lime); font-size: 12px; }
.principle-grid h3 { margin: 65px 0 13px; font: 700 23px/1.2 var(--display); }
.principle-grid p { max-width: 330px; margin: 0; color: #9ca3af; line-height: 1.6; }

footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; padding: 40px clamp(22px, 7vw, 110px); background: #0a0a0a; color: #9ca3af; font-size: 13px; }
.footer-brand { color: white; }.footer-note { justify-self: end; }

.job-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.job-dialog[open] { animation: dialog-in .28s ease-out; }
.job-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(5px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px); } }
.dialog-shell { min-height: 100%; }
.dialog-topbar { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 70px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.dialog-kicker { display: flex; align-items: center; gap: 12px; color: #6b7280; font: 700 10px/1 var(--display); text-transform: uppercase; letter-spacing: .13em; }
.dialog-kicker i { width: 3px; height: 3px; border-radius: 50%; background: var(--lime); }
.close-button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--ink); font: 700 13px/1 var(--body); cursor: pointer; }
.close-button span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 22px; }
.dialog-content { max-width: 1100px; margin: 0 auto; padding: 70px 28px 100px; }
.job-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; padding-bottom: 58px; border-bottom: 1px solid var(--line); }
.job-hero h2 { margin: 10px 0 20px; font: 700 clamp(42px, 6vw, 75px)/1.02 var(--display); letter-spacing: -.055em; }
.job-hero > div > p { max-width: 730px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.job-meta { align-self: end; display: grid; gap: 0; border: 1px solid var(--line); }
.job-meta div { display: grid; gap: 5px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.job-meta div:last-child { border-bottom: 0; }
.job-meta small { color: #9ca3af; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.job-meta strong { font-size: 14px; }
.job-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; }
.job-section { padding: 48px 0 16px; border-bottom: 1px solid var(--line); }
.job-section.full { grid-column: 1 / -1; }
.job-section h3 { margin: 0 0 22px; font: 700 23px/1.2 var(--display); letter-spacing: -.02em; }
.job-section ul { margin: 0; padding: 0; list-style: none; }
.job-section li { position: relative; margin: 0 0 12px; padding-left: 20px; color: #374151; line-height: 1.55; }
.job-section li::before { content: ""; position: absolute; top: .68em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #a5c737; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: process; }
.process-list li { min-height: 120px; margin: 0; padding: 20px; border: 1px solid var(--line); counter-increment: process; }
.process-list li::before { content: "0" counter(process); position: static; display: block; width: auto; height: auto; margin-bottom: 24px; color: #6b8a1f; background: none; font: 700 11px/1 var(--display); }
.application-panel { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 52px; padding: 34px; background: var(--forest); color: white; border-radius: 6px; }
.application-panel h3 { margin: 0 0 8px; font: 700 24px/1.2 var(--display); }
.application-panel p { margin: 0; color: #9ca3af; }
.apply-link { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; padding: 16px 20px; border: 0; border-radius: 4px; background: var(--lime); color: var(--forest); font-weight: 700; text-decoration: none; white-space: nowrap; }
.apply-link.is-disabled { cursor: default; background: #374151; color: #9ca3af; }
.closing-note { grid-column: 1 / -1; margin: 34px 0 0; color: #374151; font-size: 17px; font-weight: 600; line-height: 1.55; }

/* Identidade do site rectrix.com.br */
.brand-logo { display: block; height: 40px; width: auto; }
.hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; background: #0a0a0a url("./assets/hero-bg.jpg") center / cover no-repeat; }
.hero::before { opacity: 1; background-image: linear-gradient(rgba(10,10,10,.72), rgba(10,10,10,.82)); background-size: auto; mask-image: none; }
.hero-copy { max-width: 1000px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.05); color: #d1d5db; font-size: 14px; font-weight: 500; }
.hero-pill span { color: var(--mint); }
.hero h1 { max-width: none; font-weight: 700; font-size: clamp(42px, 5.1vw, 72px); line-height: 1.1; letter-spacing: -.025em; }
.hero h1 em { width: fit-content; margin: 0 auto; color: transparent; background: linear-gradient(90deg, #a5c737, #c4e052); -webkit-background-clip: text; background-clip: text; }
.hero-lead { margin-left: auto; margin-right: auto; max-width: 760px; }
.primary-action, .apply-link, .header-link { background: linear-gradient(90deg, #8ab12e, #a5c737 35%, #b8d44f 65%, #c4e052); color: #000; border-radius: 12px; font-weight: 600; box-shadow: 0 0 22px rgba(165,199,55,.3); }
.primary-action { gap: 12px; padding: 18px 32px; }
.header-link { padding: 14px 24px; border: 0; }
.header-link span { color: inherit; }
.hero-footer { justify-content: center; }
.hero-footer i { background: var(--mint); }
.eyebrow { letter-spacing: .08em; }
.section-heading h2, .principles h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -.025em; }
.roles-section { background: linear-gradient(#ffffff, #f9fafb); }
.role-card { background: #fff; border-color: #f3f4f6; border-radius: 16px; box-shadow: 0 10px 15px rgba(0,0,0,.08); }
.role-card:nth-child(4) { background: #0a0a0a; border-color: #1f2937; }
.role-card h3 { font-weight: 700; letter-spacing: -.02em; }
.level { border-radius: 999px; color: #000; letter-spacing: .06em; }
.principles { background: radial-gradient(at 50% 0%, #1a1a1a 0, #0a0a0a 70%); }
footer { background: radial-gradient(at 50% 0%, #1a1a1a 0, #0a0a0a 70%); }
.job-hero h2 { letter-spacing: -.025em; font-size: clamp(36px, 5vw, 60px); }
.job-meta, .process-list li { border-radius: 12px; }
.job-meta div { border-radius: 0; }
.application-panel { background: radial-gradient(at 50% 0%, #1a1a1a 0, #0a0a0a 70%); border-radius: 16px; }

@media (max-width: 900px) {
  .hero { height: auto; min-height: 720px; grid-template-columns: minmax(0, 1fr); padding-top: 145px; }
  .hero-copy { z-index: 2; }
  .section-heading, .job-hero { grid-template-columns: 1fr; }
  .section-heading { gap: 24px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article + article { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .principle-grid h3 { margin-top: 25px; }
  .process-list { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; }.footer-note { justify-self: start; }
}

@media (max-width: 680px) {
  .site-header { padding-top: 21px; }.header-link { display: none; }
  .hero { min-height: 680px; padding-bottom: 100px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 64px); }
  .hero-footer { flex-wrap: wrap; bottom: 24px; gap: 11px; }
  .hero-footer span { font-size: 9px; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 320px; padding: 26px; }
  .role-card h3 { margin-top: 42px; }
  .job-body { grid-template-columns: 1fr; }
  .job-section, .job-section.full { grid-column: 1; }
  .job-hero { padding-bottom: 38px; }
  .job-meta { align-self: auto; }
  .process-list { grid-template-columns: 1fr; }
  .application-panel { flex-direction: column; align-items: flex-start; padding: 27px; }
  .apply-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
