/* Next Rig Hire */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --night: #0f2238;
  --night-2: #17304d;
  --night-3: #21405f;
  --sun: #ff7a2f;
  --sun-hover: #ff9152;
  --sun-text: #c2410c;
  --sky: #eef4fb;
  --ink: #13202f;
  --muted: #566577;
  --on-night: #c8d5e3;
  --line: #d8e1eb;
  --bad: #ffb4a1;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0 0 0.55em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--sun-text); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
[hidden] { display: none !important; }

.box { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--night); color: #fff; }
.bar__row { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.logo svg { flex: none; }
.logo em { font-style: normal; color: var(--sun); }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { color: var(--on-night); text-decoration: none; font-size: 0.98rem; }
.links a:hover { color: #fff; }

/* Buttons */
.pill { display: inline-block; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; padding: 0.85em 1.5em; border-radius: 10px; border: 2px solid transparent; line-height: 1.2; transition: background-color 0.15s, border-color 0.15s; }
.pill--sun { background: var(--sun); color: var(--night); }
.pill--sun:hover { background: var(--sun-hover); }
.pill--ghost { background: transparent; color: #fff; border-color: var(--night-3); }
.pill--ghost:hover { border-color: #fff; }
.pill--small { padding: 0.5em 1.1em; }
.pill--wide { width: 100%; font-size: 1.1rem; padding: 1em; }

/* Hero */
.top {
  background:
    radial-gradient(1200px 420px at 85% 120%, rgba(255, 122, 47, 0.35), transparent 60%),
    var(--night);
  color: #fff;
  padding: 80px 0 72px;
}
.top__inner { max-width: 1080px; }
.top h1 { max-width: 14em; }
.tag { display: inline-block; background: rgba(255, 122, 47, 0.16); color: var(--sun); font-weight: 500; font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 1.4em; }
.top__lead { font-size: 1.2rem; color: var(--on-night); max-width: 36em; }
.top__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--on-night); font-size: 0.98rem; }
.promises li { position: relative; padding-left: 26px; }
.promises li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' fill='none' stroke='%230f2238' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Sections */
.sec { padding: 84px 0; }
.sec--sky { background: var(--sky); }
.sec--night { background: var(--night); color: #fff; }

.three { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.three li { border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.three__n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--night); color: var(--sun); font-weight: 700; margin-bottom: 16px; }
.three p { color: var(--muted); margin: 0; }

.jobs { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.jobs p { color: var(--muted); }
.spec { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spec li { background: #fff; border-radius: 12px; padding: 18px 20px; border-left: 4px solid var(--sun); }
.spec strong { display: block; font-weight: 500; font-size: 1.08rem; }
.spec span { color: var(--muted); font-size: 0.95rem; }

.needs { list-style: none; margin: 24px 0 0; padding: 0; max-width: 760px; }
.needs li { position: relative; padding: 14px 0 14px 36px; border-top: 1px solid var(--line); }
.needs li:last-child { border-bottom: 1px solid var(--line); }
.needs li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 12px; border-radius: 3px; background: var(--sun); }

/* Form */
.apply { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.apply__intro p { color: var(--on-night); }
.form, .sent { background: var(--night-2); border-radius: 16px; padding: 32px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: block; border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.field--half select { max-width: calc(50% - 10px); }
.field > span, .field legend { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.field i { font-style: normal; color: var(--sun); }
.field small { color: var(--on-night); font-weight: 400; }
.hint { display: block; font-size: 0.85rem; margin-top: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="month"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 2px solid #fff; border-radius: 8px; padding: 10px 12px; min-height: 48px;
}
textarea { resize: vertical; min-height: 48px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2313202f' stroke-width='1.8'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sun); }
.was-checked :invalid { border-color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; background: var(--night-3); border: 2px solid transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 0.95rem; }
.chips label:has(input:checked) { border-color: var(--sun); background: rgba(255, 122, 47, 0.14); }
.chips input { accent-color: var(--sun); width: 18px; height: 18px; margin: 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--night-3); border-radius: 10px; padding: 16px; margin: 4px 0 20px; font-size: 0.9rem; color: var(--on-night); cursor: pointer; }
.consent input { accent-color: var(--sun); width: 22px; height: 22px; margin: 1px 0 0; flex: none; }

.form__error { color: var(--bad); font-weight: 500; margin: 0 0 14px; }
.form__legal { font-size: 0.85rem; color: var(--on-night); margin: 14px 0 0; }
.form__legal a, .sent a, .apply__intro a { color: var(--sun); }

.sent h3 { font-size: 1.5rem; font-weight: 700; }
.sent p { color: var(--on-night); }
.sent textarea { font-size: 0.9rem; font-family: ui-monospace, Consolas, monospace; margin-bottom: 16px; }
.sent__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0; font-weight: 500; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--sun-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Footer */
.foot { background: var(--night); color: var(--on-night); padding: 26px 0; font-size: 0.92rem; }
.foot__row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { color: #fff; }

/* Privacy and 404 */
.doc { max-width: 760px; padding-top: 64px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 1.8em; }
.doc .updated { color: var(--muted); }
.doc p, .doc li { color: #2b3846; }

@media (max-width: 900px) {
  .jobs, .apply { grid-template-columns: 1fr; }
  .three { gap: 16px; }
  .three li { padding: 22px 20px; }
  .jobs, .apply { gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .links { display: none; }
  .bar__row { height: 58px; }
  .bar__row .pill { margin-left: auto; }
  .logo { font-size: 1.15rem; }
  .logo svg { width: 28px; height: 28px; }
  .top { padding: 52px 0 52px; }
  .top__actions .pill, .sent__actions .pill { flex: 1 1 auto; text-align: center; }
  .sec { padding: 60px 0; }
  .spec, .row, .three { grid-template-columns: 1fr; }
  .field--half select { max-width: none; }
  .form, .sent { padding: 22px 18px; margin: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Floating contact menu */
.hp-field, .fm__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.apply__intro a { color: var(--sun); }
.sent:focus { outline: none; }
.fm { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.fm > * { pointer-events: auto; }
.fm__fab {
  display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 500; font-size: 1.02rem;
  background: var(--sun); color: var(--night); border: 0; border-radius: 14px; padding: 14px 20px 14px 16px; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(15, 34, 56, 0.65);
}
.fm__fab:hover { background: var(--sun-hover); }
.fm__fab svg { width: 22px; height: 22px; flex: none; }
.fm.is-open .fm__fab { background: var(--night); color: var(--sun); box-shadow: 0 0 0 2px var(--sun); }
.fm__panel {
  width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto;
  background: var(--night); color: #fff; border-radius: 16px; border: 1px solid var(--night-3);
  box-shadow: 0 28px 60px -18px rgba(15, 34, 56, 0.7); padding: 18px 20px 20px;
}
.fm__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fm__title { margin: 0; font-weight: 700; font-size: 1.25rem; }
.fm__close { background: none; border: 0; color: var(--on-night); cursor: pointer; padding: 4px; border-radius: 8px; }
.fm__close svg { width: 22px; height: 22px; display: block; }
.fm__close:hover { color: #fff; background: var(--night-2); }
.fm__item {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; font: inherit; color: #fff; text-decoration: none;
  background: var(--night-2); border: 1px solid var(--night-3); border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer;
}
.fm__item:last-child { margin-bottom: 0; }
.fm__item:hover { border-color: var(--sun); }
.fm__item svg { width: 22px; height: 22px; flex: none; color: var(--sun); margin-top: 2px; }
.fm__item strong { display: block; font-weight: 500; }
.fm__item small { display: block; color: var(--on-night); font-size: 0.88rem; line-height: 1.4; overflow-wrap: anywhere; }
.fm__back { background: none; border: 0; padding: 0; margin: 0 0 12px; font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--sun); cursor: pointer; }
.fm__field { display: block; margin: 0 0 12px; min-width: 0; }
.fm__field > span { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 4px; }
.fm__field i { font-style: normal; color: var(--sun); }
.fm__field small { color: var(--on-night); }
.fm__field input, .fm__field select { min-height: 44px; }
.fm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fm__error { color: var(--bad); font-weight: 500; font-size: 0.92rem; margin: 0 0 10px; }
.fm__error a { color: var(--sun); }
.fm__send { width: 100%; font: inherit; font-weight: 500; font-size: 1.05rem; background: var(--sun); color: var(--night); border: 0; border-radius: 10px; padding: 13px; cursor: pointer; }
.fm__send:hover { background: var(--sun-hover); }
.fm__send:disabled { opacity: 0.7; cursor: wait; }
.fm__legal { margin: 10px 0 0; font-size: 0.8rem; color: var(--on-night); line-height: 1.45; }
.fm__done p { font-size: 1.05rem; margin: 0 0 14px; }

@media (max-width: 640px) {
  .fm { right: 12px; bottom: 12px; left: 12px; }
  .fm__panel { width: 100%; max-height: calc(100vh - 96px); }
  .foot { padding-bottom: 92px; }
}