/* ============================================================
   oilfields.work — Gritty, mobile-first oilfield job board
   Design system: safety yellow/orange, asphalt black, steel gray
   Built to be read on a cracked phone screen in bright sun.
   ============================================================ */

:root {
  /* Core palette */
  --hi-vis:      #FFC400;   /* safety yellow — primary action */
  --hi-vis-deep: #FFAA00;   /* amber */
  --orange:      #FF6A00;   /* hazard orange — accents */
  --asphalt:     #0E0F12;   /* near-black background */
  --asphalt-2:   #16181D;   /* raised black panels */
  --steel:       #2A2E37;   /* steel gray borders/cards */
  --steel-2:     #3A404C;   /* lighter steel */
  --concrete:    #8B929B;   /* muted text */
  --concrete-2:  #B9C0C9;   /* secondary text */
  --white:       #F4F6F8;
  --green:       #25D366;   /* SMS / verified green */
  --red:         #FF4D4D;   /* expired credential */

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow-hi: 0 8px 24px rgba(255,196,0,.28);
  --maxw: 1180px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--asphalt);
  color: var(--white);
  line-height: 1.6;
  font-size: 17px;            /* large default for sun/cracked-screen legibility */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.02;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 4vw, 1.7rem); }

p { color: var(--concrete-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--concrete); }
.hi { color: var(--hi-vis); }
.orange { color: var(--orange); }
.green { color: var(--green); }
.nowrap { white-space: nowrap; }

/* ---------- Hazard stripe ---------- */
.hazard-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    45deg, var(--hi-vis), var(--hi-vis) 22px,
    var(--asphalt) 22px, var(--asphalt) 44px);
}
.hazard-stripe.thin { height: 5px; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 700; font-size: .82rem;
  color: var(--hi-vis);
  background: rgba(255,196,0,.08);
  border: 1px solid rgba(255,196,0,.3);
  padding: 6px 14px; border-radius: 100px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); text-transform: uppercase;
  font-weight: 700; letter-spacing: .6px; font-size: 1.05rem;
  padding: 15px 26px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  min-height: 54px;          /* fat tap targets for gloved/field thumbs */
  text-align: center;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  background: var(--hi-vis); color: #1a1300;
  box-shadow: var(--shadow-hi);
}
.btn-primary:hover { background: var(--hi-vis-deep); box-shadow: 0 10px 30px rgba(255,170,0,.4); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #ff7d1f; }
.btn-ghost {
  background: transparent; color: var(--white);
  border-color: var(--steel-2);
}
.btn-ghost:hover { border-color: var(--hi-vis); color: var(--hi-vis); }
.btn-dark { background: var(--asphalt-2); color: var(--white); border-color: var(--steel); }
.btn-dark:hover { border-color: var(--hi-vis); }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.18rem; padding: 18px 34px; min-height: 60px; }
.btn-sm { font-size: .92rem; padding: 10px 18px; min-height: 44px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,18,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--hi-vis); color: var(--asphalt);
  display: grid; place-items: center; font-weight: 800; font-size: 1.35rem;
  box-shadow: var(--shadow-hi);
}
.brand-name { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.brand-name .dot { color: var(--hi-vis); }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a {
  font-family: var(--font-head); text-transform: uppercase;
  font-weight: 600; letter-spacing: .5px; font-size: .98rem;
  color: var(--concrete-2); transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--hi-vis); }
.nav-cta { display: none; gap: 10px; }
.nav-toggle {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--asphalt-2); border: 1px solid var(--steel);
  border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display:block; width:22px; height:2.5px; background:var(--white); margin:3px 0; transition:.2s; }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 14px 20px 22px; border-bottom: 1px solid var(--steel);
  background: var(--asphalt-2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head); text-transform: uppercase; font-weight: 600;
  letter-spacing: .5px; padding: 13px 6px; font-size: 1.1rem;
  border-bottom: 1px solid var(--steel);
  color: var(--concrete-2);
}
.mobile-menu a:hover { color: var(--hi-vis); }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: grayscale(.3) contrast(1.05) brightness(.42);
}
.hero-bg::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(14,15,18,.55) 0%, rgba(14,15,18,.82) 70%, var(--asphalt) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 64px 0 76px; }
.hero h1 { margin: 14px 0 18px; max-width: 16ch; }
.hero h1 .stroke { color: var(--hi-vis); }
.hero-sub { font-size: 1.2rem; max-width: 54ch; color: var(--concrete-2); margin-bottom: 30px; }
.hero-cta { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.hero-trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust .ht {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--concrete);
}
.hero-trust .ht b { color: var(--white); font-weight: 700; }

/* ---------- Dual path cards (worker / employer) ---------- */
.dual { display: grid; gap: 18px; }
.path-card {
  position: relative; overflow: hidden;
  background: var(--asphalt-2); border: 1px solid var(--steel);
  border-radius: var(--radius); padding: 30px 26px 28px;
  transition: transform .15s, border-color .15s;
}
.path-card:hover { transform: translateY(-4px); border-color: var(--hi-vis); }
.path-card .tag {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 700; font-size: .82rem; color: var(--asphalt);
  background: var(--hi-vis); display: inline-block; padding: 4px 12px;
  border-radius: 6px; margin-bottom: 14px;
}
.path-card.employer .tag { background: var(--orange); color: #fff; }
.path-card h3 { margin-bottom: 8px; }
.path-card ul { list-style: none; margin: 16px 0 22px; }
.path-card li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; color: var(--concrete-2); font-size: 1.02rem;
}
.path-card li::before { content: "▸"; color: var(--hi-vis); font-weight: 900; }
.path-card.employer li::before { color: var(--orange); }

/* ---------- Stat band ---------- */
.statband {
  background: linear-gradient(180deg, var(--asphalt-2), var(--asphalt));
  border-top: 1px solid var(--steel); border-bottom: 1px solid var(--steel);
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 3.4rem); color: var(--hi-vis); line-height: 1;
}
.stat .lbl { color: var(--concrete-2); font-size: .96rem; margin-top: 8px; }

/* ---------- Steps / how it works ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--asphalt-2);
  border: 1px solid var(--steel); border-radius: var(--radius);
  padding: 26px 24px 24px 24px;
}
.step .n {
  counter-increment: step;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--hi-vis); color: var(--asphalt);
  display: grid; place-items: center; margin-bottom: 16px;
  box-shadow: var(--shadow-hi);
}
.step h3 { margin-bottom: 8px; }

/* ---------- Credential Locker showcase (phone mockup) ---------- */
.locker-wrap { display: grid; gap: 36px; align-items: center; }
.phone {
  max-width: 330px; margin: 0 auto; width: 100%;
  background: #000; border: 10px solid #1c1f26; border-radius: 38px;
  padding: 14px 12px; box-shadow: var(--shadow);
}
.phone-screen {
  background: var(--asphalt-2); border-radius: 26px; overflow: hidden;
  border: 1px solid var(--steel);
}
.phone-top {
  background: linear-gradient(180deg, var(--asphalt) , var(--asphalt-2));
  padding: 16px 16px 14px; border-bottom: 1px solid var(--steel);
}
.phone-top .me { display: flex; align-items: center; gap: 12px; }
.phone-top .av {
  width: 48px; height: 48px; border-radius: 12px; background: var(--steel-2);
  display: grid; place-items: center; font-family: var(--font-head);
  font-weight: 800; color: var(--hi-vis); font-size: 1.3rem;
}
.phone-top .nm { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; }
.phone-top .rl { font-size: .8rem; color: var(--concrete); }
.cred-list { padding: 12px; display: grid; gap: 9px; }
.cred {
  display: flex; align-items: center; gap: 11px;
  background: var(--asphalt); border: 1px solid var(--steel);
  border-radius: 11px; padding: 11px 12px;
}
.cred .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 1rem; flex: none; }
.cred .ic.ok { background: rgba(37,211,102,.14); color: var(--green); border: 1px solid rgba(37,211,102,.4); }
.cred .ic.exp { background: rgba(255,77,77,.14); color: var(--red); border: 1px solid rgba(255,77,77,.4); }
.cred .nm2 { font-weight: 700; font-size: .92rem; }
.cred .st { font-size: .76rem; }
.cred .st.ok { color: var(--green); }
.cred .st.exp { color: var(--red); }
.cred .badge { margin-left: auto; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.cred .badge.ok { color: var(--green); }
.cred .badge.exp { color: var(--red); }

/* ---------- Feature list (checks) ---------- */
.feat-list { list-style: none; display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; }
.feat-list .ck {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,196,0,.12); border: 1px solid rgba(255,196,0,.4);
  color: var(--hi-vis); display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.feat-list b { color: var(--white); }

/* ---------- Job cards ---------- */
.jobs-grid { display: grid; gap: 16px; }
.job-card {
  background: var(--asphalt-2); border: 1px solid var(--steel);
  border-radius: var(--radius); padding: 20px 20px 18px;
  transition: border-color .15s, transform .15s;
}
.job-card:hover { border-color: var(--hi-vis); transform: translateY(-3px); }
.job-card .jc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-card .role { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.32rem; }
.job-card .co { color: var(--concrete); font-size: .92rem; margin-top: 2px; }
.job-card .pay {
  font-family: var(--font-head); font-weight: 800; color: var(--hi-vis);
  font-size: 1.25rem; text-align: right; white-space: nowrap;
}
.job-card .pay span { display:block; font-size:.7rem; color: var(--concrete); font-family: var(--font); font-weight: 600; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.chip {
  font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 100px;
  background: var(--steel); color: var(--concrete-2); border: 1px solid var(--steel-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.cert { background: rgba(255,196,0,.1); border-color: rgba(255,196,0,.35); color: var(--hi-vis); }
.chip.loc { background: rgba(255,106,0,.1); border-color: rgba(255,106,0,.35); color: #ff8c40; }
.job-card .jc-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.job-card .posted { font-size: .8rem; color: var(--concrete); }

/* ---------- Filter bar ---------- */
.filters {
  background: var(--asphalt-2); border: 1px solid var(--steel);
  border-radius: var(--radius); padding: 18px; margin-bottom: 24px;
  display: grid; gap: 12px;
}
.filters .frow { display: grid; gap: 12px; }
.field label { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; font-size: .8rem; color: var(--concrete); letter-spacing: 1px; display: block; margin-bottom: 6px; }
.field select, .field input {
  width: 100%; background: var(--asphalt); border: 1px solid var(--steel-2);
  color: var(--white); padding: 13px 14px; border-radius: 10px; font-size: 1rem;
  font-family: var(--font); min-height: 50px;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--hi-vis); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 20px; }
.price-card {
  background: var(--asphalt-2); border: 1px solid var(--steel);
  border-radius: var(--radius); padding: 30px 26px; position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--hi-vis); box-shadow: var(--shadow-hi); }
.price-card .ribbon {
  position: absolute; top: -13px; left: 26px;
  background: var(--hi-vis); color: var(--asphalt);
  font-family: var(--font-head); text-transform: uppercase; font-weight: 800;
  font-size: .76rem; letter-spacing: 1px; padding: 5px 14px; border-radius: 7px;
}
.price-card .tier { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.4rem; }
.price-card .price { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--hi-vis); line-height: 1; margin: 12px 0 4px; }
.price-card .price small { font-size: 1rem; color: var(--concrete); font-weight: 600; }
.price-card .blurb { color: var(--concrete-2); margin-bottom: 18px; min-height: 48px; }
.price-card ul { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--concrete-2); }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 900; flex: none; }
.price-card li.off { color: var(--concrete); opacity: .6; }
.price-card li.off::before { content: "—"; color: var(--concrete); }

/* ---------- Generic card grid ---------- */
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 20px; }
.card {
  background: var(--asphalt-2); border: 1px solid var(--steel);
  border-radius: var(--radius); padding: 26px 24px;
}
.card .ic-lg {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; background: rgba(255,196,0,.1); border: 1px solid rgba(255,196,0,.35);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }

/* ---------- OpsFlo promo band ---------- */
.opsflo-band {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,196,0,.08), transparent 55%),
    var(--asphalt-2);
  border: 1px solid var(--steel); border-radius: var(--radius);
  padding: 38px 30px;
}
.opsflo-band .of-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.opsflo-band .of-logo img { width: 40px; height: 40px; }
.opsflo-band .of-logo .nm { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.opsflo-band .of-logo .nm span { color: var(--hi-vis); }

/* ---------- SMS demo bubble ---------- */
.sms-demo { display: grid; gap: 10px; max-width: 360px; }
.bubble {
  padding: 12px 15px; border-radius: 16px; font-size: .98rem; line-height: 1.45;
  max-width: 86%;
}
.bubble.in { background: var(--steel); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.out { background: var(--green); color: #04210f; border-bottom-right-radius: 5px; align-self: flex-end; }
.sms-demo .meta { font-size: .76rem; color: var(--concrete); text-align: center; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--asphalt-2); border: 1px solid var(--steel);
  border-radius: var(--radius); padding: 28px 24px;
}
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.note { font-size: .85rem; color: var(--concrete); }
.notice {
  background: rgba(255,196,0,.08); border: 1px solid rgba(255,196,0,.3);
  border-radius: 10px; padding: 13px 15px; font-size: .92rem; color: var(--concrete-2);
}
.notice b { color: var(--hi-vis); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--steel); position: relative; z-index: 1; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--white);
  font-family: var(--font-head); text-transform: uppercase; font-weight: 600;
  font-size: 1.15rem; padding: 20px 40px 20px 0; cursor: pointer; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 18px; color: var(--hi-vis); font-size: 1.6rem; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding-bottom: 20px; }

/* ---------- Section headers ---------- */
.sec-head { max-width: 64ch; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin: 12px 0 12px; }
.sec-head p { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt-2); border-top: 1px solid var(--steel); padding: 52px 0 28px; }
.foot-grid { display: grid; gap: 30px; }
.foot-col h4 { font-size: 1rem; color: var(--hi-vis); margin-bottom: 14px; letter-spacing: 1px; }
.foot-col a { display: block; color: var(--concrete-2); padding: 5px 0; font-size: .96rem; }
.foot-col a:hover { color: var(--hi-vis); }
.foot-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--steel);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  font-size: .86rem; color: var(--concrete);
}
.foot-bottom .powered { display: flex; align-items: center; gap: 8px; }
.foot-bottom .powered img { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
/* Only hide when JS is active (html.js). Without JS, content is always visible. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — desktop enhancements (mobile is the default)
   ============================================================ */
@media (min-width: 720px) {
  .hero-cta { flex-direction: row; }
  .dual { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .jobs-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .filters .frow { grid-template-columns: repeat(4, 1fr); }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .locker-wrap { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .section { padding: 92px 0; }
  .hero-inner { padding: 90px 0 100px; }
  .locker-wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
